DP Math AI · HL · Calculus

AHL 5.14—Setting up a DE, solve by separating variables

Get started
Notes

What is a Differential Equation?

Differential Equation (DE): An equation that relates a function to one or more of its derivatives. A first-order DE involves only the first derivative dxdy​.

In the real world, many natural phenomena , population growth, cooling of objects, radioactive decay , are described not by simple equations, but by relationships between a quantity and its rate of change. This is precisely what a differential equation captures.

A general solution to a DE contains an arbitrary constant C, representing a family of curves. A particular solution is found when an initial condition (a known point on the solution curve) is used to determine C.

Initial Condition: A known value y(x0​)=y0​ that allows us to determine the arbitrary constant C in the general solution, yielding a unique particular solution.

Note

In AHL 5.14, the primary focus is on setting up a DE from a written description and solving it by separating variables. You need to be comfortable translating a real-world scenario into a mathematical DE before you can solve it.

Setting Up a Differential Equation

Before solving a DE, you must construct it from a problem description. This is often the hardest step for students. The key is to identify what quantity is changing, what it is changing with respect to, and what governs the rate of change.

General Strategy:

  1. Define your variables clearly (e.g., let y = population at time t).
  2. Express the rate of change in words, then translate to dtdy​ or dxdy​.
  3. Write the right-hand side as a function of the current variables.
  4. Note any initial condition given.

Common phrasing and their mathematical translations:

WordsDE Form
"rate of change is proportional to y"dtdy​=ky
"rate of change is proportional to (y−A)"dtdy​=k(y−A)
"rate of change is proportional to the product of y and (L−y)"dtdy​=ky(L−y)
"rate of decrease is proportional to y"dtdy​=−ky
Exam Tip

The word proportional is your signal to write =k⋅(something). The word decreases or loss signals a negative sign. Always define k>0 and handle sign separately.

Example

Setting up a DE: Newton's Law of Cooling

A cup of coffee cools at a rate proportional to the difference between its temperature T and the room temperature of 20°C. Write a DE to model this situation.

Step 1: The quantity changing is temperature T, with respect to time t.

Step 2: "Rate of change" ⇒dtdT​

Step 3: "Proportional to the difference between T and 20" ⇒k(T−20)

Step 4: The coffee is cooling, so the rate is negative:
dtdT​=−k(T−20),k>0

If the initial temperature is 90°C: initial condition is T(0)=90.

Free preview

9 more sections in this topic

← Previous topicAHL 5.13—Kinematic problemsNext topic →AHL 5.15—Slope fields
Koncepts

Learn it properly. Then practise like it's the real paper.

Start free

Features

  • Lessons
  • Past papers
  • Library
  • Homework Help
  • Duels

More

  • For parents
  • Compare
  • Plans & pricing
  • DP for students

Legal

  • Privacy
  • Terms
  • Account deletion

© 2026 Koncepts (product of PrepAiro, Inc). All rights reserved.
DP, IB, EE and TOK are terms of the International Baccalaureate Organization.

Made for IB DP students.