Series solutions of differential equations

Series solutions of differential equations

Spec 6.4 · Edexcel International A Level Further Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Solve as a series y=y(0)+xy′(0)+x22!y′′(0)+…y=y(0)+xy'(0)+\dfrac{x^2}{2!}y''(0)+\dots, without a closed form.
  • A first order equation needs y(0)y(0); a second order equation needs y(0)y(0) and y′(0)y'(0).
  • Get each new derivative by differentiating the equation, then put x=0x=0.
  • Non-linear terms need the chain rule: ddx(y2)=2yy′\frac{d}{dx}(y^2)=2yy'.
  • Check by substituting the series back into the equation.

The method

Use the initial conditions, then differentiate the equation repeatedly and evaluate at x=0x=0 to build the Maclaurin series of yy.

A differential equation with conditions at x=0x=0 can be solved as the Maclaurin series of yy: y=y(0)+xy′(0)+x22!y′′(0)+x33!y′′′(0)+…y=y(0)+xy'(0)+\frac{x^2}{2!}y''(0)+\frac{x^3}{3!}y'''(0)+\dots

For a first order equation y′=f(x,y)y'=f(x,y) only y(0)y(0) is needed. For a second order equation both y(0)y(0) and y′(0)y'(0) are needed.

  1. 1

    Initial conditions

    use them for y(0) (and y′(0) if second order)

  2. 2

    The equation at x = 0

    gives the next derivative

  3. 3

    Differentiate the equation

    product rule and chain rule give the next derivative; evaluate at x = 0

  4. 4

    Repeat, then substitute

    until you have all derivatives needed, put them into the series

The method

How many initial conditions does a second order equation need?

First order equations

Use the equation for y′(0)y'(0), then differentiate it for each further derivative.

For dydx=x2+y\frac{dy}{dx}=x^2+y with y(0)=1y(0)=1: y′(0)=0+1=1y'(0)=0+1=1. Differentiate: y′′=2x+y′y''=2x+y', so y′′(0)=1y''(0)=1. Then y′′′=2+y′′y'''=2+y'', so y′′′(0)=3y'''(0)=3, and y(4)=y′′′y^{(4)}=y''', so y(4)(0)=3y^{(4)}(0)=3.

So y=1+x+x22+x32+x48+…y=1+x+\frac{x^2}{2}+\frac{x^3}{2}+\frac{x^4}{8}+\dots At x=0.2x=0.2 this gives 1.22421.2242, matching the exact solution to 4 d.p.

−1−0.8−0.6−0.4−0.200.20.40.60.81−0.50.511.522.533.5xy(0, 1)exact solutionseries to x⁴
The exact solution y = 3eˣ − x² − 2x − 2 (solid) and the series up to x⁴ (dashed). They are very close for small |x|.

Worked example

Find the series for y′=x+yy'=x+y with y(0)=1y(0)=1 up to x3x^3.

For y′=x2+yy'=x^2+y, what is y′′y''?

Second order equations

The equation gives y′′y''; differentiate it to get y′′′y''', y(4)y^{(4)} and so on, using y(0)y(0) and y′(0)y'(0).

For y′′+xy′+y=0y''+xy'+y=0 with y(0)=1y(0)=1, y′(0)=0y'(0)=0: y′′=−xy′−yy''=-xy'-y, so y′′(0)=−1y''(0)=-1. Then y′′′=−2y′−xy′′y'''=-2y'-xy'', so y′′′(0)=0y'''(0)=0, and y(4)=−3y′′−xy′′′y^{(4)}=-3y''-xy''', so y(4)(0)=3y^{(4)}(0)=3. Hence y=1−x22+x48+…y=1-\frac{x^2}{2}+\frac{x^4}{8}+\dots

The exact solution is e−x2/2e^{-x^2/2}, whose series begins the same way.

−2−1.5−1−0.50.511.52−0.20.20.40.60.811.21.4xy(0, 1)y = e^(−x²/2)1 − x²/2 + x⁴/8
y = e^(−x²/2) (solid), the exact solution, and its series 1 − x²/2 + x⁴/8 (dashed).

Worked example

Find the series for y′′=xyy''=xy with y(0)=1y(0)=1, y′(0)=1y'(0)=1 up to x4x^4.

For y′′=xyy''=xy, what is y′′′y'''?

Non-linear terms

Use the chain rule and product rule: ddx(y2)=2yy′\frac{d}{dx}(y^2)=2yy' and ddx(yy′)=y′2+yy′′\frac{d}{dx}(yy')=y'^2+yy''.

Terms such as y2y^2 or yy′yy' need the chain rule and product rule when differentiated. Take y′′=xy′+y2y''=xy'+y^2 with y(0)=1y(0)=1, y′(0)=1y'(0)=1.

−1−0.8−0.6−0.4−0.200.20.40.60.810.511.522.533.54xyy(0) = 1up to x²up to x⁴
The series solution of y″ = xy′ + y² with y(0) = y′(0) = 1: y = 1 + x + x²/2 + x³/2 + x⁴/4 + … (dashed: up to x⁴; solid: up to x²).
  • ddx(y2)\dfrac{d}{dx}(y^2)2yy′2yy'
  • ddx(yy′)\dfrac{d}{dx}(yy')y′2+yy′′y'^2+yy''

Worked example

Find the series for y′′=xy′+y2y''=xy'+y^2 with y(0)=1y(0)=1, y′(0)=1y'(0)=1 up to x4x^4.

What is ddx(y2)\frac{d}{dx}(y^2)?

Using and checking

Substitute a small xx to estimate yy, and check by substituting back into the equation up to the order you have.

Substitute a small value of xx to estimate yy: for y=1+2x+x2+56x3+16x4y=1+2x+x^2+\frac56x^3+\frac16x^4, y(0.2)≈1.4469y(0.2)\approx1.4469. Accuracy improves for smaller ∣x∣|x| and with more terms.

Check: differentiate the series and substitute back into the differential equation. All terms up to the order computed must cancel.

If the conditions are at x=ax=a, use the Taylor series in powers of (x−a)(x-a) in the same way.

  1. 1

    Differentiate

    the series as many times as the equation needs

  2. 2

    Substitute

    into both sides of the equation

  3. 3

    Compare

    terms up to the order you have

  4. 4

    Conclude

    the series is consistent

Checking a series solution

Worked example

Check that y=1+x+x22+x32+x44y=1+x+\frac{x^2}{2}+\frac{x^3}{2}+\frac{x^4}{4} satisfies y′′=xy′+y2y''=xy'+y^2 up to x2x^2.

A series up to x4x^4 solves a second order equation. Up to which power can you check it?

Try an exam question

Given that dydx=x+y\frac{dy}{dx}=x+y and y=1y=1 when x=0x=0, find the Maclaurin series for yy up to and including the term in x3x^3.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the value of d3ydx3\frac{d^3y}{dx^3} at x=0x=0.

1 mark, marked against the mark scheme

Revision notes