A first-order equation y' = f(x,y) assigns a slope to every point of the plane. Drawing a short segment of that slope at each of many points produces a direction field, a picture of the flow that every solution must follow. This lets you see the shape of solutions before, or instead of, finding a formula for them.
Quick Reference
| Idea | Statement |
|---|---|
| Direction field | A grid of short line segments whose slope at is |
| Integral curve | A solution curve; it is tangent to the field at every one of its points |
| Isocline | The curve , along which every field segment has the same slope |
| Nullcline | The isocline for , where solution curves have horizontal tangents |
| Equilibrium solution | A constant solution ; it occurs when for all |
| Semistable equilibrium | An equilibrium that attracts on one side and repels on the other, as does for y' = y^2 |
| Autonomous equation | y' = f(y), with no explicit ; its field is identical along every vertical line |
| Key property | Through each point of the region where is continuous, one integral curve passes |
The Geometric Meaning of y' = f(x,y)
Recall from calculus that y' at a point is the slope of the tangent line to the graph of there. So the equation
carries a purely geometric message: if a solution curve passes through the point , its tangent line there has slope .
The equation therefore prescribes a slope at every point of the region where is defined, whether or not a solution has been found. This is a remarkable amount of information to have for free.
The direction field, also called the slope field, of the equation y' = f(x,y) is obtained by drawing, at each point of a grid in , a short line segment whose slope equals . Any solution curve, also called an integral curve, must be tangent to these segments at every point it passes through.

How to Sketch a Direction Field
Procedure. Choose a grid of points covering the region of interest. At each point , evaluate and draw a short segment through that point with slope . Keep every segment the same short length, so the picture shows direction rather than magnitude. Then trace curves that follow the segments.
Doing this point by point is tedious by hand. The shortcut is to draw whole families of segments at once using isoclines.
An isocline of y' = f(x,y) is a curve on which the slope is constant, that is, the level curve for a fixed value . Every field segment along an isocline has the same slope .
The word means "equal inclination". Choosing several convenient values of , sketching the corresponding isoclines, and then drawing segments of slope along each one fills the plane quickly.
Sketch the direction field of y' = x using isoclines, and identify the integral curves.
Solution
The isocline is , a vertical line. So:
- Along , every segment is horizontal (slope ).
- Along , every segment has slope .
- Along , every segment has slope .
The field does not depend on at all, so it looks identical along any horizontal shift: each vertical line carries segments of a single slope, tilting more steeply upward as you move right and more steeply downward as you move left.
Integrating directly, , a family of parabolas. Each one is a vertical translate of the others, which is exactly what the field's independence from predicted.
The direction field of y' = x. Every segment on a given vertical line has the same slope, and the integral curves are the vertical translates .
Sketch the direction field of y' = y and describe the behavior of solutions.
Solution
The isocline is a horizontal line, so:
- Along the segments are horizontal.
- Along every segment has slope , tilting up steeply.
- Along every segment has slope , tilting down steeply.
Reading the picture: above the -axis, slopes are positive and grow with , so curves rise faster and faster. Below the axis, slopes are negative and grow more negative, so curves fall faster and faster. On the axis itself the slope is zero everywhere, so the constant function is a solution.
The general solution confirms all of this: gives runaway growth, gives runaway decay, and gives the equilibrium .
The direction field of y' = y. Segments are horizontal on the line and steepen as grows. The integral curves are ; the equilibrium separates the growing solutions from the decaying ones.
Use isoclines to sketch the direction field of y' = x^2 + y^2, and describe the solutions.
Solution
The isocline for slope is , a circle of radius centered at the origin (and empty when ). No isocline picture is easier to draw:
- At the origin alone the slope is .
- On the unit circle every segment has slope , a tilt.
- On the circle of radius every segment has slope , about .
Three facts follow without any integration:
- y' \geq 0 everywhere, with equality only at the single point , so every solution is increasing.
- The slopes grow without bound, and they do so fast enough that no solution survives for all . Once a solution passes it satisfies y' \geq 1 + y^2, and comparison with forces it to reach at a finite value of .
- The field is unchanged by the half-turn , since . So solutions come in pairs: if is a solution, so is . Running the same argument backward, each solution also comes up out of at a finite . Every integral curve lives on a bounded interval and sweeps from to across it.
It is interesting to know that this equation has no solution in elementary functions. It is a Riccati equation whose solutions are ratios of Bessel functions. The picture above cost nothing.
The direction field of y' = x^2 + y^2, with the isoclines and dashed. Every segment on a given circle carries the same slope. The three integral curves are nearly translates of one another, each rising from to over a bounded interval of .
Equilibrium Solutions and Nullclines
A constant function is an equilibrium solution (also called a stationary or constant solution) of y' = f(x,y) if for every in the interval considered.
Equilibrium solutions are the easiest solutions to find, since they require solving an algebraic equation rather than a differential one, and they organize the whole picture: no other integral curve can cross an equilibrium line where the uniqueness theorem applies, so the equilibria partition the plane into horizontal strips that trap all the other solutions.
Find the equilibrium solutions of the logistic equation , where and are positive constants, and describe the direction field.
Solution
Set the right-hand side to zero:
There are two equilibrium solutions, and .
Now check the sign of P' in each strip:
- For , both and are positive, so P' > 0 and solutions rise toward .
- For , the factor is negative, so P' < 0 and solutions fall toward .
- For , which is not physically meaningful but is part of the field, P' < 0 and solutions fall away from .
So the field pushes every positive solution toward . We call a stable equilibrium and an unstable one. All of this was read off the sign of , with no integration performed.
The direction field of the logistic equation (drawn with , ). Solutions starting between the equilibria climb toward , and solutions starting above it descend toward ; a solution starting below runs away downward.
Not every equilibrium is cleanly stable or unstable. The next example shows the third possibility, and delivers a warning about how long solutions last.
Find the equilibrium solutions of y' = y^2, classify them, and describe the field.
Solution
Setting gives the single equilibrium . But the sign check behaves differently from the previous examples, because does not change sign:
- For we have y' > 0, so solutions rise away from .
- For we have y' > 0 as well, so solutions rise toward .
The equilibrium attracts from below and repels from above. Such an equilibrium is called semistable. In the picture the segments never tilt downward anywhere; they merely flatten out as they approach the -axis from either side.
Separating variables for gives , that is
together with the equilibrium . This confirms both halves of the reading. A solution starting at has and increases to as . A solution starting at has and
The direction field of y' = y^2. No segment ever tilts downward. Solutions below the axis climb toward and solutions above it run off to at a finite , which is what makes semistable.
Why Integral Curves Do Not Cross
The field already tells you what the theorem has to say. At every point of the region where is defined, the equation prescribes exactly one slope, so a solution arriving at that point has no choice about the direction in which it leaves: the direction field never branches. If that reading is right, two different solution curves can never pass through the same point. Making it right is the job of the following theorem, proved in the final chapter.
Existence and uniqueness. If and are continuous on a rectangle containing , then exactly one integral curve of y' = f(x,y) passes through .
Its two halves are two statements about the picture:
- Existence: the field is never blank. Some curve follows the segments through every point of , and continuity of alone is enough to guarantee it.
- Uniqueness: the field never branches. Inside two distinct integral curves cannot cross, cannot touch, and cannot merge. This is the half that needs the condition on .
The picture gets you only halfway, and it is worth seeing exactly how far. Two curves crossing at an angle are ruled out by the field alone: at the crossing point the equation prescribes one slope, and they cannot both have it. But two curves that merely touch both carry the correct slope at the point of contact, so nothing in the picture forbids them. Ruling that out is what the theorem contributes.
Two solutions through one point . The heavy black segment is the slope the equation prescribes there. On the left the dashed curve is disqualified immediately, since it is not tangent to the segment. On the right both curves are tangent, and nothing in the picture forbids the split; it is the uniqueness theorem that does.
The consequence is one we have been using all along. An equilibrium solution is itself an integral curve, so no other curve may cross it. That is why a logistic population starting below stays below forever, and rises to a limit, without any need to solve the equation.
Where the hypotheses fail, curves really do cross. In y' = 3y^{2/3} the partial derivative blows up on the line , and through the origin pass both and , plus infinitely many curves assembled from pieces of the two. The field there looks perfectly tame, which is a useful warning: a direction field shows what solutions do, not whether they are unique.
Exercises
Describe the direction field of y' = x + y by finding its isoclines. Where are the horizontal tangents?
Solution
The isocline for slope is , that is, the line . So all the isoclines are parallel lines of slope , and along the line every segment has slope .
Horizontal tangents occur where , on the line . Above that line y' > 0 and solutions rise; below it y' < 0 and solutions fall.
One curiosity: the isocline for is , whose own slope is , not , so it is not a solution. But the isocline for is , whose slope matches, so is an integral curve. An isocline is a solution exactly when its own slope equals the slope it carries.
The direction field of y' = x + y. The isoclines are the parallel lines ; the dashed one, , carries the horizontal segments. The heavy line is itself an integral curve, and the curves peel away from it.
Find all equilibrium solutions of y' = \left(y - 1\right)\left(y + 2\right) and classify each as stable or unstable.
Solution
Setting the right-hand side to zero gives and .
Check the sign of y' in each strip:
- : both factors positive, so y' > 0 and solutions move up, away from .
- : the first factor is negative and the second positive, so y' < 0 and solutions move down, away from and toward .
- : both factors negative, so y' > 0 and solutions move up, toward .
Therefore is stable (arrows point toward it from both sides) and is unstable (arrows point away from both sides).
The direction field of y' = (y-1)(y+2). Because the equation is autonomous the picture repeats along every vertical line. Solutions leave in both directions and approach from both sides.
Without solving, decide whether the solution of y' = y^2 - x passing through is increasing or decreasing at that point, and find where its tangent is horizontal.
Solution
At we have y' = 0^2 - 0 = 0, so the tangent is horizontal there.
Horizontal tangents occur on the nullcline , a parabola opening to the right. To the right of it, where , we get y' < 0 and solutions decrease; to the left, where , we get y' > 0 and solutions increase.
Since the point sits on the nullcline itself, look just past it: moving right from the origin along a solution puts us in the region , so the curve turns downward. The origin is a local maximum of that solution.
The direction field of y' = y^2 - x. The dashed parabola is the nullcline; segments tilt upward to its left and downward to its right. The heavy curve through the origin reaches its maximum exactly on the nullcline and falls afterward.
An object falling through air experiences a drag force proportional to its speed, so its velocity satisfies
with in metres per second and in seconds. Read the terminal velocity off the direction field and describe how a body released from rest approaches it.
Solution
The equation is autonomous, so the field repeats along every vertical line and the whole story is in the sign of .
Setting it to zero gives the one equilibrium
the terminal velocity. For the right side is positive and the object accelerates; for it is negative and the object slows down. Arrows point toward from both sides, so the equilibrium is stable and every solution tends to m/s, whether the object is dropped, thrown down hard, or thrown upward.
Two more readings come free. At the slope is exactly : at the instant of release the drag contributes nothing and the acceleration is . And since the field is steepest at and flattens monotonically as climbs toward , the graph from rest is concave down throughout, with no inflection.
Solving confirms it: , and from rest
which reaches of terminal velocity at seconds. Note that is approached but never attained.
The direction field of v' = 9.8 - v/5, with in seconds and in metres per second. The lowest curve is the release from rest; the others start at and m/s. All three flatten onto the terminal velocity .
Sketch the direction field of y' = -\dfrac{x}{y} and identify the integral curves. What goes wrong on the -axis?
Solution
The isocline for slope is , that is the line through the origin. Its own slope is , and
so every field segment is perpendicular to the ray it sits on. A family of curves crossing all rays from the origin at right angles can only be the family of circles centered there.
Separating variables confirms it: gives .
Reading the special lines: on the -axis, makes the slope , so the circles have horizontal tangents there. On the -axis, is not defined at all, and the segments turn vertical as .
That last point is the interesting one. A circle is not the graph of a function, so a single solution is only a semicircle,
each defined on the open interval and each running out of road exactly where it meets the -axis. The uniqueness theorem never promised otherwise: it requires to be continuous, and fails that on the whole line .
The direction field of y' = -x/y. Each segment is perpendicular to the ray joining it to the origin, so the integral curves are circles. The field is undefined on the -axis, where the segments stand vertical and each solution semicircle ends.
Find all equilibrium solutions of y' = \sin y, classify them, and describe the behavior of the solution with as .
Solution
The equation is autonomous, and exactly when
so there are infinitely many equilibria, evenly spaced.
Check the sign of on one strip and the pattern is fixed. On , , so solutions rise; on , , so solutions fall. Both strips push toward and away from and . Since alternates sign from strip to strip:
- is stable, for every integer .
- is unstable.
Because integral curves cannot cross the equilibrium lines, a solution is trapped in the strip it starts in, and inside that strip keeps one sign, so the solution is monotone. It therefore runs from the unstable edge of the strip to the stable one.
For , which lies in : the solution increases, and
Every solution of this equation is bounded, in sharp contrast to y' = y or y' = y^2. Separating gives on the strip ; here .
The direction field of y' = \sin y. The equilibria alternate between unstable and stable, and every other solution is trapped in one strip, climbing or falling monotonically from the unstable edge to the stable one. No solution is unbounded, and no segment is steeper than .
The section observed that y' = 3y^{2/3} admits more than one solution passing through the origin. Sketch its direction field and exhibit infinitely many such solutions.
Solution
No appears on the right-hand side, so the slope the equation prescribes at a point depends only on the height , and the field repeats identically along every vertical line. It depends, in fact, only on : writing , the squaring erases the sign of the cube root. The field is therefore symmetric about the -axis, and no segment ever tilts downward, since everywhere, with equality precisely on .
This makes an equilibrium solution. Away from the -axis, separation of variables gives
a one-parameter family of cubics, each a horizontal translate of . That the translates must all be solutions is worth checking directly: if solves the equation and , then
\psi'(x) = \phi'(x-a) = 3\bigl[\phi(x-a)\bigr]^{2/3} = 3\bigl[\psi(x)\bigr]^{2/3} ,so solves it too. Sliding a solution sideways changes nothing, precisely because the right-hand side never consults .
We now assemble solutions through the origin. Both and qualify, and so does any hybrid: choose and set
y = \begin{cases} (x-b)^3, & x < b, \\ 0, & b \leq x \leq a, \\ (x-a)^3, & x > a . \end{cases}Each piece satisfies the equation, and at each join both the function and its derivative take the value , so the assembled function is and hence a genuine solution. Distinct pairs give distinct solutions, and there are infinitely many of them through the origin.
The direction field for y' = 3y^{2/3}. The equilibrium and the cubics are all solutions, and their pieces glue together smoothly wherever they meet the -axis; the marked origin lies on infinitely many solution curves.
Frequently Asked Questions
What is a direction field?
It is a picture of the equation y' = f(x,y) made by drawing, at each point of a grid, a short segment whose slope is the value prescribes there. Because any solution must be tangent to the field everywhere, tracing a path that always follows the segments sketches a solution curve.
What is the difference between a direction field and a vector field?
A direction field records only slope, so its segments are drawn with a uniform short length and carry no arrowhead. A vector field also records magnitude and orientation. For a first-order equation the slope is all the information the equation supplies, so the direction field is the natural picture.
What is an isocline, and how does it help?
An isocline is the set of points where the slope takes a given value , that is, the curve . It helps because you can draw an entire family of identical segments along one isocline at once, instead of computing at every grid point separately. Sketching four or five isoclines is usually enough to see the shape of the whole field.
Can two solution curves ever cross?
Not in a region where and are continuous, since exactly one integral curve passes through each point there. Crossings signal that the uniqueness hypotheses have failed. The standard example is y' = 3y^{2/3}, where infinitely many solutions pass through the origin.
Why bother with a direction field if I can solve the equation?
Because most equations cannot be solved in elementary functions. The field is available directly from with no integration at all, and it answers the questions people usually care about: does the solution grow without bound, settle to a limit, or oscillate. Even when a formula exists, the field is often the faster route to the qualitative answer.
How does a direction field relate to numerical methods?
Euler's method is nothing but following the direction field in discrete steps: from the current point, move a short distance along the segment, then recompute the slope at the new point and repeat. Sketching a field by hand and running Euler's method are the same idea, one done by eye and one by arithmetic.