Skip to content

9709 · 3.8

Differential equations — practice questions

Practice and worked examples for 9709 Differential equations. Short previews only — attempt the full question in MarkScheme against the official scheme.

Worked example 1

A differential equation is given by dydx=y+1x2\frac{dy}{dx} = \frac{y+1}{x^2} for x>0x > 0. Given that y=1y=1 when x=1x=1, find the particular solution for yy in terms of xx.

Show solution outline

This equation is in the form dydx=f(x)g(y)\frac{dy}{dx} = f(x)g(y), so we can separate the variables.

Step 1: Separate the variables. 1y+1dy=1x2dx\frac{1}{y+1} dy = \frac{1}{x^2} dx

Step 2: Integrate both sides. 1y+1dy=x2dx\int \frac{1}{y+1} dy = \int x^{-2} dx

$\lny+1= -x^{-1} + c$
$\lny+1= -\frac{1}{x} + c$
This is the general solution.

Step 3: Use the boundary condition to find c. We are given y=1y=1 when x=1x=1. ln1+1=11+c\ln|1+1| = -\frac{1}{1} + c ln(2)=1+c\ln(2) = -1 + c c=ln(2)+1c = \ln(2) + 1

Step 4: Substitute c back and solve for y. lny+1=1x+1+ln(2)\ln|y+1| = -\frac{1}{x} + 1 + \ln(2) To make yy the subject, we exponentiate both sides.

$y+1= e^{-\frac{1}{x} + 1 + \ln(2)}$
$y+1= e^{-\frac{1}{x} + 1} \cdot e^{\ln(2)}$
$y+1= 2e^{1 - \frac{1}{x}}$
Since y=1y=1 when x=1x=1, y+1 is positive near this point, so we can drop the modulus sign.
y+1=2e11xy+1 = 2e^{1 - \frac{1}{x}}
y=2e11x1y = 2e^{1 - \frac{1}{x}} - 1

Worked example 2

A biologist is modelling the number of fish, NN, in a lake. The rate of increase of the number of fish is modelled by the differential equation dNdt+0.2N=100e0.1t\frac{dN}{dt} + 0.2N = 100e^{-0.1t}, where tt is the time in years. Initially (t=0t=0), there are 500 fish. Find an expression for NN in terms of tt.

Show solution outline

The equation is in the linear form dN/dt+P(t)N=Q(t)dN/dt + P(t)N = Q(t) with P(t)=0.2P(t) = 0.2 and Q(t)=100e0.1tQ(t) = 100e^{-0.1t}.

Step 1: Find the integrating factor (I.F.). P(t)=0.2P(t) = 0.2, so P(t)dt=0.2dt=0.2t\int P(t) dt = \int 0.2 dt = 0.2t. I.F.=e0.2tI.F. = e^{0.2t}

Step 2: Multiply the entire DE by the I.F. e0.2tdNdt+0.2e0.2tN=100e0.1te0.2te^{0.2t} \frac{dN}{dt} + 0.2e^{0.2t}N = 100e^{-0.1t}e^{0.2t}

Step 3: The left side becomes d/dt(NI.F.)d/dt (N \cdot I.F.). ddt(Ne0.2t)=100e0.1t\frac{d}{dt}(N e^{0.2t}) = 100e^{0.1t}

Step 4: Integrate both sides with respect to t. ddt(Ne0.2t)dt=100e0.1tdt\int \frac{d}{dt}(N e^{0.2t}) dt = \int 100e^{0.1t} dt Ne0.2t=1000.1e0.1t+cN e^{0.2t} = \frac{100}{0.1}e^{0.1t} + c Ne0.2t=1000e0.1t+cN e^{0.2t} = 1000e^{0.1t} + c

Step 5: Use the initial condition to find c. Given N=500N=500 when t=0t=0. 500e0.2(0)=1000e0.1(0)+c500 e^{0.2(0)} = 1000e^{0.1(0)} + c 5001=10001+c500 \cdot 1 = 1000 \cdot 1 + c 500=1000+c    c=500500 = 1000 + c \implies c = -500

Step 6: Substitute c and solve for N. Ne0.2t=1000e0.1t500N e^{0.2t} = 1000e^{0.1t} - 500 N=1000e0.1t500e0.2tN = \frac{1000e^{0.1t} - 500}{e^{0.2t}} N=1000e0.1t500e0.2tN = 1000e^{-0.1t} - 500e^{-0.2t}