Scribe logoScribeNotes & practice
Sign inStart free
  1. Notes
  2. ›IB Mathematics: Applications and Interpretation
  3. ›5 Calculus
  4. ›5.16 Euler's method

IB Mathematics: Applications and Interpretation · Topic 5 · Calculus

5.16 Euler's method

Apply Euler’s method step by step to estimate solutions of a differential equation, and compare the estimates with exact solutions.

  • 3 min read
  • 5 parts
  • 10 questions
  • Draft
  • HL only
Start a Quick 5 on this topic→Jump to the 10 questions
1/5Euler’s method follows tangent lines in small steps
  1. 1Euler’s method follows tangent lines in small steps
  2. 2Two update rules produce each new point
  3. 3Each step uses the slope at the point just reached
  4. 4Estimates have an error that depends on step size
  5. 5Smaller steps improve accuracy but need more calculation
  6. Check your recall
  7. Practice: 10 questions
1

Part 1 of 5: Euler’s method follows tangent lines in small steps

Sometimes a differential equation has no solution you can write as a formula. You can still estimate the solution if you know a starting point.

Think of steering a boat across a river. You check the heading, take a short step, then check again.

Euler’s method moves from one point to the next along the tangent line. The slope at the current point sets the direction of each short move.

The horizontal width of each move is the step size, hhh. A smaller hhh means shorter moves, and more of them.

Key terms · tap one for its definition

Euler’s method

Euler’s method is a numerical method that estimates a solution curve by repeated tangent-line steps of fixed width.

step size

The step size hhh is the fixed increase in xxx between consecutive points in Euler’s method.

Part 1 done

2

Part 2 of 5: Two update rules produce each new point

Write the differential equation as dydx=f(x,y)\frac{dy}{dx}=f(x,y)dxdy​=f(x,y). Start from the initial condition (x0,y0)(x_0,y_0)(x0​,y0​). Each new point comes from the one before it.

  • New xxx: xn+1=xn+hx_{n+1}=x_n+hxn+1​=xn​+h
  • New yyy: yn+1=yn+h f(xn,yn)y_{n+1}=y_n+h\,f(x_n,y_n)yn+1​=yn​+hf(xn​,yn​)

Each step is a straight segment with the current slope. The points (x1,y1)(x_1,y_1)(x1​,y1​), (x2,y2)(x_2,y_2)(x2​,y2​) and so on are where these segments meet.

The subscript counts the steps taken so far. After nnn steps, xn=x0+nhx_n=x_0+nhxn​=x0​+nh.

The second rule adds the rise along the tangent. The rise is the slope multiplied by the step size.

Exam tip

Use the old values xnx_nxn​ and yny_nyn​ to find the slope, never the new ones.

Part 2 done

Quick check

One question on the part you just read

Easy

State the rule Euler’s method uses to find yn+1y_{n+1}yn+1​ for dydx=f(x,y)\frac{dy}{dx}=f(x,y)dxdy​=f(x,y) with step size hhh.
Show answer and explanation

Answer: A · Worked explanation

The rise along the tangent is slope times step size, and it is added to the old yyy. Using the new xxx in the slope is wrong because Euler’s method takes the slope at the start of each step. The step size hhh multiplies the slope, so a larger step gives a larger jump along the tangent.
3

Part 3 of 5: Each step uses the slope at the point just reached

Follow one example carefully. Keep the working in a list so that no value is lost.

Worked example

Three steps of Euler’s method

Use Euler’s method with h=0.1h=0.1h=0.1 to estimate y(0.3)y(0.3)y(0.3) for dydx=x+y\frac{dy}{dx}=x+ydxdy​=x+y, with y(0)=1y(0)=1y(0)=1.
  1. 1
    Step 1 from (0,1)(0,1)(0,1): slope =0+1=1=0+1=1=0+1=1, so y1=1+0.1(1)=1.1y_1=1+0.1(1)=1.1y1​=1+0.1(1)=1.1 at x=0.1x=0.1x=0.1.
  2. 2
    Step 2 from (0.1,1.1)(0.1,1.1)(0.1,1.1): slope =0.1+1.1=1.2=0.1+1.1=1.2=0.1+1.1=1.2, so y2=1.1+0.1(1.2)=1.22y_2=1.1+0.1(1.2)=1.22y2​=1.1+0.1(1.2)=1.22 at x=0.2x=0.2x=0.2.
  3. 3
    Step 3 from (0.2,1.22)(0.2,1.22)(0.2,1.22): slope =0.2+1.22=1.42=0.2+1.22=1.42=0.2+1.22=1.42, so y3=1.22+0.1(1.42)=1.362y_3=1.22+0.1(1.42)=1.362y3​=1.22+0.1(1.42)=1.362 at x=0.3x=0.3x=0.3.

Answer: The estimate is y(0.3)≈1.362y(0.3)\approx1.362y(0.3)≈1.362.

Each slope is larger than the last. The solution is rising faster and faster, so later steps climb more.

The exact solution here is y=2ex−x−1y=2e^{x}-x-1y=2ex−x−1. You can check it by differentiating, which gives 2ex−12e^{x}-12ex−1, and this equals x+yx+yx+y.

At x=0.3x=0.3x=0.3 the exact value is 1.400 to 3 decimal places. The estimate 1.362 is slightly low.

Exam tip

Keep extra decimal places in the working. Round only the final answer.

Part 3 done

4

Part 4 of 5: Estimates have an error that depends on step size

The error of an estimate measures how far it is from the exact value. For the example above, a table shows how the error changes with hhh.

Estimates of y(0.3) for different step sizes

Step size hhhEstimateError
0.31.3000.100
0.11.3620.038
0.051.3800.020
Step size $h$
0.3
Estimate
1.300
Error
0.100
Step size $h$
0.1
Estimate
1.362
Error
0.038
Step size $h$
0.05
Estimate
1.380
Error
0.020

The estimates are low because the exact curve bends upwards. A tangent line lies below an upward-bending curve, so each step falls short. For a curve that bends downwards, the estimates are too high.

Figure 1. For dy/dx = y with y(0) = 1 and h = 0.5, each Euler step falls short of the exact curve. The gap grows with each step.

Errors from early steps carry forward, so they usually build up as xxx moves away from the start. A bigger step gives a bigger jump away from the true curve.

Key term

error

The error of an estimate is the exact value minus the estimate.

Part 4 done

Quick check

One question on the part you just read

Easy

For dydx=x+y\frac{dy}{dx}=x+ydxdy​=x+y with y(0)=1y(0)=1y(0)=1 and h=0.1h=0.1h=0.1, calculate y1y_1y1​.
Show answer and explanation

Answer: A · Worked explanation

The slope at (0,1)(0,1)(0,1) is 0+1=10+1=10+1=1, so y1=1+0.1×1=1.1y_1=1+0.1\times1=1.1y1​=1+0.1×1=1.1. The value 0.1 is only the rise, and it forgets to add the starting value y0=1y_0=1y0​=1. The second step would then use the slope at (0.1,1.1)(0.1,1.1)(0.1,1.1), which is 1.2, so the method continues in the same way.
5

Part 5 of 5: Smaller steps improve accuracy but need more calculation

The table shows a pattern. Cutting the step size roughly cuts the error by the same factor. It also multiplies the number of steps.

Use the step size to plan the work. To go from x=0x=0x=0 to x=1x=1x=1 with h=0.25h=0.25h=0.25 needs 10.25=4\frac{1}{0.25}=40.251​=4 steps.

This is a trade-off. By hand, a few steps show the method. Software handles very small steps, which is why Euler’s method is useful when an exact solution is hard to find.

Exam tip

Show each step in your working: xnx_nxn​, yny_nyn​, the slope and yn+1y_{n+1}yn+1​. State the step size you used.

Go deeperWhy the error is proportional to the step size

Each single step makes a small error because the tangent line leaves the curve. That error is proportional to h2h^2h2.

Covering a fixed interval needs about 1h\frac{1}{h}h1​ steps, so the errors add up to something proportional to hhh. Halving hhh therefore roughly halves the error.

Note read

Check your recall[14 marks]

5 written questions. Answer each one in your head or on paper, then open the mark scheme.

  1. 1.State[2 marks]

    State the two rules that Euler’s method uses to find xn+1x_{n+1}xn+1​ and yn+1y_{n+1}yn+1​ for dydx=f(x,y)\frac{dy}{dx}=f(x,y)dxdy​=f(x,y) with step size hhh.

    Show mark schemeHide mark scheme

    Model answer

    xn+1=xn+hx_{n+1}=x_n+hxn+1​=xn​+h and yn+1=yn+h f(xn,yn)y_{n+1}=y_n+h\,f(x_n,y_n)yn+1​=yn​+hf(xn​,yn​).

    • 1 mark for stating xn+1=xn+hx_{n+1}=x_n+hxn+1​=xn​+h
    • 1 mark for stating yn+1=yn+h f(xn,yn)y_{n+1}=y_n+h\,f(x_n,y_n)yn+1​=yn​+hf(xn​,yn​)
  2. 2.Calculate[4 marks]

    For dydx=x−y\frac{dy}{dx}=x-ydxdy​=x−y with y(0)=2y(0)=2y(0)=2, use Euler’s method with h=0.5h=0.5h=0.5 to calculate an estimate of y(1)y(1)y(1).

    Show mark schemeHide mark scheme

    Model answer

    At (0,2)(0,2)(0,2) the slope is -2, so y1=2+0.5(−2)=1y_1=2+0.5(-2)=1y1​=2+0.5(−2)=1 at x=0.5x=0.5x=0.5. The slope is then 0.5−1=−0.50.5-1=-0.50.5−1=−0.5, so y2=1+0.5(−0.5)=0.75y_2=1+0.5(-0.5)=0.75y2​=1+0.5(−0.5)=0.75 at x=1x=1x=1.

    • 1 mark for using xxx values 0.5 and 1
    • 1 mark for slope -2 at the start
    • 1 mark for obtaining y1=1y_1=1y1​=1
    • 1 mark for obtaining y2=0.75y_2=0.75y2​=0.75
  3. 3.Explain[2 marks]

    Explain why using a smaller step size usually gives a more accurate estimate.

    Show mark schemeHide mark scheme

    Model answer

    Each tangent line is followed for a shorter distance, so it stays closer to the solution curve. The error made at each step is then smaller.

    • 1 mark for stating that each tangent is followed for a shorter distance
    • 1 mark for explaining that the estimate stays closer to the curve, giving less error
  4. 4.Determine[2 marks]

    The exact value of y(1)y(1)y(1) in the previous calculation is 1.10 to 3 significant figures. Determine the error and state whether the estimate is too high or too low.

    Show mark schemeHide mark scheme

    Model answer

    Error =1.10−0.75=0.35=1.10-0.75=0.35=1.10−0.75=0.35. The estimate is too low.

    • 1 mark for calculating error =0.35=0.35=0.35
    • 1 mark for stating that the estimate is too low
  5. 5.Describe[4 marks]

    Describe the effect of halving the step size on the error and on the number of steps.

    Show mark schemeHide mark scheme

    Model answer

    The estimate becomes more accurate because the error roughly halves. The number of steps needed to reach the same xxx doubles. The calculation therefore takes more work.

    • 1 mark for stating that the estimate becomes more accurate
    • 1 mark for stating that the error roughly halves
    • 1 mark for stating that the number of steps doubles
    • 1 mark for linking this to more calculation

Practice this topic

10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)

0 right0 of 10 answered

Includes the 2 quick checks in the note above.

3.

Easy·State[1 mark]

State the usual effect of using a smaller step size in Euler’s method.
Show answer and explanation

Answer: D · Worked explanation

Shorter steps keep each tangent line closer to the curve, so the error usually falls. The method still gives an estimate rather than an exact value, and the extra steps mean more calculation. The cost is extra calculation, which is why very small steps are usually done with software rather than by hand.
4.

Medium·Calculate[2 marks]

For dydx=2y\frac{dy}{dx}=2ydxdy​=2y with y(0)=3y(0)=3y(0)=3 and h=0.5h=0.5h=0.5, calculate the Euler estimate of y(1)y(1)y(1).
Show answer and explanation

Answer: D · Worked explanation

Step 1: y1=3+0.5(6)=6y_1=3+0.5(6)=6y1​=3+0.5(6)=6 at x=0.5x=0.5x=0.5. Step 2: y2=6+0.5(12)=12y_2=6+0.5(12)=12y2​=6+0.5(12)=12 at x=1x=1x=1. The value 6 is only the first step, and 22.2 is the exact value 3e23e^23e2, which Euler’s method does not give. Each step uses the slope at the point just reached, found by substituting the current yyy into 2y2y2y.
5.

Medium·Calculate[2 marks]

For dydx=4−y\frac{dy}{dx}=4-ydxdy​=4−y with y(0)=1y(0)=1y(0)=1 and h=0.5h=0.5h=0.5, calculate the Euler estimate of y(1)y(1)y(1).
Show answer and explanation

Answer: C · Worked explanation

Step 1: slope 3, so y1=1+1.5=2.5y_1=1+1.5=2.5y1​=1+1.5=2.5. Step 2: slope 4−2.5=1.54-2.5=1.54−2.5=1.5, so y2=2.5+0.75=3.25y_2=2.5+0.75=3.25y2​=2.5+0.75=3.25. The value 3.75 uses yyy rather than 4−y4-y4−y as the slope in step 2, and 2.90 is the exact value, not the estimate. The exact solution is 4−3e−x4-3e^{-x}4−3e−x, which lies below the estimate here because the curve bends downwards.
6.

Medium·Calculate[1 mark]

An Euler estimate is 1.362 and the exact value is 1.400. Calculate the error, using exact value minus estimate.
Show answer and explanation

Answer: C · Worked explanation

Error =1.400−1.362=0.038=1.400-1.362=0.038=1.400−1.362=0.038. The negative value comes from subtracting in the opposite order, and 2.762 comes from adding the two values. A positive error means the estimate is below the exact value, which fits an upward-bending solution curve and a tangent below it. Give the error to 3 decimal places to match the data.
7.

Medium·Predict[1 mark]

The exact solution curve bends upwards. Predict how the Euler estimates compare with the exact values.
Show answer and explanation

Answer: D · Worked explanation

A tangent line lies below an upward-bending curve, so each step falls short of the curve and the estimates are too low. Estimates are too high when the curve bends downwards. The sign of the error depends on the curvature, so check whether the curve bends up or down first.
8.

Hard·Calculate[2 marks]

For dydx=xy\frac{dy}{dx}=xydxdy​=xy with y(1)=2y(1)=2y(1)=2 and h=0.5h=0.5h=0.5, calculate the Euler estimate of y(2)y(2)y(2).
Show answer and explanation

Answer: A · Worked explanation

Step 1: slope =1×2=2=1\times2=2=1×2=2, so y1=2+0.5(2)=3y_1=2+0.5(2)=3y1​=2+0.5(2)=3 at x=1.5x=1.5x=1.5. Step 2: slope =1.5×3=4.5=1.5\times3=4.5=1.5×3=4.5, so y2=3+0.5(4.5)=5.25y_2=3+0.5(4.5)=5.25y2​=3+0.5(4.5)=5.25. The value 7 uses the new xxx in each slope, which is not Euler’s method. Write each step as slope, then rise, then new yyy, so that the xxx value used is always the old one.
9.

Hard·Predict[2 marks]

With h=0.2h=0.2h=0.2, an Euler estimate at a fixed xxx has error 0.12. Predict the approximate error with h=0.05h=0.05h=0.05.
Show answer and explanation

Answer: B · Worked explanation

The error is roughly proportional to hhh, and hhh falls by a factor of 4, so the error falls from 0.12 to about 0.03. The value 0.0075 wrongly assumes the error is proportional to h2h^2h2. So the estimate at the smaller step is also about four times closer to the exact value.
10.

Hard·Deduce[2 marks]

For dydx=−2y\frac{dy}{dx}=-2ydxdy​=−2y with y(0)=1y(0)=1y(0)=1 and h=0.5h=0.5h=0.5, Euler’s method gives y(0.5)=0y(0.5)=0y(0.5)=0 and y(1)=0y(1)=0y(1)=0. The exact solution is y=e−2xy=e^{-2x}y=e−2x. Deduce the correct conclusion.
Show answer and explanation

Answer: A · Worked explanation

The first tangent, starting at slope -2, reaches 0 after one step, so later slopes are 0. The exact value e−1≈0.368e^{-1}\approx0.368e−1≈0.368 at x=0.5x=0.5x=0.5 is far from 0. A smaller step size would fix this. The exact solution is never zero.

Keep going

Next topic5.17 Phase portraitsPrevious topic5.15 Slope fields

More in Topic 5 · Calculus

  1. 5.10Second derivativesNotes · 10 questions· HL only
  2. 5.11Further integrationNotes · 10 questions· HL only
  3. 5.12Areas and volumes of revolutionNotes · 10 questions· HL only
  4. 5.13KinematicsNotes · 10 questions· HL only
  5. 5.14Setting up differential equationsNotes · 10 questions· HL only
  6. 5.15Slope fieldsNotes · 10 questions· HL only
  7. 5.16Euler's methodNotes · 10 questions· HL only
  8. 5.17Phase portraitsNotes · 10 questions· HL only
  9. 5.18Second-order differential equationsNotes · 10 questions· HL only

All IB Mathematics: Applications and Interpretation topics →

Draft: written by Scribe and checked automatically, not yet by a subject reviewer.

Practice questions are original, written by Scribe and checked automatically for correctness.

Topic codes follow the official numbering. Not endorsed by IB Diploma Programme or any exam board.

On this page

0/5 read

  1. 1Euler’s method follows tangent lines in small steps
  2. 2Two update rules produce each new point
  3. 3Each step uses the slope at the point just reached
  4. 4Estimates have an error that depends on step size
  5. 5Smaller steps improve accuracy but need more calculation
  6. Check your recall
  7. Practice: 10 questions
All coursesScribeHow it worksPricingPrivacyTerms

Notes and questions are written by Scribe in our own words. Topic codes follow the official course numbering so you can find your place. Not produced or endorsed by the IB, College Board, AQA, OCR, Pearson Edexcel or any exam board.

© 2026 Scribe