girgit.org

Differential Equations

What is a differential equation?

The big ideaA differential equation is an equation that tells you how fast something changes, and its answer is not a number but a whole function.

In simple words

A cup of hot tea cools fast at first and slowly later. Money in a bank grows faster when there is more of it. A water tank empties fast when it is full and slowly near the bottom. In each case we know a rule for how fast the thing is changing right now. From that rule we want to find out the whole story: how hot the tea is after ten minutes, how much money there is after five years, when the tank is empty.

Three equations about rates

Every one of these stories can be written as an equation with a derivative in it.

StoryThe rule in wordsThe equation
A cup of tea cooling in a 30 °C roomThe hotter the tea is than the room, the faster it cools.\( \frac{dT}{dt} = -k(T - 30) \)
A bank balance growing continuously at 6% a yearEach year the balance grows by 6% of what is there.\( \frac{dA}{dt} = 0.06\,A \)
A tank draining through a hole at the bottomThe deeper the water, the faster it pushes out.\( \frac{dh}{dt} = -k\sqrt{h} \)

Here T is the temperature, A the amount of money, h the depth of water, t the time and k a positive constant. The minus signs say "going down". Notice what is missing: none of these equations tells you T, A or h directly. They only tell you the rate. Finding the quantity itself from its rate is what this chapter is about.

Try it: pick a story, then drag the dot along its curve. The equation only ever tells you the slope at the dot; follow those slopes step by step and the whole curve appears.

What makes an equation "differential"

You already know equations like \( x^2 - 5x + 6 = 0 \) or \( \sin x = \frac{1}{2} \). They contain only variables, and their answers are numbers (here x = 2 or 3). Now look at

\[ x\frac{dy}{dx} + y = 0. \]

This one contains the variables x and y and also the derivative of y with respect to x. An equation like that is a differential equation: an equation involving derivatives of the dependent variable (here y, the one that depends on something) with respect to the independent variable (here x, the one we are free to choose).

In the tea equation, T is the dependent variable and t the independent one. You have met a differential equation before without the name: in the chapter on integrals, "find y if \( \frac{dy}{dx} = 2x \)" is one. Its answer is \( y = x^2 + C \), a function.

Don't mix these up

  • An ordinary equation is solved by a number (x = 3). A differential equation is solved by a function (y = x² + C).
  • \( y = x^2 + \sin x \) is not a differential equation: it has no derivative of y in it.

Ordinary and partial

If y depends on only one independent variable, the equation is an ordinary differential equation. For example \( \frac{d^2y}{dx^2} + \left( \frac{dy}{dx} \right)^3 = 0 \) has derivatives with respect to x only.

The temperature along a hot iron rod depends on both the place along the rod and the time. Its equation needs derivatives with respect to both, and is called a partial differential equation. These come later, in college. In this chapter, "differential equation" always means ordinary differential equation.

Short ways to write derivatives

Writing \( \frac{d^3y}{dx^3} \) again and again is slow, so we use dashes:

\[ y' = \frac{dy}{dx}, \qquad y'' = \frac{d^2y}{dx^2}, \qquad y''' = \frac{d^3y}{dx^3}. \]

After three dashes it gets messy, so the nth derivative \( \frac{d^ny}{dx^n} \) is written \( y_n \). So \( y_4 \) means the fourth derivative, not "y number 4".

Differential equations are the language of science: they describe cooling, growth, decay, motion, the spread of a disease and the flow of money, which is why physics, chemistry, biology and economics all use them.

Try it. In the bank equation \( \frac{dA}{dt} = 0.06\,A \), how fast is the balance growing (in rupees per year) at the moment it is Rs 50,000?

Answer
\( \frac{dA}{dt} = 0.06 \times 50000 = 3000 \) rupees per year. At Rs 1,00,000 it would be growing twice as fast, Rs 6,000 per year: more money, faster growth.

Words to know

Differential equation
An equation with one or more derivatives of the unknown function in it.
Dependent variable
The quantity we want to find, which depends on the other (y, T, A).
Independent variable
The quantity it depends on, which we choose freely (x, t).
Ordinary differential equation
One with derivatives with respect to a single independent variable.
Partial differential equation
One with derivatives with respect to two or more independent variables.
\( y_n \)
Short for the nth derivative \( \frac{d^ny}{dx^n} \).

Which of these is a differential equation?

  1. \( x^2 + 3x - 4 = 0 \)
  2. \( \frac{dy}{dx} = x + y \)
  3. \( y = e^x + \cos x \)

In \( \frac{dT}{dt} = -k(T - 30) \) for cooling tea, what is the solution?

  1. The number 30
  2. The value of k
  3. A formula for T in terms of t

The height h of a pine tree depends on its age t, and also on how much rain it gets, r. An equation with both \( \frac{\partial h}{\partial t} \) and \( \frac{\partial h}{\partial r} \) is

  1. an ordinary differential equation
  2. a partial differential equation
  3. not a differential equation