A81 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 dvdt=5−vτ demands at that point: a capacitor charging toward 5 V.
  • The curve is the solution starting at v0 when t=0. Move v0: 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?

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:

EquationWhat it describes
dvdt=Vs−vτa capacitor charging through a resistor
Ldidt+Ri=Vcurrent building in an inductor
d2xdt2+ω02x=0a 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 v=5+(v0−5)e−t/τ, the derivative is −v0−5τe−t/τ, and 5−vτ is the same thing, so it works, for every v0.

Initial conditions. That "for every v0" 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 dvdt=5−v2 (t in ms), what is the slope where v=8 V?

Show the solution
  1. Put v=8 V into the equation. dvdt=5−82=−1.5V/ms
  2. Read the sign. The slope is negative, so the voltage is falling, toward 5 V.
  3. 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 v=5−3e−t/2 solves that equation.

Show the solution
  1. Differentiate the candidate. dvdt=32e−t/2
  2. Work out the right side. 5−v2=3e−t/22
  3. Compare. They match, so it's a solution: the one that starts at v(0)=2 V.

Answer yes, v=5−3e−t/2 solves the equation; it's the solution that starts at v(0)=2 V.

Worked example

For which k does y=ekt solve y¨−5y˙+6y=0?

Show the solution
  1. Substitute the guess. With y˙=kekt and y¨=k2ekt, the equation becomes (k2−5k+6)ekt=0
  2. Solve for k. The exponential is never zero, so k2−5k+6=0 giving k=2 or k=3.
  3. Combine the solutions. Both e2t and e3t are solutions, and so is any combination of them, because the equation is linear: y=c1e2t+c2e3t
  4. The method. Guessing an exponential and solving for its rate is the method behind every constant-coefficient equation in this course.

Answer k=2 or k=3, so e2t, e3t and any combination c1e2t+c2e3t solve it.

Check

For dvdt=6−v2 (t in ms), what is the slope of the solution passing through v = 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 dydt=−3y?

Check

A capacitor follows dvdt=4−v4 ms from v(0) = 5 V. Using the solution v=Vs+(v0−Vs)e−t/τ, what is v at t = 2 ms?

Check

How many starting conditions does a second-order equation like x¨+ω02x=0 need to pick out one solution?

Check

y=ekt is tried in y¨−(2+4)y˙+2⋅4y=0.

(a)

What is the smaller rate k that works?

(b)

And the larger?

Check

Check that v=5−3e−at solves v˙=a(5−v).

Step 1

What is v˙?

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°.

Explain why

Why does the equation dvdt=5−vτ have many solutions, and what picks out the right one?

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.