What you are looking at
A differential equation gives the gradient of the solution curve at every point without giving the curve itself. The slope field draws a short segment with that gradient at each point of a grid spaced apart. Every solution curve runs along the segments, so the field shows the shape of the whole family of solutions at once; the green starting point picks out one of them.
Euler's method replaces the curve with straight steps. From it moves a distance to the right along the gradient at that point: and . Because the gradient is only updated at the start of each step, the yellow Euler path drifts away from the exact solution, drawn in blue. The working shows the first step, the point reached after steps and the error there.
Try this
- 1With the default , , and , Euler's method reaches at , while the exact solution gives .
- 2Halve the step to and double to so that you still finish at . The error falls from about to about : smaller steps follow the curve more closely, but the error does not vanish.
- 3Press Play: goes back to and one step is added at a time until the path reaches the right-hand edge. Watch whether each new point lands above or below the blue curve.
- 4Choose and drag the green point to different starting heights. Every exact solution, , approaches the line , and the Euler path is drawn towards it too.
Mistakes students make
- Using the wrong gradient in a step. Euler's method uses , the gradient at the point you are leaving, not at the new point and not at the new with the old .
- Expecting Euler's method to be exact. Each step follows a tangent, so it tends to fall below a solution that curves upwards (as for from ) and to overshoot one that curves downwards.
- Swapping and when working out a segment. For at the point the gradient is , not .
Where it is taught
- IB Maths AA HL 5.18 · Slope fields and Euler's method
- AP Calculus AB/BC Unit 7 · Sketching and reasoning with slope fields (7.3, 7.4)
- AP Calculus BC Unit 7 · Approximating solutions with Euler's method (7.5)
Teaching this?
Put this visualiser on your lesson board with one tap. Your student sees every drag, live, on their own screen — and Owlileo marks the homework, runs the tests and keeps the parents informed.
Start free →