Skip to content
🎯⭐ INTERACTIVE LESSON

Euler Method

Learn step-by-step with interactive practice!

Euler Method - Complete Interactive Lesson

Part 1: Core Concepts

Euler's Method — Foundations

Part 1 of 7 — Numerical Approximation of Differential Equations

Why Euler's Method?

Many differential equations cannot be solved analytically. Euler's method gives a numerical approximation of the solution using tangent-line steps.

The Core Idea

Given dydx=f(x,y)\frac{dy}{dx} = f(x, y) with initial condition (x0,y0)(x_0, y_0):

yn+1=yn+f(xn,yn)⋅Δx\boxed{y_{n+1} = y_n + f(x_n, y_n) \cdot \Delta x}

Each step:

  1. Evaluate the slope at the current point: m=f(xn,yn)m = f(x_n, y_n)
  2. Step forward: xn+1=xn+Δxx_{n+1} = x_n + \Delta x
  3. Update yy: yn+1=yn+m⋅Δxy_{n+1} = y_n + m \cdot \Delta x

Visual Interpretation

You're walking along tangent lines, taking small steps. Each step uses the slope at the current point — NOT the slope at the destination.

Stepxnx_nyny_nf(xn,yn)f(x_n, y_n)Δy=f⋅Δx\Delta y = f \cdot \Delta xyn+1y_{n+1}
0x0x_0y0y_0f(x0,y0)f(x_0, y_0)——
1x0+Δxx_0 + \Delta xy0+f⋅Δxy_0 + f \cdot \Delta x.........

Key Fact: Euler's method is a first-order method — the error per step is proportional to (Δx)2(\Delta x)^2, and the global error is proportional to Δx\Delta x.

Worked Example

dydx=x+y\frac{dy}{dx} = x + y, y(0)=1y(0) = 1, Δx=0.1\Delta x = 0.1. Approximate y(0.3)y(0.3).

Stepxnx_nyny_nf=xn+ynf = x_n + y_nΔy\Delta yyn+1y_{n+1}
0→10110.11.1
1→20.11.11.20.121.22
2→30.21.221.420.1421.362

y(0.3)≈1.362\boxed{y(0.3) \approx 1.362}

Step Size Matters

Δx\Delta xApproximation of y(1)y(1)Actual = 2e−1≈4.4372e - 1 \approx 4.437
0.53.5Error ≈ 21%
0.14.187Error ≈ 5.6%
0.014.411Error ≈ 0.6%

Smaller step size → better approximation (but more computation).

Euler's Method Basics

Step-by-Step Practice

Compute

Summary

  • Euler's method: yn+1=yn+f(xn,yn)⋅Δxy_{n+1} = y_n + f(x_n, y_n) \cdot \Delta x
  • Uses tangent-line approximation at each step
  • Smaller Δx\Delta x → better accuracy but more steps
  • First-order method: global error ∝Δx\propto \Delta x

Next: Part 2 — Multi-Step Computations and Table Problems.

Part 2: Worked Examples

Multi-Step Computations

Part 2 of 7 — Table Problems and Extended Calculations

AP Table Format

The AP exam often presents Euler's method as a table to fill in:

nnxnx_nyny_ndy/dx=f(xn,yn)dy/dx = f(x_n, y_n)Δy=f⋅Δx\Delta y = f \cdot \Delta x
0givengivencomputecompute
1updateupdatecomputecompute
...............

Systematic Approach

For dydx=2x−y\frac{dy}{dx} = 2x - y, y(0)=1y(0) = 1, Δx=0.2\Delta x = 0.2, approximate y(0.6)y(0.6):

nnxnx_nyny_nf=2xn−ynf = 2x_n - y_nΔy\Delta yyn+1y_{n+1}
001−1-1−0.2-0.20.8
10.20.8−0.4-0.4−0.08-0.080.72
20.40.720.080.080.0160.0160.736

y(0.6)≈0.736\boxed{y(0.6) \approx 0.736}

AP Tip: On FRQs, show ALL columns of the table. Partial credit is available for correct intermediate steps even if the final answer is wrong.

Nonlinear ODE Example

dydx=y2−x\frac{dy}{dx} = y^2 - x, y(1)=0y(1) = 0, Δx=0.25\Delta x = 0.25. Approximate y(1.75)y(1.75).

nnxnx_nyny_nf=yn2−xnf = y_n^2 - x_nΔy\Delta yyn+1y_{n+1}
010−1-1−0.25-0.25−0.25-0.25
11.25−0.25-0.25−1.1875-1.1875−0.2969-0.2969−0.5469-0.5469
21.5−0.5469-0.5469−1.2011-1.2011−0.3003-0.3003−0.8472-0.8472

y(1.75)≈−0.847\boxed{y(1.75) \approx -0.847}

Common Mistakes

MistakeHow to avoid
Using xn+1x_{n+1} for slopeAlways use the LEFT point (xn,yn)(x_n, y_n)
Forgetting to update yyyn+1=yn+Δyy_{n+1} = y_n + \Delta y, not y0+∑Δyy_0 + \sum \Delta y
Rounding too earlyKeep 3–4 decimal places throughout
Wrong sign on Δy\Delta yΔy\Delta y can be negative (slope is negative)

Multi-Step Practice

Table Completion

dy/dx=1+ydy/dx = 1 + y, y(0)=0y(0) = 0, Δx=0.5\Delta x = 0.5

Compute

Summary

  • Organize multi-step computations in a table
  • Always compute slope at the CURRENT point
  • Keep sufficient decimal precision
  • Show all work on FRQs for partial credit

Next: Part 3 — Over- and Under-Estimates.

Part 3: Problem-Solving Patterns

Over- and Under-Estimates

Part 3 of 7 — Concavity Determines Error Direction

The Key Principle

Concave up⇒Euler underestimates\boxed{\text{Concave up} \Rightarrow \text{Euler underestimates}} Concave down⇒Euler overestimates\boxed{\text{Concave down} \Rightarrow \text{Euler overestimates}}

Why?

Euler's method follows the tangent line. If the curve is:

  • Concave up (y′′>0y'' > 0): the curve bends ABOVE the tangent → tangent-line values are too LOW
  • Concave down (y′′<0y'' < 0): the curve bends BELOW the tangent → tangent-line values are too HIGH

How to Determine Concavity

Given dy/dx=f(x,y)dy/dx = f(x, y), find d2y/dx2d^2y/dx^2 using the chain rule:

d2ydx2=∂f∂x+∂f∂y⋅f(x,y)\frac{d^2y}{dx^2} = \frac{\partial f}{\partial x} + \frac{\partial f}{\partial y} \cdot f(x, y)

Or more simply: differentiate f(x,y)f(x,y) implicitly with respect to xx.

If d2y/dx2d^2y/dx^2And solution is increasingThen Euler...
>0> 0 (concave up)—Underestimates
<0< 0 (concave down)—Overestimates

AP Tip: The AP exam frequently asks "Is your Euler approximation an overestimate or underestimate? Justify." You MUST explain using concavity.

Example 1

dy/dx=ydy/dx = y, y(0)=1y(0) = 1. Is Euler's method an overestimate or underestimate on [0,1][0, 1]?

Solution: y=exy = e^x, so y′′=ex>0y'' = e^x > 0. Concave up → underestimate.

Verification: With Δx=1\Delta x = 1, Euler gives y(1)=1+1(1)=2y(1) = 1 + 1(1) = 2. Actual: e≈2.718e \approx 2.718. Indeed 2<2.7182 < 2.718. ✓

Example 2

dy/dx=−ydy/dx = -y, y(0)=1y(0) = 1. Is Euler's method an overestimate or underestimate on [0,1][0, 1]?

Solution: y=e−xy = e^{-x}, so y′′=e−x>0y'' = e^{-x} > 0. Concave up → underestimate.

But wait — the function is DECREASING. "Underestimate" means Euler's values are BELOW the actual curve.

With Δx=1\Delta x = 1: Euler gives y(1)=1+(−1)(1)=0y(1) = 1 + (-1)(1) = 0. Actual: e−1≈0.368e^{-1} \approx 0.368. Indeed 0<0.3680 < 0.368. ✓

Key Insight

"Overestimate/underestimate" refers to the yy-values, not the behavior. A decreasing, concave-up function is still underestimated by Euler.

Over/Under Practice

Concavity Analysis

Analyze

Summary

  • Concave up (y′′>0y'' > 0) → Euler underestimates
  • Concave down (y′′<0y'' < 0) → Euler overestimates
  • Find y′′y'' by differentiating f(x,y)f(x,y) with respect to xx
  • AP FRQs require concavity justification, not just the answer

Next: Part 4 — Euler's Method with Slope Fields.

Part 4: Graphs and Interpretation

Euler's Method with Slope Fields

Part 4 of 7 — Connecting Graphical and Numerical

Slope Fields + Euler's Method

A slope field shows the direction field of dy/dx=f(x,y)dy/dx = f(x,y). Euler's method FOLLOWS these slopes:

  1. Start at the initial point
  2. Follow the slope segment for distance Δx\Delta x
  3. Arrive at a new point — read the NEW slope there
  4. Repeat

Reading Slope Fields for Euler Steps

Slope field featureWhat it tells you about Euler
Slopes getting steeperyy values accelerate
Slopes are horizontal (f=0f = 0)yy doesn't change at that step
Slopes change signSolution has a local extremum
Slopes are constant along horizontalsff depends only on yy
Slopes are constant along verticalsff depends only on xx

AP Exam Connection

The AP exam may show a slope field and ask you to:

  • Sketch the Euler approximation (draw tangent segments)
  • Determine if Euler over/underestimates by comparing to the slope field
  • Use the slope field to check if your numerical answer is reasonable

Key Fact: Euler's method traces a piecewise-linear path through the slope field. The true solution is the smooth curve that is tangent to every slope segment it passes through.

Isoclines and Euler

An isocline is a curve where f(x,y)=cf(x,y) = c (constant slope). Isoclines help predict Euler behavior:

ScenarioEuler behavior
Initial point on isocline f=0f = 0First step is horizontal
Euler step crosses an isoclineSlope changes at next step
Solution stays near an isoclineEuler stays roughly parallel

Example: Autonomous Equations

For dy/dx=y(2−y)dy/dx = y(2-y):

  • Isocline f=0f = 0: y=0y = 0 or y=2y = 2 (equilibria)
  • If 0<y<20 < y < 2: slopes are positive → solution increases
  • If y>2y > 2: slopes are negative → solution decreases

Euler starting at y(0)=1y(0) = 1:

  • f(0,1)=1(1)=1f(0, 1) = 1(1) = 1: slope = 1, step moves up
  • Solution approaches y=2y = 2 (stable equilibrium)

Equilibrium Behavior

Euler’s method approaches stable equilibria, just like exact solutions\boxed{\text{Euler's method approaches stable equilibria, just like exact solutions}}

But it may oscillate around unstable equilibria if Δx\Delta x is too large.

Slope Field + Euler Integration

Slope Field Analysis

dy/dx=x−ydy/dx = x - y slope field analysis:

Equilibrium

Summary

  • Euler's method traces a piecewise-linear path through the slope field
  • Isoclines (constant-slope curves) help predict behavior
  • Equilibria occur where f(x,y)=0f(x,y) = 0
  • Compare Euler's path to the slope field for reasonableness

Next: Part 5 — AP Exam Strategies.

Part 5: Applications

AP Exam Strategies — Euler's Method

Part 5 of 7 — Maximizing FRQ Points

How Euler's Method Appears on the AP Exam

FormatFrequencyWhat they ask
FRQ part (b) or (c)Very common"Use Euler's method with 2 steps to approximate y(1)y(1)"
MCOccasional"Which value is the Euler approximation?"
Slope field + EulerCommon"Is your approximation an over/underestimate?"

FRQ Point-Earning Template

Step 1: State the formula yn+1=yn+f(xn,yn)⋅Δxy_{n+1} = y_n + f(x_n, y_n) \cdot \Delta x

Step 2: Compute Δx\Delta x Δx=xtarget−x0number of steps\Delta x = \frac{x_{\text{target}} - x_0}{\text{number of steps}}

Step 3: Build the table (show ALL intermediate values)

Step 4: Box your final answer

Step 5: If asked, justify over/underestimate using concavity

AP Tip: Even with a wrong ff formula (from a previous part), you can earn Euler points for correct METHOD. Always show your process.

Common Point-Losing Mistakes

MistakePoints lostHow to avoid
Using slope at wrong point1–2Always use (xn,yn)(x_n, y_n), not (xn+1,yn+1)(x_{n+1}, y_{n+1})
Wrong Δx\Delta xAllRead carefully: "two steps from x=0x = 0 to x=1x = 1" → Δx=0.5\Delta x = 0.5
Not showing intermediate steps1Write out each step, don't skip to final
Arithmetic error1Check: does the sign of Δy\Delta y match the slope?
No justification for over/under1Must cite y′′>0y'' > 0 or y′′<0y'' < 0

The "Separation of Variables + Euler" Combo

A classic FRQ structure:

  • Part (a): Sketch solution on slope field
  • Part (b): Find exact solution by separation of variables
  • Part (c): Use Euler's method to approximate
  • Part (d): Is the Euler approximation an over/underestimate? Justify.

Parts (b)–(d) are often independent — you can earn points on (c) and (d) even if you miss (b).

AP-Style Questions

FRQ Setup

dy/dx=x2+ydy/dx = x^2 + y, y(0)=−1y(0) = -1. Approximate y(0.4)y(0.4) with 2 equal steps.

Quick Compute

Summary

  • Always show your table on FRQs
  • Compute Δx\Delta x correctly from the problem setup
  • Justify over/underestimate with concavity (y′′y'')
  • Euler parts are often independent of other FRQ parts — always attempt

Next: Part 6 — Problem-Solving Workshop.

Part 6: Exam Strategy

Problem-Solving Workshop

Part 6 of 7 — Mixed Euler Practice

Work through these problems applying the complete Euler toolkit.

Workshop Set A

Three-Step Problem

dy/dx=x+2ydy/dx = x + 2y, y(0)=0.5y(0) = 0.5, Δx=0.1\Delta x = 0.1. Find y(0.3)y(0.3).

Over/Under Estimate

Workshop Complete

  • Practice building Euler tables from scratch
  • Always verify your slope uses the correct point
  • Check: does Δy\Delta y sign match the slope sign?

Next: Part 7 — Comprehensive Review.

Part 7: Mixed Review

Comprehensive Review — Euler's Method

Part 7 of 7 — Final Assessment

Complete Euler Toolkit

ConceptKey Formula/Idea
Update ruleyn+1=yn+f(xn,yn)⋅Δxy_{n+1} = y_n + f(x_n, y_n) \cdot \Delta x
Step sizeΔx=(xtarget−x0)/n\Delta x = (x_{\text{target}} - x_0)/n
Overestimatey′′<0y'' < 0 (concave down)
Underestimatey′′>0y'' > 0 (concave up)
AccuracySmaller Δx\Delta x → better approximation
Slope fieldsEuler traces piecewise-linear path along slopes

yn+1=yn+f(xn,yn)⋅Δx\boxed{y_{n+1} = y_n + f(x_n, y_n) \cdot \Delta x}

Review Set A

Review Set B — Conceptual

Complete This Euler Table

dy/dx=1−y/xdy/dx = 1 - y/x, y(1)=2y(1) = 2, Δx=0.5\Delta x = 0.5

Final Challenge

Euler's Method — Complete

You've mastered:

  • The Euler update formula and table-based computation
  • Multi-step approximations
  • Over/underestimate analysis via concavity
  • Connection to slope fields and equilibria
  • AP FRQ strategies and point-earning techniques

yn+1=yn+f(xn,yn)⋅Δx∣Concave up⇒under∣Concave down⇒over\boxed{y_{n+1} = y_n + f(x_n, y_n) \cdot \Delta x \quad | \quad \text{Concave up} \Rightarrow \text{under} \quad | \quad \text{Concave down} \Rightarrow \text{over}}