Slope fields
IB Mathematics AI Higher LevelΒ· 12 min read
1. Core Definition of a Slope Fieldβ β βββHL onlyβ± 10 min
β Calculator OK
A slope field (also called a direction field) is a 2D grid of small line segments where each segment at coordinate (x, y) has a gradient equal to the value of dy/dx calculated at that exact point. It visualizes the full family of general solutions to a first-order differential equation without requiring you to solve the ODE algebraically.
Slope Field
A grid of short tangent line segments plotted at evenly spaced (x,y) coordinates, each with gradient equal to f(x,y), representing the instantaneous rate of change of y at that point.
For the differential equation dy/dx = 2x, calculate the gradient of the slope field segment at the points (0, 1), (1, 3), and (-2, 0)
- 1
Substitute each (x,y) coordinate pair into the right-hand side of dy/dx = 2x
- 2
- 3
- 4
- 5
These values are the exact gradients of the small line segments you would draw on the slope field grid at each respective coordinate.
Test your understanding of gradient calculation for slope fields
What is the gradient of the slope field segment for dy/dx = x + y at (2, -1)?
1
3
-1
2
Reveal answer
1 βSubstitute x=2, y=-1: 2 + (-1) = 1, so the gradient is 1.
2. Isoclines and Systematic Slope Field Sketchingβ β β ββHL onlyβ± 15 min
β Calculator OK
An isocline is a curve that connects all points on the slope field where dy/dx equals a fixed constant k. Drawing isoclines first removes guesswork from sketching, and is the method explicitly awarded partial marks in IB mark schemes for slope field drawing questions.
Isocline
A curve of the form f(x,y) = k for a chosen constant k, where every slope field segment plotted along this curve has identical gradient k.
Use isoclines to sketch the slope field for dy/dx = x + y for integer k values from -2 to 2
- 1
For each k, rearrange f(x,y) = x + y = k to get the straight line y = -x + k
- 2
- 3
- 4
- 5
- 6
- 7
Draw each of these 5 lines lightly on your grid, then add short line segments of the correct gradient at evenly spaced points along each isocline to complete the slope field.
3. Matching Differential Equations to Slope Fieldsβ β β ββHL onlyβ± 12 min
π« No Calculator
A common IB exam question asks you to select the correct ODE from 4 options that corresponds to a given printed slope field. You can eliminate wrong options quickly by testing for zero-gradient points, constant gradient lines, and sign changes of dy/dx.
Justify which of dy/dx = x, dy/dx = y, dy/dx = xΒ², dy/dx = sin(x) matches a slope field where all segments along the x-axis (y=0) are horizontal (gradient 0)
- 1
First eliminate options that do not give dy/dx = 0 for all points where y=0
- 2
- 3
- 4
- 5
- 6
The only remaining ODE is dy/dx = y, so this is the correct match.
4. Tracing Approximate Particular Solutionsβ β β β βHL onlyβ± 10 min
β Calculator OK
Once you have a complete slope field, you can trace the unique particular solution that passes through any given initial coordinate. This curve will follow the direction of every local tangent segment, and no two distinct particular solution curves will ever intersect.
Trace the approximate particular solution for dy/dx = x + y that passes through the initial point (0, 1)
- 1
Start your pencil exactly at the coordinate (0, 1) on the slope field
- 2
Move your curve slowly in the positive x direction, keeping the curve tangent to every small slope segment you pass near
- 3
Repeat the same process moving in the negative x direction from the initial point
- 4
The resulting smooth curve is your approximate particular solution, no sharp corners are allowed.
5. Common Pitfalls
Wrong move:
Drawing slope segments that are not aligned to the calculated gradient at the point
Why:
Markers deduct 1 mark per incorrectly oriented segment, even if your general approach is correct
Correct move:
Use isoclines first to confirm all segments along a line have the same gradient before drawing them.
Wrong move:
Tracing a particular solution curve with sharp corners
Why:
The ODE defines a unique smooth gradient at every point, so corners are mathematically impossible
Correct move:
Keep your traced curve fully tangent to local slope segments at every point, no abrupt direction changes.
Wrong move:
Confusing dy/dx = x with dy/dx = y when matching slope fields
Why:
Both have zero gradient at the origin, but their zero-gradient isoclines are different
Correct move:
Test the point (0, 1): dy/dx = x gives gradient 0, dy/dx = y gives gradient 1 to distinguish the two.
Wrong move:
Drawing slope segments of wildly different lengths at the same isocline
Why:
IB mark schemes award marks for consistent segment length, not exact length, inconsistent segments lose presentation marks
Correct move:
Make all segments roughly 5mm long, regardless of their gradient value.
6. Quick Reference Cheatsheet
Task | Step 1 | Step 2 | Step 3 |
|---|---|---|---|
Sketch slope field | List isoclines for k=-2,-1,0,1,2 | Draw each f(x,y)=k line lightly | Add gradient segments along each isocline |
Match ODE to slope field | Find all zero-gradient points | Eliminate ODEs that do not match zero points | Test 1-2 non-zero points to confirm |
Trace particular solution | Mark your initial condition clearly | Trace curve tangent to segments in +x direction | Trace curve tangent to segments in -x direction |
When this came up on past exams
AI-estimated based on syllabus patterns β cross-check with official past papers for accuracy. Use only as revision-focus signals.
- 2024 Β· Paper 3
Match ODE to printed slope field
- 2023 Β· Paper 2
Sketch partial slope field for dy/dx = x+y
- 2022 Β· Paper 3
Approximate solution from initial point
What's Next
Mastering slope fields is a critical prerequisite for your upcoming IB AI HL Paper 3 differential equations questions, where you will connect these visual representations to Euler's method for numerical approximation and analytical solution of separable first-order ODEs. You will also practice identifying equilibrium solutions from slope fields, a high-weight topic that frequently appears in the 20-mark Paper 3 section on differential equations. This skill will also help you interpret population growth and logistic model visualizations later in the unit, and build intuition for dynamic systems problems.
