Euler's Method for Numerical Solutions

College Depth 84 in the knowledge graph I know this Set as goal
Unlocks 26 downstream topics
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 e^x — 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

Counting to 10Counting to 20Understanding ZeroThe Number ZeroCounting to FiveOne-to-One CorrespondenceCombining Small Groups Within 5Addition Within 10Addition Within 20Two-Digit Addition Without RegroupingTwo-Digit Addition with RegroupingAddition Within 100Repeated Addition as MultiplicationMultiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Two-Digit by One-Digit DivisionDivision with RemaindersRemainders and Quotients in DivisionDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueReading and Writing DecimalsComparing and Ordering DecimalsAdding and Subtracting DecimalsMultiplying DecimalsDividing DecimalsDividing FractionsMixed Number ArithmeticOrder of OperationsInteger Order of OperationsVariable ExpressionsCombining Like TermsOne-Step EquationsTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesAngle Pairs: Complementary, Supplementary, and VerticalParallel Lines and TransversalsCorresponding AnglesAlternate Interior AnglesTriangle Angle Sum TheoremExterior Angle TheoremTriangle Inequality TheoremSimilar Triangles: AA SimilaritySimilar Triangles: SSS and SAS SimilarityProportions in Similar TrianglesRight Triangle Trigonometry IntroductionTrigonometric Ratios ReviewRadian MeasureConverting Between Degrees and RadiansThe Unit CircleGraphing Sine and CosineGraphing Tangent and Reciprocal Trigonometric FunctionsDerivatives of Trigonometric FunctionsAntiderivativesIndefinite IntegralsBasic Integration RulesRiemann SumsDefinite Integral DefinitionFundamental Theorem of Calculus Part 1Fundamental Theorem of Calculus Part 2U-SubstitutionIntegration by PartsSeparable Differential EquationsIntegrating Factor Method for First-Order Linear ODEsFirst-Order Linear Ordinary Differential EquationsSecond-Order Linear Homogeneous Differential EquationsCharacteristic Equation Method for Linear ODEsComplex Roots and Oscillatory SolutionsSpring-Mass Systems and Mechanical VibrationsResonance and Damping in Forced VibrationsRLC Circuit Applications of Differential EquationsIntroduction to Differential EquationsEuler's Method for Numerical Solutions

Longest path: 85 steps · 347 total prerequisite topics

Prerequisites (2)

Leads To (2)