Differential Equations

Pure Mathematics

A differential equation relates a function to its derivative. In H2 Maths (syllabus 9758) you work exclusively with first-order separable equations — those where dydx\dfrac{dy}{dx} can be written as a product of a function of xx and a function of yy, so the variables can be separated and each side integrated independently.

What you need to know

Worked example 1 — separation of variables (general solution)

Find the general solution of dydx=3x2y\dfrac{dy}{dx} = 3x^2 y.

Separate variables and integrate:

1ydy=3x2dx\frac{1}{y}\,dy = 3x^2\,dx 1ydy=3x2dxlny=x3+C.\int \frac{1}{y}\,dy = \int 3x^2\,dx \quad\Longrightarrow\quad \ln|y| = x^3 + C.

Exponentiating both sides:

y=ex3+C=eCex3.|y| = e^{x^3 + C} = e^C\,e^{x^3}.

Writing A=±eCA = \pm e^C (an arbitrary non-zero constant):

y=Aex3.y = A e^{x^3}.

Verification: dydx=3x2Aex3=3x2y\dfrac{dy}{dx} = 3x^2 A e^{x^3} = 3x^2 y. Satisfied.

Worked example 2 — particular solution from an initial condition

Given dydx=xy\dfrac{dy}{dx} = \dfrac{x}{y} and y=3y = 3 when x=0x = 0, find the particular solution.

Separate and integrate:

ydy=xdxy22=x22+C.y\,dy = x\,dx \quad\Longrightarrow\quad \frac{y^2}{2} = \frac{x^2}{2} + C.

Apply the initial condition y=3y = 3, x=0x = 0:

92=0+CC=92.\frac{9}{2} = 0 + C \quad\Longrightarrow\quad C = \frac{9}{2}.

Particular solution:

y2=x2+9(y>0).y^2 = x^2 + 9 \quad (y > 0).

Verification: Differentiating implicitly gives 2ydydx=2x2y\,\dfrac{dy}{dx} = 2x, so dydx=xy\dfrac{dy}{dx} = \dfrac{x}{y}. Satisfied.

Worked example 3 — modelling (exponential decay)

A substance decays at a rate proportional to its mass mm (grams) at time tt (minutes). Initially m=80m = 80 g; after 10 minutes m=40m = 40 g. Find mm in terms of tt.

The model is dmdt=km\dfrac{dm}{dt} = -km for some k>0k > 0. Separating variables:

1mdm=kdtlnm=kt+C(m>0).\frac{1}{m}\,dm = -k\,dt \quad\Longrightarrow\quad \ln m = -kt + C \quad (m > 0).

So m=Aektm = Ae^{-kt}. Using m=80m = 80 at t=0t = 0: A=80A = 80, giving m=80ektm = 80e^{-kt}.

Using m=40m = 40 at t=10t = 10:

40=80e10ke10k=12k=ln210.40 = 80e^{-10k} \quad\Longrightarrow\quad e^{-10k} = \tfrac{1}{2} \quad\Longrightarrow\quad k = \frac{\ln 2}{10}. m=80etln210=802t/10.m = 80\,e^{-\tfrac{t\ln 2}{10}} = 80 \cdot 2^{-t/10}.

Verification: dmdt=80(ln210)2t/10=ln210m=km\dfrac{dm}{dt} = 80 \cdot \left(-\dfrac{\ln 2}{10}\right) 2^{-t/10} = -\dfrac{\ln 2}{10}\,m = -km. Satisfied.

Common mistakes

Ask MathChat about Differential Equations →