All revision notes topics

Euler's methods for differential equationsAQA A-Level Further Maths: Revision notes

Section 1

Euler's method

A first order differential equation dydx=f(x,y)\frac{dy}{dx}=f(x,y) with a starting point (x0,y0)(x_0,y_0) can be solved step by step when no exact solution is available. Euler's method follows the tangent at the current point for a step of width hh: yr+1=yr+hf(xr,yr),xr+1=xr+h.y_{r+1}=y_r+hf(x_r,y_r),\qquad x_{r+1}=x_r+h. The gradient is worked out at the start of each step and then treated as constant across it.

Key termsEuler's methodstep length
Common mistake

Using xr+1x_{r+1} or yr+1y_{r+1} in the gradient. In Euler's method both come from the current point (xr,yr)(x_r,y_r).

Section 2

Worked example

dydx=x+y\frac{dy}{dx}=x+y, y(0)=1y(0)=1, h=0.1h=0.1. Step 1: y1=1+0.1(0+1)=1.1y_1=1+0.1(0+1)=1.1 at x1=0.1x_1=0.1. Step 2: y2=1.1+0.1(0.1+1.1)=1.22y_2=1.1+0.1(0.1+1.1)=1.22 at x2=0.2x_2=0.2. So y(0.2)≈1.22y(0.2)\approx1.22. The exact solution y=2ex−x−1y=2e^{x}-x-1 gives y(0.2)=1.2428y(0.2)=1.2428, so the estimate is a little low. Present results in a table of xrx_r, yry_r and f(xr,yr)f(x_r,y_r).

Exam tip

Keep full calculator values between steps, and round only the final answer.

Section 3

The improved Euler method

The improved Euler method uses the gradient at the midpoint of two steps, which is more accurate: yr+1=yr−1+2hf(xr,yr),xr+1=xr+h.y_{r+1}=y_{r-1}+2hf(x_r,y_r),\qquad x_{r+1}=x_r+h. It needs two starting values, y0y_0 and y1y_1, so the first step uses ordinary Euler. Example. For dydx=x+y\frac{dy}{dx}=x+y with y0=1y_0=1, y1=1.1y_1=1.1: y2=y0+2hf(x1,y1)=1+0.2(0.1+1.1)=1.24y_2=y_0+2hf(x_1,y_1)=1+0.2(0.1+1.1)=1.24, which is closer to the exact 1.24281.2428 than the ordinary Euler value 1.221.22.

Key termsimproved Euler method
Common mistake

Applying the improved formula to the first step. y1y_1 must come from ordinary Euler; the improved formula starts at y2y_2.

Section 4

Accuracy and error

Euler's method follows tangent lines, so the error grows with each step. Reducing hh makes it more accurate, but more steps are needed. If the exact curve is convex (y′′>0y''>0) the tangents lie below it and Euler's method underestimates; if concave it overestimates. Because the improved Euler method uses the gradient at the middle of the interval it is usually much more accurate for the same hh. Measure accuracy with the percentage error ∣estimate−exact∣exact×100\frac{|\text{estimate}-\text{exact}|}{\text{exact}}\times100.

Key termspercentage error
Exam tip

Justify under- or over-estimation from the sign of the second derivative, and always state what hh was used.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on Euler's methods for differential equations

  1. A curve satisfies dydx=x+y\frac{dy}{dx}=x+y with y=1y=1 when x=0x=0. Use a step length h=0.1h=0.1.
    Using y1=1.1y_1=1.1 from Euler's method, use the improved Euler method to estimate yy when x=0.2x=0.2.2 marks
  2. A curve satisfies dydx=x2−y\frac{dy}{dx}=x^2-y with y=2y=2 when x=1x=1. Use Euler's method with step length h=0.2h=0.2.
    Explain why a smaller value of hh usually gives a more accurate estimate, and state the cost of using it.2 marks
  3. A cooling object has temperature TT °C at time tt minutes, where dTdt=−0.1(T−20)\frac{dT}{dt}=-0.1(T-20) and T=80T=80 when t=0t=0. Euler's method with step length h=2h=2 minutes is used.
    Use Euler's method to estimate TT when t=2t=2 and when t=4t=4.3 marks
See the full worksheet

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).