Resources For Teachers For Tutors For Students & Parents Pricing
Year 12 Specialist (Unit 3 & 4) Rates of change and differential equations

An introduction to differential equations

20 practice questions 0 video lessons Theory + worked examples

Get started with differential equations for Year 12 Specialist Mathematics in Queensland (QCAA). A differential equation links an unknown function to its derivatives, and is the natural way to describe growth, decay, cooling and motion — the foundation for the rest of the rates of change topic.

You will learn to read off the order of a differential equation, verify that a given function is a solution by substitution, tell a general solution from a particular one, and form a differential equation from a described rate such as Newton's law of cooling or radioactive decay.

Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

A differential equation is an equation that links an unknown function to its derivatives. In Year 12 Specialist Mathematics (QCAA, Queensland) they are the natural language of change — growth, decay, cooling and motion. This page explains what a differential equation is, its order, how to verify a given function is a solution, the difference between general and particular solutions, and how to form a differential equation from a described rate.

A differential equation (a "DE") is an equation that contains one or more derivatives of an unknown function, for example \(\dfrac{dy}{dx}=2y\) or \(\dfrac{d^2y}{dx^2}=-9y\). It describes how a quantity changes, rather than giving the quantity directly. An equation with no derivative, such as \(y=2x+1\) or \(x^2+y^2=25\), is not a differential equation.

The order of a differential equation is the order of the highest derivative that appears. So \(\dfrac{dy}{dx}=3x^2-5\) is first order, while \(\dfrac{d^2y}{dx^2}+3\dfrac{dy}{dx}=0\) is second order. A power of a derivative does not raise the order: in \(\dfrac{d^2y}{dx^2}+\left(\dfrac{dy}{dx}\right)^3=\sin x\) the highest derivative is still the second, so it is second order.

A function is a solution of a differential equation if substituting the function and its derivatives makes the equation true for all \(x\). You verify a proposed solution by differentiating it, substituting into both sides, and checking they agree.

The general solution contains arbitrary constants (one for each order — each integration adds one), so it represents a whole family of curves. A particular solution uses an initial or boundary condition (such as \(y(1)=4\)) to fix those constants and pick out one member of the family.

Family of solution curves y = x squared + cThree parabolas y = x squared + c for c = 1, 3 and 5. The particular curve c = 3 is drawn in navy and passes through the point (1, 4); the other members of the family are drawn in grey. x y family y = x² + c (1, 4)
General vs particular: the general solution \(y=x^2+c\) is a whole family of curves (grey); the condition \(y(1)=4\) fixes \(c=3\), giving the particular solution \(y=x^2+3\) (navy) through \((1,4)\).
A cooling curve approaching the room-temperature asymptoteA temperature curve T against time t starts at the point (0, 80) and decreases, levelling off towards the dashed horizontal asymptote at T = 20, the room temperature. This is a solution of the differential equation dT/dt = minus k times (T minus 20). x y T = 20 (room) (0, 80)
A solution of Newton's cooling \(\dfrac{dT}{dt}=-k(T-20)\): from \((0,80)\) the temperature falls towards the room-temperature asymptote \(T=20\) (dashed).

A first-order differential equation relates \(\dfrac{dy}{dx}\) to \(x\) and \(y\). The Year 12 course meets three standard shapes:

\[ \dfrac{dy}{dx}=f(x), \qquad \dfrac{dy}{dx}=g(y), \qquad \dfrac{dy}{dx}=f(x)\,g(y) \]
dydx=f(x)

A rate proportional to the amount present gives the growth / decay equation, whose general solution is an exponential:

\[ \dfrac{dy}{dx}=ky \quad\Longrightarrow\quad y=Ae^{kx} \]
dydx=ky

Newton's law of cooling (rate proportional to the gap above the surrounding temperature \(T_s\)) and radioactive decay are the standard rate models:

\[ \dfrac{dT}{dt}=-k(T-T_s), \qquad \dfrac{dN}{dt}=-kN \]
Constants count the order. The general solution of an \(n\)th-order differential equation contains exactly \(n\) arbitrary constants; each initial or boundary condition removes one, and enough conditions give a single particular solution.

How to work with a differential equation

  1. Read off the order: find the highest derivative that appears — that number is the order (a power of a derivative does not change it).
  2. Verify a solution: differentiate the proposed function as many times as needed, substitute it and its derivatives into both sides, and check the equation holds.
  3. General then particular: the general solution carries one arbitrary constant per order; substitute the initial or boundary condition to solve for the constant(s).
  4. Form a DE from a rate: write the rate as a derivative, translate "proportional to" as "\(=k\times\)", and put a minus sign in front when the quantity is decreasing.
Example 1 — State the order
State the order of the differential equation \(\dfrac{d^2y}{dx^2}+\left(\dfrac{dy}{dx}\right)^4=x\).
Solution

The order is the order of the highest derivative, not the highest power. The fourth power sits on a first derivative, so it does not raise the order:

\(\left(\dfrac{dy}{dx}\right)^4\)\(\rightarrow\)\(\text{power of a 1st derivative}\)
\(\dfrac{d^2y}{dx^2}\)\(\rightarrow\)\(\text{a 2nd derivative}\)
\(\text{highest derivative}\)\(=\)\(\text{2nd}\)
\(\text{order}\)\(=\)\(2\)

The differential equation is second order.

Example 2 — Verify a solution (both sides)
Show that \(y=\cos 3x\) is a solution of \(\dfrac{d^2y}{dx^2}=-9y\).
Solution

Differentiate \(y=\cos 3x\) twice to build the left-hand side:

\(y\)\(=\)\(\cos 3x\)
\(\dfrac{dy}{dx}\)\(=\)\(-3\sin 3x\)
\(\dfrac{d^2y}{dx^2}\)\(=\)\(-9\cos 3x\)

Substitute into both sides of the differential equation and compare:

\(\text{LHS}=\dfrac{d^2y}{dx^2}\)\(=\)\(-9\cos 3x\)
\(\text{RHS}=-9y\)\(=\)\(-9\cos 3x\)
\(\text{LHS}\)\(=\)\(\text{RHS} \ \checkmark\)

Both sides equal \(-9\cos 3x\), so \(y=\cos 3x\) is a solution.

Example 3 — General to particular
The general solution of \(\dfrac{dy}{dx}=3x^2\) is \(y=x^3+c\). Find the particular solution for which \(y(1)=5\).
Solution

Substitute the condition \(y(1)=5\) into the general solution to fix \(c\):

\(y\)\(=\)\(x^3+c\)
\(y(1)\)\(=\)\(1^3+c\)
\(5\)\(=\)\(1+c\)
\(c\)\(=\)\(5-1\)
\(c\)\(=\)\(4\)

Write the particular solution with this value of \(c\):

\(y\)\(=\)\(x^3+4\)

The particular solution is \(y=x^3+4\).

Example 4 — Form a DE from a rate
A cup of tea at temperature \(T\) cools so that its rate of change is proportional to the difference between \(T\) and the room temperature \(25^\circ\text{C}\). Write a differential equation for the cooling.
Solution

Write the rate as a derivative, and the difference from the room as \(T-25\):

\(\text{rate of change}\)\(=\)\(\dfrac{dT}{dt}\)
\(\text{gap above the room}\)\(=\)\(T-25\)

The tea is cooling, so the rate is negative; "proportional to" gives a constant \(k>0\):

\(\dfrac{dT}{dt}\)\(\propto\)\(-(T-25)\)
\(\dfrac{dT}{dt}\)\(=\)\(-k(T-25)\)

The differential equation is \(\dfrac{dT}{dt}=-k(T-25)\).

Common pitfalls

Confusing order with power. The order is the highest derivative, not the highest power. \(\left(\dfrac{dy}{dx}\right)^3\) is still a first derivative — a DE containing it and \(\dfrac{d^2y}{dx^2}\) is second order, not third.
Only checking one side. To verify a solution you must substitute into both sides and show they are equal. Differentiating and stopping is not a check.
Forgetting the arbitrary constant. The general solution needs one constant per order. Dropping the \(+c\) turns a whole family of curves into a single one and loses the general solution.
Missing the minus sign for decay. A quantity that is decreasing gives a negative rate: radioactive decay is \(\dfrac{dN}{dt}=-kN\), and cooling is \(\dfrac{dT}{dt}=-k(T-T_s)\).

Frequently asked questions

What is a differential equation?

It is an equation that contains one or more derivatives of an unknown function, such as \(\dfrac{dy}{dx}=2y\). It describes how a quantity changes rather than giving the quantity directly.

What does the order of a differential equation mean?

The order is the order of the highest derivative that appears. \(\dfrac{dy}{dx}=4x\) is first order and \(\dfrac{d^2y}{dx^2}+3\dfrac{dy}{dx}=0\) is second order. A power of a derivative does not raise the order.

How do I verify that a function is a solution?

Differentiate the function as many times as the equation needs, substitute it and its derivatives into both sides, and check the two sides are equal for all \(x\).

What is the difference between a general and a particular solution?

The general solution contains arbitrary constants (one per order) and represents a family of curves. A particular solution uses an initial or boundary condition to fix those constants and select one curve.

How many arbitrary constants does the general solution have?

Exactly as many as the order of the differential equation, because each integration introduces one constant. A third-order equation therefore has three arbitrary constants.

How do I form a differential equation from a described rate?

Write the rate of change as a derivative, replace "proportional to" with "equals \(k\) times", and include a minus sign when the quantity is decreasing, for example \(\dfrac{dP}{dt}=kP\) for growth or \(\dfrac{dN}{dt}=-kN\) for decay.