When a differential equation has an x multiplying y or its derivatives, like y′′−xy=0, standard functions like erx,sinx, and cosx no longer cancel out, so we build the solution from powers of x.
1
Building a solution from powers of x
To see how we find the coefficients of an unknown function written as an infinite polynomial y=c0+c1x+c2x2+c3x3+…, let's test the method on an equation we already know how to solve:
y′−y=0
Building a solution from powers of x
Text solution
Shift y′ one column left and line up powers of xTaking the derivative drops each exponent by 1, sliding every coefficient in y′ one column to the left of −y.
Factor out c0Substituting these coefficients back into the polynomial gives the Taylor series for c0ex, where c0=y(0) is the starting height at x=0.
y=c0(1+x+2!x2+3!x3+4!x4+…)=c0ex
In this family of solutions to y′−y=0, picking the single starting height c0 at x=0 automatically locks in the starting slope c1, the second-degree coefficient c2, 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 x0, we need to know whether a power series solution exists there and how far out from x0 it converges.
Ordinary points and radius of convergence
When P(x),Q(x), and R(x) are polynomials with no common factors, solving for y′′ puts P(x) in the denominator:
Around an ordinary point x0, 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 centered at x0=0, setting P(x)=x2+4=0 gives singular points at x=±2i:
Because ±2i are a distance of 2 away from 0, the series is guaranteed to converge for at least ∣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 x0 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 by lining up columns
Now let's find the two independent power series solutions centered at x=0 for a second-order equation where x multiplies y′:
y′′+xy′+y=0
Solving y″ + xy′ + y = 0 by lining up columns
Text solution
Line up the rows and write the general xk columnIn y′′, taking two derivatives drops the power by 2 (so xk comes from ck+2xk+2), while in xy′, taking one derivative shifts left by 1 and multiplying by x shifts right by 1, leaving ck in the xk column.
Set the xk column to zero to get the recurrence relationAdding the coefficients in the xk column and dividing out (k+1) links every coefficient to the one two steps before it.
Find the even and odd coefficient chainsPlugging in k=0,1,2,3,… splits the coefficients into an even chain starting from c0=y(0) and an odd chain starting from c1=y′(0).
Group the c0 and c1 termsFactoring out c0 and c1 gives the two linearly independent solutions y1(x) and y2(x), which converge for all x because P(x)=1 never equals zero.
If you need Σ notation, you don't need index-shifting rules: your general xk column is already the inside of the sum, ∑k=0∞[(k+2)(k+1)ck+2+kck+ck]xk=0. And if a problem gives initial conditions like y(0)=2 and y′(0)=−3, those are just c0=2 and c1=−3, so you can plug those numbers straight into ck+2=−k+2ck to get y(x)=2−3x−x2+x3+41x4−51x5−… without finding y1(x) and y2(x) separately.
Because the recurrence relation links each coefficient to the one two steps before it, changing the starting slope c1=y′(0) updates the odd coefficient chain c1→c3→c5→c7 while the even coefficient chain set by the starting height c0=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 when a row shifts right
In y′′+xy′+y=0, every row had a term by the x0 or x1 column that lined up nicely. Now let's solve y′′−xy=0, where multiplying by x shifts the second row to the right so it doesn't begin until the x1 column:
y′′−xy=0
Solving y″ − xy = 0 when a row shifts right
Text solution
Align the rows and solve the x0 column on its ownMultiplying −y by x raises every power by 1, leaving 2c2 by itself in the x0 column.
Group the c0 and c1 chainsCollecting the two nonzero chains gives the general solution for all x.
y(x)=c0(1+6x3+180x6+…)+c1(x+12x4+504x7+…)
5
Polynomial coefficients and terminating series
Now let's see what happens when a multi-term polynomial multiplies a derivative, centered at x0=0:
(1+x2)y′′−2y=0
Polynomial coefficients and terminating series
Text solution
Distribute the polynomial so each term gets its own rowExpanding (1+x2)y′′ splits it into y′′ (which shifts 2 columns left) and x2y′′ (which shifts 2 left and 2 right, landing back in the xk column).
Find the even and odd chainsAt k=2, the factor (k−2) in the numerator equals zero, which makes c4=0 and makes every higher coefficient in the even chain zero as well.
Even chain (c0):c2c4Odd chain (c1):c3c5c7=c0,=−2+22−2c2=0⟹c6=c8=⋯=0=3c1,=−51c3=−15c1,=−73c5=35c1
Write the two solutionsThe even chain terminates into the exact polynomial y1(x)=1+x2, which converges for all x (R=∞), while the infinite odd series y2(x) converges for ∣x∣<1, limited by the singular points at x=±i.
y(x)=c0(1+x2)+c1(x+3x3−15x5+35x7−…)
6
Series centered at a nonzero point
When x=0 is a singular point, or when initial conditions are given at another point like x0=1, we build the series in powers of (x−1) instead. Let's solve this equation centered at the ordinary point x0=1:
xy′′+y=0
Series centered at a nonzero point
Text solution
Substitute t=x−1 and distributeReplacing x with 1+t shifts the center to t=0 so the equation and the series y=c0+c1t+c2t2+… are both written in powers of t.
(1+t)y′′+yy′′+ty′′+y=0=0
Line up the tk columnIn ty′′, taking two derivatives shifts 2 columns left and multiplying by t shifts 1 column right, for a net shift of 1 column left.
Replace t with (x−1) and group c0 and c1Because the singular point at x=0 is a distance of 1 from x0=1, the series is guaranteed to converge on ∣x−1∣<1, or 0<x<2.
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
y=c0+c1(x−x0)+…
c0,c1,c2,…=?
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), guess y=erx directly. If the equation has variable coefficients P(x)y′′+Q(x)y′+R(x)y=0, check the starting point x0 in P(x):
Ordinary point and radius check
If P(x0)=0 (like xy′′+y=0 at x0=0), x0 is a singular point and a power series c0+c1(x−x0)+… isn't guaranteed to work there. If P(x0)=0,x0 is an ordinary point, and the distance from x0 to the nearest root of P(x)=0 in the complex plane is your guaranteed minimum radius of convergence R (for (x2+4)y′′+y=0 at x0=0, the roots ±2i give R=2). If x0=0, substitute t=x−x0 first.
One row per term and the xk column
Distribute any parentheses (turning (1+x2)y′′ into y′′+x2y′′) so each term is a single power of x times a derivative. Taking a derivative shifts a row 1 column left and multiplying by x shifts it 1 column right, so each term lands in the xk column according to its net shift:
Net shift 2 left (y′′):Net shift 1 left (y′ or xy′′):Net shift 0(y,xy′, or x2y′′):Net shift 1 right (xy):(k+2)(k+1)ck+2xk(k+1)ck+1xkor(k+1)kck+1xkckxk,kckxk,ork(k−1)ckxkck−1xk(k≥1, solve x0 column separately)
From recurrence to solution
Set the xk column to zero and solve for the highest coefficient ck+2. Group the c0 terms into y1(x) and the c1 terms into y2(x), or if you are given initial conditions y(x0) and y′(x0), plug them directly in for c0 and c1 at the very first step.
8
Practice
1
Verify that x0=0 is an ordinary point of (x2+9)(x−4)y′′+xy′−y=0, and find the guaranteed minimum radius of convergence for a power series solution centered at x0=0.
Be careful not to look only at the real root x=4, which gives the wrong radius R=4, or forget to take the square root in x2+9=0, which gives R=9.
Check whether P(0)=0, then find the distance from 0 to every root of P(x)=0, including complex roots.
Here P(x)=(x2+9)(x−4), so P(0)=(9)(−4)=−36=0 and x0=0 is an ordinary point. Setting P(x)=0 gives singular points at x=4 (distance 4 from 0) and x=±3i (distance 3 from 0 in the complex plane). Be careful not to look only at the real root x=4, which gives the wrong radius R=4, or forget to take the square root in x2+9=0, which gives R=9. The nearest singular points are ±3i at distance 3, so the guaranteed minimum radius of convergence is R=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) and y2(x) centered at x=0 for y′′−xy′−y=0.
Write the xk column for y′′,−xy′, and −y, and factor the ck terms before solving for ck+2.
Watch the sign when moving −(k+1)ck across the equals sign: keeping a minus sign gives ck+2=−k+2ck and produces alternating signs 1−2x2+8x4−… instead of positive terms. Dividing by (k+1) gives the recurrence relation:
ck+2=k+2ck(k≥0)
The even chain from c0 gives c2=2c0,c4=4c2=8c0, and c6=6c4=48c0, and the odd chain from c1 gives c3=3c1,c5=5c3=15c1, and c7=7c5=105c1:
Find the power series solution centered at x=0 up to the x6 term for the initial value problem y′′+xy=0,y(0)=2,y′(0)=−3.
Start with c0=y(0) and c1=y′(0), and check what lands in the x0 column before writing the recurrence for k≥1.
The initial conditions give c0=2 and c1=−3. Because xy starts in the x1 column, the x0 column has only 2c2=0⟹c2=0. For k≥1, the xk column gives (k+2)(k+1)ck+2+ck−1=0, so:
ck+2=−(k+2)(k+1)ck−1(k≥1)
When finding c3, plug in k=1 (so k+2=3), not k=3: plugging k=3 into the denominator divides by 5⋅4=20 instead of 3⋅2=6 and gives −101x3. Using k=1,2,3,4 gives c3=−3⋅2c0=−31,c4=−4⋅3c1=41,c5=−5⋅4c2=0, and c6=−6⋅5c3=901:
y(x)=2−3x−3x3+4x4+90x6−…
4
For (1−x2)y′′−2xy′+2y=0 centered at x=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′′ into two rows first, then factor the quadratic in k that multiplies ck.
Distributing y′′−x2y′′−2xy′+2y=0 gives the xk column equation:
Be careful with the minus sign in front of the bracket when solving for ck+2: leaving the formula negative gives ck+2=−k+1k−1ck, which produces the wrong signs 1+x2−3x4+5x6−… for the even series. Dividing out (k+2) gives the recurrence relation:
ck+2=k+1k−1ck(k≥0)
For k=1,c3=1+11−1c1=0, so the odd chain terminates to the exact polynomial y2(x)=x. The even chain gives c2=−c0,c4=31c2=−3c0, and c6=53c4=−5c0, so y1(x)=1−x2−3x4−5x6−…. Don't assign the minimum radius R=1 to both solutions: y1(x) has radius of convergence R=1 (limited by the singular points at x=±1), while the exact polynomial y2(x)=x converges for all x, so its radius of convergence is R=∞.
5
Find the general power series solution in powers of (x−1) up to the (x−1)4 term for xy′′−y=0 centered at x0=1, and state the guaranteed minimum interval of convergence on the real line.
Substitute x=1+t so the equation is written in powers of t=x−1 before lining up the columns.
The singular point at x=0 is a distance of 1 from x0=1, so the series is guaranteed to converge on ∣x−1∣<1, or 0<x<2. Substituting t=x−1 (so x=1+t) gives (1+t)y′′−y=0, or y′′+ty′′−y=0. Setting the tk column to zero gives (k+2)(k+1)ck+2+k(k+1)ck+1−ck=0, so:
ck+2=(k+2)(k+1)ck−k(k+1)ck+1(k≥0)
For k=0,c2=2c0. For k=1,c3=6c1−2c2; watch the minus sign on −2c2 when substituting c2=2c0 (adding instead of subtracting gives +6c0 instead of −6c0), which gives c3=−6c0+6c1. For k=2,c4=12c2−6c3=122c0−6(−6c0+6c1)=8c0−12c1. Replacing t with (x−1) and grouping c0 and c1 gives: