Differential Equations and Direction Fields
What a differential equation is, why its solutions are families of functions, and how to draw, recognise and read direction fields to sketch solution curves.
45 min · Calculus
The full teaching. Start here.
The short version
- A differential equation relates an unknown function to its derivatives. First order means only appears.
- A solution is a function. The general solution is a family (it has a constant); an initial condition picks out one particular solution.
- A direction field draws a short segment at many points with slope given by the equation. Solution curves follow the segments.
- Recognising fields:
- : equal slopes down each vertical line.
- : equal slopes along each horizontal line. Rows where are constant solutions.
- Mixed: find where the slope is (and other easy values) and check signs.
- Solution curves never cross each other.
What a differential equation is
An ordinary equation such as is solved by numbers. A differential equation such as
is solved by functions: we want every whose derivative is twice itself. You can check that works, and so does , and . In fact works for any constant .
- Differential equation
An equation involving an unknown function and one or more of its derivatives. Its order is the order of the highest derivative in it.
CheckpointAnswer before reading on.
Which of these is a differential equation?
Hint 1It must involve a derivative.
Hint 2An unknown function appears with its derivative.
Hint 3Look for .
CheckpointAnswer before reading on.
What is the order of ?
Hint 1Order is the highest derivative.
Hint 2Second derivative present.
Hint 32.
CheckpointAnswer before reading on.
A solution of a differential equation such as is:
Hint 1What does the equation ask for?
Hint 2An unknown function.
Hint 3Check .
Solutions are not unique
Integration always leaves a constant, and so does solving any first order differential equation. The general solution contains that constant and describes a whole family of curves. An initial condition, a known point such as , fixes the constant and gives one particular solution.
To check a proposed solution, differentiate it and substitute. Both sides must agree for every , not just one.
CheckpointAnswer before reading on.
Why does have infinitely many solutions?
Hint 1Integrate.
Hint 2.
Hint 3Each C gives a different curve.
CheckpointAnswer before reading on.
Given and when , find when .
Hint 1.
Hint 2.
Hint 3.
CheckpointAnswer before reading on.
Which function is a solution of ?
Hint 1Differentiate each option.
Hint 2Compare with x + y.
Hint 3Try .
CheckpointAnswer before reading on.
Which differential equation has general solution ?
Hint 1Differentiate: .
Hint 2That is .
Hint 3Rate proportional to size.
Exam question
Standard · about 3 min
2 marks
Show that is a solution of for every constant . (2 marks)
Hint 1Differentiate.
Hint 2.
Hint 3Substitute into the left side.
Where students lose marks on this one
Picking a value of C.
Why it happens: Checking only a special case.
Keep C general.
Written for this site.
Direction fields
Most differential equations cannot be solved by a formula. But even without solving, a first order equation tells you the slope of the solution curve through any point. Draw that slope as a short segment at many points and the shape of the solutions appears.
Worked example4 marks
Forming a field and sketching solutions
For : (a) find the slopes at a few points and describe the field; (b) sketch the solution through and two others.
(a) Compute slopes
Substitute points into the right side.
At : . At : . At : . At : . At : .
(a) Find the easy lines
Lines of equal slope organise the field.
The slope is along . It is positive below that line and negative above it. Along the slope is exactly , which is the slope of that line itself, so is a straight line solution.
(b) Sketch from (0, 1)
Follow the segments in both directions.
At the slope is , so the curve falls. It crosses with zero slope (a minimum), then rises and bends towards from above.
(b) Other curves
Start at other points and follow the field; no two curves cross.
A curve starting below , say at , rises steeply and approaches from below. Every solution approaches that line as .
Answer
The field is flat along , and all solutions approach the straight line solution . The solution through has a single minimum and then approaches the line from above.
Is that answer sensible?
The exact solution through is : at it gives , and as the term disappears, leaving .
CheckpointAnswer before reading on.
For the differential equation , what is the slope of the direction field segment at ?
Hint 1Substitute x = 2, y = 1.
Hint 22 − 1.
Hint 3Positive slope.
CheckpointAnswer before reading on.
For , what is the slope of the direction field at ?
Hint 1Multiply the coordinates.
Hint 2.
Hint 3Negative.
CheckpointAnswer before reading on.
For , what is the slope of the direction field at ?
Hint 1.
Hint 2Subtracting a negative.
Hint 33.
CheckpointAnswer before reading on.
For , what is the slope of the direction field at ?
Hint 1Only x matters.
Hint 2.
Hint 34.
CheckpointAnswer before reading on.
Where is the direction field of horizontal?
Hint 1Set the slope to 0.
Hint 2.
Hint 3A line.
CheckpointAnswer before reading on.
For , on which line do all segments have slope ?
Hint 1Set .
Hint 2That is a line.
Hint 3Intercepts 1 and 1.
Exam question
Standard · about 3 min
2 marks
Show that is a solution of , and explain what this line looks like in the direction field. (2 marks)
Hint 1.
Hint 2.
Hint 3Segments along it point along it.
Where students lose marks on this one
Only checking one point.
Why it happens: A single point is not enough.
Substitute the whole function.
Written for this site.
Exam question
Harder · about 5 min
3 marks
Using the direction field of , describe the particular solution through : where it is decreasing, where its minimum is, and its behaviour as . (3 marks)
Hint 1At the slope is .
Hint 2It crosses y = x with zero slope.
Hint 3It approaches the line solution y = x − 1.
Where students lose marks on this one
Drawing the curve crossing y = x − 1.
Why it happens: Not following the field.
Solution curves cannot cross, and y = x − 1 is itself a solution.
Written for this site.
Change the equation and the starting value below. The solution curve always follows the slope marks, and the isocline shows where the slope is zero.
- dy/dx = 0
- solution through (0, y₀)
- Gradient at (0, y₀)
- -2.00
- Line where dy/dx = 0
- y = 1.00x + 0.00
Every slider is a normal range input, so the arrow keys move it one step and Home and End jump to the extremes.
Matching fields and equations
Multiple choice questions often show a field and four equations. Work through these tests in order:
- Patterns. Equal slopes down vertical lines means ; along horizontal lines means .
- Zero slope. Where are the segments flat? Compare with where each equation is .
- Signs. Pick one clear point, such as or , and check the sign of each option there.
CheckpointAnswer before reading on.
In a direction field every segment on each vertical line has the same slope. Which form does the differential equation have?
Hint 1Along a vertical line, x is fixed.
Hint 2So the slope depends only on x.
Hint 3.
CheckpointAnswer before reading on.
A direction field has flat segments along the -axis, positive slopes above it and negative slopes below it, and the slopes along each horizontal line are all equal. Which equation fits?
Hint 1Equal slopes along horizontal lines means only y matters.
Hint 2Zero slope when y = 0.
Hint 3Sign matches the sign of y.
CheckpointAnswer before reading on.
The solution curves of which equation are circles centred at the origin?
Hint 1A tangent to a circle is perpendicular to the radius.
Hint 2Radius gradient .
Hint 3Negative reciprocal.
Equilibrium solutions
For , a value with gives a constant solution : a whole row of flat segments. Solutions between equilibria move towards one and away from the other, and never cross them.
CheckpointAnswer before reading on.
Which are constant (equilibrium) solutions of ?
Hint 1A constant solution has zero slope everywhere.
Hint 2Solve .
Hint 3Two values.
CheckpointAnswer before reading on.
The solution of with : what happens as ?
Hint 1Between 0 and 2 the slope is positive.
Hint 2It rises but cannot cross y = 2.
Hint 3It levels off.
CheckpointAnswer before reading on.
Which statement about the solutions of is true?
Hint 1.
Hint 2Slopes are always at least 1.
Hint 3Solutions always increase.
Common mistake
Drawing a solution curve that crosses another solution, or that cuts across an equilibrium line.
Why it happens: Sketching freely instead of following the segments.
At any point the equation gives one slope, so only one solution passes through it. Two curves that met would have to be the same curve. In particular, a solution curve approaches an equilibrium line but never crosses it.
CheckpointAnswer before reading on.
Why do two different solution curves of never cross?
Hint 1At a crossing point both curves pass through the same point.
Hint 2The equation fixes the slope there.
Hint 3Then they would follow the same path.
What lifts this to a Band 6
When sketching on a printed field, draw lightly through the given point in both directions, keeping the curve tangent to nearby segments. Then look for the long-term behaviour: equilibria and straight line solutions are what the curve will approach. Mark the initial point clearly; markers look for it.
Euler's method: following the field numerically
A direction field suggests a way to compute a solution without any formula. Start at the initial point, step a small distance in along the current slope, recalculate the slope at the new point, and repeat:
This is Euler's method, the ancestor of the methods computers use to model weather, orbits and epidemics. With , and : the slope is , so at ; the new slope is , so at . The exact value is . Smaller steps give better answers.