Separation of Variables
When $\dfrac{dy}{dx} = f(x)\,g(y)$, the right side is a product of a function of $x$ and a function of $y$. The separation trick collects all $y$-terms on the left and all $x$-terms on the right, then integrates both sides independently. This is the most powerful first-order DE technique you will meet in the HSC — and it works for a huge variety of real-world models.
The DE $\dfrac{dy}{dx} = xy$ involves both $x$ and $y$ on the right side. Before using the formal method — try rearranging this equation so that the left side involves only $y$ and the right side involves only $x$. What do you get?
When $\dfrac{dy}{dx} = f(x)\,g(y)$, we separate the variables by collecting $y$-terms on one side and $x$-terms on the other, then integrate independently:
Step 1 — Rearrange: $\dfrac{1}{g(y)}\,dy = f(x)\,dx$.
Step 2 — Integrate both sides:
$\displaystyle\int \dfrac{1}{g(y)}\,dy = \int f(x)\,dx + C$
One constant $C$ is sufficient (the arbitrary constants from each side combine into one).
Key facts
- $\dfrac{dy}{dx} = f(x)\,g(y)$ is separable if the right side factors
- Rearrange to $\dfrac{1}{g(y)}\,dy = f(x)\,dx$, then integrate both sides
- One constant $C$ remains; use an initial condition to find it
Concepts
- Why multiplying through by $dx$ (treating Leibniz notation heuristically) is valid here
- The connection to Lessons 10 and 11 as special cases of this technique
- When a DE is not separable (e.g. $\dfrac{dy}{dx} = x + y$)
Skills
- Identify whether a DE is separable
- Solve separable DEs by separating and integrating
- Apply an initial condition to obtain the particular solution
A DE is separable if it can be written as $\dfrac{dy}{dx} = f(x)\,g(y)$. The method has four steps:
- Identify equilibria. Solve $g(y) = 0$; these are constant solutions.
- Separate. Rearrange to $\dfrac{1}{g(y)}\,dy = f(x)\,dx$ (heuristically: "multiply by $dx$, divide by $g(y)$").
- Integrate. $\displaystyle\int \dfrac{1}{g(y)}\,dy = \int f(x)\,dx + C$.
- Solve for $y$. If possible, rearrange to an explicit form $y = F(x)$. Apply the initial condition to find $C$.
Example: Solve $\dfrac{dy}{dx} = xy$ with $y(0) = 2$.
Step 1: Equilibrium at $y = 0$.
Step 2: Separate: $\dfrac{1}{y}\,dy = x\,dx$.
Step 3: $\ln|y| = \dfrac{x^2}{2} + C$.
Step 4: $|y| = e^{x^2/2 + C} = Ae^{x^2/2}$. Apply $y(0) = 2$: $A = 2$.
Particular solution: $y = 2e^{x^2/2}$.
Separation of variables: $\frac{dy}{dx}=f(x)g(y)\Rightarrow\int\frac{dy}{g(y)}=\int f(x)\,dx$; integrate both sides; solve for $y$.
Pause — copy the four-step separation method with the Leibniz notation move $\frac{dy}{g(y)}=f(x)\,dx$ written out explicitly into your book.
Quick check: Which of the following is the correct separated form of $\dfrac{dy}{dx} = x^2 y$?
We just saw the four-step separation method: write $\frac{dy}{dx}=f(x)g(y)$, rearrange to $\frac{dy}{g(y)}=f(x)\,dx$, integrate both sides, solve for $y$. That raises a question: how do you quickly test whether a DE is separable before committing to this method — and what are the three common forms that pass the test? This card answers it → check whether the right-hand side factorises as a product of a function of $x$ alone and a function of $y$ alone.
Not every DE is separable. Before applying the method, check whether the right side can be written as a product $f(x)\cdot g(y)$:
Not every DE is separable. Before applying the method, check whether the right side can be written as a product $f(x)\cdot g(y)$:
Pause — copy the separability test: the DE $\frac{dy}{dx}=h(x,y)$ is separable iff $h=f(x)g(y)$; include three examples (separable) and one non-example into your book.
Did you get this? True or false: $\dfrac{dy}{dx} = e^{x+y}$ is separable.
Worked examples · 3 in a row, reveal as you go
Solve $\dfrac{dy}{dx} = 2xy$ with $y(0) = 3$.
Find the general solution of $\dfrac{dy}{dx} = \dfrac{\cos x}{y^2}$.
Solve $\dfrac{dy}{dx} = e^{x+y}$ with $y(0) = 0$.
So $e^{-y} = -(e^x - 2) = 2 - e^x$.
Particular solution: $y = -\ln(2 - e^x)$, valid for $x < \ln 2$.
Fill the gap: After separating $\dfrac{dy}{dx} = 3x^2 y$, integrating the left side gives $\ln|y|$ and integrating the right side gives $x^{$$} + C$.
Misconceptions to fix · the 3 traps that cost marks
Did you get this? True or false: the DE $\dfrac{dy}{dx} = x^2 + y^2$ is separable.
Activities · practice with the ideas
Decide whether each DE is separable and explain why: (a) $\dfrac{dy}{dx} = xy^2$, (b) $\dfrac{dy}{dx} = x + y$, (c) $\dfrac{dy}{dx} = \dfrac{y}{x}$.
Find the general solution of $\dfrac{dy}{dx} = \dfrac{x}{y}$.
Solve $\dfrac{dy}{dx} = -xy$ with $y(0) = 5$.
Find the particular solution of $\dfrac{dy}{dx} = \dfrac{\sin x}{y}$ with $y\!\left(\dfrac{\pi}{2}\right) = 2$.
A quantity $Q$ decays according to $\dfrac{dQ}{dt} = -kQ^2$ with $Q(0) = 1$. Find $Q(t)$ and determine $Q(1)$ if $k = 0.5$.
Odd one out: Three of these DEs are separable. Which one is NOT separable?
Earlier you tried rearranging $\dfrac{dy}{dx} = xy$ so that $y$-terms and $x$-terms are separated.
The formal move is: divide both sides by $y$ and multiply by $dx$ to get $\dfrac{1}{y}\,dy = x\,dx$. Then integrate: $\ln|y| = \dfrac{x^2}{2} + C$, giving $y = Ae^{x^2/2}$. The "trick" you may have spotted is that treating $\dfrac{dy}{dx}$ like a fraction (even though it isn't literally one) gives the right result — the Chain Rule justifies it rigorously.
Pick your answer, then rate your confidence — that tells the system what to drill next. Each retry pulls a fresh mix from the bank.
Q1. Find the general solution of $\dfrac{dy}{dx} = x y^2$. (2 marks)
Q2. Solve $\dfrac{dy}{dx} = \dfrac{x}{y}$ with $y(0) = 2$. Give the answer in the form $y = f(x)$. (3 marks)
Q3. A biologist models the growth of a bacterial population by $\dfrac{dP}{dt} = 0.2P(10 - P)$. State the equilibrium values of $P$. For $0 < P < 10$, separate and integrate to find the general solution. (You may leave it in implicit form.) (4 marks)
Comprehensive answers (click to reveal)
Activity answers: 1. (a) separable; (b) not separable; (c) separable ($f(x)=1/x$, $g(y)=y$) · 2. $y^2 = x^2 + C$ · 3. $y = 5e^{-x^2/2}$ · 4. $y^2 = -2\cos x + C$; IC: $4 = 0 + C$ so $y^2 = -2\cos x + 4$, $y = \sqrt{4-2\cos x}$ · 5. $Q = \dfrac{1}{kt+1}$; $Q(1) = \dfrac{1}{1.5} \approx 0.67$
Q1 (2 marks): Equilibrium $y = 0$ [½]. Separate: $y^{-2}\,dy = x\,dx$ [½]. Integrate: $-\dfrac{1}{y} = \dfrac{x^2}{2} + C$ [½]. General solution: $y = -\dfrac{1}{\frac{x^2}{2}+C} = \dfrac{-2}{x^2+K}$ (where $K = 2C$) [½].
Q2 (3 marks): $y\,dy = x\,dx$ [1]. $\dfrac{y^2}{2} = \dfrac{x^2}{2} + C$ [1]. Apply $y(0) = 2$: $\dfrac{4}{2} = 0 + C$, so $C = 2$. $y^2 = x^2 + 4$, hence $y = \sqrt{x^2+4}$ (positive since $y(0) = 2 > 0$) [1].
Q3 (4 marks): Equilibria $P = 0$ and $P = 10$ [1]. Separate: $\dfrac{dP}{P(10-P)} = 0.2\,dt$ [½]. Partial fractions: $\dfrac{1}{P(10-P)} = \dfrac{1}{10}\!\left(\dfrac{1}{P} + \dfrac{1}{10-P}\right)$ [1]. Integrate: $\dfrac{1}{10}(\ln P - \ln(10-P)) = 0.2t + C$ [1]. Simplify: $\ln\dfrac{P}{10-P} = 2t + K$, i.e. $\dfrac{P}{10-P} = Ae^{2t}$ [½].
Five timed questions. Beat the boss to bank a tier — gold (90% + speed), silver (75%), or bronze (50%). Replays welcome.
⚔ Enter the arenaClimb platforms by answering separation of variables questions. Lighter alternative to the boss.
Mark lesson as complete
Tick when you've finished the practice and review.