← Back to Calculus

Equations That Track Change

A differential equation relates a quantity to its own rate of change. It is the natural language for anything whose future depends on its present: populations, savings, temperatures, and moving objects.

What a differential equation is

An ordinary differential equation (ODE) is an equation involving an unknown function and its derivatives, such as \(\frac{dy}{dt} = 0.03y\). Solving it means finding the function, not a number. The order of the equation is the highest derivative that appears: \(y'' + y = 0\) is second order. Differential equations let us describe how something changes, then deduce what it will do.

Checking a solution

To check whether a function solves a differential equation, substitute it in. Does \(y = Ce^{2t}\) solve \(y' = 2y\)? Differentiating gives \(y' = 2Ce^{2t} = 2y\). Yes, for every constant \(C\). Does \(y = \sin t\) solve \(y'' + y = 0\)? \(y'' = -\sin t\), so \(y'' + y = 0\). Yes. Checking is always easier than solving, so it is a great habit.

Families of solutions and initial values

Most differential equations have infinitely many solutions, a family with arbitrary constants. A first-order equation usually has one constant. An initial condition, such as \(y(0) = 5\), picks out one member of the family. For \(y' = 2y\) with \(y(0) = 5\): \(Ce^0 = 5\), so \(C = 5\) and \(y = 5e^{2t}\). An equation plus an initial condition is called an initial value problem.

y' = 2y,\ y(0)=5 \Rightarrow y = 5e^{2t}

Modelling: from words to equations

Phrases translate into equations. 'Grows at a rate proportional to its size' becomes \(\frac{dP}{dt} = kP\). 'Cools at a rate proportional to the difference from room temperature' becomes \(\frac{dT}{dt} = -k(T - T_{\text{room}})\). 'Falls under gravity with air resistance proportional to speed' becomes \(m\frac{dv}{dt} = mg - kv\). Writing the model is often the most important step.

Exponential growth and decay

The equation \(\frac{dy}{dt} = ky\) has solution \(y = y_0e^{kt}\). If \(k > 0\), the quantity grows exponentially; if \(k < 0\), it decays. Doubling time is \(\frac{\ln 2}{k}\) for growth, and half-life is \(\frac{\ln 2}{|k|}\) for decay. Carbon-14 has a half-life of about 5,730 years, which lets archaeologists date ancient organic material.

\frac{dy}{dt} = ky \Rightarrow y = y_0 e^{kt}

Worked example: compound interest

Money in an account with continuous compounding at 5% per year satisfies \(\frac{dA}{dt} = 0.05A\). Starting with \$1000, \(A(t) = 1000e^{0.05t}\). After 10 years, \(A = 1000e^{0.5} \approx \$1649\). The doubling time is \(\frac{\ln 2}{0.05} \approx 13.9\) years, close to the 'rule of 72' estimate of \(72/5 = 14.4\).

Slope fields

For \(y' = f(t, y)\), the equation tells you the slope of the solution at every point. Draw a short line segment with that slope at many points, and you get a slope field. Solution curves follow the segments like iron filings following a magnet. For \(y' = y - t\), you can see solutions spreading apart and one straight-line solution, \(y = t + 1\), running through the middle.

Equilibrium solutions

An equilibrium solution is a constant solution, where \(y' = 0\) for all \(t\). For \(y' = y(3 - y)\), the equilibria are \(y = 0\) and \(y = 3\). An equilibrium is stable if nearby solutions move toward it, and unstable if they move away. Here, solutions near 3 move toward it, while solutions near 0 move away, a picture called a phase line.

Euler's method

When an equation cannot be solved exactly, approximate it. Starting from \((t_0, y_0)\), take a small step \(h\) along the tangent line: \(y_{n+1} = y_n + h\,f(t_n, y_n)\). For \(y' = y\), \(y(0) = 1\), with \(h = 0.5\): \(y(0.5) \approx 1.5\) and \(y(1) \approx 2.25\), versus the true value \(e \approx 2.718\). Smaller steps give better accuracy; computers use refined versions of this idea.

y_{n+1} = y_n + h\,f(t_n, y_n)

Common mistakes

Treating a differential equation like an algebraic equation and solving for a number. Forgetting the arbitrary constant, or applying the initial condition before integrating. Mixing up doubling time and half-life formulas. Getting the sign wrong in a cooling or decay model.

Try it yourself

Verify that \(y = 3e^{-2t}\) solves \(y' = -2y\) with \(y(0) = 3\). Answer: \(y' = -6e^{-2t} = -2y\) and \(y(0) = 3\). Then find the half-life of a substance with \(k = -0.1\) per year. Answer: \(\frac{\ln 2}{0.1} \approx 6.9\) years.

Key takeaways

A differential equation links a function to its derivatives; solutions are functions. Check solutions by substitution. Initial conditions select one solution from a family. \(y' = ky\) gives exponential growth or decay. Slope fields, equilibria, and Euler's method reveal behaviour even without a formula.

Flashcard

Differential equation

An equation involving a function and its derivatives

Its solutions are functions.

Check your understanding

Which function solves dy/dt = 3y with y(0) = 2?

Take the unit quiz

← Previous lesson Next lesson →