DP IB Maths: AI HL

Revision Notes

5.6.4 Approximate Solutions to Differential Equations

Test Yourself

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 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 and x subscript n plus 1 end subscript equals x subscript n plus h from the exam formula booklet
    • 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

Exam Tip

  • Be careful with letters – in the equations in the exam, 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!

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 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 parenthesesy 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 and t subscript n plus 1 end subscript equals t subscript n plus h from the exam formula booklet
    • 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

Exam Tip

  • Be careful with letters – in the equations in the exam, 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!

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 0 free revision notes

Get unlimited access

to absolutely everything:

  • Downloadable PDFs
  • Unlimited Revision Notes
  • Topic Questions
  • Past Papers
  • Model Answers
  • Videos (Maths and Science)

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

the (exam) results speak for themselves:

Did this page help you?

Roger

Author: Roger

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.