Study Guide

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.

πŸ“˜ Definition

Slope Field

Fordydx=f(x,y)For \frac{dy}{dx} = f(x,y)

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.

πŸ“ Worked Example

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. 1

    Substitute each (x,y) coordinate pair into the right-hand side of dy/dx = 2x

  2. 2
    At(0,1):dydx=2(0)=0At (0,1): \frac{dy}{dx} = 2(0) = 0
  3. 3
    At(1,3):dydx=2(1)=2At (1,3): \frac{dy}{dx} = 2(1) = 2
  4. 4
    At(βˆ’2,0):dydx=2(βˆ’2)=βˆ’4At (-2, 0): \frac{dy}{dx} = 2(-2) = -4
  5. 5

    These values are the exact gradients of the small line segments you would draw on the slope field grid at each respective coordinate.

βœ“ Quick check

Test your understanding of gradient calculation for slope fields

  1. 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.

πŸ“˜ Definition

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.

πŸ“ Worked Example

Use isoclines to sketch the slope field for dy/dx = x + y for integer k values from -2 to 2

  1. 1

    For each k, rearrange f(x,y) = x + y = k to get the straight line y = -x + k

  2. 2
    k=βˆ’2:y=βˆ’xβˆ’2,allsegmentsalongthislinehavegradientβˆ’2k=-2: y = -x -2, all segments along this line have gradient -2
  3. 3
    k=βˆ’1:y=βˆ’xβˆ’1,allsegmentsalongthislinehavegradientβˆ’1k=-1: y = -x -1, all segments along this line have gradient -1
  4. 4
    k=0:y=βˆ’x,allsegmentsalongthislinehavegradient0(horizontal)k=0: y = -x, all segments along this line have gradient 0 (horizontal)
  5. 5
    k=1:y=βˆ’x+1,allsegmentsalongthislinehavegradient1k=1: y = -x +1, all segments along this line have gradient 1
  6. 6
    k=2:y=βˆ’x+2,allsegmentsalongthislinehavegradient2k=2: y = -x +2, all segments along this line have gradient 2
  7. 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.

πŸ“ Worked Example

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. 1

    First eliminate options that do not give dy/dx = 0 for all points where y=0

  2. 2
    dydx=x:At y=0,dydx=x which is not zero for xβ‰ 0, eliminate\frac{dy}{dx} = x: \text{At } y=0, \frac{dy}{dx} = x \text{ which is not zero for } x \neq 0, \text{ eliminate}
  3. 3
    dydx=y:At y=0,dydx=0 for every x, this satisfies the condition\frac{dy}{dx} = y: \text{At } y=0, \frac{dy}{dx} = 0 \text{ for every } x, \text{ this satisfies the condition}
  4. 4
    dydx=x2:At y=0,dydx=x2 which is not zero for xβ‰ 0, eliminate\frac{dy}{dx} = x^2: \text{At } y=0, \frac{dy}{dx} = x^2 \text{ which is not zero for } x \neq 0, \text{ eliminate}
  5. 5
    dydx=sin⁑(x):At y=0,dydx=sin⁑(x) which is not zero for xβ‰ nΟ€, eliminate\frac{dy}{dx} = \sin(x): \text{At } y=0, \frac{dy}{dx} = \sin(x) \text{ which is not zero for } x \neq n\pi, \text{ eliminate}
  6. 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.

πŸ“ Worked Example

Trace the approximate particular solution for dy/dx = x + y that passes through the initial point (0, 1)

  1. 1

    Start your pencil exactly at the coordinate (0, 1) on the slope field

  2. 2

    Move your curve slowly in the positive x direction, keeping the curve tangent to every small slope segment you pass near

  3. 3

    Repeat the same process moving in the negative x direction from the initial point

  4. 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.