Euler's method is where numerical ODE solving begins. It has appeared in 2019 (theory discussion), 2020 (worked march on y′=x+y), and twice in the same recycled form in 2021 and 2023. It is also the predictor inside Heun's method and RK2, so understanding exactly what Euler does and where it is wrong explains why the higher methods exist.
📝 Key Definitions
Step-by-step (marching) methods: "the values of y are computed by short steps ahead for equal intervals h of the independent variable." — Jain, §8.1 (p. 302)
Euler's formula: "Assuming that f(x,y)=f(x0,y0) in x0≤x≤x1, this gives Euler's formula y1≈y0+hf(x0,y0)." — Jain, §8.4 (p. 307), Eq. (8.7a)
Local error for Euler:Ln+1=−21h2y′′(τn), where xn≤τn≤xn+1. — Jain, §8.4.1 (p. 308), Eq. (8.10)
Why higher methods exist: "The process is very slow and to obtain reasonable accuracy with Euler's method, we need to take a smaller value for h. Because of this restriction on h, the method is unsuitable for practical use and a modification of it, known as the modified Euler method, which gives more accurate results, will be described..." — Jain, §8.4 (p. 307)
The Method
Purpose. Given y′=f(x,y) and y(x0)=y0, the value of y is wanted at x0+nh for a step size h.
Derivation. Taylor expand about xn:
yn+1=yn+hyn′+2h2yn′′+⋯
Euler's method keeps the first two terms and discards the rest:
yn+1=yn+hf(xn,yn)
Geometrically, yn+1 is the value at xn+h of the tangent to the solution curve at (xn,yn), so the solution is followed along successive short tangent segments.
Procedure. Set xn+1=xn+h. Starting from (x0,y0), compute y1=y0+hf(x0,y0), then y2=y1+hf(x1,y1), and continue.
Error. The local truncation error is O(h2) per step, from the discarded 2h2y′′ term; over n steps these accumulate into a global error O(h). Halving h therefore halves the global error, which is the defining property of a first-order method.
Merits and demerits.
Simple: one evaluation of f per step, and no derivative of f is needed.
Stable only for a sufficiently small h on a stiff equation, because the method follows the tangent rather than the curve.
Inexact: the global error falls only linearly in h, so high accuracy requires many steps.
It is the foundation of the higher methods: Heun, the mid-point method, and the Runge-Kutta family all correct Euler's 2h2y′′ term.
yn+1=yn+hf(xn,yn),global error O(h)
Worked Example (PYQ 2020): y′=x+y, y(0)=0
Source: 2020 Q.7(b) [Marks: 04]
Question. Solve, by Euler's method, the equation dxdy=x+y,y(0)=0. Choose h=0.2 and compute y(0.4) and y(0.6).
Step 1. The method. With f(x,y)=x+y and h=0.2,
yn+1=yn+0.2(xn+yn),xn+1=xn+0.2
Start at x0=0, y0=0.
Step 2. Three steps.
Step
xn
yn
Slope xn+yn
yn+1=yn+0.2×slope
1
0.0
0.000000
0.0+0.0=0.0
0.0+0.2(0)=0.000000
2
0.2
0.000000
0.2+0.0=0.2
0.0+0.2(0.2)=0.040000
3
0.4
0.040000
0.4+0.04=0.44
0.04+0.2(0.44)=0.128000
Step 1 in full: the slope at x=0 is 0+0=0, so y1=0+0.2(0)=0.
The curve leaves the origin horizontally, which is correct since y′=x+y is zero at the origin.
y(0.4)=0.0400,y(0.6)=0.1280(h=0.2)
🏆 Golden Questions (Past Exam Archive)
🎯 Discuss Euler's method to solve ordinary differential equations.
Appeared: 2019 Q.7(c) — (04 marks)
Full Answer:
Purpose. Given y′=f(x,y) and y(x0)=y0, the value of y is wanted at x0+nh for a step size h.
Derivation. Taylor expand about xn:
yn+1=yn+hyn′+2h2yn′′+⋯
Euler's method keeps the first two terms and discards the rest:
yn+1=yn+hf(xn,yn)
Geometrically, yn+1 is the value at xn+h of the tangent to the solution curve at (xn,yn), so the solution is followed along successive short tangent segments.
Procedure. Set xn+1=xn+h. Starting from (x0,y0), compute y1=y0+hf(x0,y0), then y2=y1+hf(x1,y1), and continue.
Error. The local truncation error is O(h2) per step, from the discarded 2h2y′′ term; over n steps these accumulate into a global error O(h). Halving h therefore halves the global error, which is the defining property of a first-order method.
Merits and demerits.
Simple: one evaluation of f per step, and no derivative of f is needed.
Stable only for a sufficiently small h on a stiff equation, because the method follows the tangent rather than the curve.
Inexact: the global error falls only linearly in h, so high accuracy requires many steps.
It is the foundation of the higher methods: Heun, the mid-point method, and the Runge-Kutta family all correct Euler's 2h2y′′ term.
yn+1=yn+hf(xn,yn),global error O(h)
🎯 Using Euler's method, determine dxdy=53x3y; Consider y(0)=1.
Step 1. At x0=0, y0=1: slope 53(0)3(1)=0, so y1=1+0.25(0)=1.0000000.
Step 2. At x1=0.25, y1=1: slope 53(0.25)3(1)=53(0.015625)=0.0093750, so y2=1+0.25(0.009375)=1.0023438.
Step 3. At x2=0.5, y2=1.0023438: slope 53(0.5)3(1.0023438)=53(0.125)(1.0023438)=0.0751758, so y3=1.0023438+0.25(0.0751758)=1.0211377.
Step 4. At x3=0.75, y3=1.0211377: slope 53(0.75)3(1.0211377)=53(0.421875)(1.0211377)=0.2584755, so y4=1.0211377+0.25(0.2584755)=1.0857566.
Step
xn
yn
Slope 53xn3yn
yn+1
1
0.00
1.0000000
0.0000000
1.0000000
2
0.25
1.0000000
0.0093750
1.0023438
3
0.50
1.0023438
0.0751758
1.0211377
4
0.75
1.0211377
0.2584755
1.0857566
y(1)≈1.08576(h=0.25)
Other step sizes, to show the choice is not arbitrary:
h
Steps to x=1
y(1)
Error against exact
0.5
2
1.03750
−0.12433
0.25
4
1.08576
−0.07608
0.1
10
1.12725
−0.03459
Exam Variants
Year
Question
ODE
Step
Key Answer
2019 Q.7(c)
Discuss Euler's method
Theory
—
yn+1=yn+hf(xn,yn),global error O(h)
2020 Q.7(b)
Euler march, find y(0.4), y(0.6)
y′=x+y, y(0)=0
h=0.2
y(0.4)=0.0400,y(0.6)=0.1280(h=0.2)
2021 Q.8(c)
Euler, y(1)
y′=53x3y, y(0)=1
h=0.25
y(1)≈1.08576(h=0.25)
2023 Q.3(b)
Same as 2021 Q.8(c)
identical
identical
y(1)≈1.08576(h=0.25)
⚡ Exam Tips & Common Mistakes
Always evaluate the slope at the old point.yn+1=yn+hf(xn,yn) uses xn and yn, both from step n. Using xn+1 or yn+1 in the slope is the single most common slip.
A zero first step is usually correct, not wrong. In 2020 and 2021 the slope at x=0 was zero, so y1=y0. Check the slope column before doubting the method.
Count the steps. To reach xn from x0 with step h, take n=(xn−x0)/h steps. Forgetting to march through the intermediate nodes is the other common error.
Euler under-reads a convex, increasing solution. If your result overshoots, look for an arithmetic error rather than blaming the method.
Halving h only halves the error. That is the signature of first order. If your error falls by 4 or 16, you did not run Euler.
Euler needs no derivative of f. If a question is solvable by repeated evaluation of f, Euler applies. Only the slope f itself is needed.