Skip to content

← Grade 12 Mathematics

Exam practice

Every question from the end of every unit, with hints and answers to open. After you check an answer, mark how you did, and come back to the ones you didn’t get.

12 questions

Unit 14 · Differential Equations

Short questions

1.
  • a.Find the order and degree of i. d2ydx2+(dydx)2=ex \dfrac{d^2y}{dx^2} + \left(\dfrac{dy}{dx}\right)^2 = e^x ; ii. d2ydx2=1+(dydx)3 \dfrac{d^2y}{dx^2} = \sqrt{1 + \left(\dfrac{dy}{dx}\right)^3} . (2 marks)
  • b.Show that y=Ae2x+Be−x y = Ae^{2x} + Be^{-x} is a solution of d2ydx2−dydx−2y=0 \dfrac{d^2y}{dx^2} - \dfrac{dy}{dx} - 2y = 0 for all constants A and B. Why can it be the general solution? (3 marks)
Answer
  • a.i. Highest derivative y′′, to the power 1: order 2, degree 1. ii. Square: (y′′)2=1+(y′)3 (y'')^2 = 1 + (y')^3 : order 2, degree 2.
  • b.y′=2Ae2x−Be−x y' = 2Ae^{2x} - Be^{-x} , y′′=4Ae2x+Be−x y'' = 4Ae^{2x} + Be^{-x} . Then y′′−y′−2y=(4A−2A−2A)e2x+(B+B−2B)e−x=0 y'' - y' - 2y = (4A - 2A - 2A)e^{2x} + (B + B - 2B)e^{-x} = 0 . ✓

The equation has order 2, and the solution has two arbitrary constants, A and B, as a general solution of a second-order equation must.

2.
  • a.Solve (1+x2) dy=x(1+y2) dx (1 + x^2)\,dy = x(1 + y^2)\,dx , and find the solution with y = 1 when x = 0. (3 marks)
  • b.Solve sin x cos y dx +  cos x sin y dy = 0. (2 marks)
Answer

a. Separate: dy1+y2=x dx1+x2 \dfrac{dy}{1 + y^2} = \dfrac{x\,dx}{1 + x^2} . Integrate: tan⁡−1y=12ln⁡(1+x2)+C \tan^{-1}y = \dfrac{1}{2}\ln(1 + x^2) + C (the right side’s top is half the bottom’s derivative).
At (0, 1): tan⁡−11=0+C \tan^{-1}1 = 0 + C , so C=π4 C = \dfrac{\pi}{4} , and tan⁡−1y=12ln⁡(1+x2)+π4 \tan^{-1}y = \dfrac{1}{2}\ln(1 + x^2) + \dfrac{\pi}{4} .
b. Divide by cos x cos y: tan x dx +  tan y dy = 0. Integrate: −ln⁡∣cos⁡x∣−ln⁡∣cos⁡y∣=c -\ln|\cos x| - \ln|\cos y| = c , so ln⁡∣cos⁡xcos⁡y∣=−c \ln|\cos x\cos y| = -c , and cos x cos y = C.

3.

Solve xdydx=y+xey/x x\dfrac{dy}{dx} = y + xe^{y/x} , x > 0. (5 marks)

Hint

Divide by x: the right side is a function of yx \frac{y}{x} .

Answer

dydx=yx+ey/x \dfrac{dy}{dx} = \dfrac{y}{x} + e^{y/x} : homogeneous. Put y = vx: v+xdvdx=v+ev v + x\dfrac{dv}{dx} = v + e^v , so xdvdx=ev x\dfrac{dv}{dx} = e^v .
Separate: e−v dv=dxx e^{-v}\,dv = \dfrac{dx}{x} , so −e−v=ln⁡x+c -e^{-v} = \ln x + c .
e−y/x+ln⁡x=C e^{-y/x} + \ln x = C .

4.

Solve cos⁡xdydx+ysin⁡x=1 \cos x\dfrac{dy}{dx} + y\sin x = 1 , −π2<x<π2 -\frac{\pi}{2} < x < \frac{\pi}{2} , and find the solution through (0, 2). (5 marks)

Answer

Standard form (divide by cos x): dydx+ytan⁡x=sec⁡x \dfrac{dy}{dx} + y\tan x = \sec x . IF=e∫tan⁡x dx=eln⁡sec⁡x=sec⁡x \text{IF} = e^{\int \tan x\,dx} = e^{\ln\sec x} = \sec x .
ysec⁡x=∫sec⁡2x dx=tan⁡x+C y\sec x = \displaystyle\int \sec^2 x\,dx = \tan x + C , so y =  sin x + C cos x.
At (0, 2): 2 = 0 + C, so y =  sin x + 2 cos x.

5.

Show that (x2−4xy−2y2) dx+(y2−4xy−2x2) dy=0 (x^2 - 4xy - 2y^2)\,dx + (y^2 - 4xy - 2x^2)\,dy = 0 is exact, and solve it. (5 marks)

Answer

∂M∂y=−4x−4y \dfrac{\partial M}{\partial y} = -4x - 4y and ∂N∂x=−4y−4x \dfrac{\partial N}{\partial x} = -4y - 4x : equal, so exact.
∫M dx \int M\,dx (y constant) =x33−2x2y−2xy2 = \dfrac{x^3}{3} - 2x^2y - 2xy^2 ; the term of N without x is y2 y^2 , with ∫y2 dy=y33 \int y^2\,dy = \dfrac{y^3}{3} .
x33−2x2y−2xy2+y33=C \dfrac{x^3}{3} - 2x^2y - 2xy^2 + \dfrac{y^3}{3} = C , or x3−6x2y−6xy2+y3=3C x^3 - 6x^2y - 6xy^2 + y^3 = 3C .

6.

The Chernobyl accident of 1986 spread cesium-137, whose half-life is 30.04 years, over much of Europe. The amount N in the soil decays by dNdt=−λN \dfrac{dN}{dt} = -\lambda N .

  • a.Solve the equation and find λ \lambda . (2 marks)
  • b.What fraction of the 1986 cesium-137 is still there in 2026? (1 mark)
  • c.In about which year will 10% be left? (2 marks)
Answer
  • a.N=N0e−λt N = N_0e^{-\lambda t} (Example 4), and λ=ln⁡230.04≈0.0231 \lambda = \dfrac{\ln 2}{30.04} \approx \mathbf{0.0231} per year.
  • b.t = 40: NN0=e−0.0231×40=2−40/30.04≈0.40 \dfrac{N}{N_0} = e^{-0.0231 \times 40} = 2^{-40/30.04} \approx \mathbf{0.40} : about 40%.
  • c.e−λt=0.1 e^{-\lambda t} = 0.1 : t=ln⁡10λ=30.04×ln⁡10ln⁡2≈100 t = \dfrac{\ln 10}{\lambda} = 30.04 \times \dfrac{\ln 10}{\ln 2} \approx 100 years, so about 2086.

What it means: a century for the soil to lose 90% of it, which is why the land closest to the reactor is still closed.

7.

Milk boiled to 100 °C is left in a kitchen at 25 °C. After 5 minutes it is at 85 °C. How long after boiling will it have cooled to 50 °C? (5 marks)

Answer

Newton’s law: T=25+75e−kt T = 25 + 75e^{-kt} (as in Example 5, with T0−Ts=75 T_0 - T_s = 75 ).
At t = 5: 75e−5k=60 75e^{-5k} = 60 , e−5k=0.8 e^{-5k} = 0.8 , k=ln⁡1.255≈0.0446 k = \dfrac{\ln 1.25}{5} \approx 0.0446 per minute.
T = 50: 75e−kt=25 75e^{-kt} = 25 , e−kt=13 e^{-kt} = \dfrac{1}{3} , t=5ln⁡3ln⁡1.25≈ t = \dfrac{5\ln 3}{\ln 1.25} \approx 24.6 minutes.

8.

At every point P(x, y) of a curve, with x > 0 and y > 0, the slope of the tangent equals the slope of OP plus the reciprocal of that slope. The curve passes through (1, 1). Find its equation. (5 marks)

Hint

The slope of OP is yx \frac{y}{x} . Write the equation, then put y = vx.

Answer

dydx=yx+xy \dfrac{dy}{dx} = \dfrac{y}{x} + \dfrac{x}{y} , homogeneous. With y = vx: v+xdvdx=v+1v v + x\dfrac{dv}{dx} = v + \dfrac{1}{v} , so v dv=dxx v\,dv = \dfrac{dx}{x} and v22=ln⁡x+C \dfrac{v^2}{2} = \ln x + C .
At (1, 1), v = 1: 12=0+C \frac{1}{2} = 0 + C . So y2x2=2ln⁡x+1 \dfrac{y^2}{x^2} = 2\ln x + 1 , y2=x2(1+2ln⁡x) y^2 = x^2(1 + 2\ln x) .

9.
  • a.Does (x2+xy) dy=(x2+y2) dx (x^2 + xy)\,dy = (x^2 + y^2)\,dx represent a homogeneous differential equation? Give the reason. (1 mark)
  • b.Solve it, for x > 0 and y < x. (4 marks)
Hint

Write it as dydx=f(x,y)g(x,y) \frac{dy}{dx} = \frac{f(x, y)}{g(x, y)} and look at the degrees of f and g. After y = vx, split 1+v1−v=−1+21−v \frac{1 + v}{1 - v} = -1 + \frac{2}{1 - v} .

Answer
  • a.dydx=x2+y2x2+xy \dfrac{dy}{dx} = \dfrac{x^2 + y^2}{x^2 + xy} . Top and bottom are both homogeneous of degree 2: (tx)2+(ty)2=t2(x2+y2) (tx)^2 + (ty)^2 = t^2(x^2 + y^2) , and the same for x2+xy x^2 + xy . So yes, it is homogeneous: the right side is 1+v21+v \frac{1 + v^2}{1 + v} with v=yx v = \frac{y}{x} .
  • b.Put y = vx: v+xdvdx=1+v21+v v + x\dfrac{dv}{dx} = \dfrac{1 + v^2}{1 + v} , so xdvdx=1+v2−v−v21+v=1−v1+v x\dfrac{dv}{dx} = \dfrac{1 + v^2 - v - v^2}{1 + v} = \dfrac{1 - v}{1 + v} .

Separate: 1+v1−v dv=dxx \dfrac{1 + v}{1 - v}\,dv = \dfrac{dx}{x} , that is (−1+21−v)dv=dxx \left(-1 + \dfrac{2}{1 - v}\right)dv = \dfrac{dx}{x} . Integrate: −v−2ln⁡(1−v)=ln⁡x+c -v - 2\ln(1 - v) = \ln x + c (here 1 − v > 0, since y < x).
Put v=yx v = \frac{y}{x} : −yx−2ln⁡(x−y)+2ln⁡x=ln⁡x+c -\dfrac{y}{x} - 2\ln(x - y) + 2\ln x = \ln x + c , so ln⁡x(x−y)2=yx+c \ln\dfrac{x}{(x - y)^2} = \dfrac{y}{x} + c , and (x−y)2=Cxe−y/x (x - y)^2 = Cxe^{-y/x} , C > 0.

10.

Solve y dx+(x−y3) dy=0 y\,dx + (x - y^3)\,dy = 0 , y > 0, in two ways: a. as a linear equation in x; b. as an exact equation. (5 marks)

Answer
  • a.dxdy=−x−y3y \dfrac{dx}{dy} = -\dfrac{x - y^3}{y} , that is dxdy+1yx=y2 \dfrac{dx}{dy} + \dfrac{1}{y}x = y^2 : linear in x with P=1y P = \frac{1}{y} , Q=y2 Q = y^2 . IF=eln⁡y=y \text{IF} = e^{\ln y} = y , and xy=∫y3 dy=y44+C xy = \displaystyle\int y^3\,dy = \frac{y^4}{4} + C .
  • b.M = y, N=x−y3 N = x - y^3 : ∂M∂y=1=∂N∂x \dfrac{\partial M}{\partial y} = 1 = \dfrac{\partial N}{\partial x} , exact. ∫M dx=xy \int M\,dx = xy ; the term of N without x is −y3 -y^3 , and ∫−y3 dy=−y44 \int -y^3\,dy = -\dfrac{y^4}{4} . So xy−y44=C xy - \dfrac{y^4}{4} = C .

Both give 4xy−y4=C 4xy - y^4 = C (a constant times 4 is still a constant). Or by grouping: y dx+x dy=y3 dy y\,dx + x\,dy = y^3\,dy is d(xy)=d(y44) d(xy) = d\left(\frac{y^4}{4}\right) .

Long questions

11.

A 100 μF capacitor charged to 12 V is joined across a 20 kΩ resistor.

  • a.Write the differential equation for the charge Q as it discharges, and solve it. (3 marks)
  • b.How long does the voltage take to fall to 6 V? (2 marks)
  • c.The empty capacitor is now charged from a 12 V battery through the same resistor. Solve RdQdt+QC=E R\dfrac{dQ}{dt} + \dfrac{Q}{C} = E with Q(0) = 0, and find how long it takes to reach 90% of its full charge. (3 marks)
Answer
  • a.With no battery, RI+QC=0 RI + \dfrac{Q}{C} = 0 , that is RdQdt=−QC R\dfrac{dQ}{dt} = -\dfrac{Q}{C} . Separate: dQQ=−dtRC \dfrac{dQ}{Q} = -\dfrac{dt}{RC} , ln⁡∣Q∣=−tRC+c \ln|Q| = -\dfrac{t}{RC} + c , and Q=Q0e−t/RC Q = Q_0e^{-t/RC} , where Q0=CV0=100×10−6×12=1.2×10−3 Q_0 = CV_0 = 100 \times 10^{-6} \times 12 = 1.2 \times 10^{-3} C. Here RC=20,000×10−4=2 RC = 20{,}000 \times 10^{-4} = 2 s, so Q=1.2×10−3e−t/2 Q = 1.2 \times 10^{-3}e^{-t/2} C.
  • b.The voltage QC \frac{Q}{C} falls by the same factor, so half: e−t/2=12 e^{-t/2} = \dfrac{1}{2} , t=2ln⁡2≈ t = 2\ln 2 \approx 1.39 s.
  • c.As in Example 10, Q=EC(1−e−t/RC)=1.2×10−3(1−e−t/2) Q = EC\left(1 - e^{-t/RC}\right) = 1.2 \times 10^{-3}\left(1 - e^{-t/2}\right) C. 90%: e−t/2=0.1 e^{-t/2} = 0.1 , t=2ln⁡10≈ t = 2\ln 10 \approx 4.6 s.

What it means: emptying halfway takes 0.69 time constants; filling to 90% takes 2.3. Both are set by RC alone, not by the voltage.

12.

Nepal’s census counted 23,151,423 people in 2001 and 26,494,504 in 2011, ten years later. Take the growth to follow dPdt=kP \dfrac{dP}{dt} = kP .

  • a.Find k from these two counts. (2 marks)
  • b.Predict the population at the 2021 census, 10.4 years after that of 2011, and compare with the count, 29,164,578. (2 marks)
  • c.Find k again from the counts of 2011 and 2021, and say what has changed. (2 marks)
  • d.At the rate of c., in about which year would Nepal reach 35 million? (2 marks)
Answer
  • a.P=P0ekt P = P_0e^{kt} : e10k=26,494,50423,151,423≈1.1444 e^{10k} = \dfrac{26{,}494{,}504}{23{,}151{,}423} \approx 1.1444 , so k=ln⁡1.144410≈0.0135 k = \dfrac{\ln 1.1444}{10} \approx \mathbf{0.0135} : 1.35% a year.
  • b.26,494,504×e0.0135×10.4≈ 26{,}494{,}504 \times e^{0.0135 \times 10.4} \approx 30.5 million, about 1.3 million (4.5%) more than the census found.
  • c.k=110.4ln⁡29,164,57826,494,504≈0.0092 k = \dfrac{1}{10.4}\ln\dfrac{29{,}164{,}578}{26{,}494{,}504} \approx \mathbf{0.0092} . The rate fell by about a third between the two decades: the model’s k is not a constant of nature, and the 2001–2011 rule overshot.
  • d.29,164,578 e0.0092t=35,000,000 29{,}164{,}578\,e^{0.0092t} = 35{,}000{,}000 : t=10.0092ln⁡35,000,00029,164,578≈19.8 t = \dfrac{1}{0.0092}\ln\dfrac{35{,}000{,}000}{29{,}164{,}578} \approx 19.8 years after November 2021, so about 2041, if the rate stayed at 0.92%. Since it has been falling, the real date is likely to be later, or never.