Scribe logoScribeNotes & practice
Sign inStart free
  1. Notes
  2. ›IB Mathematics: Applications and Interpretation
  3. ›5 Calculus
  4. ›5.14 Setting up differential equations

IB Mathematics: Applications and Interpretation · Topic 5 · Calculus

5.14 Setting up differential equations

Translate a word description of change into a first-order differential equation, state initial conditions, and explain what a solution means.

  • 4 min read
  • 6 parts
  • 10 questions
  • Draft
  • HL only
Start a Quick 5 on this topic→Jump to the 10 questions
1/6A differential equation links a quantity to its rate
  1. 1A differential equation links a quantity to its rate
  2. 2Key phrases in a problem translate into symbols
  3. 3Data given in the problem fix the constant
  4. 4An initial condition fixes the starting value
  5. 5A solution is a function that satisfies the equation
  6. 6A solution describes the quantity at every time
  7. Check your recall
  8. Practice: 10 questions
1

Part 1 of 6: A differential equation links a quantity to its rate

A warm drink cools quickly at first, then more slowly. How fast it cools depends on the temperature itself. Descriptions like this link a quantity to how fast it changes.

A rate of change, written dydt\frac{dy}{dt}dtdy​, tells you how fast yyy changes as time ttt passes.

A differential equation joins a function to its derivative. Here we use first-order equations, which contain only the first derivative. For example, dPdt=0.2P\frac{dP}{dt}=0.2PdtdP​=0.2P says that the rate of change of PPP is 20% of PPP.

Key terms · tap one for its definition

rate

A rate is a derivative that measures how a quantity changes with respect to time.

differential equation

A differential equation is an equation involving a function and at least one of its derivatives.

Part 1 done

2

Part 2 of 6: Key phrases in a problem translate into symbols

Next, turn the sentence into symbols. Name the quantity, its units and the time variable. Then write the rate as dydt\frac{dy}{dt}dtdy​.

‘Proportional to’ means a constant multiple. The constant is usually called kkk, and it is positive unless the problem says otherwise.

Every term in the equation must have the same unit as dydt\frac{dy}{dt}dtdy​. If yyy is in mg and ttt in hours, the rate is in mg h−1\mathrm{mg\,h^{-1}}mgh−1.

Common phrases and their equations

PhraseEquation
rate of change of PPP is proportional to PPPdPdt=kP\frac{dP}{dt}=kPdtdP​=kP
PPP decreases at a rate proportional to PPPdPdt=−kP\frac{dP}{dt}=-kPdtdP​=−kP
VVV changes at a constant rate of 5dVdt=5\frac{dV}{dt}=5dtdV​=5
inflow 5, outflow proportional to VVVdVdt=5−kV\frac{dV}{dt}=5-kVdtdV​=5−kV
TTT moves towards surroundings at SSS, rate proportional to the gapdTdt=−k(T−S)\frac{dT}{dt}=-k(T-S)dtdT​=−k(T−S)
rate proportional to NNN and to 200−N200-N200−NdNdt=kN(200−N)\frac{dN}{dt}=kN(200-N)dtdN​=kN(200−N)
Phrase
rate of change of PPP is proportional to PPP
Equation
dPdt=kP\frac{dP}{dt}=kPdtdP​=kP
Phrase
PPP decreases at a rate proportional to PPP
Equation
dPdt=−kP\frac{dP}{dt}=-kPdtdP​=−kP
Phrase
VVV changes at a constant rate of 5
Equation
dVdt=5\frac{dV}{dt}=5dtdV​=5
Phrase
inflow 5, outflow proportional to VVV
Equation
dVdt=5−kV\frac{dV}{dt}=5-kVdtdV​=5−kV
Phrase
TTT moves towards surroundings at SSS, rate proportional to the gap
Equation
dTdt=−k(T−S)\frac{dT}{dt}=-k(T-S)dtdT​=−k(T−S)
Phrase
rate proportional to NNN and to 200−N200-N200−N
Equation
dNdt=kN(200−N)\frac{dN}{dt}=kN(200-N)dtdN​=kN(200−N)

Exam tip

Take the sign from the words. ‘Decreases’ or ‘decays’ needs a minus sign in front of the term, while kkk stays positive.

Part 2 done

Quick check

One question on the part you just read

Easy

Identify the equation that says the rate of change of TTT is proportional to TTT.
Show answer and explanation

Answer: C · Worked explanation

A rate of change is dTdt\frac{dT}{dt}dtdT​, and proportional to TTT means a constant multiple of TTT, giving dTdt=kT\frac{dT}{dt}=kTdtdT​=kT. The form dTdt=k\frac{dT}{dt}=kdtdT​=k says the rate is constant, which is a different statement. Use the same method for any phrase of this kind: write the rate as a derivative, then write the quantity as a multiple of the constant.
3

Part 3 of 6: Data given in the problem fix the constant

A problem often gives one measurement of the rate. Use it to find kkk. Then check that the units on both sides agree.

Worked example

Finding the constant in a growth model

A population PPP of bacteria grows at a rate proportional to its size. When P=200P=200P=200, dPdt=30\frac{dP}{dt}=30dtdP​=30, with ttt in hours. Write the differential equation.
  1. 1
    A rate proportional to size gives dPdt=kP\frac{dP}{dt}=kPdtdP​=kP.
  2. 2
    Substitute the data: 30=k×20030=k\times20030=k×200.
  3. 3
    Solve: k=30200=0.15k=\frac{30}{200}=0.15k=20030​=0.15.
  4. 4
    Put kkk back into the equation.

Answer: dPdt=0.15P\frac{dP}{dt}=0.15PdtdP​=0.15P, where k=0.15 h−1k=0.15\,\mathrm{h^{-1}}k=0.15h−1.

The unit of kkk is h−1\mathrm{h^{-1}}h−1. This is because dPdt\frac{dP}{dt}dtdP​ is a number of bacteria for each hour, while PPP is a number of bacteria.

Not every problem needs a constant. Sometimes the rate is given directly, such as a steady inflow of 5. Then the equation can be read straight from the words.

Check that the sign makes sense. Growth means a positive rate, so kkk should be positive. The value k=0.15k=0.15k=0.15 agrees with the data.

Part 3 done

4

Part 4 of 6: An initial condition fixes the starting value

The same equation can describe many populations, each starting with a different size. Something must say which one you mean.

An initial condition states the value of the function at a starting time, such as P(0)=200P(0)=200P(0)=200. Without it, the equation has many possible solutions. With it, you can find a single one.

Look for phrases such as ‘at the start’, ‘initially’ or ‘when t=0t=0t=0’. Write each one as y(t0)=y0y(t_0)=y_0y(t0​)=y0​, with units.

Common mistake

P(0)=200P(0)=200P(0)=200 gives a value of PPP, not of dPdt\frac{dP}{dt}dtdP​. Do not confuse the starting value with the starting rate.

Key term

initial condition

An initial condition gives a function value at a specified input, allowing the constant of integration to be found.

Part 4 done

Quick check

One question on the part you just read

Easy

Identify the initial condition in a problem about a population PPP at time ttt hours.
Show answer and explanation

Answer: D · Worked explanation

An initial condition gives the value of the function at a starting time, so P(0)=500P(0)=500P(0)=500 is one. The equation dPdt=0.2P\frac{dP}{dt}=0.2PdtdP​=0.2P is the differential equation itself, and P=500e0.2tP=500e^{0.2t}P=500e0.2t is a solution. Look for a statement that fixes a value at a given time, such as t=0t=0t=0, and that contains no derivative.
5

Part 5 of 6: A solution is a function that satisfies the equation

Suppose someone offers a formula for PPP. To test it, differentiate and substitute into the equation. A solution must satisfy the equation at every point of an interval.

Take P=200e0.15tP=200e^{0.15t}P=200e0.15t. Then dPdt=30e0.15t\frac{dP}{dt}=30e^{0.15t}dtdP​=30e0.15t, which equals 0.15P0.15P0.15P. The equation holds for every ttt, so the formula is a solution. Since P(0)=200P(0)=200P(0)=200, it also meets the initial condition.

Without an initial condition, P=Ce0.15tP=Ce^{0.15t}P=Ce0.15t works for every constant CCC. This gives one curve for each starting value. The initial condition picks out one of them.

Figure 1. Both curves satisfy the same equation. The initial value selects which curve applies.

Key term

solution

A solution is a differentiable function that satisfies a differential equation at every point of a specified interval.

Part 5 done

6

Part 6 of 6: A solution describes the quantity at every time

A solution predicts the quantity at any time in its interval. Here, P(5)=200e0.75≈423P(5)=200e^{0.75}\approx423P(5)=200e0.75≈423 bacteria. The solution gives the quantity itself, and its derivative gives the rate.

Substituting t=0t=0t=0 returns the starting value, P(0)=200P(0)=200P(0)=200. This is a quick check that the solution matches the initial condition.

Always interpret the result in context. A population cannot be negative, and time starts at t=0t=0t=0, so the model applies for t≥0t\geq0t≥0. A real population may not keep growing for ever.

Common mistake

Do not call the solution a rate. The function P(t)P(t)P(t) is the quantity; the rate is dPdt\frac{dP}{dt}dtdP​.

Go deeperA solution may exist only on part of the line

The equation dydt=y2\frac{dy}{dt}=y^2dtdy​=y2 with y(0)=1y(0)=1y(0)=1 has the solution y=11−ty=\frac{1}{1-t}y=1−t1​. Check: dydt=1(1−t)2=y2\frac{dy}{dt}=\frac{1}{(1-t)^2}=y^2dtdy​=(1−t)21​=y2.

This function is not defined at t=1t=1t=1 and grows without limit as ttt approaches 1. The solution is valid only on the interval t<1t<1t<1, which is why a solution comes with an interval.

Note read

Check your recall[14 marks]

5 written questions. Answer each one in your head or on paper, then open the mark scheme.

  1. 1.Write down[3 marks]

    Write down a differential equation for a mass mmm of a substance that decays at a rate proportional to mmm, and state the sign of the constant.

    Show mark schemeHide mark scheme

    Model answer

    dmdt=−km\frac{dm}{dt}=-kmdtdm​=−km, where kkk is a positive constant. The minus sign shows that mmm decreases.

    • 1 mark for writing dmdt\frac{dm}{dt}dtdm​ equal to a constant multiple of mmm
    • 1 mark for including a minus sign because the mass decreases
    • 1 mark for stating that kkk is positive
  2. 2.Determine[3 marks]

    A population PPP grows at a rate proportional to its size. When P=400P=400P=400, the rate of growth is 48, with ttt in days. Determine the differential equation.

    Show mark schemeHide mark scheme

    Model answer

    dPdt=kP\frac{dP}{dt}=kPdtdP​=kP. Substituting gives 48=400k48=400k48=400k, so k=0.12k=0.12k=0.12. The equation is dPdt=0.12P\frac{dP}{dt}=0.12PdtdP​=0.12P.

    • 1 mark for writing dPdt=kP\frac{dP}{dt}=kPdtdP​=kP
    • 1 mark for substituting the data to find k=0.12k=0.12k=0.12
    • 1 mark for stating dPdt=0.12P\frac{dP}{dt}=0.12PdtdP​=0.12P
  3. 3.Explain[2 marks]

    Explain why an initial condition is needed to find one particular solution of a differential equation.

    Show mark schemeHide mark scheme

    Model answer

    The equation alone has a family of solutions, one for each value of the constant of integration. An initial condition gives a function value, which fixes the constant and picks one solution.

    • 1 mark for stating that the equation has a family of solutions with an arbitrary constant
    • 1 mark for explaining that the initial condition fixes the constant to give one solution
  4. 4.Describe[3 marks]

    Describe how to check that a given function is a solution of a differential equation.

    Show mark schemeHide mark scheme

    Model answer

    Differentiate the function. Substitute the function and its derivative into the equation. Show that both sides are equal for every value in the interval.

    • 1 mark for differentiating the given function
    • 1 mark for substituting the function and derivative into the equation
    • 1 mark for showing both sides are equal on the whole interval
  5. 5.Outline[3 marks]

    Outline what the solution P(t)=200e0.15tP(t)=200e^{0.15t}P(t)=200e0.15t tells you about a population of bacteria, with ttt in hours.

    Show mark schemeHide mark scheme

    Model answer

    It gives the population at any time t≥0t\geq0t≥0. The starting population is 200, from P(0)P(0)P(0). The population increases as time passes, because PPP grows with ttt.

    • 1 mark for stating that it gives the population at any time
    • 1 mark for identifying the starting population as 200
    • 1 mark for stating that the population increases with time

Practice this topic

10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)

0 right0 of 10 answered

Includes the 2 quick checks in the note above.

3.

Easy·State[1 mark]

State what a solution of a differential equation is.
Show answer and explanation

Answer: B · Worked explanation

A solution is a differentiable function that makes the equation true at every point of an interval. The value at the starting time is the initial condition, which is used to choose one solution but is not itself a solution.
4.

Medium·Determine[2 marks]

The mass MMM of a drug in the body, in mg, decreases at a rate proportional to MMM. When M=40M=40M=40, it decreases at 6 mg h−16\,\mathrm{mg\,h^{-1}}6mgh−1. Determine the differential equation.
Show answer and explanation

Answer: D · Worked explanation

Write dMdt=−kM\frac{dM}{dt}=-kMdtdM​=−kM. Substituting gives −6=−k×40-6=-k\times40−6=−k×40, so k=640=0.15k=\frac{6}{40}=0.15k=406​=0.15. The sign is negative because MMM decreases. The version with a plus sign describes growth instead. Check the units: 0.15 h−10.15\,\mathrm{h^{-1}}0.15h−1 times 40 mg40\,\mathrm{mg}40mg gives 6 mg h−16\,\mathrm{mg\,h^{-1}}6mgh−1, matching the data, so the equation is consistent with the problem.
5.

Medium·Identify[1 mark]

Identify the differential equation that is satisfied by y=5e3ty=5e^{3t}y=5e3t.
Show answer and explanation

Answer: C · Worked explanation

Differentiate: dydt=15e3t\frac{dy}{dt}=15e^{3t}dtdy​=15e3t. Since y=5e3ty=5e^{3t}y=5e3t, this equals 3y3y3y. The form dydt=15y\frac{dy}{dt}=15ydtdy​=15y uses the derivative's coefficient as the constant, but 15e3t15e^{3t}15e3t is 3y3y3y, not 15y15y15y. Check by substitution: both sides equal 15e3t15e^{3t}15e3t, so the equation holds for every ttt, which is what a solution requires.
6.

Medium·Calculate[2 marks]

A model gives P=Ce0.2tP=Ce^{0.2t}P=Ce0.2t with P(0)=50P(0)=50P(0)=50. Calculate P(5)P(5)P(5).
Show answer and explanation

Answer: A · Worked explanation

Since P(0)=50P(0)=50P(0)=50, C=50C=50C=50. Then P(5)=50e1≈136P(5)=50e^{1}\approx136P(5)=50e1≈136. The value 61.1 is 50e0.250e^{0.2}50e0.2, which is P(1)P(1)P(1), and 250 comes from multiplying 50 by 5 instead of using the exponential. The initial condition fixes CCC before any time value is used, so always find the constant first.
7.

Medium·Determine[1 mark]

A tank holds V dm3V\,\mathrm{dm^3}Vdm3 of liquid, with dVdt=5−0.1V\frac{dV}{dt}=5-0.1VdtdV​=5−0.1V and ttt in hours. Determine the value of VVV at which VVV stops changing.
Show answer and explanation

Answer: D · Worked explanation

The volume stops changing when dVdt=0\frac{dV}{dt}=0dtdV​=0, so 5−0.1V=05-0.1V=05−0.1V=0 and V=50 dm3V=50\,\mathrm{dm^3}V=50dm3. The value 5 is the inflow rate, and it is not the volume at which inflow balances outflow. Equal inflow and outflow at this volume mean that the volume stays constant, which is the idea behind a steady state.
8.

Hard·Identify[2 marks]

A rumour spreads among 200 people. The rate at which it spreads is proportional to the number NNN who know it and to the number who do not. Identify the differential equation.
Show answer and explanation

Answer: B · Worked explanation

Proportional to both NNN and 200−N200-N200−N means a constant times their product. The form kNkNkN ignores the people who do not yet know, and k(200−N)k(200-N)k(200−N) ignores those who do know. Check with a sensible case: if N=0N=0N=0 or N=200N=200N=200, the rate is zero, which fits a rumour that has not started or has reached everyone.
9.

Hard·Identify[2 marks]

Identify the function that is a solution of dydt=−2y\frac{dy}{dt}=-2ydtdy​=−2y with y(0)=4y(0)=4y(0)=4.
Show answer and explanation

Answer: D · Worked explanation

For y=4e−2ty=4e^{-2t}y=4e−2t, dydt=−8e−2t=−2y\frac{dy}{dt}=-8e^{-2t}=-2ydtdy​=−8e−2t=−2y and y(0)=4y(0)=4y(0)=4. The function e−2t+3e^{-2t}+3e−2t+3 meets y(0)=4y(0)=4y(0)=4, but its derivative is −2e−2t-2e^{-2t}−2e−2t, which is not −2y-2y−2y, so it fails the equation. Always test both requirements, the equation and the initial condition, since meeting only one does not make a function the required solution.
10.

Hard·Determine[2 marks]

An object at T ∘CT\,^{\circ}\mathrm{C}T∘C cools in surroundings at 20 ∘C20\,^{\circ}\mathrm{C}20∘C, at a rate proportional to T−20T-20T−20. At T=80T=80T=80, TTT falls at 3 ∘C min−13\,^{\circ}\mathrm{C\,min^{-1}}3∘Cmin−1. Determine the differential equation.
Show answer and explanation

Answer: A · Worked explanation

Write dTdt=−k(T−20)\frac{dT}{dt}=-k(T-20)dtdT​=−k(T−20). At T=80T=80T=80, −3=−k×60-3=-k\times60−3=−k×60, so k=0.05k=0.05k=0.05. The value 0.15 comes from dividing by 20 instead of the gap of 60, and 0.0375 uses TTT instead of the gap. Check: at T=80T=80T=80, −0.05×60=−3-0.05\times60=-3−0.05×60=−3, which matches the given rate of fall of 3 ∘C min−13\,^{\circ}\mathrm{C\,min^{-1}}3∘Cmin−1.

Keep going

Next topic5.15 Slope fieldsPrevious topic5.13 Kinematics

More in Topic 5 · Calculus

  1. 5.10Second derivativesNotes · 10 questions· HL only
  2. 5.11Further integrationNotes · 10 questions· HL only
  3. 5.12Areas and volumes of revolutionNotes · 10 questions· HL only
  4. 5.13KinematicsNotes · 10 questions· HL only
  5. 5.14Setting up differential equationsNotes · 10 questions· HL only
  6. 5.15Slope fieldsNotes · 10 questions· HL only
  7. 5.16Euler's methodNotes · 10 questions· HL only
  8. 5.17Phase portraitsNotes · 10 questions· HL only
  9. 5.18Second-order differential equationsNotes · 10 questions· HL only

All IB Mathematics: Applications and Interpretation topics →

Draft: written by Scribe and checked automatically, not yet by a subject reviewer.

Practice questions are original, written by Scribe and checked automatically for correctness.

Topic codes follow the official numbering. Not endorsed by IB Diploma Programme or any exam board.

On this page

0/6 read

  1. 1A differential equation links a quantity to its rate
  2. 2Key phrases in a problem translate into symbols
  3. 3Data given in the problem fix the constant
  4. 4An initial condition fixes the starting value
  5. 5A solution is a function that satisfies the equation
  6. 6A solution describes the quantity at every time
  7. Check your recall
  8. Practice: 10 questions
All coursesScribeHow it worksPricingPrivacyTerms

Notes and questions are written by Scribe in our own words. Topic codes follow the official course numbering so you can find your place. Not produced or endorsed by the IB, College Board, AQA, OCR, Pearson Edexcel or any exam board.

© 2026 Scribe

Two solutions of the same equation

Population P (bacteria)02468100200400600800Time t (h)
  • P(0) = 200
  • P(0) = 100