Euler's Method notes (AP Calculus BC)

Approximate solutions of differential equations step by step.

The big question

step by step

How can we approximate a solution we cannot solve? Euler's method!

Learn it, step by step

1. Follow the slope

Start at a point. Use the slope there to take a small step, then repeat.

New y equals old y plus step size times slope.

Follow the slope

2. Example

dy over dx equals x plus y, starting at 0, 1, with step 0.1.

Slope at the start is 1. New y is 1 plus 0.1 times 1, which is 1.1.

y₁ = y₀ + h · slope
= 1 + 0.1(1) = 1.1

Example. y₁ = y₀ + h · slope. = 1 + 0.1(1) = 1.1

Watch out: Update the slope

Recompute the slope at each new point. Do not reuse the first slope.

Wrong: same slope every step. Right: new slope each step.

Your turn

Next step: at x equals 0.1 and y equals 1.1, the slope is 1.2. What is y at 0.2?

y = 1.1, slope 1.2, h = 0.1

Answer: 1.22. 1.1 plus 0.1 times 1.2 is 1.22!

Remember

Euler: new y equals old y plus step times slope, repeated.

yₙ₊₁ = yₙ + h·f(xₙ, yₙ)

Watch the Euler's Method lesson and practice · Printable worksheet