Watch on Instagram

Math Bytes · Calculus · Episode 21 · Differential equations (intro)

What a differential equation is

A differential equation is a rule about a function's derivative, and its answer is a whole function. dy/dx = 2x is solved by the family y = x² + C, and a starting point picks one curve.

Posted · About a 1 minute watch, 3 minute read · Take the quiz

A number or a function?

Most equations you've met want a number. x + 3 = 5 is solved by x = 2, and that's the end of it.

A differential equation is different. It is an equation that involves an unknown function and its derivative, so what it wants is a whole function. In plain words: it tells you how something changes, and you have to work out what the thing is.

Here's one: dy/dx = 2x

dy/dx = 2x says: at every point, the slope of the curve must be 2x. At x = 0 the slope is 0 (flat), and the further out you go, the steeper the curve has to be.

Which functions have derivative 2x? y = x² works, since (x²)′ = 2x. So does y = x² + 7, because the derivative of a constant is 0. Any constant can ride along.

A whole family of answers

So the answer is a whole family of curves, the general solution:

y = x² + C

Every member is the same parabola, shifted up or down. For an equation like this one, where the right side has only x in it, you find the family by integrating: y = ∫ 2x dx = x² + C.

Picking one curve: the initial condition

To pick one curve, you need a starting point, called an initial condition. Suppose y = 3 when x = 0, written y(0) = 3.

Plug it into the family: 3 = 0² + C, so C = 3. The particular solution is

y = x² + 3

Check: (x² + 3)′ = 2x ✓, and at x = 0, y = 3 ✓.

Try it yourself

  1. Solve dy/dx = 3x² with y(0) = 2.
  2. Solve dy/dx = cos x with y(0) = 1.

(Answers: 1. y = x³ + 2. 2. y = sin x + 1.)

Good to know

  • A differential equation relates an unknown function to one or more of its derivatives. A solution is a function that makes it true, and an initial condition picks one solution from the family.
  • "Wants a whole function" is the plain-English version of that definition.
  • dy/dx = 2x can be solved just by integrating. Most differential equations, like the ones for growth and cooling, have y on the right side too; those come in the next two episodes.
  • Growing populations, cooling drinks and bouncing springs are examples, not a full list. The spring is a second-order equation (it uses the second derivative), which is beyond AP.
  • Differential equations are AP Calculus Unit 7, in both AB and BC.

Answer to the comment question

dy/dx = 2x, and y = 5 when x = 0. What is y when x = 3? 14. The family is y = x² + C. From y(0) = 5: 5 = 0 + C, so C = 5 and y = x² + 5. Then y(3) = 9 + 5 = 14.

Test your knowledge

Quick quiz: What a differential equation is

4 multiple-choice questions. Pick one answer for each, then check how you did.

1What does a differential equation ask you to find?
2Which functions solve dy/dx = 2x?
3What does an initial condition like y(0) = 3 do?
4For dy/dx = 2x with y(0) = 3, what is the particular solution?

Sources

Video transcript

What equation is all about how something changes?

Most equations want a number. A differential equation wants a whole function, from a rule about its derivative.

Here's one: d y d x equals two x. At every point, the slope must be two x.

x squared works. So does x squared plus seven. Any constant can ride along.

To pick one curve, you need a starting point. If y is three when x is zero, then C is three.

Real life is full of these: growing populations, cooling drinks, bouncing springs.

Your turn. d y d x equals two x, and y is five when x is zero. What is y when x is three? Comment your answer below!

That's your byte.

More from Calculus

All Calculus lessons