5.16 Euler's methodIB Maths: Applications and Interpretation HL: Revision notes
Section 1
What Euler's method does
Many differential equations have no neat formula for the solution. Euler's method builds a numerical approximation instead. We are given a first-order equation and a starting point , called the initial condition. At any point the equation gives the gradient of the solution curve, so we follow the tangent for a short horizontal distance , called the step length, then recalculate the gradient and repeat. The result is a list of points that approximate the true curve, joined by short straight segments.
The gradient used at each step is the gradient at the START of that step, not the end.
Section 2
The formulae and a worked example
For with and step length : Example: , , .
- at .
- at .
- at . So . The true value is (3 s.f.), so the estimate is close but not exact.
Leaving out the step length: the new value is , not .
Using the new in . Each step uses the values at the start of the step, and .
Section 3
Using a spreadsheet or GDC
Repeated steps are slow by hand, so in examinations the values are generated using permissible technology. In a spreadsheet, put and in the first row. In the next row type the recurrences, for example =A2+0.1 for and =B2+0.1*(A2+B2) for , then fill down. Most GDCs can do the same with a recursive sequence or table mode. Keep full precision in the calculator and round only the final answer to 3 significant figures, unless the question says otherwise. A spreadsheet is also the quickest way to answer 'when does first exceed...?' questions: read down the column.
State the recurrence you entered. Method marks are for the formula, even if the calculator does the arithmetic.
Section 4
Accuracy and step length
Each step replaces a curve by a tangent, so a small error is made, and errors build up over many steps. Using a smaller step length gives a more accurate estimate but needs more steps. Halving roughly halves the final error. If the true solution is concave up (gradient increasing), the tangent lies below the curve and Euler's method underestimates. If it is concave down, Euler's method overestimates. In the example above the gradient increases, so .
Saying a smaller step length makes Euler's method exact. It only makes it more accurate.
Section 5
Coupled systems
Two quantities that depend on each other, both changing with time, give a coupled system: and . Euler's method now steps , and together: Both new values use the OLD and . Example: , , , , . Then and . Next and .
Updating first and then using the new to update . Both updates must use the old values.
Section 6
Predator-prey models
A common coupled model has prey and predators : The term is prey growth with plenty of food, is prey lost to predators (it needs both to meet), is predator growth from eating prey, and is predator deaths. The populations are constant when both rates are zero: and (the non-zero equilibrium). Example: , with , : the rates are and , so with we get , . Euler's method on a spreadsheet then shows both populations rising and falling in cycles, with the predators peaking after the prey.
Interpret in context: say 'foxes are increasing by 3 per month', not just 'dy/dt = 3'.
That's the notes covered.
Carry on to the next subtopic.
Exam questions on 5.16 Euler's method
- A function satisfies , with when . Euler's method with step length is used to approximate .Find the approximation to when .2 marks
- The temperature C of a cup of tea, minutes after it is poured, satisfies , and when . Euler's method with step length minutes is used to estimate .Continue the method to estimate when .2 marks
- The number of fish in a lake, years after the lake is stocked, is modelled by , with when . Euler's method with step length year is used. A GDC or spreadsheet may be used.Use Euler's method to estimate the number of fish after 1 year and after 2 years.3 marks
Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).