DP IB Maths: AA HL

Revision Notes

5.10.1 Numerical Solutions to Differential Equations

Test Yourself

First Order Differential Equations

What is a differential equation?

  • A differential equation is simply an equation that contains derivatives
    • For example fraction numerator straight d y over denominator straight d x end fraction equals 12 x y squared is a differential equation
    • And so is fraction numerator straight d squared x over denominator straight d t squared end fraction minus 5 fraction numerator straight d x over denominator straight d t end fraction plus 7 x equals 5 sin invisible function application t

What is a first order differential equation?

  • A first order differential equation is a differential equation that contains first derivatives but no second (or higher) derivatives
    • For example fraction numerator straight d y over denominator straight d x end fraction equals 12 x y squared is a first order differential equation
    • But fraction numerator straight d squared x over denominator straight d t squared end fraction minus 5 fraction numerator straight d x over denominator straight d t end fraction plus 7 x equals 5 sin invisible function application t is not a first order differential equation, because it contains the second derivative fraction numerator straight d squared x over denominator straight d t squared end fraction

Wait – haven’t I seen first order differential equations before?

  • Yes you have!
    • For example fraction numerator straight d y over denominator straight d x end fraction equals 3 x squared is also a first order differential equation, because it contains a first derivative and no second (or higher) derivatives
    • But for that equation you can just integrate to find the solution y = x3 + c (where c is a constant of integration)
  • In this section of the course you learn how to solve differential equations that can’t just be solved right away by integrating

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

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.