← Calculus (ME-C1, C2, C3)

NSWMaths Extension 1Syllabus dot point

How do we solve a first-order differential equation when the variables separate?

Solve separable first-order differential equations of the form dydx=f(x)g(y)\frac{dy}{dx} = f(x) g(y) by separating variables and integrating both sides

A focused answer to the HSC Maths Extension 1 dot point on separable differential equations. The separation-of-variables method, integration on both sides, applying initial conditions, and standard models including Newton's law of cooling, with worked examples.

Generated by Claude OpusReviewed by Better Tuition Academy8 min answer

Have a quick question? Jump to the Q&A page

What this dot point is asking

NESA wants you to solve a first-order differential equation of the form dydx=f(x)g(y)\frac{dy}{dx} = f(x) g(y) by separating the variables, integrating each side, and applying any given initial condition to find the constant of integration.

The answer

The separation method

For an equation dydx=f(x)g(y)\frac{dy}{dx} = f(x) g(y):

  1. Rewrite as dyg(y)=f(x) dx\frac{dy}{g(y)} = f(x) \, dx.
  2. Integrate both sides: ∫dyg(y)=∫f(x) dx+C\int \frac{dy}{g(y)} = \int f(x) \, dx + C.
  3. Solve for yy in terms of xx (or leave in implicit form if cleaner).
  4. Apply any initial condition y(x0)=y0y(x_0) = y_0 to determine CC.

If g(y0)=0g(y_0) = 0, then y=y0y = y_0 is a constant solution (a fixed point of the equation). This must be checked separately because the separation step would have divided by zero.

When separation is possible

A first-order ODE separates if and only if you can write dydx=f(x)g(y)\frac{dy}{dx} = f(x) g(y) for some functions ff and gg. Examples that separate:

  • IMATH_18 .
  • IMATH_19 .
  • IMATH_20 .

Examples that do not separate:

  • IMATH_21 (sum, not product).
  • IMATH_22 (cannot factor cleanly).

Extension 1 problems are always separable; non-separable equations belong to Extension 2.

The constant of integration

Always include a constant after integration. Usually it is cleaner to combine the constants from both sides into one CC on the right.

If the question gives an initial condition, substitute to find CC. If not, leave the answer in terms of CC.

Newton's law of cooling

A body cools toward an ambient temperature TaT_a at a rate proportional to the temperature difference:

dTdt=βˆ’k(Tβˆ’Ta),\frac{dT}{dt} = -k (T - T_a),

where k>0k > 0.

Separate: dTTβˆ’Ta=βˆ’k dt\frac{dT}{T - T_a} = -k \, dt.

Integrate: ln⁑∣Tβˆ’Ta∣=βˆ’kt+C\ln |T - T_a| = -k t + C.

So Tβˆ’Ta=Aeβˆ’ktT - T_a = A e^{-k t} for some constant AA, giving

T(t)=Ta+(T0βˆ’Ta)eβˆ’kt.T(t) = T_a + (T_0 - T_a) e^{-k t}.

The temperature approaches TaT_a as tβ†’βˆžt \to \infty.

Implicit versus explicit solutions

Sometimes the integrated equation cannot be solved cleanly for yy. In that case, leave it implicit. For example,

dydx=βˆ’xyβ€…β€ŠβŸΉβ€…β€Šy dy=βˆ’x dxβ€…β€ŠβŸΉβ€…β€Šy2+x2=C.\frac{dy}{dx} = -\frac{x}{y} \implies y \, dy = -x \, dx \implies y^2 + x^2 = C.

This is the family of circles x2+y2=Cx^2 + y^2 = C, which is the implicit solution.

Past exam questions, worked

Real questions from past NESA papers on this dot point, with our answer explainer.

2023 HSC Q124 marksSolve the differential equation dydx=xy\frac{dy}{dx} = \frac{x}{y} with y(0)=2y(0) = 2.
Show worked answer β†’

Separate variables: y dy=x dxy \, dy = x \, dx.

Integrate both sides: y22=x22+C\frac{y^2}{2} = \frac{x^2}{2} + C, so y2=x2+Cβ€²y^2 = x^2 + C' (writing Cβ€²C' for 2C2 C).

Apply y(0)=2y(0) = 2: 4=0+Cβ€²4 = 0 + C', so Cβ€²=4C' = 4.

y2=x2+4y^2 = x^2 + 4, so y=x2+4y = \sqrt{x^2 + 4} (positive root because y(0)=2>0y(0) = 2 > 0 and continuity).

Markers reward the separation, the integration on both sides, applying the initial condition to find the constant, and choosing the correct sign for the square root.

Related dot points