IB Maths AA HL Topic 5 — Calculus Paper 1 & 2 HL ~10 min read

Introduction to First-Order Differential Equations

A differential equation (DE) is an equation that contains one or more derivatives. A first-order DE contains a first derivative (dy/dx) but no second or higher derivatives. The simplest type — dy/dx = f(x) — you’ve already met: just integrate the right-hand side. But most DEs in this chapter have dy/dx = f(x, y) — depending on BOTH variables — and direct integration alone is impossible. This chapter introduces four analytical techniques (separation of variables, integrating factor, homogeneous substitution, Euler’s method numerical approximation) for solving them. This note sets up the language and re-cements the direct-integration case.

📘 What you need to know

Classifying DEs and the direct-integration case

Simplest first-order DE — direct integration dydx = f(x)   ⟹   y = ∫f(x) dx + c

When dy/dx depends only on x, integrate to recover y. This is the case you’ve already met in Topic 5 integration. The four advanced methods coming up handle the harder case where dy/dx also depends on y.

Four solution techniques for first-order DEs — chapter roadmap First-order DE: dy/dx = ? Which form does dy/dx take? Branch on the structure of the RHS: ★ DIRECT INTEGRATION (this note) Form: dy/dx = f(x) only y = ∫f(x) dx + c straightforward integration SEPARATION OF VARIABLES Form: dy/dx = g(x) · h(y) ∫ 1/h(y) dy = ∫ g(x) dx separate x’s and y’s onto opposite sides INTEGRATING FACTOR Form: dy/dx + P(x) y = Q(x) multiply by e^∫P(x)dx turns LHS into an exact derivative HOMOGENEOUS Form: dy/dx = f(y/x) substitute v = y/x reduces to separation of variables
The chapter covers four analytical techniques for first-order DEs, plus Euler’s method for numerical approximations. This note is on direct integration (top-left, highlighted green) — the simplest case where dy/dx depends ONLY on x. The other three (preview boxes) handle the harder cases where dy/dx also depends on y; each gets its own note.
The reason direct integration is special: ∫f(x) dx requires only x to be the variable of integration. If the RHS contains y too — e.g., dy/dx = xy — you can’t integrate the RHS directly because y is itself a function of x (and that function is exactly what you’re trying to find!). The advanced methods all work around this circular dependency in clever ways.

General solution vs particular solution

General solution
contains “+ c
Solution to the DE with the constant of integration left unspecified. Represents an infinite family of curves, one for each value of c.
Particular solution
c is determined
Solution where c has been pinned down using a boundary or initial condition (e.g., y(0) = 5). Represents one specific curve from the family.

🧭 Recipe — direct-integration first-order DEs

  1. Confirm it’s a first-order DE: the highest derivative is the first derivative (dy/dx, ds/dt, etc.). If second derivatives appear, this method doesn’t apply.
  2. Check if RHS depends only on the independent variable: if dy/dx = f(x) (no y on the right), direct integration applies. If y appears on the right, use one of the other techniques (next notes).
  3. Integrate both sides with respect to the independent variable. The LHS becomes y (the antiderivative of dy/dx is y itself). The RHS is ∫f(x) dx.
  4. Add the constant of integration +c. This gives the GENERAL solution — a family of curves parameterized by c.
  5. Apply boundary/initial conditions if given: substitute the known (x, y) pair to solve for c, giving the PARTICULAR solution. If no condition is given, leave +c in the answer.

Worked examples

WE 1

Classification — which of the following are first-order DEs?

For each equation, determine whether it is a differential equation, and if so, whether it is a first-order DE:
(a) dy/dx + 3y = sin x    (b) y² + 5y = 2x    (c) d²y/dx² − 4 dy/dx + 3y = 0    (d) dr/dθ = r²

(a) dy/dx + 3y = sin x Contains dy/dx — IS a DE Highest derivative is dy/dx (first order) — IS first-order DE ✓ (b) y² + 5y = 2x No derivatives — NOT a DE (it’s a polynomial equation) (c) d²y/dx² − 4 dy/dx + 3y = 0 Contains d²y/dx² (second derivative) — IS a DE Highest derivative is d²y/dx² (second order) — NOT first-order ✗ (d) dr/dθ = r² Contains dr/dθ (first derivative w.r.t. θ) — IS a DE Highest derivative is first — IS first-order DE ✓ First-order DEs: (a) and (d) “first-order” is about the HIGHEST DERIVATIVE order, not about polynomial degree. (d) has r² (a square), but it’s still first-order because the highest derivative is dr/dθ.
WE 2

Verify a function is a solution

Show that y = 2e3x is a solution to the differential equation dy/dx = 3y.

Step 1 — differentiate the proposed solution y = 2 e^(3x) dy/dx = 2 · 3 · e^(3x) = 6 e^(3x) (chain rule) Step 2 — compute the RHS of the DE using the proposed y RHS = 3y = 3 · 2 e^(3x) = 6 e^(3x) Step 3 — compare LHS and RHS LHS = dy/dx = 6 e^(3x) RHS = 3y = 6 e^(3x) LHS = RHS ✓ y = 2 e^(3x) satisfies dy/dx = 3y, as required. verification questions (“show that… is a solution”) DON’T require you to solve the DE from scratch — just check by substitution. This is faster than solving and is the standard exam pattern.
WE 3

General solution by direct integration

Find the general solution of the differential equation dy/dx = 6x² − 4x + 3.

Step 1 — confirm direct integration applies RHS = 6x² – 4x + 3 depends only on x (no y) — ✓ direct integration works Step 2 — integrate both sides ∫ dy/dx dx = ∫ (6x² – 4x + 3) dx y = 6 · x³/3 – 4 · x²/2 + 3x + c y = 2x³ – 2x² + 3x + c y = 2x³ − 2x² + 3x + c (general solution) verify: dy/dx = 6x² – 4x + 3 ✓. The +c is essential — without it, you’ve found ONE particular solution rather than the general family. The general solution is an infinite family of cubics, all with the same shape but shifted vertically by c.
WE 4

Particular solution using an initial condition

Find the particular solution to the differential equation ds/dt = 4t − 6 given that s = 5 when t = 0.

Step 1 — direct integration applies (RHS depends only on t) ∫ ds/dt dt = ∫ (4t – 6) dt s = 2t² – 6t + c (general solution) Step 2 — apply the initial condition s(0) = 5 5 = 2(0)² – 6(0) + c 5 = 0 – 0 + c c = 5 Step 3 — substitute c back into the general solution s = 2t² – 6t + 5 s = 2t² − 6t + 5 (particular solution) verify: ds/dt = 4t – 6 ✓ and s(0) = 0 – 0 + 5 = 5 ✓. The initial condition pins down a SPECIFIC curve from the infinite family — this is the “particular” solution. Without the IC, all you get is the general family with +c.
WE 5

Recognizing when direct integration FAILS

Explain why the differential equation dy/dx = ex · y² cannot be solved by direct integration. State which technique would apply instead.

Step 1 — examine the RHS RHS = e^x · y² This depends on BOTH x (through e^x) AND y (through y²) Step 2 — why direct integration fails Direct integration: y = ∫ (RHS) dx But ∫ e^x · y² dx requires y to be a known function of x y is exactly what we’re trying to FIND — circular! We cannot integrate the RHS without already knowing y(x) Step 3 — identify the appropriate technique RHS = e^x · y² = (function of x) · (function of y) = g(x) · h(y) This matches the “separation of variables” pattern Use separation of variables (next note) — split the equation as (1/y²) dy = e^x dx and integrate both sides. this conceptual question is exam-relevant: identifying WHICH technique applies is half the battle. When you see d/dx = (something with both x AND y), reach for the toolkit: separation of variables, integrating factor, or homogeneous substitution — never direct integration alone.
WE 6

Real-world application — particle kinematics

A particle moves so that its velocity v (m/s) at time t (seconds) satisfies the differential equation dv/dt = 6 − 0.5t. The particle starts from rest at t = 0.
(a) Find v as a function of t.
(b) Find the time at which the particle reaches its maximum velocity, and find this maximum velocity.

(a) Step 1 — direct integration RHS = 6 – 0.5t depends only on t — direct integration applies v = ∫ (6 – 0.5t) dt = 6t – 0.25t² + c (a) Step 2 — apply initial condition v(0) = 0 (starts from rest) 0 = 6(0) – 0.25(0)² + c ⟹ c = 0 v(t) = 6t – 0.25t² = 6t – t²/4 (a) v = 6t − 4   m/s (b) Step 1 — maximum velocity occurs when dv/dt = 0 dv/dt = 6 – 0.5t = 0 (from the original DE) 0.5t = 6 ⟹ t = 12 seconds (b) Step 2 — compute v at t = 12 v(12) = 6(12) – (12)²/4 = 72 – 36 = 36 m/s (b) Maximum velocity = 36 m/s at t = 12 seconds classic application: DE gives velocity from acceleration. Maximum occurs when the derivative of velocity (= acceleration = original RHS) equals zero — that’s where the velocity transitions from increasing to decreasing. The +c was 0 here because the particle starts from rest.

💡 Top tips

⚠ Common mistakes

Up next: Separation of Variables. The first technique for DEs where dy/dx depends on both x and y. If the RHS factors as g(x) · h(y) (a function of x times a function of y), you can rearrange so all y‘s are on one side and all x‘s on the other, then integrate both sides separately. The technique handles a huge class of DEs — especially in population modelling and other “rate of change is proportional to …” problems.

Need help with Calculus?

Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.

Book Free Session →