Skip to main content

Differential equations - TCE Mathematics Specialised (Tasmania)

Syllabus dot point

“Solve separable and linear first order differential equations and apply them to models.”

TCESpecialist MathematicsUnit 49 min read

Quick answer

A differential equation relates yy to its derivatives. Solve separable equations by getting all the yy terms on one side and all the xx terms on the other, then integrate. Solve first order linear equations dydx+P(x)y=Q(x)\tfrac{dy}{dx} + P(x)y = Q(x) with an integrating factor.

What this dot point is asking

A differential equation involves an unknown function and its derivatives. A solution is the function itself. The general solution contains an arbitrary constant; a particular solution uses an initial condition to fix that constant.

Separable equations

An equation is separable if it can be written dydx=f(x)g(y)\tfrac{dy}{dx} = f(x)g(y). Rearrange so each variable is with its own differential, then integrate both sides:

∫1g(y) dy=∫f(x) dx. \int \frac{1}{g(y)}\, dy = \int f(x)\, dx.

A separable equation

Solve dydx=2xy\dfrac{dy}{dx} = \dfrac{2x}{y} with y(0)=3y(0) = 3.

Step 1: Separate the variables

The idea is to get all yy terms on the left and all xx terms on the right, so each side can be integrated independently. Multiply both sides by yy and by dxdx:

y dy=2x dx. y\, dy = 2x\, dx.

Step 2: Integrate both sides

Each side is now a straightforward power:

y22=x2+C, \frac{y^2}{2} = x^2 + C,

where CC is an arbitrary constant of integration. It is essential to include CC here so the initial condition can be satisfied.

Step 3: Apply the initial condition to find CC

Substituting x=0x = 0 and y=3y = 3 gives 92=0+C\tfrac{9}{2} = 0 + C, so C=92C = \tfrac{9}{2}.

Step 4: Solve for yy

Substitute back and rearrange:

y22=x2+92⟹y2=2x2+9⟹y=2x2+9, \frac{y^2}{2} = x^2 + \frac{9}{2} \quad\Longrightarrow\quad y^2 = 2x^2 + 9 \quad\Longrightarrow\quad y = \sqrt{2x^2 + 9},

taking the positive square root because y(0)=3>0y(0) = 3 > 0.

Final answer: y=2x2+9y = \sqrt{2x^2 + 9}.

A key application is exponential growth and decay, dydt=ky\tfrac{dy}{dt} = ky, which separates to y=y0ekty = y_0 e^{kt}.

First order linear equations

A first order linear equation has the standard form

dydx+P(x) y=Q(x). \frac{dy}{dx} + P(x)\, y = Q(x).

Integrating factor

Multiply through by the integrating factor μ(x)=e∫P(x) dx\mu(x) = e^{\int P(x)\, dx}. The left side then becomes ddx(μy)\tfrac{d}{dx}\big(\mu y\big), so

μy=∫μ Q(x) dx. \mu y = \int \mu\, Q(x)\, dx.

A first order linear equation

Solve dydx+1x y=x\dfrac{dy}{dx} + \dfrac{1}{x}\, y = x for x>0x > 0, with y(1)=2y(1) = 2.

Step 1: Identify P(x)P(x) and compute the integrating factor

The equation is already in standard form dydx+P(x)y=Q(x)\dfrac{dy}{dx} + P(x)y = Q(x) with P(x)=1xP(x) = \tfrac{1}{x} and Q(x)=xQ(x) = x. The integrating factor is chosen so that multiplying through converts the left side into an exact derivative:

μ=e∫P(x) dx=e∫1x dx=eln⁡x=x. \mu = e^{\int P(x)\, dx} = e^{\int \frac{1}{x}\, dx} = e^{\ln x} = x.

Step 2: Multiply through by μ\mu and recognise the left side

Multiplying every term by μ=x\mu = x gives:

xdydx+y=x2. x\frac{dy}{dx} + y = x^2.

The left side is exactly the product-rule expansion of ddx(xy)\dfrac{d}{dx}(xy), which is why the integrating factor works.

Step 3: Integrate both sides

ddx(xy)=x2⟹xy=x33+C. \frac{d}{dx}(xy) = x^2 \quad\Longrightarrow\quad xy = \frac{x^3}{3} + C.

Step 4: Apply the initial condition and solve for yy

Substituting x=1x = 1 and y=2y = 2: 1⋅2=13+C1 \cdot 2 = \tfrac{1}{3} + C, so C=53C = \tfrac{5}{3}. Dividing by xx:

y=x23+53x. y = \frac{x^2}{3} + \frac{5}{3x}.

Check at x=1x = 1: 13+53=2\tfrac{1}{3} + \tfrac{5}{3} = 2. Correct.

Final answer: y=x23+53xy = \dfrac{x^2}{3} + \dfrac{5}{3x}.

Modelling with differential equations

Many Specialist questions are word problems that you must first turn into a differential equation. The pattern is always "rate of change equals something", and the skill is translating the words.

  • Exponential growth and decay. "The rate of change is proportional to the amount" becomes dydt=ky\dfrac{dy}{dt} = ky, solving to y=y0ekty = y_0 e^{kt}. A positive kk is growth (populations, compound processes); a negative kk is decay (radioactivity, discharge).
  • Newton's law of cooling. "The rate of cooling is proportional to the temperature difference" becomes dTdt=−k(T−θ)\dfrac{dT}{dt} = -k(T - \theta), solving to T=θ+(T0−θ)e−ktT = \theta + (T_0 - \theta)e^{-kt}.
  • Mixing problems. "Rate of change of dissolved substance equals rate in minus rate out" gives a first order linear equation, solved with an integrating factor.
A mixing problem

A tank holds 100100 L of pure water. Brine containing 22 g/L of salt flows in at 55 L/min, and the well-stirred mixture flows out at 55 L/min. Let Q(t)Q(t) be the grams of salt at time tt. Find Q(t)Q(t).

Step 1: Write the rate equation

The rate of change of salt equals the rate in minus the rate out. Because inflow and outflow volumes are equal, the tank volume stays fixed at 100100 L. Salt enters at 2×5=102 \times 5 = 10 g/min. The concentration in the tank is Q100\dfrac{Q}{100} g/L, so salt leaves at Q100×5=Q20\dfrac{Q}{100} \times 5 = \dfrac{Q}{20} g/min:

dQdt=10−Q20. \frac{dQ}{dt} = 10 - \frac{Q}{20}.

Step 2: Put in standard linear form and find the integrating factor

Rearrange to standard form dQdt+P(t)Q=R(t)\dfrac{dQ}{dt} + P(t)Q = R(t):

dQdt+120Q=10. \frac{dQ}{dt} + \frac{1}{20}Q = 10.

The integrating factor is μ=e∫(1/20) dt=et/20\mu = e^{\int (1/20)\, dt} = e^{t/20}.

Step 3: Multiply through and integrate

Multiplying both sides by μ\mu converts the left side to an exact derivative:

ddt ⁣(Q et/20)=10 et/20. \frac{d}{dt}\!\left(Q\, e^{t/20}\right) = 10\, e^{t/20}.

Integrating both sides: Q et/20=200 et/20+CQ\, e^{t/20} = 200\, e^{t/20} + C, so Q=200+Ce−t/20Q = 200 + C e^{-t/20}.

Step 4: Apply the initial condition

At t=0t = 0 the tank holds pure water, so Q(0)=0Q(0) = 0. Substituting: 0=200+C0 = 200 + C, giving C=−200C = -200. Therefore:

Q(t)=200 ⁣(1−e−t/20). Q(t) = 200\!\left(1 - e^{-t/20}\right).

As t→∞t \to \infty, Q→200Q \to 200 g, the steady state at which the tank reaches the inflow concentration of 22 g/L over 100100 L.

Final answer: Q(t)=200 ⁣(1−e−t/20)Q(t) = 200\!\left(1 - e^{-t/20}\right) grams.

Slope fields

A slope field (direction field) sketches the gradient dydx=f(x,y)\dfrac{dy}{dx} = f(x, y) as a short line segment at a grid of points. A solution curve threads through the field tangent to every segment it passes. Slope fields let you see the qualitative behaviour, equilibrium solutions (where dydx=0\dfrac{dy}{dx} = 0) and long-term trends, without solving the equation. An equilibrium is stable if nearby solutions move toward it and unstable if they move away.

Linear equations model mixing problems, where the rate of change of dissolved substance equals rate in minus rate out, and Newton's law of cooling.

Losing the constant or mishandling the integrating factor

Two slips dominate. First, students forget the arbitrary constant when integrating, which makes it impossible to satisfy the initial condition. Always add +C+ C and find it from the given condition. Second, when applying the integrating factor, the whole equation must be in standard form dydx+Py=Q\tfrac{dy}{dx} + P y = Q with coefficient 11 on dydx\tfrac{dy}{dx} before you compute μ=e∫P dx\mu = e^{\int P\, dx}. Skipping that normalisation gives the wrong factor.

Why this matters

Differential equations are how Specialist Mathematics models the real world: anything that changes at a rate depending on its current value is described by one. Mastering the two solution methods (separation and the integrating factor) and the habit of translating a word problem into a rate equation covers nearly every TASC differential-equations question, and the partial-fraction and substitution skills from the integration topic feed directly into solving them.

Exam-style questions

Questions in the style of TASC exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.

Practice7 marks
Find the general solution of the differential equation (1+x2)dydx+(1−y2)=0(1 + x^2)\dfrac{dy}{dx} + (1 - y^2) = 0.
Show worked answer →

This equation is separable. Rearrange: (1+x2)dydx=−(1−y2)=y2−1(1 + x^2)\dfrac{dy}{dx} = -(1 - y^2) = y^2 - 1, so dy1−y2=−dx1+x2\dfrac{dy}{1 - y^2} = -\dfrac{dx}{1 + x^2}.

Integrate the left side using partial fractions: 11−y2=12[11−y+11+y]\dfrac{1}{1 - y^2} = \dfrac{1}{2}\left[\dfrac{1}{1 - y} + \dfrac{1}{1 + y}\right], whose integral is 12ln⁡∣1+y1−y∣\dfrac{1}{2}\ln\left|\dfrac{1 + y}{1 - y}\right|.

Integrate the right side: −arctan⁡x-\arctan x.

So the general solution is 12ln⁡∣1+y1−y∣=−arctan⁡x+C\dfrac{1}{2}\ln\left|\dfrac{1 + y}{1 - y}\right| = -\arctan x + C, where CC is an arbitrary constant. Equivalent forms obtained by exponentiating are acceptable. Markers reward separating the variables correctly, the partial-fraction integral, and including the constant of integration.

Practice5 marks
Solve the differential equation x2dydx−y=1x^2\dfrac{dy}{dx} - y = 1 subject to y(1)=1y(1) = 1.
Show worked answer →

Divide by x2x^2 to put it in linear form: dydx−1x2y=1x2\dfrac{dy}{dx} - \dfrac{1}{x^2}y = \dfrac{1}{x^2}.

The integrating factor is μ=e∫−1/x2 dx=e1/x\mu = e^{\int -1/x^2\,dx} = e^{1/x}.

Multiply through: ddx(ye1/x)=1x2e1/x\dfrac{d}{dx}\left(y e^{1/x}\right) = \dfrac{1}{x^2}e^{1/x}. Integrate the right side with the substitution u=1xu = \dfrac{1}{x}, du=−1x2 dxdu = -\dfrac{1}{x^2}\,dx, giving ∫−eu du=−e1/x\int -e^u\,du = -e^{1/x}. So ye1/x=−e1/x+Cy e^{1/x} = -e^{1/x} + C, that is y=−1+Ce−1/xy = -1 + C e^{-1/x}.

Apply y(1)=1y(1) = 1: 1=−1+Ce−11 = -1 + C e^{-1}, so C=2eC = 2e. The particular solution is y=−1+2e⋅e−1/x=−1+2e(x−1)/xy = -1 + 2e\cdot e^{-1/x} = -1 + 2e^{(x - 1)/x}. Check: at x=1x = 1, y=−1+2=1y = -1 + 2 = 1.

Practice7 marks
A hot kettle is in a room at temperature θ\theta degrees Celsius. After tt minutes its temperature T(t)T(t) satisfies dTdt=−k(T−θ)\dfrac{dT}{dt} = -k(T - \theta), k>0k > 0. After 5 minutes T=69T = 69, after 10 minutes T=51T = 51, after 15 minutes T=39T = 39. Find the initial temperature of the kettle and the room temperature.
Show worked answer →

The solution of Newton's law of cooling is T=θ+(T0−θ)e−ktT = \theta + (T_0 - \theta)e^{-kt}, where T0T_0 is the initial temperature.

So T−θT - \theta decays geometrically: the ratios over equal time steps are equal. Hence 51−θ69−θ=39−θ51−θ\dfrac{51 - \theta}{69 - \theta} = \dfrac{39 - \theta}{51 - \theta}.

Cross-multiply: (51−θ)2=(69−θ)(39−θ)(51 - \theta)^2 = (69 - \theta)(39 - \theta). Expanding, 2601−102θ=2691−108θ2601 - 102\theta = 2691 - 108\theta, so 6θ=906\theta = 90 and θ=15\theta = 15. The room temperature is 1515 degrees Celsius.

The common ratio over 5 minutes is e−5k=51−1569−15=3654=23e^{-5k} = \dfrac{51 - 15}{69 - 15} = \dfrac{36}{54} = \dfrac{2}{3}. At t=5t = 5: 69−15=54=(T0−15)e−5k=(T0−15)⋅2369 - 15 = 54 = (T_0 - 15)e^{-5k} = (T_0 - 15)\cdot\dfrac{2}{3}, so T0−15=81T_0 - 15 = 81 and T0=96T_0 = 96. The initial temperature of the kettle was 9696 degrees Celsius.

Practise this

Sources & how we know this

ExamExplained