7A

Differential equations and their solutions

What a differential equation is, its order, checking that a function is a solution, general and particular solutions, families of solution curves, and using initial conditions to find constants.

Science rarely tells you a quantity directly. It tells you how the quantity changes: "the rate of cooling is proportional to the temperature difference", "the acceleration is $g$". An equation that describes a function through its derivatives is a differential equation, and solving it means finding the function itself.

What is a differential equation?

A differential equation (DE) is an equation involving a derivative of an unknown function, such as $\dfrac{dy}{dx} = 6x^2 - 4$ or $\dfrac{d^2y}{dx^2} + 4y = 0$. Its order is the highest derivative that appears. A solution is a function that makes the equation true for every $x$ in its domain.

Example 1●

State the order of (a) $\dfrac{d^2y}{dx^2} + 3\dfrac{dy}{dx} = x$ (b) $\left(\dfrac{dy}{dx}\right)^3 = y$.

(a) Second order.
The second derivative appears.
(b) First order.
Only the first derivative appears. The cube is a power, not a higher derivative.

Checking a solution

To check a solution, differentiate it as many times as the DE needs, substitute everything into the equation, and show the two sides agree.

Example 2●●

Show that $y = e^{3x}$ is a solution of $\dfrac{d^2y}{dx^2} - 2\dfrac{dy}{dx} - 3y = 0$.

$\dfrac{dy}{dx} = 3e^{3x}$ and $\dfrac{d^2y}{dx^2} = 9e^{3x}$.
LHS $= 9e^{3x} - 6e^{3x} - 3e^{3x} = 0 = $ RHS.
Substitute into the left side.
Example 3●●

Show that $y = \dfrac{2}{1 + x^2}$ satisfies $\dfrac{dy}{dx} = -xy^2$.

$\dfrac{dy}{dx} = -2(1 + x^2)^{-2} \times 2x = \dfrac{-4x}{(1 + x^2)^2}$
Write y = 2(1 + x²)⁻¹ and use the chain rule.
RHS $= -x \times \dfrac{4}{(1 + x^2)^2} = \dfrac{-4x}{(1 + x^2)^2} = $ LHS.

General and particular solutions

The DE $\dfrac{dy}{dx} = 2x$ is solved by integrating: $y = x^2 + C$. Every value of $C$ works, so this general solution is a whole family of curves, each a vertical shift of the others. An initial condition such as "$y = 4$ when $x = 1$" picks out one member, the particular solution.

A family of solutions

Every curve y = x² + C solves dy/dx = 2x. The slider moves through the family.

Try this

Work out the value of $C$ for the solution through $(1, 4)$, then set the slider and drag $P$ to $x = 1$ to check. Can two different curves in this family ever cross? Why not?

Example 4●

Solve $\dfrac{dy}{dx} = 6x^2 - 4$, given $y = 3$ when $x = 1$.

$y = 2x^3 - 4x + C$
Integrate both sides. One constant is enough.
$3 = 2 - 4 + C$, so $C = 5$.
Substitute the initial condition.
$y = 2x^3 - 4x + 5$

Your turn

Show that $y = Ae^{x^2}$ satisfies $\dfrac{dy}{dx} = 2xy$, and find $A$ if $y = 3$ when $x = 0$.

Show the working

$\dfrac{dy}{dx} = Ae^{x^2} \times 2x = 2x \times Ae^{x^2} = 2xy$. At $x = 0$: $3 = Ae^0 = A$, so $y = 3e^{x^2}$.

Flashcards
Order of a DE
The highest derivative that appears.
General solution
Contains an arbitrary constant: a family of curves.
Particular solution
One member of the family, fixed by an initial condition.
Practice
  1. The order of $\dfrac{d^2y}{dx^2} + \left(\dfrac{dy}{dx}\right)^3 = x$ is:

  2. State the order of $\left(\dfrac{dy}{dx}\right)^4 + y = 0$.

  3. Which function satisfies $\dfrac{dy}{dx} = 3y$?

  4. Solve $\dfrac{dy}{dx} = 6x^2 - 4$ with $y = 3$ when $x = 1$. The solution is $y = 2x^3 - 4x + C$. Find $C$.

  5. Solve $\dfrac{dy}{dx} = 4x + 1$ given $y = 2$ when $x = 0$. Find $y$ when $x = 2$.

  6. $y = e^{kx}$ satisfies $\dfrac{d^2y}{dx^2} - \dfrac{dy}{dx} - 6y = 0$. Find both values of $k$, separated by &.

  7. The general solution of $\dfrac{dy}{dx} = 2xy$ is $y = Ae^{x^2}$. Find the particular solution through $(0, 2)$, and give $y$ when $x = 1.5$, correct to $2$ decimal places.

  8. The general solution of a first-order DE:

  9. Exam style: $y = A\cos2x + B\sin2x$ satisfies $\dfrac{d^2y}{dx^2} = -ky$ for all $A$ and $B$. Find $k$.

  10. Exam style: solve $\dfrac{dy}{dx} = \dfrac{1}{1 + x^2}$ given $y = \tfrac{\pi}{2}$ when $x = 1$. Find $y$ when $x = \sqrt3$, correct to $2$ decimal places.

Formula sheet