---
title: "Direction Fields and Euler's Method"
description: "A direction field records the slopes prescribed by a first-order equation. Evaluate a local slope to describe a solution's direction. Euler's method approximates solution values by repeated updates."
canonical: https://lightmysky.com/learn/mathematics/direction-fields-and-eulers-method-mt_Ak-TZOX3GR
source: https://lightmysky.com/learn/mathematics/direction-fields-and-eulers-method-mt_Ak-TZOX3GR.md
retrieved: 2026-11-12
---

> **Agent view.** This is the Markdown twin of the page, for tools and assistants.
> When to use this site, and the call that answers each job: https://lightmysky.com/agent-instructions.md
> API description (OpenAPI 3.1): https://lightmysky.com/openapi.json · Authentication: https://lightmysky.com/auth.md
> Pricing: https://lightmysky.com/pricing.md · Catalog: https://lightmysky.com/llms.txt · Full catalog: https://lightmysky.com/llms-full.txt
> Every machine-readable file on this domain: https://lightmysky.com/.well-known/ai-catalog.json
> Ask for Markdown with `Accept: text/markdown`, a `.md` address, or `?mode=agent`.

# Direction Fields and Euler's Method

A direction field records the slopes prescribed by a first-order equation. Evaluate a local slope to describe a solution's direction. Euler's method approximates solution values by repeated updates.

Subject: Mathematics · Area: Differential Equations · Ages 19 to 20
Page: https://lightmysky.com/learn/mathematics/direction-fields-and-eulers-method-mt_Ak-TZOX3GR

## Ready when they can

- Interpret prescribed slopes at points and explain why one horizontal field segment need not give a constant solution
- Take several Euler steps by hand and tabulate the result
- Explain Euler's possible drift and its approximate error reduction when sufficiently small steps are halved under suitable smoothness assumptions

## Lesson: Slope maps and walking the field

You have checked functions against differential equations. For y'=f(x,y), a direction field assigns slope f(x,y) to each point. A solution has that tangent slope. For y'=x-y at (3,1), the slope is 3-1=2, so the solution rises as x increases. Positive slopes rise, negative slopes fall, and zero slopes are horizontal. A constant y=k is a solution only if f(x,k)=0 throughout the interval; one horizontal segment is not enough.

Euler's method starts at (x0,y0); subscripts count steps. With h>0, use x next=x+h and y next=y+h f(x,y). Calculate the slope at the current point before updating either coordinate. Repeat from the new approximate point, using its approximate y in f. Each step keeps its starting slope fixed, so its segment is straight. The method can produce a table even when no exact formula is available.

**Example.** Use y'=x+1, y(0)=2 and h=0.5. At (0,2), the slope is 1. The next point is (0.5, 2+0.5 times 1)=(0.5,2.5). At this new point, the slope is 1.5. The next point is (1, 2.5+0.5 times 1.5)=(1,3.25). Each x-value advances by h. Each y-update uses the slope at the point it leaves.

*(drawing: These are successive table entries, not a direction-field graph.)*

For a smooth equation and solution on a fixed interval, Euler's global error is bounded by a constant times h when h is sufficiently small. If a nonzero leading error term proportional to h dominates, halving h roughly halves the endpoint error. This is not an exact rule for every equation or step size. Halving h doubles the number of steps over the same interval.

Holding the starting slope can introduce error when the exact slope changes during a step. Later approximate points can affect later slopes. If the exact slope increases throughout a step, the first Euler step from the exact starting point underestimates the endpoint value. Drift is not inevitable: for constant y'=c, Euler gives exact values of y=y0+c(x-x0), apart from arithmetic rounding.

**Recap.** A field guides a sketch using local slopes. Euler updates x and y from the current point. Small steps can reduce error; constant-slope solutions can be exact.

*Lesson, practice questions and flashcards written for this dataset.*

## Practice

13 questions on this page, each with its working shown.

## Needs first

- [What a Differential Equation Says and What a Solution Is](https://lightmysky.com/learn/mathematics/what-a-differential-equation-says-and-what-a-solution-is-mt_tHlHg2nK3o)

## Optional connections

- [The Newton-Raphson Method](https://lightmysky.com/learn/mathematics/the-newton-raphson-method-mt_jkjJre5ETd)

## Opens up

- [The Wave Equation and Its Characteristics](https://lightmysky.com/learn/mathematics/the-wave-equation-and-its-characteristics-mt_-_QCiBWg1w)
- [Numerical Schemes for Evolution Equations](https://lightmysky.com/learn/mathematics/numerical-schemes-for-evolution-equations-mt_RuDbOapexB)
- [Phase Portraits, Equilibria and Stability](https://lightmysky.com/learn/mathematics/phase-portraits-equilibria-and-stability-mt_ULuZk4lmGr)
