Study Guide

First order differential equations: Euler's method

IB Mathematics Applications and Interpretation HLΒ· Unit 4: Calculus, Topic 12: Euler's MethodΒ· 15 min read

1. 1. Core Idea and Formula of Euler's Methodβ˜…β˜…β˜†β˜†β˜†HL only⏱ 5 min

βœ“ Calculator OK

Many real-world first order differential equations do not have closed-form solutions that can be written with elementary functions. Euler's method relies on the tangent line approximation at each step to build an approximate solution curve starting from a known initial condition.

πŸ“˜ Definition

Euler's Iterative Formula

For each iteration, we use the slope of the tangent line at the current known point to estimate the value of at the next position, is the fixed step size between and .

πŸ“ Worked Example

Given with initial condition , use 2 steps of Euler's method with step size to approximate .

  1. 1

    Identify initial values: , , . Calculate derivative at :

  2. 2
    dydx∣(0,1)=0+1=1\frac{dy}{dx}\bigg|_{(0,1)} = 0 + 1 = 1
  3. 3

    Calculate first updated values:

  4. 4
    x1=x0+h=0+0.5=0.5y1=y0+hβ‹…dydx∣(x0,y0)=1+(0.5)(1)=1.5x_1 = x_0 + h = 0 + 0.5 = 0.5 \\ y_1 = y_0 + h \cdot \frac{dy}{dx}\bigg|_{(x_0,y_0)} = 1 + (0.5)(1) = 1.5
  5. 5

    Calculate derivative at the new point :

  6. 6
    dydx∣(0.5,1.5)=0.5+1.5=2\frac{dy}{dx}\bigg|_{(0.5,1.5)} = 0.5 + 1.5 = 2
  7. 7

    Calculate the final approximation at :

  8. 8
    x2=0.5+0.5=1y2=1.5+(0.5)(2)=2.5x_2 = 0.5 + 0.5 = 1 \\ y_2 = 1.5 + (0.5)(2) = 2.5
  9. 9

    Final approximation:

2. 2. Applying Euler's Method for Multiple Stepsβ˜…β˜…β˜…β˜†β˜†HL only⏱ 6 min

βœ“ Calculator OK

Euler's method follows the same iterative pattern for any number of steps. IB exams almost always use equal step sizes, though the method can be adapted for variable step sizes if required. Smaller step sizes produce more accurate approximations but require more calculations.

πŸ“ Worked Example

Given with initial condition , approximate with step size .

  1. 1

    Initial values: , . Calculate initial derivative:

  2. 2
    dydx∣(1,2)=21=2\frac{dy}{dx}\bigg|_{(1, 2)} = \frac{2}{1} = 2
  3. 3

    Iterate for 4 total steps to reach :

  4. 4
    n=1:x1=1.25,y1=2+(0.25)(2)=2.5,dydx=2.51.25=2n=2:x2=1.5,y2=2.5+(0.25)(2)=3,dydx=31.5=2n=3:x3=1.75,y3=3+(0.25)(2)=3.5,dydx=3.51.75=2n=4:x4=2,y4=3.5+(0.25)(2)=4n=1: x_1 = 1.25, \quad y_1 = 2 + (0.25)(2) = 2.5, \quad \frac{dy}{dx} = \frac{2.5}{1.25} = 2 \\ n=2: x_2 = 1.5, \quad y_2 = 2.5 + (0.25)(2) = 3, \quad \frac{dy}{dx} = \frac{3}{1.5} = 2 \\ n=3: x_3 = 1.75, \quad y_3 = 3 + (0.25)(2) = 3.5, \quad \frac{dy}{dx} = \frac{3.5}{1.75} = 2 \\ n=4: x_4 = 2, \quad y_4 = 3.5 + (0.25)(2) = 4
  5. 5

    For this DE, the exact solution is , so the approximation here is exact.

3. 3. Error Analysis for Euler's Methodβ˜…β˜…β˜…β˜†β˜†HL only⏱ 5 min

βœ“ Calculator OK

All approximations from Euler's method include some error, because the tangent line at each step diverges from the true curved solution. The direction and magnitude of error follow predictable patterns that are often tested in exams.

πŸ“˜ Definition

Global Truncation Error

The total error accumulated across all steps of the approximation. For Euler's method, global error is proportional to step size : halving roughly halves the total error.

πŸ“ Worked Example

For , , exact solution is . Compare error when approximating for vs .

  1. 1

    Case 1: (1 step):

  2. 2
    y1=1+0.3(12)=1.3Exact y(0.3)=11βˆ’0.3β‰ˆ1.4286Error=∣1.4286βˆ’1.3∣=0.1286y_1 = 1 + 0.3(1^2) = 1.3 \\ \text{Exact } y(0.3) = \frac{1}{1-0.3} \approx 1.4286 \\ \text{Error} = |1.4286 - 1.3| = 0.1286
  3. 3

    Case 2: (3 steps):

  4. 4
    n=0:x0=0,y0=1,dydx=1,y1=1.1,x1=0.1n=1:dydx=1.12=1.21,y2=1.1+0.1(1.21)=1.221,x2=0.2n=2:dydx=1.2212β‰ˆ1.4908,y3=1.221+0.1(1.4908)β‰ˆ1.3701n=0: x_0=0, y_0=1, \frac{dy}{dx}=1, y_1 = 1.1, x_1=0.1 \\ n=1: \frac{dy}{dx} = 1.1^2=1.21, y_2=1.1 + 0.1(1.21)=1.221, x_2=0.2 \\ n=2: \frac{dy}{dx} = 1.221^2 \approx 1.4908, y_3=1.221 + 0.1(1.4908) \approx 1.3701
  5. 5

    Calculate error for :

  6. 6
    Error=∣1.4286βˆ’1.3701βˆ£β‰ˆ0.0585\text{Error} = |1.4286 - 1.3701| \approx 0.0585
  7. 7

    The error for is roughly half the error for , matching the proportional error relationship.

4. Common Pitfalls

Wrong move:

Rounding intermediate values to the same precision as the final answer

Why:

Rounding error accumulates across multiple steps, leading to a final result that is outside acceptable tolerance

Correct move:

Keep 1-2 extra decimal places for all intermediate values, only round the final answer

Wrong move:

Reusing the initial derivative value for all iterations

Why:

The derivative depends on both and , so it changes at every step

Correct move:

Recalculate at each new before calculating

Wrong move:

Counting the wrong number of steps for a given interval

Why:

Many students count the starting point as a step, leading to too few or too many iterations

Correct move:

Calculate number of steps as:

Wrong move:

Mixing up overestimate vs underestimate for concave curves

Why:

It is easy to reverse the relationship between concavity and error direction

Correct move:

Remember: Tangent lines lie below concave up curves (underestimate) and above concave down curves (overestimate)

5. Quick Reference Cheatsheet

Concept

Rule/Formula

Iterative Formula

Initial Condition

Start at given in the question

Number of Steps

Error vs Step Size

Global error β†’ smaller = smaller error

Concave Up Solution

Euler's method gives an underestimate

Concave Down Solution

Euler's method gives an overestimate

When this came up on past exams

AI-estimated based on syllabus patterns β€” cross-check with official past papers for accuracy. Use only as revision-focus signals.

  • 2021 Β· 2

    Approximate DE solution with 3 steps

  • 2022 Β· 1

    Error analysis for different step sizes

Going deeper

What's Next

Euler's method is the foundation for more advanced numerical methods for solving differential equations, which are widely used across science, engineering, economics, and data science to model dynamic systems that do not have simple analytical solutions. For IB AI HL, you will next build on this knowledge to solve first order DEs that can be solved analytically with separation of variables, then apply differential equations to model real-world dynamic systems like population growth, cooling, and chemical reactions.