Skip to main content
Examonaut

Topic 8 · Lesson 3 of 4

Partial fractions and differential equations

Integration using partial fractionsA level only

A fraction with a product in the denominator can't be integrated directly, but its partial fractions can, because each is a simple Aax+b\frac{A}{ax + b}, which integrates to a logarithm.

Worked example

Partial fractionsexam standard

Show that ∫245x+1(x−1)(x+2) dx=ln⁡2438\int_2^4 \frac{5x + 1}{(x - 1)(x + 2)}\,dx = \ln\frac{243}{8}.

Show solution
  1. Partial fractions: 5x+1(x−1)(x+2)=2x−1+3x+2\frac{5x + 1}{(x - 1)(x + 2)} = \frac{2}{x - 1} + \frac{3}{x + 2} (from 5x+1=A(x+2)+B(x−1)5x + 1 = A(x + 2) + B(x - 1) with x=1x = 1 and x=−2x = -2).
  2. Integrate: [2ln⁡∣x−1∣+3ln⁡∣x+2∣]24=(2ln⁡3+3ln⁡6)−(2ln⁡1+3ln⁡4)\big[2\ln|x - 1| + 3\ln|x + 2|\big]_2^4 = (2\ln 3 + 3\ln 6) - (2\ln 1 + 3\ln 4).
  3. Combine with the laws of logs: 2ln⁡3+3ln⁡64=ln⁡9+ln⁡278=ln⁡24382\ln 3 + 3\ln\frac{6}{4} = \ln 9 + \ln\frac{27}{8} = \ln\frac{243}{8}, as required.

Differential equations with separable variablesA level only

A differential equation links a function with its derivative, such as dTdt=−k(T−20)\frac{dT}{dt} = -k(T - 20). Solving it means finding the function itself. If the right-hand side can be written as (a function of xx) ×\times (a function of yy), the variables can be separated: get every yy with dydy on one side and every xx with dxdx on the other, then integrate both sides.

How to solve a separable differential equation

  1. Step 1: Separate: dydx=f(x)g(y)\frac{dy}{dx} = f(x)g(y) becomes ∫1g(y) dy=∫f(x) dx\int \frac{1}{g(y)}\,dy = \int f(x)\,dx.
  2. Step 2: Integrate both sides, with one constant cc (on the xx side).
  3. Step 3: Use the given condition to find cc (a particular solution). Without it you have the general solution.
  4. Step 4: Rearrange into the form asked for, such as y=…y = \ldots

Worked example

Newton's law of coolingtop grade

A cup of tea at 90 °C is placed in a room at 20 °C. Its temperature TT after tt minutes satisfies dTdt=−k(T−20)\frac{dT}{dt} = -k(T - 20). After 5 minutes it is 60 °C.
a) Show that T=20+70e−ktT = 20 + 70e^{-kt} and find kk. b) Find when the tea reaches 30 °C. c) Describe what the model predicts in the long run.

Show solution
  1. a) Separate: ∫1T−20 dT=∫−k dt\int \frac{1}{T - 20}\,dT = \int -k\,dt, so ln⁡∣T−20∣=−kt+c\ln|T - 20| = -kt + c.
  2. Undo the log: T−20=e−kt+c=Ae−ktT - 20 = e^{-kt + c} = Ae^{-kt}, where A=ecA = e^c.
  3. At t=0t = 0, T=90T = 90: A=70A = 70. So T=20+70e−ktT = 20 + 70e^{-kt}.
  4. At t=5t = 5: 60=20+70e−5k60 = 20 + 70e^{-5k}, so e−5k=47e^{-5k} = \frac{4}{7} and k=15ln⁡74=0.112k = \frac{1}{5}\ln\frac{7}{4} = 0.112.
  5. b) 30=20+70e−kt30 = 20 + 70e^{-kt}, so e−kt=17e^{-kt} = \frac{1}{7} and t=ln⁡7k=17.4t = \frac{\ln 7}{k} = 17.4 minutes.
  6. c) As tt grows, e−kt→0e^{-kt} \to 0, so T→20T \to 20: the tea cools towards room temperature but, in the model, never quite reaches it. The diagram shows this for several starting temperatures. In reality the room may warm slightly, and stirring or a lid would change kk.
tT1020304020406080100T = 20T₀ = 90starting below 20

Worked example

A separable equation with a twisttop grade

Solve dydx=2xy2\frac{dy}{dx} = 2xy^2, given y=1y = 1 when x=1x = 1, and state where the solution is valid.

Show solution
  1. Separate: ∫y−2 dy=∫2x dx\int y^{-2}\,dy = \int 2x\,dx, so −1y=x2+c-\frac{1}{y} = x^2 + c.
  2. x=1x = 1, y=1y = 1: −1=1+c-1 = 1 + c, so c=−2c = -2.
  3. −1y=x2−2-\frac{1}{y} = x^2 - 2, so y=12−x2y = \frac{1}{2 - x^2}.
  4. The solution breaks down where 2−x2=02 - x^2 = 0, at x=±2x = \pm\sqrt{2}, so it is valid for −2<x<2-\sqrt{2} < x < \sqrt{2} (the interval containing the starting point x=1x = 1).

Practise this topic

Both are part of Premium.