A8 · Lesson 1 · What a differential equation describes
A rule for how something changes, and the curves that follow it
Ohm's law tells you a current from a voltage. A capacitor's law doesn't tell you its voltage at all: it tells you how fast the voltage is changing, given what it is now. A rule like that, connecting a quantity to its own rate of change, is a differential equation. Its solution isn't a number but a whole curve, and you can see every possible solution at once by drawing the rule itself.
Play
- Each little segment shows the slope that the rule demands at that point: a capacitor charging toward 5 V.
- The curve is the solution starting at when . Move : every start gives a different curve, but they all follow the segments.
- Start above 5 V. Which way does the curve go? Change τ: what changes about the field?
Predict
The capacitor starts at 8 V, above the 5 V it's being pulled toward. What does its voltage do?
It falls toward 5 V, quickly at first and then more slowly. Above 5 V the rule makes negative, and the farther above, the steeper the fall. Every curve, from any start, homes in on , where the rate is zero: the equilibrium. That's the shape of every RC transient.
Name it
Equations whose unknown is a function
A differential equation relates an unknown function to its derivatives. Its solution is a function that makes the equation true at every instant. A few you'll meet constantly:
| Equation | What it describes |
|---|---|
| a capacitor charging through a resistor | |
| current building in an inductor | |
| a mass on a spring, or an LC circuit, oscillating |
Order is the highest derivative that appears: the first two are first order, the oscillator is second order. Linear means the unknown and its derivatives appear only to the first power, multiplied by things that don't depend on them; every equation in this course is linear except where it says otherwise.
Checking a solution needs no solving at all: substitute it in. For , the derivative is , and is the same thing, so it works, for every .
Initial conditions. That "for every " is typical: a first-order equation has a whole family of solutions, one through each starting point, and knowing where you start picks one. A second-order equation needs two starting facts, like position and velocity, or a capacitor's voltage and an inductor's current.
Slope fields draw the rule itself: at each point, a segment with the slope the equation demands. Solutions are curves that follow the segments everywhere. A4 showed how a computer traces them: take small steps along the local slope.
Worked example
For ( in ms), what is the slope where V?
Show the solution
- Put V into the equation.
- Read the sign. The slope is negative, so the voltage is falling, toward 5 V.
- What this shows. The equation gives the slope at every point without being solved, which is what a slope field draws.
Answer the slope is −1.5 V/ms, so the voltage is falling toward 5 V.
Worked example
Check that solves that equation.
Show the solution
- Differentiate the candidate.
- Work out the right side.
- Compare. They match, so it's a solution: the one that starts at V.
Answer yes, solves the equation; it's the solution that starts at V.
Worked example
For which does solve ?
Show the solution
- Substitute the guess. With and , the equation becomes
- Solve for . The exponential is never zero, so giving or .
- Combine the solutions. Both and are solutions, and so is any combination of them, because the equation is linear:
- The method. Guessing an exponential and solving for its rate is the method behind every constant-coefficient equation in this course.
Answer or , so , and any combination solve it.
Check
For (t in ms), what is the slope of the solution passing through = 9 V, in volts per ms?
Write units the way you normally would: 1.5 V/ms, 1500 mV/ms and 0.0015 kV/ms are the same answer.
Check
Which function solves ?
Check
A capacitor follows from = 5 V. Using the solution , what is at = 2 ms?
Check
How many starting conditions does a second-order equation like need to pick out one solution?
Check
is tried in .
(a)
What is the smaller rate that works?
(b)
And the larger?
Check
Check that solves .
Step 1
What is ?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is ?
Explain why
Why does the equation have many solutions, and what picks out the right one?
The equation only gives the rate of change at each value of v; it doesn't say where you start. From any starting voltage, following that rule traces out a different curve, so there's one solution for every starting value. Knowing the initial condition, the voltage at , picks out the one curve that passes through that point.
Practice
Keep practicing
6 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.