← AS & A Level Mathematics

AS & A Level Mathematics · Pure Mathematics 2 & 3 · Chapter 10

Differential equations

Forming differential equations P3 only

🎯 Learning objectives

  • Translate descriptive rates of change into first-order differential equations.
  • Identify constants of proportionality in direct, inverse, and joint variations.
  • Model cooling, growth, decay, connected rates, and physical constraints.

Book exercises: Exercise 10B · End-of-chapter review exercise 10

Rates of change & translation keywords

  • Derivative meaning: The derivative or measures the instantaneous rate at which a variable changes.
  • Rate of increase: Represented with a positive sign: > 0.
  • Rate of decrease: Represented with a negative sign: = −k(…) where k > 0.
  • Direct proportionality: “Rate is proportional to y” translates to = ky.
  • Inverse proportionality: “Rate is inversely proportional to the square root of r” translates to = .
Word Problem “decreases ∝ square of h” Proportionality Form dh/dt ∝ −h² Differential Equation dh/dt = −k h² (k > 0) ⚠️ Always introduce a strictly positive constant k > 0 and assign negative signs for decreases.
Figure 10.1: Three-step process for converting English descriptions into mathematical rate equations.

Newton’s law of cooling

  • Physical law: The rate of cooling of a body is directly proportional to the temperature excess over its surroundings.
  • Equation: = −k(θ − θ_env), where θ is the object’s temperature, θ_env is surrounding temperature, and k > 0.
  • Significance: When θ > θ_env, < 0 so the body cools; as θ approaches θ_env, cooling slows towards zero.
2040608012345θ − θ_env|dθ/dt|Slope = k (constant)
Figure 10.2: Newton’s law of cooling: cooling magnitude |dθ/dt| is strictly linear in temperature difference.

Worked Example 1: Velocity in a resisting medium

A particle moves through a fluid such that its velocity v decreases at a rate proportional to the product v(v + 1). Initially v = 3 m/s, and when t = 2 s, v = 1 m/s. Form the differential equation.

  1. Identify the rate and state the proportionality: “rate of decrease of v” is , so ∝ −v(v + 1).
  2. Insert the constant of proportionality k > 0: = −k v(v + 1).
  3. Answer: = −k v(v + 1) with initial conditions v(0) = 3 and v(2) = 1.

✏️ Try it: Forming differential equations

  1. A culture of bacteria N increases at a rate proportional to N. Write the differential equation.
    Solution

    Step 1: Rate of increase is dN/dt.
    Step 2: Proportional to N gives dN/dt = kN (k > 0).
    Answer: dN/dt = kN

  2. A container leaks liquid so that the rate of decrease of volume V is proportional to the square root of V. Write the differential equation.
    Solution

    Step 1: Rate of decrease is dV/dt < 0.
    Step 2: Proportional to √V gives dV/dt = −k√V with k > 0.
    Answer: dV/dt = −k√V

  3. A cup of tea at 85 °C cools in a room held at 22 °C. Formulate the differential equation for temperature θ at time t.
    Solution

    Step 1: Surroundings temperature θ_env = 22.
    Step 2: Rate of cooling dθ/dt = −k(θ − 22) with k > 0 and θ(0) = 85.
    Answer: dθ/dt = −k(θ − 22)

Separation of variables P3 only

The fundamental technique

  • Separable form: A first-order differential equation is separable if it can be written as = f(x) · g(y).
  • Separating the terms: Divide by g(y) (assuming g(y) ≠ 0) and multiply formally by dx: dy = f(x) dx.
  • Integrating both sides: ∫ dy = ∫ f(x) dx + C.
  • Single arbitrary constant: Constants from both integrations combine into a single arbitrary constant C.
  • General solution: The resulting family of curves containing the arbitrary constant C is the general solution.
dy/dx = f(x) g(y) Identify factors 1/g(y) dy = f(x) dx Separate variables ∫ 1/g(y) dy = ∫ f(x) dx Integrate both sides G(y) = F(x) + C General solution
Figure 10.3: Flow of the separation of variables method.
−2−112−2246xyC=-1.5C=0C=1.5C=3
Figure 10.4: Family of general solutions y = x² + C for dy/dx = 2x. Each curve corresponds to a distinct constant C.

Worked Example 2: Finding a general solution

Find the general solution of the differential equation = for y > 0.

  1. Separate the variables: multiply both sides by 2y dx to get 2y dy = (1 + x) dx.
  2. Integrate both sides: ∫ 2y dy = ∫ (1 + x) dx.
  3. Perform integration: y² = x + + C.
  4. Express y explicitly: y = √(x + + C) since y > 0.
  5. Answer: y² = x + + C (or y = √(x + x²/2 + C)). Check: differentiating 2y dy/dx = 1 + x gives dy/dx = (1 + x)/(2y) ✔

✏️ Try it: Separation of variables

  1. Find the general solution of dy/dx = 3x² y for y > 0.
    Solution

    Step 1: Separate: (1/y) dy = 3x² dx.
    Step 2: Integrate: ∫ (1/y) dy = ∫ 3x² dx gives ln y = x³ + C.
    Step 3: Exponentiate: y = ex³ + C = A ex³.
    Answer: y = A ex³

  2. Find the general solution of dy/dx = (x − 2)/y.
    Solution

    Step 1: Separate: y dy = (x − 2) dx.
    Step 2: Integrate: y²/2 = x²/2 − 2x + c.
    Step 3: Multiply by 2: y² = x² − 4x + C.
    Answer: y² = x² − 4x + C

  3. Solve dy/dx = e2x − y.
    Solution

    Step 1: Rewrite e2x − y as e2x · e−y.
    Step 2: Separate: ey dy = e2x dx.
    Step 3: Integrate: ey = (1/2) e2x + C.
    Answer: y = ln((1/2) e2x + C)

Particular solutions & initial values P3 only

Boundary conditions & determining C

  • Initial condition: A known point (x₀, y₀) fixes the value of the arbitrary constant C.
  • Particular solution: The unique curve from the family passing through the given point.
  • Modulus signs: When integrating , we write ln|y|. If y > 0 in the region, |y| = y; if y < 0, |y| = −y.
  • Constant rearrangement: ln y = kt + C can be written as y = ekt + C = eC · ekt = A ekt.
−1121357xyInitial (0, 2) → A = 2
Figure 10.5: Family of exponential curves y = A ex. Point (0, 2) singles out the particular solution y = 2 ex.

🧮 Interactive Solver: First-Order Initial Value Problem

Select a differential equation model and enter boundary values to compute the exact particular solution with live steps.

Solution Steps & Working:

    Worked Example 3: Particular solution with initial condition

    Solve the differential equation = given that y = 4 when x = 0. Obtain an explicit expression for y.

    1. Separate the variables: (y − 2) dy = (x² + 1) dx.
    2. Integrate both sides: ∫ (y − 2) dy = ∫ (x² + 1) dx.
    3. Evaluate integrals: − 2y = + x + C.
    4. Apply initial condition x = 0, y = 4: − 2(4) = 0 + 0 + C ⇒ 8 − 8 = 0 ⇒ C = 0.
    5. Complete the square to find y: (y − 2)² − 2 = + x ⇒ (y − 2)² = 2( + x + 2).
    6. Take the positive square root because y = 4 > 2 when x = 0: y − 2 = √(2x³/3 + 2x + 4).
    7. Answer: y = 2 + √(2x³/3 + 2x + 4). Check: at x = 0, y = 2 + √4 = 4 ✔

    ✏️ Try it: Initial value problems

    1. Given dy/dx = 2x y² and y = 1 when x = 0, find y in terms of x.
      Solution

      Step 1: Separate: y⁻² dy = 2x dx.
      Step 2: Integrate: −1/y = x² + C.
      Step 3: Put x = 0, y = 1: −1 = C, so −1/y = x² − 1.
      Step 4: Solve for y: y = 1/(1 − x²).
      Answer: y = 1/(1 − x²)

    2. Given dy/dx = (x + 1) e−y and y = 0 when x = 0, find y in terms of x.
      Solution

      Step 1: Separate: ey dy = (x + 1) dx.
      Step 2: Integrate: ey = x²/2 + x + C.
      Step 3: Put x = 0, y = 0: e⁰ = 1 = C.
      Step 4: Take logs: y = ln(x²/2 + x + 1).
      Answer: y = ln(x²/2 + x + 1)

    3. Solve dy/dx = y cos x given y = 3 when x = 0.
      Solution

      Step 1: Separate: (1/y) dy = cos x dx.
      Step 2: Integrate: ln y = sin x + C.
      Step 3: Put x = 0, y = 3: ln 3 = C.
      Step 4: Write explicitly: y = 3 esin x.
      Answer: y = 3 esin x

    Partial fractions & substitutions P3 only

    Separating into partial fractions

    • Quadratic denominators: When separating = k x(M − x), the integral becomes ∫ dx = ∫ k dt.
    • Decomposition: ≡ ( + ).
    • Integration: (ln|x| − ln|M − x|) = kt + C.
    • Logarithm laws: Combine using quotient rule: ln|| = M k t + C'.
    246810255075100txCarrying capacity x = 100Inflection at x = 50
    Figure 10.6: The logistic S-curve generated by dx/dt = k x(100 − x). The population accelerates until inflection at x = 50, then asymptotically approaches capacity 100.

    Integration by substitution in differential equations

    • Composite factors: When terms like x ex² or appear, standard substitutions (e.g. u = x²) reduce the integral.
    • Reverse chain rule: Notice derivatives of inner functions: ∫ dx = ln|f(x)|.

    Worked Example 4: Solving with partial fractions

    The variables x and t satisfy = for 0 < x < 300. Initially x = 50 when t = 0. Solve for x in terms of t.

    1. Separate variables: dx = dt.
    2. Decompose into partial fractions: ≡ ( + ).
    3. Integrate both sides: ∫ ( + ) dx = ∫ dt.
    4. Evaluate: (ln x − ln(300 − x)) = + C ⇒ ln() = + C'.
    5. Apply initial condition t = 0, x = 50: ln() = ln(0.2) = C'.
    6. Exponentiate: = 0.2 et/2.
    7. Rearrange for x: x = 0.2 et/2(300 − x) ⇒ x(1 + 0.2 et/2) = 60 et/2 ⇒ x = = .
    8. Answer: x = . Check: at t = 0, x = 300/(1 + 5) = 50 ✔; as t → ∞, x → 300 ✔

    ✏️ Try it: Advanced techniques

    1. Express 1/((2 − x)(x + 1)) in partial fractions.
      Solution

      Step 1: 1/((2 − x)(x + 1)) ≡ A/(2 − x) + B/(x + 1).
      Step 2: 1 ≡ A(x + 1) + B(2 − x). Put x = 2: 1 = 3A ⇒ A = 1/3.
      Step 3: Put x = −1: 1 = 3B ⇒ B = 1/3.
      Answer: (1/3)/(2 − x) + (1/3)/(x + 1)

    2. Solve dx/dt = (2 − x)(x + 1) given x = 0 when t = 0.
      Solution

      Step 1: (1/3)[ln(x + 1) − ln(2 − x)] = t + C.
      Step 2: t = 0, x = 0 ⇒ (1/3) ln(1/2) = C ⇒ ln((x + 1)/(2 − x)) = 3t + ln(0.5).
      Step 3: (x + 1)/(2 − x) = 0.5 e3t ⇒ x = (e3t − 1)/(1 + 0.5 e3t).
      Answer: x = (2 e3t − 2)/(e3t + 2)

    3. Solve dy/dx = (x sin(x²))/y given y = −1 when x = 0.
      Solution

      Step 1: Separate: y dy = x sin(x²) dx.
      Step 2: Substitute u = x², du = 2x dx: ∫ x sin(x²) dx = −(1/2) cos(x²).
      Step 3: y²/2 = −(1/2) cos(x²) + C.
      Step 4: x = 0, y = −1 ⇒ 1/2 = −1/2 + C ⇒ C = 1.
      Step 5: y² = 2 − cos(x²). Since y(0) = −1 < 0, y = −√(2 − cos(x²)).
      Answer: y = −√(2 − cos(x²))

    Real-world models & long-term limits P3 only

    Interpreting models in context

    • Long-term limits (t → ∞): Terms with negative exponents (e−kt with k > 0) decay to 0: limt → ∞ e−kt = 0.
    • Carrying capacity: In population and chemical models, the numerator in logistic expressions represents the upper asymptote that the variable approaches.
    • Half-life (radioactive decay): If = −km, then m(t) = m₀ e−kt. Setting m = m₀/2 gives k = .
    • Model limitations: Unrestricted exponential growth models assume unlimited resources, which fails in the long run. Real biological systems transition to logistic or resource-limited growth.
    12345620406080tPExponential: P₀ ektLogistic: P → 60
    Figure 10.7: Comparison between unrestricted exponential explosion and realistic logistic growth with saturation.

    Worked Example 5: Tree growth and limiting height

    The height h metres of a tree t years after planting satisfies = k(8 − h). When planted (t = 0), h = 0.5 m, and after 5 years, h = 2 m. Form and solve the equation, and find the limiting height.

    1. Separate variables: dh = k dt.
    2. Integrate both sides: −ln|8 − h| = kt + C. Since h < 8, −ln(8 − h) = kt + C.
    3. Apply initial condition t = 0, h = 0.5: −ln(7.5) = C.
    4. Substitute C and simplify: ln() = kt ⇒ 8 − h = 7.5 e−kt.
    5. Use t = 5, h = 2 to find k: 8 − 2 = 6 = 7.5 e−5k ⇒ e−5k = 6/7.5 = 0.8 ⇒ k = − ≈ 0.0446.
    6. Express height as a function of time: h(t) = 8 − 7.5 e−0.0446 t.
    7. Examine the limit as t → ∞: since e−0.0446 t → 0, h → 8.
    8. Answer: h(t) = 8 − 7.5 e−0.0446 t; limiting height is 8 metres. Check: at t = 0, h = 8 − 7.5 = 0.5 ✔; at t = 5, h = 8 − 7.5(0.8) = 2 ✔

    ✏️ Try it: Modelling & limits

    1. A radioactive isotope decays at rate dm/dt = −km. Half-life is 5700 years. Find k to 3 s.f.
      Solution

      Step 1: m = m₀ e−kt.
      Step 2: m₀/2 = m₀ e−5700k ⇒ e5700k = 2.
      Step 3: k = ln 2 / 5700 ≈ 0.000122.
      Answer: k = (ln 2)/5700 ≈ 1.22 × 10⁻⁴ yr⁻¹

    2. If x(t) = 500/(1 + 4 e−0.2t), what value does x approach as t becomes very large?
      Solution

      Step 1: Identify exponential term: e−0.2t → 0 as t → ∞.
      Step 2: Denominator approaches 1 + 0 = 1.
      Step 3: x → 500 / 1 = 500.
      Answer: 500

    3. The depth of water in a leaking tank satisfies dx/dt = −0.1 √x with initial depth x(0) = 4 m. Find the time taken for the tank to empty.
      Solution

      Step 1: x−1/2 dx = −0.1 dt.
      Step 2: 2√x = −0.1t + C.
      Step 3: t = 0, x = 4 ⇒ 2(2) = 4 = C ⇒ 2√x = 4 − 0.1t.
      Step 4: Empty when x = 0 ⇒ 4 − 0.1t = 0 ⇒ t = 40 s.
      Answer: 40 seconds

    Direction fields & interactive simulation P3 only

    Geometric interpretation of dy/dx = f(x, y)

    • Slope segments: At every point (x, y) in the coordinate plane, the differential equation assigns a numerical gradient m = f(x, y).
    • Tangent vectors: A direction field (or slope field) plots short line segments with gradient m across a grid of points.
    • Solution trajectories: Any solution curve must be everywhere tangent to the slope segments through which it passes.
    −11−11xy
    Figure 10.8: Direction field for dy/dx = x − y with a solution curve threading smoothly through tangent segments.

    🕹️ Interactive Simulation: Direction Field & Solution Curve Tracer

    Move the initial point (x₀, y₀) sliders or select different equations. The simulation computes the slope field tangents across the grid and integrates the particular trajectory live!

    Interactive Figure 10.9: Live direction field with particular solution curve through (x₀, y₀).

    Numerical Working & Verification:

      Summary & quiz P3 only

      Key Summary & Exam Checklist

      • Separation method: Write = f(x)g(y) as ∫ dy = ∫ f(x) dx + C.
      • Only one constant: One integration constant C suffices; determine it using boundary point (x₀, y₀).
      • Modulus and log rules: ∫ dy = ln|y|. Use given sign of y to drop modulus bars cleanly.
      • Rates of increase/decrease: Use +k for increases and −k for decreases (k > 0).
      • Newton’s cooling: = −k(θ − θ_env). Temperature excess decays exponentially.
      • Partial fractions: Use when denominators factorize into distinct or repeated linear terms.
      • Long-term limits: Evaluate behavior as t → ∞ by sending decaying exponentials e−kt to 0.

      Practice Questions & Assignment

      Work through all exercises and the end-of-chapter review in the printable assignment PDF:

      📄 View Printable Assignment (PDF)

      Mini-quiz

      1. Find the general solution of dy/dx = 2xy for y > 0.
      2. Find the general solution of dy/dx = (x + 1)/y.
      3. Given dy/dx = 3x²y and y = 2 when x = 0, find y in terms of x.
      4. Solve dy/dx = y cos x given y = 1 when x = 0.
      5. Which differential equation models "the rate of increase of P is proportional to P"?
      6. The rate of decrease of volume V is inversely proportional to V. Which equation is correct?
      7. A hot drink cools in a room at 20 °C. Newton's law of cooling gives which equation for θ?
      8. Separating dx/dt = x(4 − x) leads to which integral on the left?
      9. If dx/dt = 0.02x(500 − x) for x > 0, what does x approach as t → ∞?
      10. If dm/dt = −km and mass halves every 10 years, what is the exact value of k?
      11. Solve dy/dx = 2x y² given y = 1 when x = 0.
      12. Solve dy/dx = (x + 1) e⁻ʸ given y = 0 when x = 0.

      Source: Cambridge International AS & A Level Mathematics: Pure Mathematics 2 & 3 Coursebook (Cambridge University Press, Sue Pemberton and Julianne Hughes), Chapter 10 (Differential equations). Explanations, extra examples, diagrams, interactive tools, the slope field simulation, the Try it answers and the quiz are Guru Jazzy's own. This page is not made or endorsed by Cambridge University Press or Cambridge Assessment International Education.