Differential EquationsSeries Solutions1 of 5
Series Solutions · 1

Power Series Solutions at Ordinary Points

When a differential equation has an xx multiplying y\ysol{y} or its derivatives, like y′′−xy=0\ydd{y''} - \ysol{xy} = 0, standard functions like erx\ysol{e^{rx}}, sin⁡x\ysol{\sin x}, and cos⁡x\ysol{\cos x} no longer cancel out, so we build the solution from powers of xx.

1

Building a solution from powers of xx

To see how we find the coefficients of an unknown function written as an infinite polynomial y=c0+c1x+c2x2+c3x3+…\ysol{y} = c_0 + c_1 x + c_2 x^2 + c_3 x^3 + \dots, let's test the method on an equation we already know how to solve:

y′−y\displaystyle \yd{y'} - \ysol{y} =0\displaystyle = 0
Building a solution from powers of x
y′′−xy=0\htmlClass{lc-orange}{y''} - \htmlClass{lc-blue}{xy} = 0
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
y=?\htmlClass{lc-blue}{y = {?}}
Text solution
Shift y′\yd{y'} one column left and line up powers of xxTaking the derivative drops each exponent by 11, sliding every coefficient in y′\yd{y'} one column to the left of −y-\ysol{y}.
y′=c1+2c2x+3c3x2+4c4x3+…−y=−c0−c1x−c2x2−c3x3−…\displaystyle \begin{aligned} \yd{y'} &= c_1 + 2c_2 x + 3c_3 x^2 + 4c_4 x^3 + \dots \\ -\ysol{y} &= -c_0 - c_1 x - c_2 x^2 - c_3 x^3 - \dots \end{aligned}
Set each column to zeroFor the two rows to add to zero for every xx, each column must add to zero on its own, linking every coefficient back to c0\czero{c_0}.
c1−c0=0  ⟹  c1=c02c2−c1=0  ⟹  c2=c12=c023c3−c2=0  ⟹  c3=c23=c03⋅24c4−c3=0  ⟹  c4=c34=c04⋅3⋅2\displaystyle \begin{aligned} c_1 - \czero{c_0} = 0 &\implies c_1 = \czero{c_0} \\ 2c_2 - c_1 = 0 &\implies c_2 = \frac{c_1}{2} = \frac{\czero{c_0}}{2} \\ 3c_3 - c_2 = 0 &\implies c_3 = \frac{c_2}{3} = \frac{\czero{c_0}}{3 \cdot 2} \\ 4c_4 - c_3 = 0 &\implies c_4 = \frac{c_3}{4} = \frac{\czero{c_0}}{4 \cdot 3 \cdot 2} \end{aligned}
Factor out c0\czero{c_0}Substituting these coefficients back into the polynomial gives the Taylor series for c0ex\czero{c_0} e^x, where c0=y(0)\czero{c_0} = \ysol{y(0)} is the starting height at x=0x = 0.
y\displaystyle \ysol{y} =c0(1+x+x22!+x33!+x44!+… )\displaystyle = \czero{c_0}\left(1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \frac{x^4}{4!} + \dots\right) =c0ex\displaystyle = \czero{c_0} e^x

In this family of solutions to y′−y=0\yd{y'} - \ysol{y} = 0, picking the single starting height c0\czero{c_0} at x=0x = 0 automatically locks in the starting slope c1c_1, the second-degree coefficient c2c_2, and every higher coefficient because each column in the table must add to zero.

Interactive c1
2

Ordinary points and radius of convergence

Before we build a power series around a starting point x0x_0, we need to know whether a power series solution exists there and how far out from x0x_0 it converges.

Ordinary points and radius of convergence
P(x)y′′+Q(x)y′+R(x)y=0\htmlClass{lc-orange}{P(x)y''} + \htmlClass{lc-pink}{Q(x)y'} + \htmlClass{lc-blue}{R(x)y} = 0
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
0\htmlClass{lc-mute}{0}
c0=y(0)c_0 = \htmlClass{lc-blue}{y(0)}
c1=y′(0)c_1 = \htmlClass{lc-pink}{y'(0)}

When P(x)\ydd{P(x)}, Q(x)\yd{Q(x)}, and R(x)\ysol{R(x)} are polynomials with no common factors, solving for y′′\ydd{y''} puts P(x)\ydd{P(x)} in the denominator:

P(x)y′′+Q(x)y′+R(x)y=0  ⟹  y′′=−Q(x)P(x)⏟P(x0)≠0: ordinary pointP(x0)=0: singular pointy′−R(x)P(x)y\displaystyle \begin{aligned} \ydd{P(x)y''} + \yd{Q(x)y'} + \ysol{R(x)y} &= 0 \\ \implies \ydd{y''} &= -\frac{\yd{Q(x)}}{\underbrace{\ydd{P(x)}}_{\substack{\ydd{P(x_0)} \neq 0\text{: ordinary point} \\ \ydd{P(x_0)} = 0\text{: singular point}}}}\yd{y'} - \frac{\ysol{R(x)}}{\ydd{P(x)}}\ysol{y} \end{aligned}

Around an ordinary point x0x_0, the power series solution is guaranteed to converge at least out to the nearest singular point in the complex plane.

For (x2+4)y′′+y=0\ydd{(x^2 + 4)y''} + \ysol{y} = 0 centered at x0=0x_0 = 0, setting P(x)=x2+4=0\ydd{P(x)} = \ydd{x^2 + 4} = 0 gives singular points at x=±2ix = \singpt{\pm 2i}:

x0=0x_0 = 0
2i\htmlClass{lc-orange}{2i}
−2i\htmlClass{lc-orange}{-2i}
R=2R = 2
−2-2
22
∣x∣<2\htmlClass{lc-blue}{|x| < 2}
Re\htmlClass{lc-mute}{\mathrm{Re}}
Im\htmlClass{lc-mute}{\mathrm{Im}}

Because ±2i\singpt{\pm 2i} are a distance of 22 away from 00, the series is guaranteed to converge for at least ∣x∣<2\guaranteed{|x| < 2}.

Singular points off the real line in the complex plane still limit how far the power series is guaranteed to converge along the real axis, and moving the center x0x_0 onto a real singular point shrinks the guaranteed radius to zero.

The guaranteed interval on the real line stops wherever a disk around your starting point first hits a singular point in the complex plane.
3

Solving y′′+xy′+y=0\ydd{y''} + \yd{xy'} + \ysol{y} = 0 by lining up columns

Now let's find the two independent power series solutions centered at x=0x = 0 for a second-order equation where xx multiplies y′\yd{y'}:

y′′+xy′+y\displaystyle \ydd{y''} + \yd{xy'} + \ysol{y} =0\displaystyle = 0
Solving y″ + xy′ + y = 0 by lining up columns
y=c0+c1x+c2x2+c3x3+…\htmlClass{lc-blue}{y} = c_0 + c_1x + c_2x^2 + c_3x^3 + \dots
y′′+xy′+y=0\htmlClass{lc-orange}{y''} + \htmlClass{lc-pink}{xy'} + \htmlClass{lc-blue}{y} = 0
1\htmlClass{lc-mute}{1}
x\htmlClass{lc-mute}{x}
x2\htmlClass{lc-mute}{x^2}
x3\htmlClass{lc-mute}{x^3}
…\htmlClass{lc-mute}{\dots}
y′′\htmlClass{lc-orange}{y''}
xy′\htmlClass{lc-pink}{xy'}
y\htmlClass{lc-blue}{y}
Text solution
Line up the rows and write the general xkx^k columnIn y′′\ydd{y''}, taking two derivatives drops the power by 22 (so xkx^k comes from ck+2xk+2c_{k+2}x^{k+2}), while in xy′\yd{xy'}, taking one derivative shifts left by 11 and multiplying by xx shifts right by 11, leaving ckc_k in the xkx^k column.
y′′=2c2+6c3x+12c4x2+⋯+(k+2)(k+1)ck+2xk+…xy′=2c2+c1x+12c2x2+⋯+kckxk+…y=2c0+6c1x+12c2x2+⋯+ckxk+…\displaystyle \begin{aligned} \ydd{y''} &= 2c_2 + 6c_3 x + 12c_4 x^2 + \dots + \ydd{(k+2)(k+1)c_{k+2}x^k} + \dots \\ \yd{xy'} &= \phantom{2c_2 + {}} c_1 x + \phantom{1}2c_2 x^2 + \dots + \yd{kc_k x^k} + \dots \\ \ysol{y} &= \phantom{2}c_0 + \phantom{6}c_1 x + \phantom{12}c_2 x^2 + \dots + \ysol{c_k x^k} + \dots \end{aligned}
Set the xkx^k column to zero to get the recurrence relationAdding the coefficients in the xkx^k column and dividing out (k+1)(k + 1) links every coefficient to the one two steps before it.
(k+2)(k+1)ck+2+kck+ck=0(k+2)(k+1)ck+2+(k+1)ck=0ck+2=−ckk+2⏟recurrence relation(k≥0)\displaystyle \begin{aligned} \ydd{(k+2)(k+1)c_{k+2}} + \yd{kc_k} + \ysol{c_k} &= 0 \\ \ydd{(k+2)(k+1)c_{k+2}} + (k+1)c_k &= 0 \\ \underbrace{c_{k+2} = -\frac{c_k}{k+2}}_{\text{recurrence relation}} \quad (k &\ge 0) \end{aligned}
Find the even and odd coefficient chainsPlugging in k=0,1,2,3,…k = 0, 1, 2, 3, \dots splits the coefficients into an even chain starting from c0=y(0)\czero{c_0} = \ysol{y(0)} and an odd chain starting from c1=y′(0)\cone{c_1} = \yd{y'(0)}.
k=0:c2=−c02k=1:c3=−c13k=2:c4=−c24=c08k=3:c5=−c35=c115\displaystyle \begin{aligned} k = 0: \quad \czero{c_2} &= -\frac{\czero{c_0}}{2} & k = 1: \quad \cone{c_3} &= -\frac{\cone{c_1}}{3} \\ k = 2: \quad \czero{c_4} &= -\frac{\czero{c_2}}{4} = \frac{\czero{c_0}}{8} & k = 3: \quad \cone{c_5} &= -\frac{\cone{c_3}}{5} = \frac{\cone{c_1}}{15} \end{aligned}
Group the c0\czero{c_0} and c1\cone{c_1} termsFactoring out c0\czero{c_0} and c1\cone{c_1} gives the two linearly independent solutions y1(x)\czero{y_1(x)} and y2(x)\cone{y_2(x)}, which converge for all xx because P(x)=1\ydd{P(x)} = 1 never equals zero.
y(x)=c0(1−x22+x48−x648+… )⏟y1(x)+c1(x−x33+x515−x7105+… )⏟y2(x)\displaystyle \begin{aligned} \ysol{y(x)} = {} & \czero{c_0}\underbrace{\left(1 - \frac{x^2}{2} + \frac{x^4}{8} - \frac{x^6}{48} + \dots\right)}_{\czero{y_1(x)}} \\ & + \cone{c_1}\underbrace{\left(x - \frac{x^3}{3} + \frac{x^5}{15} - \frac{x^7}{105} + \dots\right)}_{\cone{y_2(x)}} \end{aligned}

If you need Σ\Sigma notation, you don't need index-shifting rules: your general xkx^k column is already the inside of the sum, ∑k=0∞[(k+2)(k+1)ck+2+kck+ck]xk=0\sum_{k=0}^{\infty} [\ydd{(k+2)(k+1)c_{k+2}} + \yd{kc_k} + \ysol{c_k}]x^k = 0. And if a problem gives initial conditions like y(0)=2\ysol{y(0)} = 2 and y′(0)=−3\yd{y'(0)} = -3, those are just c0=2\czero{c_0} = 2 and c1=−3\cone{c_1} = -3, so you can plug those numbers straight into ck+2=−ckk+2c_{k+2} = -\frac{c_k}{k+2} to get y(x)=2−3x−x2+x3+14x4−15x5−…\ysol{y(x)} = 2 - 3x - x^2 + x^3 + \frac{1}{4}x^4 - \frac{1}{5}x^5 - \dots without finding y1(x)\czero{y_1(x)} and y2(x)\cone{y_2(x)} separately.

Because the recurrence relation links each coefficient to the one two steps before it, changing the starting slope c1=y′(0)\cone{c_1} = \yd{y'(0)} updates the odd coefficient chain c1→c3→c5→c7\cone{c_1} \to \cone{c_3} \to \cone{c_5} \to \cone{c_7} while the even coefficient chain set by the starting height c0=y(0)\czero{c_0} = \ysol{y(0)} stays unchanged.

Because the coefficients jump in steps of two, the starting slope sets all the odd ones while the starting height locks in the even ones.
4

Solving y′′−xy=0\ydd{y''} - \ysol{xy} = 0 when a row shifts right

In y′′+xy′+y=0\ydd{y''} + \yd{xy'} + \ysol{y} = 0, every row had a term by the x0x^0 or x1x^1 column that lined up nicely. Now let's solve y′′−xy=0\ydd{y''} - \ysol{xy} = 0, where multiplying by xx shifts the second row to the right so it doesn't begin until the x1x^1 column:

y′′−xy\displaystyle \ydd{y''} - \ysol{xy} =0\displaystyle = 0
Solving y″ − xy = 0 when a row shifts right
y′′−xy=0\htmlClass{lc-orange}{y''} - \htmlClass{lc-blue}{xy} = 0
1\htmlClass{lc-mute}{1}
x\htmlClass{lc-mute}{x}
x2\htmlClass{lc-mute}{x^2}
x3\htmlClass{lc-mute}{x^3}
…\htmlClass{lc-mute}{\dots}
y′′\htmlClass{lc-orange}{y''}
−xy\htmlClass{lc-blue}{-xy}
Text solution
Align the rows and solve the x0x^0 column on its ownMultiplying −y-\ysol{y} by xx raises every power by 11, leaving 2c22c_2 by itself in the x0x^0 column.
y′′=2c2+6c3x+12c4x2+⋯+(k+2)(k+1)ck+2xk+…−xy=2c2−6c0x−12c1x2−⋯−ck−1xk−…\displaystyle \begin{aligned} \ydd{y''} &= 2c_2 + 6c_3 x + 12c_4 x^2 + \dots + \ydd{(k+2)(k+1)c_{k+2}x^k} + \dots \\ -\ysol{xy} &= \phantom{2c_2} - \phantom{6}c_0 x - \phantom{12}c_1 x^2 - \dots - \ysol{c_{k-1}x^k} - \dots \end{aligned}
x0 column:2c2\displaystyle x^0\text{ column:} \quad 2c_2 =0  ⟹  c2\displaystyle = 0 \implies c_2 =0\displaystyle = 0
Set the general xkx^k column (k≥1k \ge 1) to zeroTo land on xkx^k after multiplying by xx, the term in −y-\ysol{y} must start one power lower at ck−1xk−1c_{k-1}x^{k-1}.
(k+2)(k+1)ck+2−ck−1=0ck+2=ck−1(k+2)(k+1)(k≥1)\displaystyle \begin{aligned} \ydd{(k+2)(k+1)c_{k+2}} - \ysol{c_{k-1}} &= 0 \\ c_{k+2} &= \frac{c_{k-1}}{(k+2)(k+1)} \quad (k \ge 1) \end{aligned}
Step by threes from c0\czero{c_0}, c1\cone{c_1}, and c2c_2Each coefficient comes from the coefficient three steps before it, so c2=0c_2 = 0 makes the entire third chain zero.
k=1:c3=c03⋅2=c06k=4:c6=c36⋅5=c0180k=2:c4=c14⋅3=c112k=5:c7=c47⋅6=c1504k=3:c5=c25⋅4=0k=6:c8=c58⋅7=0\displaystyle \begin{aligned} k = 1: \quad \czero{c_3} &= \frac{\czero{c_0}}{3 \cdot 2} = \frac{\czero{c_0}}{6} & k = 4: \quad \czero{c_6} &= \frac{\czero{c_3}}{6 \cdot 5} = \frac{\czero{c_0}}{180} \\ k = 2: \quad \cone{c_4} &= \frac{\cone{c_1}}{4 \cdot 3} = \frac{\cone{c_1}}{12} & k = 5: \quad \cone{c_7} &= \frac{\cone{c_4}}{7 \cdot 6} = \frac{\cone{c_1}}{504} \\ k = 3: \quad c_5 &= \frac{c_2}{5 \cdot 4} = 0 & k = 6: \quad c_8 &= \frac{c_5}{8 \cdot 7} = 0 \end{aligned}
Group the c0\czero{c_0} and c1\cone{c_1} chainsCollecting the two nonzero chains gives the general solution for all xx.
y(x)=c0(1+x36+x6180+… )+c1(x+x412+x7504+… )\displaystyle \begin{aligned} \ysol{y(x)} = {} & \czero{c_0}\left(1 + \frac{x^3}{6} + \frac{x^6}{180} + \dots\right) \\ & + \cone{c_1}\left(x + \frac{x^4}{12} + \frac{x^7}{504} + \dots\right) \end{aligned}
5

Polynomial coefficients and terminating series

Now let's see what happens when a multi-term polynomial multiplies a derivative, centered at x0=0x_0 = 0:

(1+x2)y′′−2y\displaystyle \ydd{(1 + x^2)y''} - \ysol{2y} =0\displaystyle = 0
Polynomial coefficients and terminating series
(1+x2)y′′−2y=0\htmlClass{lc-orange}{(1 + x^2)y''} - \htmlClass{lc-blue}{2y} = 0
Re\htmlClass{lc-mute}{\mathrm{Re}}
Im\htmlClass{lc-mute}{\mathrm{Im}}
x0=0x_0 = 0
Text solution
Distribute the polynomial so each term gets its own rowExpanding (1+x2)y′′\ydd{(1 + x^2)y''} splits it into y′′\ydd{y''} (which shifts 22 columns left) and x2y′′\ydd{x^2 y''} (which shifts 22 left and 22 right, landing back in the xkx^k column).
y′′+x2y′′−2y=0y′′=2c2+6c3x+12c4x2+⋯+(k+2)(k+1)ck+2xk+…x2y′′=2c2+6c3x+2c2x2+⋯+k(k−1)ckxk+…−2y=−2c0−2c1x−2c2x2−⋯−2ckxk−…\displaystyle \begin{aligned} \ydd{y''} + \ydd{x^2 y''} - \ysol{2y} &= 0 \\ \ydd{y''} &= 2c_2 + 6c_3 x + 12c_4 x^2 + \dots + \ydd{(k+2)(k+1)c_{k+2}x^k} + \dots \\ \ydd{x^2 y''} &= \phantom{2c_2 + 6c_3 x + {}} 2c_2 x^2 + \dots + \ydd{k(k-1)c_k x^k} + \dots \\ -\ysol{2y} &= -2c_0 - 2c_1 x - 2c_2 x^2 - \dots - \ysol{2c_k x^k} - \dots \end{aligned}
Factor the xkx^k column to solve for ck+2c_{k+2}Combining the ckc_k terms and factoring k(k−1)−2=(k−2)(k+1)\ydd{k(k-1)} - \ysol{2} = (k-2)(k+1) lets us divide out (k+1)(k+1).
(k+2)(k+1)ck+2+[k(k−1)−2]ck=0(k+2)(k+1)ck+2+(k−2)(k+1)ck=0ck+2=−k−2k+2ck(k≥0)\displaystyle \begin{aligned} \ydd{(k+2)(k+1)c_{k+2}} + \big[\ydd{k(k-1)} - \ysol{2}\big]c_k &= 0 \\ \ydd{(k+2)(k+1)c_{k+2}} + (k-2)(k+1)c_k &= 0 \\ c_{k+2} &= -\frac{k-2}{k+2}c_k \quad (k \ge 0) \end{aligned}
Find the even and odd chainsAt k=2k = 2, the factor (k−2)(k - 2) in the numerator equals zero, which makes c4=0\czero{c_4} = 0 and makes every higher coefficient in the even chain zero as well.
Even chain (c0):c2=c0,c4=−2−22+2c2=0  ⟹  c6=c8=⋯=0Odd chain (c1):c3=c13,c5=−15c3=−c115,c7=−37c5=c135\displaystyle \begin{aligned} \text{Even chain } (\czero{c_0}): \quad \czero{c_2} &= \czero{c_0}, \\ \czero{c_4} &= -\frac{2-2}{2+2}\czero{c_2} = 0 \implies c_6 = c_8 = \dots = 0 \\ \text{Odd chain } (\cone{c_1}): \quad \cone{c_3} &= \frac{\cone{c_1}}{3}, \\ \cone{c_5} &= -\frac{1}{5}\cone{c_3} = -\frac{\cone{c_1}}{15}, \\ \cone{c_7} &= -\frac{3}{7}\cone{c_5} = \frac{\cone{c_1}}{35} \end{aligned}
Write the two solutionsThe even chain terminates into the exact polynomial y1(x)=1+x2\czero{y_1(x)} = 1 + x^2, which converges for all xx (R=∞R = \infty), while the infinite odd series y2(x)\cone{y_2(x)} converges for ∣x∣<1|x| < 1, limited by the singular points at x=±ix = \singpt{\pm i}.
y(x)=c0(1+x2)+c1(x+x33−x515+x735−… )\displaystyle \begin{aligned} \ysol{y(x)} = {} & \czero{c_0}(1 + x^2) \\ & + \cone{c_1}\left(x + \frac{x^3}{3} - \frac{x^5}{15} + \frac{x^7}{35} - \dots\right) \end{aligned}
6

Series centered at a nonzero point

When x=0x = \singpt{0} is a singular point, or when initial conditions are given at another point like x0=1x_0 = 1, we build the series in powers of (x−1)(x - 1) instead. Let's solve this equation centered at the ordinary point x0=1x_0 = 1:

xy′′+y\displaystyle \ydd{xy''} + \ysol{y} =0\displaystyle = 0
Series centered at a nonzero point
xy′′+y=0\htmlClass{lc-orange}{xy''} + \htmlClass{lc-blue}{y} = 0
y(1)=4,y′(1)=−1\htmlClass{lc-blue}{y(1)} = 4, \quad \htmlClass{lc-pink}{y'(1)} = -1
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
1\htmlClass{lc-mute}{1}
2\htmlClass{lc-mute}{2}
3\htmlClass{lc-mute}{3}
4\htmlClass{lc-mute}{4}
0\htmlClass{lc-mute}{0}
1\htmlClass{lc-mute}{1}
2\htmlClass{lc-mute}{2}
x0=1x_0 = 1
Text solution
Substitute t=x−1t = x - 1 and distributeReplacing xx with 1+t1 + t shifts the center to t=0t = 0 so the equation and the series y=c0+c1t+c2t2+…\ysol{y} = c_0 + c_1 t + c_2 t^2 + \dots are both written in powers of tt.
(1+t)y′′+y=0y′′+ty′′+y=0\displaystyle \begin{aligned} \ydd{(1 + t)y''} + \ysol{y} &= 0 \\ \ydd{y''} + \ydd{ty''} + \ysol{y} &= 0 \end{aligned}
Line up the tkt^k columnIn ty′′\ydd{ty''}, taking two derivatives shifts 22 columns left and multiplying by tt shifts 11 column right, for a net shift of 11 column left.
y′′=2c2+6c3t+12c4t2+⋯+(k+2)(k+1)ck+2tk+…ty′′=2c2+2c2t+16c3t2+⋯+(k+1)kck+1tk+…y=2c0+6c1t+12c2t2+⋯+cktk+…\displaystyle \begin{aligned} \ydd{y''} &= 2c_2 + 6c_3 t + 12c_4 t^2 + \dots + \ydd{(k+2)(k+1)c_{k+2}t^k} + \dots \\ \ydd{ty''} &= \phantom{2c_2 + {}} 2c_2 t + \phantom{1}6c_3 t^2 + \dots + \ydd{(k+1)kc_{k+1}t^k} + \dots \\ \ysol{y} &= \phantom{2}c_0 + \phantom{6}c_1 t + \phantom{12}c_2 t^2 + \dots + \ysol{c_k t^k} + \dots \end{aligned}
Solve the recurrence relation for the first few coefficientsSetting the tkt^k column to zero expresses ck+2c_{k+2} in terms of both ck+1c_{k+1} and ckc_k.
ck+2=−(k+1)kck+1+ck(k+2)(k+1)(k≥0)k=0:c2=−c02k=1:c3=−2c2+c16=−2(−c02)+c16=c06−c16\displaystyle \begin{aligned} c_{k+2} &= -\frac{(k+1)kc_{k+1} + c_k}{(k+2)(k+1)} \quad (k \ge 0) \\ k = 0: \quad c_2 &= -\frac{\czero{c_0}}{2} \\ k = 1: \quad c_3 &= -\frac{2c_2 + \cone{c_1}}{6} = -\frac{2(-\tfrac{\czero{c_0}}{2}) + \cone{c_1}}{6} = \frac{\czero{c_0}}{6} - \frac{\cone{c_1}}{6} \end{aligned}
Replace tt with (x−1)(x - 1) and group c0\czero{c_0} and c1\cone{c_1}Because the singular point at x=0x = \singpt{0} is a distance of 11 from x0=1x_0 = 1, the series is guaranteed to converge on ∣x−1∣<1\guaranteed{|x - 1| < 1}, or 0<x<2\guaranteed{0 < x < 2}.
y(x)=c0[1−(x−1)22+(x−1)36−… ]+c1[(x−1)−(x−1)36+… ]\displaystyle \begin{aligned} \ysol{y(x)} = {} & \czero{c_0}\left[1 - \frac{(x-1)^2}{2} + \frac{(x-1)^3}{6} - \dots\right] \\ & + \cone{c_1}\left[(x-1) - \frac{(x-1)^3}{6} + \dots\right] \end{aligned}
7

The power series method step by step

Now let's put the whole routine together from checking the starting point to writing out the final series.

The power series method step by step
P(x)y′′+Q(x)y′+R(x)y=0\displaystyle \small{\htmlClass{lc-orange}{P(x)y''} + \htmlClass{lc-pink}{Q(x)y'} + \htmlClass{lc-blue}{R(x)y} = 0}
y=c0+c1(x−x0)+…\displaystyle \small{\htmlClass{lc-blue}{y} = c_0 + c_1(x - x_0) + \dots}
c0, c1, c2, …=  ?\displaystyle \small{c_0,\ c_1,\ c_2,\ \ldots = \;?}

Key concepts

Before building a power series, check whether you need one at all: if the coefficients of the differential equation are constants (like y′′−3y′+2y=0\ydd{y''} - \yd{3y'} + \ysol{2y} = 0), guess y=erx\ysol{y} = \ysol{e^{rx}} directly. If the equation has variable coefficients P(x)y′′+Q(x)y′+R(x)y=0\ydd{P(x)y''} + \yd{Q(x)y'} + \ysol{R(x)y} = 0, check the starting point x0x_0 in P(x)\ydd{P(x)}:

Ordinary point and radius check

If P(x0)=0\ydd{P(x_0)} = 0 (like xy′′+y=0\ydd{xy''} + \ysol{y} = 0 at x0=0x_0 = 0), x0x_0 is a singular point and a power series c0+c1(x−x0)+…c_0 + c_1(x - x_0) + \dots isn't guaranteed to work there. If P(x0)≠0\ydd{P(x_0)} \neq 0, x0x_0 is an ordinary point, and the distance from x0x_0 to the nearest root of P(x)=0\ydd{P(x)} = 0 in the complex plane is your guaranteed minimum radius of convergence RR (for (x2+4)y′′+y=0\ydd{(x^2 + 4)y''} + \ysol{y} = 0 at x0=0x_0 = 0, the roots ±2i\singpt{\pm 2i} give R=2R = 2). If x0≠0x_0 \neq 0, substitute t=x−x0t = x - x_0 first.

One row per term and the xkx^k column

Distribute any parentheses (turning (1+x2)y′′\ydd{(1 + x^2)y''} into y′′+x2y′′\ydd{y''} + \ydd{x^2 y''}) so each term is a single power of xx times a derivative. Taking a derivative shifts a row 11 column left and multiplying by xx shifts it 11 column right, so each term lands in the xkx^k column according to its net shift:

Net shift 2 left (y′′):(k+2)(k+1)ck+2xkNet shift 1 left (y′ or xy′′):(k+1)ck+1xkor(k+1)kck+1xkNet shift 0 (y,  xy′, or x2y′′):ckxk,kckxk,ork(k−1)ckxkNet shift 1 right (xy):ck−1xk(k≥1, solve x0 column separately)\displaystyle \begin{aligned} \text{Net shift } 2\text{ left } (\ydd{y''}): &\quad \ydd{(k+2)(k+1)c_{k+2}x^k} \\ \text{Net shift } 1\text{ left } (\yd{y'}\text{ or }\ydd{xy''}): &\quad \yd{(k+1)c_{k+1}x^k} \quad \text{or} \quad \ydd{(k+1)kc_{k+1}x^k} \\ \text{Net shift } 0\text{ } (\ysol{y},\; \yd{xy'},\text{ or }\ydd{x^2y''}): &\quad \ysol{c_k x^k},\quad \yd{kc_k x^k}, \quad \text{or} \quad \ydd{k(k-1)c_k x^k} \\ \text{Net shift } 1\text{ right } (\ysol{xy}): &\quad \ysol{c_{k-1}x^k} \quad (k \ge 1,\text{ solve } x^0\text{ column separately}) \end{aligned}
From recurrence to solution

Set the xkx^k column to zero and solve for the highest coefficient ck+2c_{k+2}. Group the c0\czero{c_0} terms into y1(x)\czero{y_1(x)} and the c1\cone{c_1} terms into y2(x)\cone{y_2(x)}, or if you are given initial conditions y(x0)\ysol{y(x_0)} and y′(x0)\yd{y'(x_0)}, plug them directly in for c0\czero{c_0} and c1\cone{c_1} at the very first step.

8

Practice

1

Verify that x0=0x_0 = 0 is an ordinary point of (x2+9)(x−4)y′′+xy′−y=0\ydd{(x^2 + 9)(x - 4)y''} + \yd{xy'} - \ysol{y} = 0, and find the guaranteed minimum radius of convergence for a power series solution centered at x0=0x_0 = 0.

Check whether P(0)=0\ydd{P(0)} = 0, then find the distance from 00 to every root of P(x)=0\ydd{P(x)} = 0, including complex roots.

Here P(x)=(x2+9)(x−4)\ydd{P(x)} = \ydd{(x^2 + 9)(x - 4)}, so P(0)=(9)(−4)=−36≠0\ydd{P(0)} = (9)(-4) = -36 \neq 0 and x0=0x_0 = 0 is an ordinary point. Setting P(x)=0\ydd{P(x)} = 0 gives singular points at x=4x = \singpt{4} (distance 44 from 00) and x=±3ix = \singpt{\pm 3i} (distance 33 from 00 in the complex plane). Be careful not to look only at the real root x=4x = \singpt{4}, which gives the wrong radius R=4R = 4, or forget to take the square root in x2+9=0\ydd{x^2 + 9} = 0, which gives R=9R = 9. The nearest singular points are ±3i\singpt{\pm 3i} at distance 33, so the guaranteed minimum radius of convergence is R=3R = 3 (∣x∣<3|x| < 3).
2

Find the recurrence relation and the first four nonzero terms of each of the two linearly independent power series solutions y1(x)y_1(x) and y2(x)y_2(x) centered at x=0x = 0 for y′′−xy′−y=0\ydd{y''} - \yd{xy'} - \ysol{y} = 0.

Write the xkx^k column for y′′\ydd{y''}, −xy′-\yd{xy'}, and −y-\ysol{y}, and factor the ckc_k terms before solving for ck+2c_{k+2}.

Aligning the xkx^k column gives:
(k+2)(k+1)ck+2−kck−ck=0  ⟹  (k+2)(k+1)ck+2−(k+1)ck=0\displaystyle \begin{aligned} \ydd{(k+2)(k+1)c_{k+2}} - \yd{kc_k} - \ysol{c_k} &= 0 \\ \implies \ydd{(k+2)(k+1)c_{k+2}} - (k+1)c_k &= 0 \end{aligned}
Watch the sign when moving −(k+1)ck-(k+1)c_k across the equals sign: keeping a minus sign gives ck+2=−ckk+2c_{k+2} = -\frac{c_k}{k+2} and produces alternating signs 1−x22+x48−…1 - \frac{x^2}{2} + \frac{x^4}{8} - \dots instead of positive terms. Dividing by (k+1)(k+1) gives the recurrence relation:
ck+2\displaystyle c_{k+2} =ckk+2(k≥0)\displaystyle = \frac{c_k}{k+2} \quad (k \ge 0)
The even chain from c0\czero{c_0} gives c2=c02\czero{c_2} = \frac{\czero{c_0}}{2}, c4=c24=c08\czero{c_4} = \frac{\czero{c_2}}{4} = \frac{\czero{c_0}}{8}, and c6=c46=c048\czero{c_6} = \frac{\czero{c_4}}{6} = \frac{\czero{c_0}}{48}, and the odd chain from c1\cone{c_1} gives c3=c13\cone{c_3} = \frac{\cone{c_1}}{3}, c5=c35=c115\cone{c_5} = \frac{\cone{c_3}}{5} = \frac{\cone{c_1}}{15}, and c7=c57=c1105\cone{c_7} = \frac{\cone{c_5}}{7} = \frac{\cone{c_1}}{105}:
y1(x)=1+x22+x48+x648+…,y2(x)=x+x33+x515+x7105+…\displaystyle \begin{aligned} \czero{y_1(x)} &= 1 + \frac{x^2}{2} + \frac{x^4}{8} + \frac{x^6}{48} + \dots, \\ \cone{y_2(x)} &= x + \frac{x^3}{3} + \frac{x^5}{15} + \frac{x^7}{105} + \dots \end{aligned}
3

Find the power series solution centered at x=0x = 0 up to the x6x^6 term for the initial value problem y′′+xy=0\ydd{y''} + \ysol{xy} = 0, y(0)=2\ysol{y(0)} = 2, y′(0)=−3\yd{y'(0)} = -3.

Start with c0=y(0)\czero{c_0} = \ysol{y(0)} and c1=y′(0)\cone{c_1} = \yd{y'(0)}, and check what lands in the x0x^0 column before writing the recurrence for k≥1k \ge 1.

The initial conditions give c0=2\czero{c_0} = 2 and c1=−3\cone{c_1} = -3. Because xy\ysol{xy} starts in the x1x^1 column, the x0x^0 column has only 2c2=0  ⟹  c2=02c_2 = 0 \implies c_2 = 0. For k≥1k \ge 1, the xkx^k column gives (k+2)(k+1)ck+2+ck−1=0\ydd{(k+2)(k+1)c_{k+2}} + \ysol{c_{k-1}} = 0, so:
ck+2\displaystyle c_{k+2} =−ck−1(k+2)(k+1)(k≥1)\displaystyle = -\frac{c_{k-1}}{(k+2)(k+1)} \quad (k \ge 1)
When finding c3c_3, plug in k=1k = 1 (so k+2=3k + 2 = 3), not k=3k = 3: plugging k=3k = 3 into the denominator divides by 5⋅4=205 \cdot 4 = 20 instead of 3⋅2=63 \cdot 2 = 6 and gives −110x3-\frac{1}{10}x^3. Using k=1,2,3,4k = 1, 2, 3, 4 gives c3=−c03⋅2=−13c_3 = -\frac{\czero{c_0}}{3 \cdot 2} = -\frac{1}{3}, c4=−c14⋅3=14c_4 = -\frac{\cone{c_1}}{4 \cdot 3} = \frac{1}{4}, c5=−c25⋅4=0c_5 = -\frac{c_2}{5 \cdot 4} = 0, and c6=−c36⋅5=190c_6 = -\frac{c_3}{6 \cdot 5} = \frac{1}{90}:
y(x)\displaystyle \ysol{y(x)} =2−3x−x33+x44+x690−…\displaystyle = 2 - 3x - \frac{x^3}{3} + \frac{x^4}{4} + \frac{x^6}{90} - \dots
4

For (1−x2)y′′−2xy′+2y=0\ydd{(1 - x^2)y''} - \yd{2xy'} + \ysol{2y} = 0 centered at x=0x = 0, find the recurrence relation, the exact polynomial solution, the first four nonzero terms of the second linearly independent solution, and the radius of convergence of each solution.

Distribute (1−x2)y′′\ydd{(1 - x^2)y''} into two rows first, then factor the quadratic in kk that multiplies ckc_k.

Distributing y′′−x2y′′−2xy′+2y=0\ydd{y''} - \ydd{x^2 y''} - \yd{2xy'} + \ysol{2y} = 0 gives the xkx^k column equation:
(k+2)(k+1)ck+2−[k(k−1)+2k−2]ck=0  ⟹  (k+2)(k+1)ck+2−(k−1)(k+2)ck=0\displaystyle \begin{aligned} \ydd{(k+2)(k+1)c_{k+2}} - \big[\ydd{k(k-1)} + \yd{2k} - \ysol{2}\big]c_k &= 0 \\ \implies \ydd{(k+2)(k+1)c_{k+2}} - (k-1)(k+2)c_k &= 0 \end{aligned}
Be careful with the minus sign in front of the bracket when solving for ck+2c_{k+2}: leaving the formula negative gives ck+2=−k−1k+1ckc_{k+2} = -\frac{k-1}{k+1}c_k, which produces the wrong signs 1+x2−x43+x65−…1 + x^2 - \frac{x^4}{3} + \frac{x^6}{5} - \dots for the even series. Dividing out (k+2)(k+2) gives the recurrence relation:
ck+2\displaystyle c_{k+2} =k−1k+1ck(k≥0)\displaystyle = \frac{k-1}{k+1}c_k \quad (k \ge 0)
For k=1k = 1, c3=1−11+1c1=0\cone{c_3} = \frac{1-1}{1+1}\cone{c_1} = 0, so the odd chain terminates to the exact polynomial y2(x)=x\cone{y_2(x)} = x. The even chain gives c2=−c0\czero{c_2} = -\czero{c_0}, c4=13c2=−c03\czero{c_4} = \frac{1}{3}\czero{c_2} = -\frac{\czero{c_0}}{3}, and c6=35c4=−c05\czero{c_6} = \frac{3}{5}\czero{c_4} = -\frac{\czero{c_0}}{5}, so y1(x)=1−x2−x43−x65−…\czero{y_1(x)} = 1 - x^2 - \frac{x^4}{3} - \frac{x^6}{5} - \dots. Don't assign the minimum radius R=1R = 1 to both solutions: y1(x)\czero{y_1(x)} has radius of convergence R=1R = 1 (limited by the singular points at x=±1x = \singpt{\pm 1}), while the exact polynomial y2(x)=x\cone{y_2(x)} = x converges for all xx, so its radius of convergence is R=∞R = \infty.
5

Find the general power series solution in powers of (x−1)(x - 1) up to the (x−1)4(x - 1)^4 term for xy′′−y=0\ydd{xy''} - \ysol{y} = 0 centered at x0=1x_0 = 1, and state the guaranteed minimum interval of convergence on the real line.

Substitute x=1+tx = 1 + t so the equation is written in powers of t=x−1t = x - 1 before lining up the columns.

The singular point at x=0x = \singpt{0} is a distance of 11 from x0=1x_0 = 1, so the series is guaranteed to converge on ∣x−1∣<1|x - 1| < 1, or 0<x<20 < x < 2. Substituting t=x−1t = x - 1 (so x=1+tx = 1 + t) gives (1+t)y′′−y=0\ydd{(1 + t)y''} - \ysol{y} = 0, or y′′+ty′′−y=0\ydd{y''} + \ydd{ty''} - \ysol{y} = 0. Setting the tkt^k column to zero gives (k+2)(k+1)ck+2+k(k+1)ck+1−ck=0\ydd{(k+2)(k+1)c_{k+2}} + \ydd{k(k+1)c_{k+1}} - \ysol{c_k} = 0, so:
ck+2\displaystyle c_{k+2} =ck−k(k+1)ck+1(k+2)(k+1)(k≥0)\displaystyle = \frac{c_k - k(k+1)c_{k+1}}{(k+2)(k+1)} \quad (k \ge 0)
For k=0k = 0, c2=c02c_2 = \frac{\czero{c_0}}{2}. For k=1k = 1, c3=c1−2c26c_3 = \frac{\cone{c_1} - 2c_2}{6}; watch the minus sign on −2c2-2c_2 when substituting c2=c02c_2 = \frac{\czero{c_0}}{2} (adding instead of subtracting gives +c06+\frac{c_0}{6} instead of −c06-\frac{c_0}{6}), which gives c3=−c06+c16c_3 = -\frac{\czero{c_0}}{6} + \frac{\cone{c_1}}{6}. For k=2k = 2, c4=c2−6c312=c02−6(−c06+c16)12=c08−c112c_4 = \frac{c_2 - 6c_3}{12} = \frac{\tfrac{\czero{c_0}}{2} - 6(-\tfrac{\czero{c_0}}{6} + \tfrac{\cone{c_1}}{6})}{12} = \frac{\czero{c_0}}{8} - \frac{\cone{c_1}}{12}. Replacing tt with (x−1)(x - 1) and grouping c0\czero{c_0} and c1\cone{c_1} gives:
y(x)=c0[1+(x−1)22−(x−1)36+(x−1)48+… ]+c1[(x−1)+(x−1)36−(x−1)412+… ]\displaystyle \begin{aligned} \ysol{y(x)} = {} & \czero{c_0}\left[1 + \frac{(x-1)^2}{2} - \frac{(x-1)^3}{6} + \frac{(x-1)^4}{8} + \dots\right] \\ & + \cone{c_1}\left[(x-1) + \frac{(x-1)^3}{6} - \frac{(x-1)^4}{12} + \dots\right] \end{aligned}