AP Calculus AB/BC

Part 7 · differential-equations

Differential equations

An equation whose unknown is a function. Separation turns it back into two ordinary integrals.

By the end of this chapter you can

  • Verify that a function solves a differential equation
  • Solve a separable equation and apply an initial condition
  • Model exponential and logistic growth
  • Read a solution curve off a slope field

Every equation so far had a number for its unknown. A differential equation has a function for its unknown, and describes it by how it changes:

dydx=2y\frac{dy}{dx} = 2y

“Find the function whose rate of change is twice its value.” That is a description of behaviour, not of a value, which is why differential equations are how science states its laws — chapters 2.1 and 10.1 of PhysTB are both exactly this.

Checking a solution is easy

Solving is work; verifying is just differentiating.

Is y=3e2xy = 3e^{2x} a solution of dydx=2y\tfrac{dy}{dx} = 2y?

  • ddx3e2x=6e2x\frac{d}{d x} 3 e^{2 x} = 6 e^{2 x}
  • 6e2x=6e2x6 e^{2 x} = 6 e^{2 x}
checked by the build

Both sides come to 6e2x6e^{2x}, so yes. Note that 5e2x5e^{2x} works too, and so does Ce2xCe^{2x} for any constant — a differential equation has a family of solutions, and pinning down which one needs an extra fact.

That extra fact is an initial condition like y(0)=3y(0) = 3, and a problem giving you one is asking for a single function rather than a family.

Separation of variables

The one technique AB needs. When the equation can be written with all the $y$s on one side and all the $x$s on the other, integrate both sides.

For dydx=2y\tfrac{dy}{dx} = 2y:

dyy=2dxdyy=2dxlny=2x+C\frac{dy}{y} = 2\,dx \quad\Longrightarrow\quad \int\frac{dy}{y} = \int 2\,dx \quad\Longrightarrow\quad \ln|y| = 2x + C

  • 1ydy=log(y)\int \frac{1}{y}\, dy = \log{\left(y \right)}
  • 2dx=2x\int 2\, dx = 2 x
  • ddx3e2x=6e2x\frac{d}{d x} 3 e^{2 x} = 6 e^{2 x}
checked by the build

Exponentiating gives y=Ce2xy = Ce^{2x}, and y(0)=3y(0) = 3 makes C=3C = 3.

Where the constant goes. One constant is enough — combining the two from the separate integrals gives a single CC, and exponentiating turns an additive constant into a multiplicative one. That is why the answer has CC as a coefficient rather than an addend.

Exponential growth

dydt=ky\tfrac{dy}{dt} = ky says the rate of growth is proportional to the amount present, and its solution is

y=y0ekty = y_0 e^{kt}

  • t3ekt=3kekt\frac{\partial}{\partial t} 3 e^{k t} = 3 k e^{k t}
  • limtekt=0\lim_{t \to \infty} e^{- k t} = 0
checked by the build

Positive kk is growth, negative is decay — the second claim is the decay case heading to zero. This one equation covers compound interest, population growth without constraint, and radioactive decay.

Doubling and half-life. Time to double satisfies ekt=2e^{kt} = 2, so t=ln2kt = \tfrac{\ln 2}{k} — independent of where you started, which is the characteristic property of exponential behaviour and a standard exam question.

  • 2=22 = 2
checked by the build

Logistic growth

Unconstrained exponential growth is unphysical: populations run out of food. The logistic equation adds a ceiling LL:

dydt=ky(1yL)\frac{dy}{dt} = ky\left(1 - \frac{y}{L}\right)

The bracket is near 11 when yy is small — so growth starts exponential — and near 00 as yy approaches LL, which stalls it. The population levels off at LL, the carrying capacity.

Two facts the exam asks for directly, and both come from the equation without solving it:

  • limty=L\lim_{t\to\infty} y = L. Growth stops when the bracket vanishes.
  • Growth is fastest at y=L/2y = L/2. The rate ky(1y/L)ky(1 - y/L) is a downward parabola in yy, and its vertex is halfway.
  • yky(1yL)=k(12yL)\frac{\partial}{\partial y} k y \left(1 - \frac{y}{L}\right) = k \left(1 - \frac{2 y}{L}\right)
checked by the build

Setting that derivative to zero gives y=L2y = \tfrac{L}{2} exactly — the maximum growth rate, verified. That point is the inflection point of the solution curve, where it stops curving up and starts curving down.

Slope fields

A slope field draws a short segment at each point with the slope the equation prescribes there. Solution curves follow the segments, and one passes through each point — which is a picture of the family of solutions all at once.

Reading one:

  • Follow the segments from the initial condition to sketch that solution.
  • Horizontal segments mark where dydx=0\tfrac{dy}{dx} = 0 — equilibria.
  • Segments depending only on yy mean the field looks the same at every xx, which is the signature of an autonomous equation like dydt=ky\tfrac{dy}{dt} = ky.

For the logistic equation the field is horizontal along y=0y = 0 and y=Ly = L — the two equilibria — steepest in between, and every curve starting between them climbs toward LL.