Direction Fields and Solution Curves

Read slopes from an equation before attempting an exact solution.

Builds on Initial Values, Existence and Uniqueness

The bigger question: What can a rate law tell us before we solve it?

On this page

The idea

A direction field places a short segment of slope f(t,y)f(t,y) at each sample point. A solution curve stays tangent to those segments. The field can reveal growth, decay and equilibria without an explicit solution formula. It shows local directions, not equal travel speeds along different segments.

Visual guide

VISUAL GUIDEThe curve stays tangent to the direction field
For y′ = −y, slopes repeat along each horizontal level. Above zero they point downward; below zero they point upward. The blue solution from y(0) = 2 follows those directions and approaches the equilibrium without crossing it. Arrow lengths are normalized to emphasize slopes.0-1.50.75-0.51.50.52.251.532.5ty
  • Solution y = 2e⁻ᵗ
For y′ = −y, slopes repeat along each horizontal level. Above zero they point downward; below zero they point upward. The blue solution from y(0) = 2 follows those directions and approaches the equilibrium without crossing it. Arrow lengths are normalized to emphasize slopes.

Method and assumptions

Evaluate ff on a grid, draw segments with those slopes, and trace from the initial point. Isoclines satisfy f(t,y)=cf(t,y)=c and group equal slopes. For an autonomous equation y′=f(y)y'=f(y), slopes repeat along horizontal lines. Zeros of ff give equilibrium levels.

Worked example: exponential decay

For y′=−yy'=-y, positive solutions slope downward and negative solutions upward. The line y=0y=0 is an equilibrium. The solution through (0,2)(0,2) is 2e−t2e^{-t} and approaches zero without crossing it.

PAUSE & THINKA quick check, not a grade

Try it yourself.

Choose an answer and explain your reasoning to yourself. Use a hint if you get stuck.

For y′=t−y, what slope belongs at (t,y)=(1,3)?

Hint 1 · Find a starting point

A direction field evaluates the right-hand side at a point.

Hint 2 · Take the next step

Substitute t=1 and y=3.

Show the reasoning

Answer: −2

1−3=−2, so a solution passing through that point slopes downward.

Before moving on: what would make one of the other answers wrong? Saying why is part of understanding.

Worked example: a moving zero-slope line

For y′=t−yy'=t-y, the line y=ty=t has horizontal direction segments. It is not a solution: the function y=ty=t has derivative 11, not zero. Solving gives y=t−1+Ce−ty=t-1+Ce^{-t}, whose slope changes according to its position relative to the isocline.

Interpreting the result

Under uniqueness, distinct solution curves cannot cross at the same (t,y)(t,y). A coarse slope field can hide rapid changes; numerical traces need a step-size check as well as a visually plausible curve.

Explore

Exact decay versus Euler steps

Try this. Keep the decay rate at 1 and compare 4, 8 and 16 steps. Then use rate 3 with one step: the numerical result fails to follow exact decay. Refine the steps to recover the shape.

Exact decay versus Euler steps00.5100.511.52ty
y′ = −1y, y(0) = 1. At t = 2: exact 0.135, Euler 0.063, signed error -0.073. Step h = 0.5; update factor = 0.5. Euler is in its decay stability range. Green: exact; orange: Euler; gray: slope field. Vertical scale adjusts to include the approximation.

This explorer compares Euler steps with the exact solution of y′=−kyy'=-ky on 0≤t≤20\le t\le2. Change the decay rate, starting value or step count and compare error with the stability factor.

Practice

  1. Where are the slopes zero for y′=1−y2y'=1-y^2?
  2. What is the slope at (2,3)(2,3) for y′=t−yy'=t-y?
  3. Can a positive solution of y′=−yy'=-y cross zero?
Show worked solutions
  1. At the equilibrium levels y=1y=1 and y=−1y=-1.
  2. 2−3=−12-3=-1.
  3. No. Its exact form is positive, and uniqueness prevents crossing the zero solution.

Further study

MIT OpenCourseWare: Differential Equations provides a full university course with additional lectures and exercises.

MAKE IT YOURS

Pause before the next idea.

Can you explain how the visualization connects to this lesson’s goal? If a step still feels uncertain, put this lesson on your review list and try the check again another day.

Optional marks, not a grade. Saved in this browser only. Open notebook →