# Slope fields

> IB Mathematics AI Higher Level · IB Math AI HL
> Source: https://www.owlsprep.com/study/ib-math-ai-hl-u4-slope-fields/

We cover core definitions of slope fields for first-order ODEs, isocline construction, sketching workflows, matching ODEs to their fields, and tracing approximate particular solution curves aligned to IB AI HL assessment standards.

**Prerequisites:** [Basic differentiation and calculation of gradient at a point](https://www.owlsprep.com/study/ib-math-ai-hl-u4-basic-differentiation/); [Introduction to first-order ordinary differential equations](https://www.owlsprep.com/study/ib-math-ai-hl-u4-first-order-odes/)

## Learning objectives

- Interpret the meaning of a slope field for a first-order differential equation
- Sketch partial slope fields for simple autonomous and non-autonomous first-order ODEs
- Match a given slope field to its corresponding differential equation and justify your selection
- Use a slope field to trace an approximate particular solution curve passing through a defined initial condition

## Core Definition of a Slope Field

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.

*Notation:* For \frac{dy}{dx} = f(x,y)

**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. Substitute each (x,y) coordinate pair into the right-hand side of dy/dx = 2x
2. $$At (0,1): \frac{dy}{dx} = 2(0) = 0$$
3. $$At (1,3): \frac{dy}{dx} = 2(1) = 2$$
4. $$At (-2, 0): \frac{dy}{dx} = 2(-2) = -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.

**Check your understanding**

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

   *Why:* Substitute x=2, y=-1: 2 + (-1) = 1, so the gradient is 1.

*Calculator:* allowed

## Isoclines and Systematic Slope Field Sketching

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.

**Worked example:** 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. $$k=-2: y = -x -2, all segments along this line have gradient -2$$
3. $$k=-1: y = -x -1, all segments along this line have gradient -1$$
4. $$k=0: y = -x, all segments along this line have gradient 0 (horizontal)$$
5. $$k=1: y = -x +1, all segments along this line have gradient 1$$
6. $$k=2: y = -x +2, all segments along this line have gradient 2$$
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.

> **tip**
>
> IB exam markers will award you full marks for a partial slope field covering 9 grid points correctly, you do not need to fill the entire coordinate plane.

*Calculator:* allowed

## Matching Differential Equations to Slope Fields

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.

**Exam command terms**

IB exam questions for this topic often use the following command terms:

- **Identify** — Select the correct ODE from a list of 3-4 options, no working required for full marks

- **Justify your choice** — You must explicitly state at least one test point or property that eliminates all 3 incorrect options to earn full marks

**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. First eliminate options that do not give dy/dx = 0 for all points where y=0
2. $$\frac{dy}{dx} = x: \text{At } y=0, \frac{dy}{dx} = x \text{ which is not zero for } x \neq 0, \text{ eliminate}$$
3. $$\frac{dy}{dx} = y: \text{At } y=0, \frac{dy}{dx} = 0 \text{ for every } x, \text{ this satisfies the condition}$$
4. $$\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. $$\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. The only remaining ODE is dy/dx = y, so this is the correct match.

*Calculator:* forbidden

## Tracing Approximate Particular Solutions

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.

> **mnemonic**
>
> Use the mnemonic SMOOTH: Stay parallel to local segments, Make no sharp turns, Obey all gradient directions, Overlap no other solution curves, Trace continuously from your initial condition.

**Worked example:** 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.

*Calculator:* allowed

## Common pitfalls

- **Wrong:** Drawing slope segments that are not aligned to the calculated gradient at the point
  - Why it fails: Markers deduct 1 mark per incorrectly oriented segment, even if your general approach is correct
  - Correct: Use isoclines first to confirm all segments along a line have the same gradient before drawing them.
- **Wrong:** Tracing a particular solution curve with sharp corners
  - Why it fails: The ODE defines a unique smooth gradient at every point, so corners are mathematically impossible
  - Correct: Keep your traced curve fully tangent to local slope segments at every point, no abrupt direction changes.
- **Wrong:** Confusing dy/dx = x with dy/dx = y when matching slope fields
  - Why it fails: Both have zero gradient at the origin, but their zero-gradient isoclines are different
  - Correct: Test the point (0, 1): dy/dx = x gives gradient 0, dy/dx = y gives gradient 1 to distinguish the two.
- **Wrong:** Drawing slope segments of wildly different lengths at the same isocline
  - Why it fails: IB mark schemes award marks for consistent segment length, not exact length, inconsistent segments lose presentation marks
  - Correct: Make all segments roughly 5mm long, regardless of their gradient value.

## 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 |

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

---

From [OwlsPrep](https://www.owlsprep.com) — free study guides for A-Level, IB, AP and IGCSE, written against the official syllabus. Canonical page: https://www.owlsprep.com/study/ib-math-ai-hl-u4-slope-fields/
