Approximate Solutions to Differential Equations using Euler's Method (DP IB Applications & Interpretation (AI)): Revision Note

Roger B

Written by: Roger B

Reviewed by: Dan Finlay

Updated on

Euler’s method: first order

What is Euler’s method?

  • Euler’s method is a numerical method for finding approximate solutions to differential equations

    • It treats the derivatives in the equation as being constant over short ‘steps’

    • The accuracy of the Euler’s Method approximation can be improved by making the step sizes smaller

How do I use Euler’s method with a first order differential equation?

  • STEP 1
    Make sure your differential equation is in fraction numerator straight d y over denominator straight d x end fraction equals f open parentheses x comma blank y close parentheses form
     

  • STEP 2
    Write down the recursion equations using the formulae from the exam formula booklet

    • y subscript n plus 1 end subscript equals y subscript n plus h cross times f open parentheses x subscript n comma blank y subscript n close parentheses

    • x subscript n plus 1 end subscript equals x subscript n plus h 

      • h in those equations is the step size

      • The exam question will usually tell you the correct value of h to use 

  • STEP 3
    Use the recursion feature on your GDC to calculate the Euler’s method approximation over the correct number of steps

    • The values for x subscript 0 and y subscript 0 will come from the boundary conditions given in the question

Examiner Tips and Tricks

Be careful with letters. In the equations in an exam question, and in your GDC’s recursion calculator, the variables may not be x and y.

If an exam question asks you how to improve an Euler’s method approximation, the answer will almost always have to do with decreasing the step size. You can decrease the step size by increasing the number of steps over the same interval.

Worked Example

Consider the differential equation fraction numerator straight d y over denominator straight d x end fraction plus y equals x plus 1 with the boundary condition space y left parenthesis 0 right parenthesis equals 0.5.

a)Apply Euler’s method with a step size of h equals 0.2 to approximate the solution to the differential equation at x equals 1.

seNtq8Uv_5-10-1-ib-aa-hl-eulers-method-a-we-solution

b) Explain how the accuracy of the approximation in part (a) could be improved.

gY7RyKZ9_5-10-1-ib-aa-hl-eulers-method-b-we-solution

Euler's method: coupled systems

How do I use Euler’s method with coupled first order differential equations?

  • STEP 1
    Make sure your coupled differential equations are in fraction numerator d x over denominator d t end fraction equals f subscript 1 left parenthesis x comma y comma t right parenthesis and fraction numerator d y over denominator d t end fraction equals f subscript 2 left parenthesis x comma y comma t right parenthesis form
     

  • STEP 2
    Write down the recursion equations using the formulae from the exam formula booklet:

    • x subscript n plus 1 end subscript equals x subscript n plus h cross times f subscript 1 open parentheses x subscript n comma blank y subscript n comma blank t subscript n close parentheses

    • y subscript n plus 1 end subscript equals y subscript n plus h cross times f subscript 1 open parentheses x subscript n comma blank y subscript n comma blank t subscript n close parentheses

    • t subscript n plus 1 end subscript equals t subscript n plus h 

      • h in those equations is the step size

      • The exam question will usually tell you the correct value of h to use

  • STEP 3
    Use the recursion feature on your GDC to calculate the Euler’s method approximation over the correct number of steps

    • The values for x subscript 0, y subscript 0 and t subscript 0 will come from the boundary conditions given in the question

    • Frequently you will be given an initial condition

      • Look out for terms like ‘initially’ or ‘at the start’

      • In this case t subscript 0 equals 0

Examiner Tips and Tricks

Be careful with letters. In the equations in an exam question, and in your GDC’s recursion calculator, the variables may not be x, y and t.

If an exam question asks you how to improve an Euler’s method approximation, the answer will almost always have to do with decreasing the step size. You can decrease the step size by increasing the number of steps over the same interval.

Worked Example

Consider the following system of differential equations: 

fraction numerator d x over denominator d t end fraction equals 2 x minus 3 y plus 1

fraction numerator d y over denominator d t end fraction equals x plus y plus fraction numerator 1 over denominator t plus 1 end fraction 

Initially x = 10 and y = 2. 

Use Euler’s method with a step size of 0.1 to find approximations for the values of x and y when t = 0.5.

5-6-4-ib-ai-hl-eulers-method-coupled-we-solution

You've read 0 of your 5 free revision notes this week

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Roger B

Author: Roger B

Expertise: Maths Content Creator

Roger's teaching experience stretches all the way back to 1992, and in that time he has taught students at all levels between Year 7 and university undergraduate. Having conducted and published postgraduate research into the mathematical theory behind quantum computing, he is more than confident in dealing with mathematics at any level the exam boards might throw at you.

Dan Finlay

Reviewer: Dan Finlay

Expertise: Maths Subject Lead

Dan graduated from the University of Oxford with a First class degree in mathematics. As well as teaching maths for over 8 years, Dan has marked a range of exams for Edexcel, tutored students and taught A Level Accounting. Dan has a keen interest in statistics and probability and their real-life applications.