Skip to content
M
hscscience Ext 1 · Y12
0/100daily goal
0
0
0 due
0
L1 · 0 XP
KJ
Your weak spots
Insights load after your first practice round.
Module 9 · L11 of 20 ~35 min ⚡ +90 XP available

Solving $\dfrac{dy}{dx} = g(y)$

When the rate of change depends only on $y$ — not $x$ — you can't just integrate both sides with respect to $x$. The trick is to flip the fraction: rewrite as $\dfrac{dx}{dy} = \dfrac{1}{g(y)}$ and integrate with respect to $y$ instead. This one move unlocks a whole class of differential equations that appear in population models, cooling laws, and radioactive decay.

Today's hook — A population grows at a rate proportional to its current size: $\dfrac{dP}{dt} = kP$. Before working through this lesson, write down what you think $P(t)$ looks like over time. Is it linear? Curved? Does it ever level off?
0/5QUESTS
01
Recall — your gut answer first
+5 XP warm-up

A quantity $P$ grows so that $\dfrac{dP}{dt} = kP$ for some positive constant $k$. Without using calculus — what shape do you expect the graph of $P$ against $t$ to have? Sketch or describe it below.

auto-saved
02
The key move: flip and integrate
+5 XP to read

When $\dfrac{dy}{dx} = g(y)$, the right side depends only on $y$ — not $x$. We cannot integrate with respect to $x$ directly. Instead, use the reciprocal rule for derivatives:

If $\dfrac{dy}{dx} = g(y)$, then $\dfrac{dx}{dy} = \dfrac{1}{g(y)}$ (provided $g(y) \neq 0$).

Integrate both sides with respect to $y$:

$x = \displaystyle\int \dfrac{1}{g(y)}\,dy + C$

This gives $x$ as a function of $y$. If needed, rearrange for $y$.

dy/dx = g(y) (right side depends on y only) flip dx/dy = 1/g(y) integrate wrt y x = ∫ 1/g(y) dy + C
$x = \displaystyle\int \dfrac{1}{g(y)}\,dy + C$
$g(y) \neq 0$
The flip $\dfrac{dx}{dy} = \dfrac{1}{g(y)}$ is only valid where $g(y) \neq 0$. Equilibrium solutions $g(y) = 0$ are handled separately (constant solutions).
One constant only
You only need one $+C$ — it combines both sides. Use an initial condition such as $y(0) = y_0$ to find the particular solution.
NESA outcome
This technique directly addresses ME12-4: uses calculus in the solution of applied problems including differential equations.
03
What you'll master
Know

Key facts

  • $\dfrac{dy}{dx} = g(y)$ inverts to $\dfrac{dx}{dy} = \dfrac{1}{g(y)}$
  • The general solution is $x = \displaystyle\int \dfrac{1}{g(y)}\,dy + C$
  • Equilibrium solutions occur where $g(y) = 0$
Understand

Concepts

  • Why we invert rather than integrate directly with respect to $x$
  • The role of initial conditions in determining the particular solution
  • How this technique connects to separation of variables (next lesson)
Can do

Skills

  • Solve $\dfrac{dy}{dx} = g(y)$ by inverting and integrating
  • Apply an initial condition to find the particular solution
  • Identify and state equilibrium solutions
04
Key terms
Autonomous DEA differential equation where the right side depends only on the dependent variable, not the independent variable. $\dfrac{dy}{dx} = g(y)$ is autonomous.
Equilibrium solutionA constant solution $y = c$ where $g(c) = 0$. The function does not change — it is at a fixed point.
General solutionThe family of all solutions, expressed with an arbitrary constant $C$. There is one $C$ per first-order DE.
Particular solutionThe unique solution obtained by substituting an initial condition $(x_0, y_0)$ to find the value of $C$.
Initial conditionA given value such as $y(0) = 2$ that pins down the particular solution from the family of general solutions.
Inversion trickThe identity $\dfrac{dx}{dy} = \left(\dfrac{dy}{dx}\right)^{-1}$, valid wherever $\dfrac{dy}{dx} \neq 0$.
05
Solving $\dfrac{dy}{dx} = g(y)$ — the method
core concept

A differential equation of the form $\dfrac{dy}{dx} = g(y)$ is called autonomous because the right side does not explicitly depend on $x$.

Method (three steps):

  1. Check for equilibrium. Find any $y = c$ where $g(c) = 0$. These constant functions are solutions on their own.
  2. Invert. Where $g(y) \neq 0$, write $\dfrac{dx}{dy} = \dfrac{1}{g(y)}$.
  3. Integrate. $x = \displaystyle\int \dfrac{1}{g(y)}\,dy + C$. Then rearrange for $y$ if required.
$$\frac{dy}{dx} = g(y) \;\Longrightarrow\; x = \int \frac{1}{g(y)}\,dy + C$$

Example: Solve $\dfrac{dy}{dx} = y$ given $y(0) = 3$.

Step 1: Equilibrium at $y = 0$.

Step 2: $\dfrac{dx}{dy} = \dfrac{1}{y}$.

Step 3: $x = \ln|y| + C$, so $|y| = e^{x-C} = Ae^x$ where $A = e^{-C} > 0$.

Allowing $A$ to take any non-zero value: $y = Ae^x$. Apply $y(0) = 3$: $A = 3$.

Particular solution: $y = 3e^x$.

Population model. If $P$ is a population with $\dfrac{dP}{dt} = kP$, the same method gives $P = P_0 e^{kt}$. This is exponential growth — the rate is proportional to the current size. It appears in Lessons 14–15 in applied form.

A differential equation of the form $\dfrac{dy}{dx} = g(y)$ is called autonomous because the right side does not explicitly depend on $x$.

Pause — copy the autonomous DE method: $\frac{dy}{dx}=g(y)\Rightarrow\int\frac{dy}{g(y)}=x+C$, and a worked example into your book.

Quick check: To solve $\dfrac{dy}{dx} = 2y$, what is the correct first step after identifying there is no issue with $g(y) = 0$ as a constraint?

06
Equilibrium solutions
core concept

We just saw that an autonomous DE $\frac{dy}{dx}=g(y)$ is solved by separating: $\int\frac{dy}{g(y)}=\int dx=x+C$, then solving for $y$. That raises a question: what happens when $g(y)=0$ for some constant $y=c$ — these equilibrium values satisfy the DE trivially, but the general solution formula may miss them; how do you find them? This card answers it → set $g(y)=0$ and solve; each root gives a constant (equilibrium) solution $y=c$.

An equilibrium solution is a constant $y = c$ that satisfies the DE. Substituting $y = c$ means $\dfrac{dy}{dx} = 0$, so we need $g(c) = 0$.

Equilibrium solutions are important because they act as attractors or repellers for nearby solution curves.

  • Stable equilibrium: nearby solutions move towards $y = c$ as $x \to \infty$.
  • Unstable equilibrium: nearby solutions move away from $y = c$ as $x \to \infty$.

Example: For $\dfrac{dy}{dx} = y(y-2)$, equilibria are at $g(c) = c(c-2) = 0$, i.e. $y = 0$ and $y = 2$.

Always state equilibria first. HSC examiners expect you to identify constant solutions separately. The inversion method only covers the non-equilibrium case.

An equilibrium solution is a constant $y = c$ that satisfies the DE. Substituting $y = c$ means $\dfrac{dy}{dx} = 0$, so we need $g(c) = 0$.

Pause — copy the equilibrium solution rule: set $g(y)=0$, each root $y=c$ is a constant solution; note that the separation method fails at these values (division by zero) into your book.

Did you get this? True or false: $y = 0$ is a solution of $\dfrac{dy}{dx} = 3y^2$.

PROBLEM 1 · BASIC EXPONENTIAL

Find the general solution of $\dfrac{dy}{dx} = 3y$.

1
Equilibrium: $g(y) = 3y = 0 \Rightarrow y = 0$. This is one solution.
Always identify equilibria first. $y = 0$ is a constant solution satisfying the DE.
PROBLEM 2 · RATIONAL g(y)

Find the general solution of $\dfrac{dy}{dx} = y^2$, and the particular solution with $y(0) = 1$.

1
Equilibrium: $y^2 = 0 \Rightarrow y = 0$. For $y \neq 0$: $\dfrac{dx}{dy} = \dfrac{1}{y^2} = y^{-2}$.
Identify the equilibrium, then set up the integration.
PROBLEM 3 · LINEAR g(y)

Solve $\dfrac{dy}{dx} = 2 - y$ given $y(0) = 0$.

1
Equilibrium: $2 - y = 0 \Rightarrow y = 2$. For $y \neq 2$: $\dfrac{dx}{dy} = \dfrac{1}{2 - y}$.
The equilibrium is $y = 2$. For other values, invert the fraction.

Fill the gap: The general solution of $\dfrac{dy}{dx} = 5y$ is $y = Ae^{$$x}$.

Trap 01
Integrating $g(y)$ wrt $x$
Writing $y = \int g(y)\,dx$ is circular — $g(y)$ is not a function of $x$. You must invert first: $\dfrac{dx}{dy} = \dfrac{1}{g(y)}$, then integrate with respect to $y$.
Trap 02
Forgetting equilibria
The inversion method assumes $g(y) \neq 0$. Any value $y = c$ with $g(c) = 0$ is a constant solution and must be stated separately. Missing these costs a mark in the HSC.
Trap 03
Forgetting the $+C$ or misapplying it
One constant of integration is correct for a first-order DE. Adding two separate constants (one each side) and then combining is fine — but you must ultimately have a single arbitrary constant before applying the initial condition.

Did you get this? True or false: the particular solution of $\dfrac{dy}{dx} = 2y$ with $y(0) = 4$ is $y = 4e^{2x}$.

Work mode · how are you completing this lesson?
1

Find the general solution of $\dfrac{dy}{dx} = 4y$.

2

Find the particular solution of $\dfrac{dy}{dx} = -y$ with $y(0) = 5$.

3

Solve $\dfrac{dy}{dx} = y^2 - 1$. State the equilibrium solutions first.

4

Solve $\dfrac{dy}{dx} = 6 - 2y$ given $y(0) = 1$. What value does $y$ approach as $x \to \infty$?

5

The temperature $T$ of a cooling object satisfies $\dfrac{dT}{dt} = -k(T - 20)$ for $k > 0$. Find $T(t)$ given $T(0) = 80$.

Odd one out: Three of these are correct general solutions of $\dfrac{dy}{dx} = 2y$. Which one is NOT?

11
Revisit your thinking

Earlier you estimated what $P(t) = P_0 e^{kt}$ looks like.

The exact answer is an exponential curve — not linear, and it never levels off (for $k > 0$). The key insight is the inversion trick: when $\dfrac{dP}{dt} = kP$, you flip to $\dfrac{dt}{dP} = \dfrac{1}{kP}$, integrate to get $t = \dfrac{1}{k}\ln|P| + C$, then rearrange to $P = P_0 e^{kt}$.

auto-saved
01
Multiple choice
+5 XP per correct · +25 XP all-correct

Pick your answer, then rate your confidence — that tells the system what to drill next. Each retry pulls a fresh mix from the bank.

02
Short answer
ApplyBand 32 marks

Q1. Find the general solution of $\dfrac{dy}{dx} = -2y$. (2 marks)

auto-saved
ApplyBand 43 marks

Q2. Find the particular solution of $\dfrac{dy}{dx} = 4 - y$ with $y(0) = 2$. State the long-run value of $y$ as $x \to \infty$. (3 marks)

auto-saved
AnalyseBand 53 marks

Q3. A population satisfies $\dfrac{dP}{dt} = 0.1P$ with $P(0) = 500$. Find $P(t)$ and determine how long (to the nearest year) before the population doubles. (3 marks)

auto-saved
Comprehensive answers (click to reveal)

Activity answers: 1. $y = Ae^{4x}$  ·  2. $y = 5e^{-x}$  ·  3. equilibria $y = \pm 1$; $\frac{dx}{dy} = \frac{1}{y^2-1} = \frac{1}{(y-1)(y+1)}$ — use partial fractions  ·  4. $y = 3 - 2e^{-2x}$; approaches $y = 3$  ·  5. $T = 20 + 60e^{-kt}$

Q1 (2 marks): Equilibrium $y = 0$ [½]. Invert: $\frac{dx}{dy} = \frac{1}{-2y}$. Integrate: $x = -\frac{1}{2}\ln|y| + C$ [1]. Rearrange: $y = Ae^{-2x}$ [½].

Q2 (3 marks): Equilibrium $y = 4$ [½]. $\frac{dx}{dy} = \frac{1}{4-y}$; $x = -\ln|4-y| + C$ [1]. $y = 4 - Ae^{-x}$. Apply $y(0)=2$: $A = 2$ [1]. Particular solution: $y = 4 - 2e^{-x}$ [½]. As $x \to \infty$, $y \to 4$ [½].

Q3 (3 marks): $P = 500e^{0.1t}$ [1]. Double when $500e^{0.1t} = 1000$, so $e^{0.1t} = 2$, $t = \frac{\ln 2}{0.1} = 10\ln 2 \approx 6.93$ years $\approx \mathbf{7}$ years [2].

01
Boss battle · The Autonomous Equation
earn bronze · silver · gold

Five timed questions. Beat the boss to bank a tier — gold (90% + speed), silver (75%), or bronze (50%). Replays welcome.

⚔ Enter the arena
02
Science Jump · platform challenge

Climb platforms by answering differential equations questions. Lighter alternative to the boss.

Mark lesson as complete

Tick when you've finished the practice and review.

🎓
Want help with Solving dy/dx = g(y)?

Work through this topic 1-on-1 with an experienced HSC tutor.

Book a free session →