A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Euler's Method for Numerical Solutions

College Depth 103 in the knowledge graph ☐ I know this ☆ Set as goal
33topics build on this
639prerequisites beneath it
See this on the map →
Introduction to Differential EquationsLinear Approximation→→Euler's Method for ODEs (Error Analysis)Linearization of Nonlinear Systems
numerical approximation computational

Core Idea

Euler's method approximates solutions to initial value problems y' = f(x,y), y(x₀) = y₀ by stepping forward: y_{n+1} ≈ y_n + h·f(x_n, y_n). Though simple and first-order accurate, it provides intuition for numerical ODE solving and forms the basis for more sophisticated methods.

How It's Best Learned

Implement Euler's method by hand for a few steps on a simple problem (like y' = y), then compare with the exact solution to see accumulated error. Explore how step size h affects accuracy.

Common Misconceptions

Explainer

From linear approximation, you know that near any point (x₀, y₀) on a differentiable curve, the tangent line is a good local approximation: y ≈ y₀ + y'(x₀) · (x − x₀). Euler's method is simply this idea applied repeatedly to trace out an approximate solution to a differential equation. You have an initial value problem: y' = f(x, y) with y(x₀) = y₀. You don't know the solution curve, but you know its *slope at every point* (that's what the ODE gives you: the slope at (x, y) is f(x, y)). So you take a small step along the tangent line, arrive at an approximate new point, recompute the slope there, take another small step, and continue.

The update rule is y_{n+1} = y_n + h · f(x_n, y_n), where h is the step size. At each step, you're walking along the current tangent line for a horizontal distance h. The new x-coordinate is x_{n+1} = x_n + h, and the new y-coordinate uses the current slope f(x_n, y_n) multiplied by the step size. This is exactly the linear approximation formula with h playing the role of Δx. To apply it: start at (x₀, y₀), compute the slope f(x₀, y₀), step to (x₁, y₁) = (x₀ + h, y₀ + h · f(x₀, y₀)), then repeat.

The approximation accumulates error for two reasons. First, local truncation error: each step drifts from the true curve because the slope changes between x_n and x_{n+1}, but you use only the slope at x_n. This error is proportional to h² per step. Second, global error: you take 1/h steps to reach a fixed endpoint, so errors accumulate, giving a total global error proportional to h. Halving the step size roughly halves the total error — hence "first-order accurate." More sophisticated methods like Runge-Kutta use multiple slope estimates per step to achieve much better accuracy for the same computational cost.

The intuition for when Euler's method works well versus poorly is essential. It works well when the solution is nearly linear locally (the derivative of y' is small) and the step size is small relative to how quickly the slope changes. It fails badly when the solution curves sharply or when the ODE is stiff (has components that vary on very different time scales). The most instructive example is y' = y with y(0) = 1: the exact solution is eˣ. Euler's method gives y_{n+1} = y_n + h · y_n = y_n(1 + h), so after n steps, yₙ = (1 + h)n. With x = nh fixed and h → 0, this approaches ex — exactly recovering the exponential, which is a reassuring confirmation that the method is consistent with the exact solution in the limit.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Angle Pairs: Complementary, Supplementary, and Vertical → Parallel Lines and Transversals → Corresponding Angles → Alternate Interior Angles → Triangle Angle Sum Theorem → Exterior Angle Theorem → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Indefinite Integrals → Basic Integration Rules → Riemann Sums → Definite Integral Definition → Double Integrals: Definition and Setup → Iterated Integrals and Fubini's Theorem → Double Integrals over Rectangular Regions → Double Integrals over General Regions → Applications of Double Integrals: Area, Mass, and Moments → Center of Mass → Conservation of Linear Momentum → Elastic Collisions → Inelastic Collisions → Coefficient of Restitution → Collision Analysis and Real-World Applications → Two-Body Collisions in the Center-of-Mass Frame → Reduced Mass and Two-Body Problems → Kinematics in Two Dimensions → Projectile Motion → Circular Motion: Kinematics → Simple Harmonic Motion → Introduction to Differential Equations → Euler's Method for Numerical Solutions

Longest path: 104 steps · 639 total prerequisite topics

Prerequisites (2)

Leads To (2)