On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Introduction to Calculus · Grade 9-12

Slope Fields

A slope field visualizes a first-order DE dydx=f(x,y) by drawing, at each grid point, a short segment with the slope the DE prescribes there; solution curves are paths tangent to these segments everywhere.

At each point (x,y), draw a segment with slope m=f(x,y) from the DE dydx=f(x,y).

Quick Answer

A slope field visualizes a first-order DE dydx=f(x,y) by drawing, at each grid point, a short segment with the slope the DE prescribes there; solution curves are paths tangent to these segments everywhere. Use it to see how solutions behave, where they rise, level off or run away, without solving the equation, or when it cannot be solved by hand. Compute f(x,y) at grid points, draw a dash with that slope at each, and trace curves that follow the dashes.

Why This Matters

Most differential equations that model real systems have no formula solution, but their slope fields can always be drawn. A slope field shows at a glance where solutions increase, which values they settle toward, such as a population's carrying capacity, and how different starting values lead to different futures. It is also the picture behind Euler's method, the step-by-step approximation that computers use to solve differential equations.

Intuitive Explanation

Picture a field of grass after the wind has passed: every blade leans a certain way. Drop a leaf on the field and let it slide along the blades, and it traces a path. A slope field is that picture for dydx=f(x,y). At each point you draw a short dash whose slope is f(x,y), and a solution curve is a path that is tangent to the dashes everywhere it goes.

Drawing one is pure arithmetic. For dydx=x−y, the dash at (0,0) has slope 0, the dash at (2,0) has slope 2, and the dash at (0,2) has slope −2. Curves of constant slope, called isoclines, speed things up: along the line y=x every dash is flat, and along y=x−1 every dash has slope 1. In fact y=x−1 is itself a solution, because its own slope, 1, matches every dash along it, and other solution curves bend toward it as x grows.

A slope field is not the graph of a function. The dash at (2,0) has slope 2; that does not mean a curve passes through the height 2 there. The value of f is a steepness, not a y-coordinate. Nor is a slope field a formula: it shows the shape of every solution at once, but an exact expression such as y=x−1+Ce−x needs an algebraic method.

Think of it like this. A slope field is a weather map of wind directions: an arrow at every town shows which way the wind blows there, and a balloon released anywhere drifts along a path that follows those arrows. Different launch points give different paths, and for most equations two paths never cross. Unlike wind arrows, slope dashes show direction only, not speed.

Core idea. A slope field draws the slope dydx=f(x,y) as a short segment at each point, so solutions are curves that follow the arrows.


When to Use

Use a slope field when a problem asks you to sketch, match or read a picture of a first-order equation dydx=f(x,y), to describe how solutions behave (rising, levelling off, approaching a line), or to trace the solution through a given point without solving. Find where f=0, the flat dashes, first. If the question wants an exact formula, use separation of variables or another algebraic method. If it wants a numerical value, use Euler's method, which follows the same dashes in small steps.

Tip. Ask: Am I representing a first-order DE as a grid of segments whose slopes the DE assigns at each point?

How to Recognize It

Look at whether you have a picture or an equation, which variables the slope expression contains, and whether the question wants a sketch, a match or a formula.

  1. Does the slope expression contain only x, like dydx=2x?

    Then every column of dashes is parallel, and the solutions are vertical shifts of one antiderivative. If it contains only y, every row is parallel instead, a quick test when matching a field to its equation.

  2. Is there a whole horizontal line of flat dashes?

    Flat dashes all along y=c mean y=c is itself a solution, an equilibrium: for dydt=y(4−y) these are y=0 and y=4. Nearby solutions approach such a line or move away, as the dashes show.

  3. Does the question ask for an exact formula or a numerical value?

    A formula calls for separation of variables. A number, such as y(1) from a starting point, calls for Euler's method, which follows the dashes in small steps. Sketches, matches and long-run descriptions belong to slope fields.

  4. Do the arrows have different lengths that show how strong something is?

    Then it is a vector field, such as wind or water velocity, where length carries magnitude. The dashes of a slope field all have the same short length, because they show direction only.

Slope Fields compared with Separation of variables, Graph of a function, and Vector field

All four rows draw something on the xy-plane, so their pictures can look alike. Ask what each mark encodes: a slope from a differential equation, a point on one known curve, a vector with a length, or, for separation, no picture but a formula.

Slope Fields

Meaning
Use this when you want to visualize or describe the solutions of a first-order DE without solving it algebraically.
Key test
Am I representing a first-order DE as a grid of segments whose slopes the DE assigns at each point?
Formula
At each point (x,y), draw a segment with slope m=f(x,y) from the DE dydx=f(x,y).
Example
For dydx=x+y, what slope segment is drawn at the point (1,2), and along what curve are all segments flat?

Separation of variables

Meaning
An ALGEBRAIC method that produces an exact solution formula; slope fields are graphical.
Key test
Use when the DE factors and you want a closed-form solution.
Formula
∫dyg(y)=∫f(x) dx
Example
exact y(x) formula

Graph of a function

Meaning
Plots one curve y=f(x); a slope field plots SLOPES, and many solution curves thread it.
Key test
Use to display a single known function, not a direction field.
Formula
y=f(x)
Example
a parabola

Vector field

Meaning
Assigns full vectors (direction + magnitude); slope segments encode only slope.
Key test
Use when both direction and length matter (e.g. velocity fields).
Formula
F⃗(x,y)
Example
fluid flow arrows

Formula & Notation

At each point (x,y), draw a segment with slope m=f(x,y) from the DE dydx=f(x,y).
For the ODE dydx=f(x,y), the slope field assigns to each (x0,y0)∈R2 a line segment with slope m=f(x0,y0). A solution y=ϕ(x) satisfies ϕ′(x)=f(x,ϕ(x)), so its graph is tangent to the field at every point.

How to read it: Each line segment at (x0,y0) has slope f(x0,y0). Isoclines are curves where f(x,y)=c (constant slope).

Worked Examples

Example 1 — Read a slope at a point

Easy

For dydx=x+y, what slope segment is drawn at the point (1,2), and along what curve are all segments flat?
Show the steps and the answer
  1. Substitute the point into the equation: f(1,2)=1+2=3.

    The equation's value at a point is the slope of the dash drawn there.

  2. Draw it: a short dash through (1,2) that rises 3 units for every 1 unit across.

    A slope of 3 is steep and upward.

  3. Find the flat dashes: set x+y=0, so y=−x.

    Flat dashes are where the slope is 0, which is the isocline for slope 0.

  4. Check a point on that line: at (2,−2), f=2+(−2)=0.

    Every point of y=−x gives slope 0, so the dashes along it are horizontal.

Answer: Slope 3 at (1,2); horizontal segments lie on y=−x

Takeaway: Plug each point into f(x,y) to get its dash; solving f(x,y)=c gives a whole line of dashes with slope c.

Example 2 — Wants an exact formula

Standard

Solve dydx=x+y exactly with y(0)=1 — does a slope field give the formula?
Show the steps and the answer
  1. Read the request: an exact formula for y with y(0)=1.

    A slope field is a picture; it can show the curve through (0,1) but cannot write its equation.

  2. Substitute v=x+y: then dvdx=1+dydx=1+v.

    This turns the equation into one whose variables separate.

  3. Separate and integrate: ∫dv1+v=∫dx gives ln⁡∣1+v∣=x+k, so 1+v=Aex and y=Aex−x−1.

    Exponentiating undoes the logarithm, and v=x+y converts back to y.

  4. Apply y(0)=1: A−0−1=1, so A=2 and y=2ex−x−1. Check: y′=2ex−1 and x+y=2ex−1.

    The formula satisfies the equation, and at (0,1) its slope is 1, matching the dash drawn there.

Answer: No — a slope field shows the shape, not the formula; solving algebraically gives y=2ex−x−1

Takeaway: Slope fields show behaviour; an exact formula needs an algebraic method, and the field then serves as a check on the answer.

Example 3 — Find the mistake: slope, not height

Application

For dydx=y−x, Lin is asked what to draw at (1,3). She writes: "f(1,3)=2, so I plot a point at (1,2)." Find the mistake and correct it.
Show the steps and the answer
  1. Recompute the value: f(1,3)=3−1=2.

    Lin's arithmetic is right; the error is in what the number means.

  2. Read it as a slope: draw a short dash through (1,3) that rises 2 for every 1 across.

    In a slope field the value of f(x,y) is the steepness at that point, not a y-coordinate, so nothing belongs at (1,2).

  3. Use the dash: the solution through (1,3) reaches about 3+0.1⋅2=3.2 at x=1.1.

    Following a dash for a short step is how a slope field predicts nearby values; the exact solution y=x+1+ex−1 gives about 3.205.

Answer: A dash of slope 2 drawn through (1,3), not a point at (1,2)

Takeaway: The equation's value at a point is the slope of the dash there, and the dash sits at the point itself.

Where You'll See It

  • Seeing every cup of coffee cool

    For dTdt=−0.1(T−20) the dashes are flat along T=20, slope downward above it and upward below it. Without solving anything, the field shows every drink, hot or iced, heading toward room temperature, changing fastest when it is furthest from 20 °C.

  • A fishery's danger level

    A lake's fish obey dPdt=0.5P(1−P1000)−80 with steady harvesting. The dashes are flat at P=200 and P=800. Between them the dashes rise, so the stock grows toward 800; below 200 they fall, and the stock collapses. The field reveals that threshold without a formula.

Common Mistakes

  1. The slip: Using f(x,y) as a height instead of a slope

    Instead: at (x,y) the DE's value IS the segment's slope, not a y-coordinate.

  2. The slip: Drawing solution curves that cross segments

    Instead: solution curves must be tangent to the segments everywhere, following the field.

  3. The slip: Ignoring isoclines

    Instead: segments along an isocline f(x,y)=c all share slope c, a quick way to sketch the field correctly.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. For dydx=x−y, find the slope of the segment drawn at (2,1), at (0,3) and at (1,1).

    Hint: Substitute each point's x and y into x−y.

  2. For dydx=y(2−y), along which horizontal lines are all the segments flat? What is the slope at (0,1)?

    Hint: Flat segments mean dydx=0. The slope here depends only on y.

  3. For dydx=x2, compare the segments at (1,0), (1,3) and (−1,5). What do the solution curves look like?

    Hint: The slope formula has no y in it.

  4. In a slope field, every segment on the line y=x is flat, and the slope at (0,2) is 2. Which equation matches: dydx=y−x, dydx=x−y, or dydx=xy?

    Hint: Test each equation at (0,2) and at a point such as (1,1).

  5. You want to see how the solutions of dydx=sin⁡(xy) behave, and you cannot find a formula for them. Use a slope field or separation of variables?

    Hint: Can sin⁡(xy) be written as a function of x times a function of y?

  6. For dydx=x+2y, a student computes 1+2⋅1=3 at (1,1) and plots the point (1,3). Correct the work.

    Hint: Is the value 3 a height or a steepness?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Why don't solution curves cross each other in a slope field?

At a crossing, two curves would pass through the same point, and the equation assigns only one slope there, so both would leave it heading the same way. For well-behaved equations the solution through a point is unique, so the two curves would have to be the same curve all along. Curves can still squeeze very close together, as they do near an equilibrium line, without ever meeting.

How do computers draw slope fields and trace solutions?

They do what you would do by hand, but on a fine grid: evaluate f(x,y)f(x,y) at each grid point and draw a short segment with that slope. To trace a solution, a program takes tiny steps, ynew=y+f(x,y) Δxy_{\text{new}}=y+f(x,y)\,\Delta x, which is Euler's method; better programs average several slopes in each step. Smaller steps follow the true curve more closely, at the cost of more computing.

Why are the dashes drawn short instead of as long lines?

The slope changes from point to point, so a dash is accurate only very close to where it is drawn. For dydx=xy\frac{dy}{dx}=xy, a long line through (1,1)(1,1) with slope 1 would also pass through (2,2)(2,2), where the true slope is 4. Short dashes are tiny pieces of tangent lines, and your eye joins them into the curved solutions.

Learning Path

Slope Fields

You are here

You need Introduction to Differential Equations (what a solution and an initial condition are) and Derivative (slope as a number at a point). Slope fields turn dydx=f(x,y) into a picture of every solution at once. Next, Separation of Variables gives exact formulas for the curves you traced, for equations such as dydx=ky and dydx=xy.

See Also