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.
State the order of (a) $\dfrac{d^2y}{dx^2} + 3\dfrac{dy}{dx} = x$ (b) $\left(\dfrac{dy}{dx}\right)^3 = y$.
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.
Show that $y = e^{3x}$ is a solution of $\dfrac{d^2y}{dx^2} - 2\dfrac{dy}{dx} - 3y = 0$.
Show that $y = \dfrac{2}{1 + x^2}$ satisfies $\dfrac{dy}{dx} = -xy^2$.
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.
Every curve y = x² + C solves dy/dx = 2x. The slider moves through the family.
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?
Solve $\dfrac{dy}{dx} = 6x^2 - 4$, given $y = 3$ when $x = 1$.
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}$.
The order of $\dfrac{d^2y}{dx^2} + \left(\dfrac{dy}{dx}\right)^3 = x$ is:
The highest derivative is the second derivative. The cube is a power of the first derivative.
State the order of $\left(\dfrac{dy}{dx}\right)^4 + y = 0$.
Only the first derivative appears, raised to a power. It is first order.
Which function satisfies $\dfrac{dy}{dx} = 3y$?
For $y = 5e^{3x}$, $\dfrac{dy}{dx} = 15e^{3x} = 3 \times 5e^{3x} = 3y$. For $3e^x$ the derivative is $3e^x = y$, not $3y$.
Solve $\dfrac{dy}{dx} = 6x^2 - 4$ with $y = 3$ when $x = 1$. The solution is $y = 2x^3 - 4x + C$. Find $C$.
$3 = 2(1) - 4(1) + C = -2 + C$, so $C = 5$.
Solve $\dfrac{dy}{dx} = 4x + 1$ given $y = 2$ when $x = 0$. Find $y$ when $x = 2$.
$y = 2x^2 + x + C$, and $y(0) = 2$ gives $C = 2$. Then $y(2) = 8 + 2 + 2 = 12$.
$y = e^{kx}$ satisfies $\dfrac{d^2y}{dx^2} - \dfrac{dy}{dx} - 6y = 0$. Find both values of $k$, separated by &.
Substituting: $k^2e^{kx} - ke^{kx} - 6e^{kx} = 0$. Since $e^{kx} \ne 0$, $k^2 - k - 6 = 0$, so $(k - 3)(k + 2) = 0$ and $k = 3$ or $k = -2$.
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.
$y(0) = A = 2$, so $y = 2e^{x^2}$. Then $y(1.5) = 2e^{2.25} \approx 18.98$.
The general solution of a first-order DE:
Solving a first-order DE takes one integration, which brings in one constant. It represents a family of curves; an initial condition picks one.
Exam style: $y = A\cos2x + B\sin2x$ satisfies $\dfrac{d^2y}{dx^2} = -ky$ for all $A$ and $B$. Find $k$.
$\dfrac{dy}{dx} = -2A\sin2x + 2B\cos2x$ and $\dfrac{d^2y}{dx^2} = -4A\cos2x - 4B\sin2x = -4y$. So $k = 4$.
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.
$y = \tan^{-1}x + C$. At $x = 1$: $\tfrac{\pi}{2} = \tfrac{\pi}{4} + C$, so $C = \tfrac{\pi}{4}$. Then $y(\sqrt3) = \tfrac{\pi}{3} + \tfrac{\pi}{4} = \tfrac{7\pi}{12} \approx 1.83$.
Coaching Centre