Skip to content

Unit 7: Differential Equations

AP Calc cheatsheet

Open ↗

Loading…

A differential equation usually describes how a function changes rather than giving its value directly. This makes differential equations useful when the known information is a rate: population growth, cooling, radioactive decay, motion, spread of a disease, charging a capacitor, or any situation where the future depends on the current state.

For example, saying

dPdt=0.2P\frac{dP}{dt}=0.2P

does not give the population P(t)P(t) immediately. It says the population grows at a rate proportional to how much population is already present. Solving the differential equation turns that rate rule into an actual population model.

For

dydx=f(x,y),\frac{dy}{dx}=f(x,y),

the slope at a point depends on the coordinates of that point. A solution curve is a function whose tangent slope matches the differential equation everywhere it passes through.

However, a solution to a differential equation may be valid only on an interval, even if the algebraic expression looks broader. Restrictions can come from:

  • division by zero during separation,
  • logarithms introduced while integrating,
  • initial conditions that choose one branch,
  • points where the differential equation itself is undefined.

When solving an initial value problem, the interval of validity is usually the largest interval containing the initial input where the solution and differential equation both make sense.

Solving an equation and verifying a solution are different tasks. To verify, calculate the proposed function’s derivative, substitute the proposed function wherever the equation contains yy, and show the two sides agree throughout the stated interval. Then check the initial condition separately.

A function may satisfy the differential equation while failing the initial condition. It may also satisfy both at a single input without satisfying the equation nearby. A solution must work on an interval, not merely at the point where its value is specified.

Example. Determine whether y(x)=2e−x+x−1y(x)=2e^{-x}+x-1 solves y′+y=xy'+y=x with y(0)=1y(0)=1.

The derivative is

y′(x)=−2e−x+1.y'(x)=-2e^{-x}+1.

Substitute both expressions into the differential equation:

y′+y=(−2e−x+1)+(2e−x+x−1)=x.y'+y=(-2e^{-x}+1)+(2e^{-x}+x-1)=x.

The identity holds for every real xx. Also,

y(0)=2+0−1=1.y(0)=2+0-1=1.

Thus the function satisfies both requirements and is a solution on the entire real line. The exponential terms cancel because the homogeneous part of the equation is y′+y=0y'+y=0, while the polynomial terms account for the forcing term xx.

“Proportional to” identifies multiplication by a constant. A growth rate proportional to the current population gives P′=kPP'=kP. A cooling rate proportional to the difference between the object’s temperature and room temperature gives T′=−k(T−Troom)T'=-k(T-T_{\mathrm{room}}) for a positive cooling constant.

Choose the sign so the equation matches the physical behavior. For an object hotter than its room, T−Troom>0T-T_{\mathrm{room}}>0 and cooling requires a negative derivative. For a colder object, the same model predicts warming because that difference is negative.

Check units when introducing the constant. In P′=kPP'=kP, kk has units of inverse time. In a model P′=cP(L−P)P'=cP(L-P), the constant cc instead has units of inverse population per time. The two logistic forms are equivalent only after their constants are related correctly.


A slope field shows small line segments representing dy/dxdy/dx at many points.

In a slope field, each small segment represents the slope assigned by the differential equation at that point. Solution curves should follow the little segments smoothly. When the equation satisfies a local uniqueness condition, distinct solution curves cannot cross at the same input-output point. A sufficient condition near that point is continuity of both f(x,y)f(x,y) and its partial derivative with respect to yy.

To sketch a solution curve through an initial condition, start at the given point and move in the direction of the nearby line segments. Do not connect the segments with sharp corners; the solution should be a smooth curve whose tangent direction matches the field. You can reason about the solution without solving the differential equation by asking where slopes are positive, negative, zero, steep, or shallow.

xysolutionsfollowslopes

For y′=f(y)y'=f(y), the slope depends only on height, so every segment in a horizontal row has the same slope. For y′=g(x)y'=g(x), the slope depends only on the horizontal coordinate, so segments repeat in vertical columns. When both variables appear, neither repetition is guaranteed.

The equation f(x,y)=0f(x,y)=0 identifies places where a solution has a horizontal tangent. It need not identify a constant solution. For y′=x−yy'=x-y, slopes are zero along the diagonal y=xy=x, but the function y=xy=x itself has derivative one, so it does not solve the equation. A constant solution must remain on a horizontal line whose assigned slopes are zero everywhere.

Example. For y′=y−x2y'=y-x^2, describe the slope field and find the tangent line and concavity of the solution through (1,2)(1,2).

Slopes are zero on the parabola y=x2y=x^2. Above that parabola, slopes are positive; below it, slopes are negative. These conclusions follow from comparing the height yy to x2x^2.

At (1,2)(1,2),

y′=2−1=1,y'=2-1=1,

so the tangent line is y−2=x−1y-2=x-1. To determine concavity, differentiate along a solution:

y′′=y′−2x=y−x2−2x.y''=y'-2x=y-x^2-2x.

At the initial point, y′′=2−1−2=−1y''=2-1-2=-1, so the solution is concave down locally. Its tangent line gives an overestimate for nearby values as long as this concavity persists between the initial point and the target input.

The parabola of horizontal segments is not a solution curve. Moving along that parabola would require derivative 2x2x, which usually differs from the zero slopes assigned there.

The uniqueness condition matters. For example, y′=2yy'=2\sqrt{y} with y(0)=0y(0)=0 allows both the constant solution zero and a solution that remains zero until a chosen nonnegative time, then follows a translated square. The right side is not differentiable with respect to yy at zero, so the sufficient uniqueness condition fails. Ordinary polynomial and smooth exponential models generally do not have this ambiguity near their initial points.


Euler’s method is repeated linear approximation. At each step, use the current slope to move forward:

ynew=yold+(step size)(slope at old point).y_{new} = y_{old} + (\text{step size})(\text{slope at old point}).

Starting from (x0,y0)(x_0,y_0) with step size hh:

yn+1=yn+hf(xn,yn),y_{n+1} = y_n + h f(x_n,y_n),

where

dydx=f(x,y).\frac{dy}{dx} = f(x,y).

Also keep track of the input:

xn+1=xn+h.x_{n+1}=x_n+h.

The approximation improves when the step size is smaller, but AP questions usually care more about setting up the method correctly than about perfect numerical accuracy.

Euler’s method is like repeatedly using a tangent line for a short time. At (xn,yn)(x_n,y_n), the differential equation gives the slope f(xn,yn)f(x_n,y_n). If the step size is hh, then the tangent-line estimate says

Δy≈h⋅f(xn,yn).\Delta y\approx h\cdot f(x_n,y_n).

So the next point is

(xn+1,yn+1)=(xn+h, yn+hf(xn,yn)).(x_{n+1},y_{n+1})=(x_n+h,\ y_n+h f(x_n,y_n)).

Each step uses the slope at the old point. Only after taking that step do you recalculate the slope at the new estimated point.

Example. Given dydx=x+y\dfrac{dy}{dx}=x+y with y(0)=1y(0)=1, use Euler’s method with step size h=0.5h=0.5 to approximate y(1)y(1) in two steps.

At each step the new yy is the old yy plus hh times the slope at the current point. Start at (x0,y0)=(0,1)(x_0,y_0)=(0,1).

Step 1. The slope at (0,1)(0,1) is f(0,1)=0+1=1f(0,1)=0+1=1, so

y1=y0+h f(x0,y0)=1+0.5(1)=1.5,x1=0.5.y_1 = y_0 + h\,f(x_0,y_0) = 1 + 0.5(1) = 1.5,\qquad x_1 = 0.5.

Step 2. The slope at (0.5,1.5)(0.5,1.5) is f(0.5,1.5)=0.5+1.5=2f(0.5,1.5)=0.5+1.5=2, so

y2=y1+h f(x1,y1)=1.5+0.5(2)=2.5,x2=1.y_2 = y_1 + h\,f(x_1,y_1) = 1.5 + 0.5(2) = 2.5,\qquad x_2 = 1.

Collecting the steps in a table:

nxnynf(xn,yn)001110.51.52212.5−\begin{array}{c|c|c|c} n & x_n & y_n & f(x_n,y_n) \\ \hline 0 & 0 & 1 & 1 \\ 1 & 0.5 & 1.5 & 2 \\ 2 & 1 & 2.5 & - \end{array}

So Euler’s method gives the approximation y(1)≈2.5y(1)\approx 2.5.


Error direction and dependence on the estimated point

Section titled “Error direction and dependence on the estimated point”

Euler’s method repeatedly replaces a curved solution by a tangent segment. For a forward step on a concave-up solution, the tangent lies below the true solution locally. On a concave-down solution, it lies above. To claim an overall error direction over several steps, the relevant solution region and the way later slopes respond to earlier errors must support that conclusion.

In particular, the slope at a later step must be calculated using the estimated value yny_n. Substituting an exact value from a separate formula changes the numerical method. Smaller steps generally improve the approximation for a smooth, well-behaved equation over a fixed interval, but halving a step is not a guarantee against every instability.

Example. For y′=y2y'=y^2 with y(0)=1y(0)=1, use two forward Euler steps of length 1/41/4 to estimate y(1/2)y(1/2). Compare with the exact solution and explain the error.

At the starting point, the slope is one:

y1=1+14(1)2=54.y_1=1+\frac14(1)^2=\frac54.

The second slope is the square of the new estimated value:

y2=54+14(54)2=10564≈1.640625.y_2=\frac54+\frac14\left(\frac54\right)^2 =\frac{105}{64}\approx1.640625.

Separation gives y=1/(1−x)y=1/(1-x), so the exact value at 1/21/2 is two. The Euler approximation is low.

Along the positive solution, y′′=2yy′=2y3>0y''=2yy'=2y^3>0, so each forward tangent step lies below the corresponding exact solution starting at that step. Also, a smaller positive estimated height gives a smaller slope y2y^2, preserving the underestimate in subsequent steps. This explains the accumulated error rather than relying only on one tangent-line picture.


A separable equation has the variables separated into an xx part and a yy part.

If

dydx=g(x)h(y),\frac{dy}{dx} = g(x)h(y),

rewrite as

1h(y) dy=g(x) dx\frac{1}{h(y)}\,dy = g(x)\,dx

and integrate both sides.

The constant of integration belongs after integration, and an initial condition turns the general solution into a particular solution.

A general solution contains an arbitrary constant and represents a whole family of possible solution curves. A particular solution uses an initial condition to choose exactly one curve from that family.

For example, after separating variables you might get

y2=x2+C.y^2=x^2+C.

That is a general solution because different values of CC give different curves. If the problem also says y(0)=2y(0)=2, then you substitute that point to find C=4C=4, giving the particular solution

y=x2+4.y=\sqrt{x^2+4}.

Example. Solve dydx=xy\dfrac{dy}{dx}=\dfrac{x}{y} with the initial condition y(0)=2y(0)=2.

Separate the variables, moving all yy factors with dydy and all xx factors with dxdx:

y dy=x dx.y\,dy = x\,dx.

Integrate both sides:

y22=x22+C.\frac{y^2}{2} = \frac{x^2}{2} + C.

Multiplying by 22 and renaming the constant gives the general solution

y2=x2+C.y^2 = x^2 + C.

Apply the initial condition y(0)=2y(0)=2:

(2)2=(0)2+C⟹C=4.(2)^2 = (0)^2 + C \quad\Longrightarrow\quad C = 4.

Since y(0)=2>0y(0)=2>0, take the positive square root to get the particular solution

y=x2+4.y = \sqrt{x^2 + 4}.

Before dividing by h(y)h(y) in y′=g(x)h(y)y'=g(x)h(y), solve h(y)=0h(y)=0. Each root can give a constant solution. These solutions cannot be recovered by assigning a finite value to an integration constant after the division has already excluded them.

You only need one arbitrary constant when integrating the separated equation. Writing a different constant on each side is allowed, but their difference is still a single arbitrary constant. After exponentiating a logarithm, the resulting multiplicative constant can absorb a sign on an interval where the solution does not cross a zero.

Initial conditions select a branch and an interval

Section titled “Initial conditions select a branch and an interval”

An algebraic equation such as y2=4−x2y^2=4-x^2 describes two branches. An initial value above the axis chooses the positive branch; an initial value below it chooses the negative branch. A solution cannot switch branches arbitrarily while still satisfying the original differential equation.

Example. Solve y′=−x/yy'=-x/y with y(0)=−2y(0)=-2, and state the largest interval of validity containing zero.

Separate and integrate:

y dy=−x dx,y22=−x22+C.y\,dy=-x\,dx, \qquad \frac{y^2}{2}=-\frac{x^2}{2}+C.

The initial value gives

y2=4−x2.y^2=4-x^2.

Since the initial output is negative, the required branch is

y=−4−x2.y=-\sqrt{4-x^2}.

The radicand must be positive, not merely nonnegative, because the original differential equation divides by yy. Thus the maximal interval is (−2,2)(-2,2).

The formula has values at the endpoints, but y=0y=0 there makes the original equation undefined and the slopes unbounded. Including those endpoint values does not extend the solution as a differentiable solution of the stated equation.

Example. Solve y′=2x(y−3)y'=2x(y-3) with y(1)=5y(1)=5, and identify the equilibrium solution.

The right side vanishes for the constant function y=3y=3, so record that solution first. For other solutions, separate:

dyy−3=2x dx,ln⁡∣y−3∣=x2+C.\frac{dy}{y-3}=2x\,dx, \qquad \ln\lvert y-3\rvert=x^2+C.

Exponentiating and absorbing the sign gives

y=3+Aex2.y=3+Ae^{x^2}.

Use the initial value:

5=3+Ae,A=2e.5=3+Ae, \qquad A=\frac2e.

The particular solution is y=3+2ex2−1y=3+2e^{x^2-1} for all real inputs. It remains above three, as expected from its positive exponential term. Setting A=0A=0 in this extended family recovers the equilibrium, but that recovery is valid because it is checked directly in the original equation.


First-order linear differential equations (extension)

Section titled “First-order linear differential equations (extension)”

A first-order linear differential equation has the form

dydx+P(x)y=Q(x).\frac{dy}{dx}+P(x)y=Q(x).

The standard method of solving is to multiply by an integrating factor

μ(x)=e∫P(x) dx.\mu(x)=e^{\int P(x)\,dx}.

Then the left side becomes the derivative of a product:

ddx[μ(x)y]=μ(x)Q(x).\frac{d}{dx}\bigl[\mu(x)y\bigr]=\mu(x)Q(x).

After that, integrate both sides and solve for yy.

Example. Solve

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

with y(0)=1y(0)=1.

Here

P(x)=2,Q(x)=6.P(x)=2, \qquad Q(x)=6.

The integrating factor is

μ(x)=e∫2 dx=e2x.\mu(x)=e^{\int 2\,dx}=e^{2x}.

Multiply the differential equation by e2xe^{2x}:

e2xdydx+2e2xy=6e2x.e^{2x}\frac{dy}{dx}+2e^{2x}y=6e^{2x}.

The left side is

ddx(e2xy).\frac{d}{dx}\left(e^{2x}y\right).

So

ddx(e2xy)=6e2x.\frac{d}{dx}\left(e^{2x}y\right)=6e^{2x}.

Integrate both sides:

e2xy=3e2x+C.e^{2x}y=3e^{2x}+C.

Divide by e2xe^{2x}:

y=3+Ce−2x.y=3+Ce^{-2x}.

Use y(0)=1y(0)=1:

1=3+C⟹C=−2.1=3+C \quad\Longrightarrow\quad C=-2.

Therefore the particular solution is

y=3−2e−2x.y=3-2e^{-2x}.

The goal is to turn the left side into a product derivative. The product rule says

(μy)′=μy′+μ′y.(\mu y)'=\mu y'+\mu'y.

Multiplying y′+Py=Qy'+Py=Q by μ\mu produces μy′+μPy\mu y'+\mu Py on the left. These expressions agree if μ′=μP\mu'=\mu P, whose nonzero solution is μ=e∫P dx\mu=e^{\int P\,dx}. This is the reason for the exponential, rather than an unrelated formula to memorize.

Put the differential equation into standard form before identifying PP. If a coefficient multiplies y′y', first divide by that coefficient on an interval where it is nonzero. That division may restrict the solution interval.

Example. Solve xy′+y=x2xy'+y=x^2 with y(1)=2y(1)=2, and explain the domain restriction.

On the positive interval containing the initial input, divide by xx:

y′+1xy=x.y'+\frac1x y=x.

The integrating factor is eln⁡x=xe^{\ln x}=x. Multiplying by it gives

(xy)′=x2.(xy)'=x^2.

Integrate and apply the initial condition:

xy=x33+C,2=13+C,C=53.xy=\frac{x^3}{3}+C, \qquad 2=\frac13+C, \qquad C=\frac53.

Thus

y=x23+53x,x>0.y=\frac{x^2}{3}+\frac5{3x}, \qquad x>0.

This expression becomes unbounded as x→0+x\to0^+. Although the original undivided equation can be written at zero, this particular solution cannot be continued through zero as a finite differentiable function. The largest interval containing one is (0,∞)(0,\infty).


Second derivative from a differential equation

Section titled “Second derivative from a differential equation”

If

dydx=f(x,y),\frac{dy}{dx} = f(x,y),

then

d2ydx2\frac{d^2y}{dx^2}

often comes from differentiating implicitly:

d2ydx2=ddx[f(x,y)].\frac{d^2y}{dx^2} = \frac{d}{dx}[f(x,y)].

When differentiating, remember that yy depends on xx. After finding d2y/dx2d^2y/dx^2, use its sign to describe whether solution curves are concave up or concave down.

Example. For solutions of

dydx=x−y,\frac{dy}{dx}=x-y,

find d2ydx2\frac{d^2y}{dx^2} in terms of xx and yy, then determine the concavity at the point (2,1)(2,1).

Differentiate both sides with respect to xx:

d2ydx2=ddx(x−y).\frac{d^2y}{dx^2} = \frac{d}{dx}(x-y).

Since yy depends on xx,

d2ydx2=1−dydx.\frac{d^2y}{dx^2}=1-\frac{dy}{dx}.

Substitute dydx=x−y\frac{dy}{dx}=x-y:

d2ydx2=1−(x−y)=1−x+y.\frac{d^2y}{dx^2}=1-(x-y)=1-x+y.

At (2,1)(2,1),

d2ydx2=1−2+1=0.\frac{d^2y}{dx^2}=1-2+1=0.

The second derivative is zero there, so its value alone does not establish an inflection point. In fact, y=x−1y=x-1 satisfies both the equation and the initial point. Since this equation has a unique solution through (2,1)(2,1), the solution is that straight line, with zero second derivative everywhere and no change in concavity.


If the rate of change is proportional to the amount present:

dydt=ky\frac{dy}{dt} = ky

then

y=Cekt.y = Ce^{kt}.

Proof (Exponential model equation). If

dydt=ky,\frac{dy}{dt}=ky,

then the relative rate of change is constant:

1ydydt=k.\frac{1}{y}\frac{dy}{dt}=k.

Integrating gives

ln⁡∣y∣=kt+C.\ln\lvert y\rvert=kt+C.

Exponentiating both sides gives

y=Cekt.y=Ce^{kt}.

So exponentials are the natural functions whose rate of change stays proportional to their current value.

Example. A radioactive sample decays according to dydt=ky\dfrac{dy}{dt}=ky and has a half-life of 55 years. Find the decay constant kk, and determine how much of an initial 8080-gram sample remains after 1515 years.

The solution has the form y=Cekty=Ce^{kt}, where CC is the initial amount. A half-life of 55 years means that after t=5t=5 the amount is half of CC:

12C=Ce5k⟹e5k=12.\tfrac{1}{2}C = Ce^{5k} \quad\Longrightarrow\quad e^{5k} = \tfrac{1}{2}.

Take the natural log of both sides and solve for kk:

5k=ln⁡12=−ln⁡2⟹k=−ln⁡25≈−0.1386.5k = \ln\tfrac{1}{2} = -\ln 2 \quad\Longrightarrow\quad k = -\frac{\ln 2}{5} \approx -0.1386.

With C=80C=80, the amount after 1515 years is

y(15)=80 e15k=80 e−3ln⁡2=80⋅2−3=80⋅18=10.y(15) = 80\,e^{15k} = 80\,e^{-3\ln 2} = 80\cdot 2^{-3} = 80\cdot\tfrac{1}{8} = 10.

So 1010 grams remain. This matches the intuition that 1515 years is exactly three half-lives, leaving (12)3=18\left(\tfrac{1}{2}\right)^3=\tfrac{1}{8} of the original.


Exponential behavior often applies to the difference from an equilibrium rather than to the original quantity. If the room stays at temperature AA, Newton’s cooling model is

T′=−k(T−A),k>0.T'=-k(T-A),\qquad k>0.

Let u=T−Au=T-A. Because AA is constant, u′=T′=−kuu'=T'=-ku, so

T(t)=A+(T(0)−A)e−kt.T(t)=A+(T(0)-A)e^{-kt}.

Only the temperature excess is multiplied by the exponential. Multiplying the entire initial temperature by an exponential would incorrectly predict cooling toward zero.

Example. An object cools in a room held at 2020 degrees Celsius. Its initial temperature is 100100 degrees, and after ten minutes it is 6060 degrees. Under Newton’s cooling model, find its temperature after twenty minutes and the time when it reaches 3030 degrees.

The initial excess above room temperature is eighty:

T(t)=20+80e−kt.T(t)=20+80e^{-kt}.

Using the ten-minute measurement,

60=20+80e−10k,e−10k=12,k=ln⁡210.60=20+80e^{-10k}, \qquad e^{-10k}=\frac12, \qquad k=\frac{\ln2}{10}.

After twenty minutes, the excess has halved twice:

T(20)=20+80(12)2=40.T(20)=20+80\left(\frac12\right)^2=40.

To reach thirty degrees,

30=20+80e−kt⟹e−kt=18.30=20+80e^{-kt} \quad\Longrightarrow\quad e^{-kt}=\frac18.

Therefore t=30t=30 minutes. The temperature excess has a ten-minute half-life, while the temperature itself does not.


Equilibrium solutions are constant solutions where dy/dx=0dy/dx = 0. For an autonomous differential equation

dydx=f(y),\frac{dy}{dx}=f(y),

an equilibrium solution occurs when

f(y)=0.f(y)=0.

At those yy-values, the slope is zero for every xx, so the solution can remain constant.

Stability:

  • stable if nearby solutions move toward it,
  • unstable if nearby solutions move away,
  • semistable if nearby solutions move toward it from one side and away from it on the other.

For autonomous equations dy/dx=f(y)dy/dx = f(y), a sign chart on f(y)f(y) is an efficient way to classify equilibria.

Example. Classify the equilibrium solutions of

dydx=y(4−y).\frac{dy}{dx}=y(4-y).

Set the right side equal to zero:

y(4−y)=0.y(4-y)=0.

Thus the equilibrium solutions are

y=0andy=4.y=0 \qquad\text{and}\qquad y=4.

Test the sign of y(4−y)y(4-y) on the intervals determined by 00 and 44:

  • If y<0y<0, then y(4−y)<0y(4-y)<0, so solutions move downward.
  • If 0<y<40<y<4, then y(4−y)>0y(4-y)>0, so solutions move upward.
  • If y>4y>4, then y(4−y)<0y(4-y)<0, so solutions move downward.

Solutions move away from y=0y=0, so y=0y=0 is unstable. Solutions move toward y=4y=4 from both sides, so y=4y=4 is stable.


The logistic model is

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

where LL is the carrying capacity.

Behavior:

  • equilibrium solutions at y=0y=0 and y=Ly=L,
  • growth is fastest near y=L/2y=L/2,
  • solutions with 0<y<L0<y<L increase toward LL when k>0k>0.

Example. A population is modeled by dydt=0.1 y(1−y2000)\dfrac{dy}{dt}=0.1\,y\left(1-\dfrac{y}{2000}\right). State the carrying capacity, the population at which growth is fastest, and the value of dydt\dfrac{dy}{dt} at that population.

Comparing with the standard form dydt=ky(1−yL)\dfrac{dy}{dt}=ky\left(1-\dfrac{y}{L}\right), we read off k=0.1k=0.1 and L=2000L=2000. The carrying capacity is therefore

L=2000.L = 2000.

Growth is fastest at half the carrying capacity:

y=L2=1000.y = \frac{L}{2} = 1000.

At y=1000y=1000, the rate of change is

dydt=0.1(1000)(1−10002000)=100⋅12=50.\frac{dy}{dt} = 0.1(1000)\left(1-\frac{1000}{2000}\right) = 100\cdot\frac{1}{2} = 50.

So the population grows fastest, at 5050 individuals per unit time, when it reaches 10001000.


The factor 1−y/L1-y/L reduces the per-capita growth rate as the population approaches the carrying capacity. When yy is small relative to LL, this factor is near one and growth resembles unrestricted exponential growth. Near LL, the factor approaches zero.

Assume k>0k>0, L>0L>0, and first consider a nonequilibrium solution with 0<y<L0<y<L. Separate variables:

dyy(1−y/L)=k dt.\frac{dy}{y(1-y/L)}=k\,dt.

The useful decomposition is

1y(1−y/L)=1y+1L−y.\frac1{y(1-y/L)} =\frac1y+\frac1{L-y}.

The second term integrates with a minus sign because the derivative of L−yL-y is negative one. Therefore,

ln⁡∣yL−y∣=kt+C.\ln\left\lvert\frac y{L-y}\right\rvert=kt+C.

Solving for yy gives the standard form

y(t)=L1+Ae−kt,A=L−y0y0,y0=y(0)>0.y(t)=\frac{L}{1+Ae^{-kt}}, \qquad A=\frac{L-y_0}{y_0}, \qquad y_0=y(0)>0.

When 0<y0<L0<y_0<L, the constant AA is positive, so the denominator decreases toward one and the population increases toward LL. When y0>Ly_0>L, the constant is negative and the positive-time population decreases toward LL. The equilibrium y=0y=0 must still be recorded separately; y=Ly=L is obtained when A=0A=0.

Treat the growth rate as a function of population:

G(y)=ky−kLy2.G(y)=ky-\frac{k}{L}y^2.

This is a downward-opening quadratic. Its maximum occurs at y=L/2y=L/2, where G(y)=kL/4G(y)=kL/4. That describes the largest possible positive growth rate in the model, but a particular solution may never pass through that population during the time interval being studied.

Differentiating along a solution also gives

y′′=k(1−2yL)y′.y''=k\left(1-\frac{2y}{L}\right)y'.

For a growing population between zero and LL, the curve is concave up below L/2L/2 and concave down above it. The inflection occurs when that particular population crosses half the carrying capacity.

Example. A population satisfies P′=0.4P(1−P/1000)P'=0.4P(1-P/1000) and P(0)=100P(0)=100. Find the solution, the time of greatest growth for t≥0t\ge0, and the maximum rate.

Here L=1000L=1000, k=0.4k=0.4, and

A=1000−100100=9.A=\frac{1000-100}{100}=9.

Thus

P(t)=10001+9e−0.4t.P(t)=\frac{1000}{1+9e^{-0.4t}}.

The greatest growth occurs at population five hundred:

500=10001+9e−0.4t⟹9e−0.4t=1.500=\frac{1000}{1+9e^{-0.4t}} \quad\Longrightarrow\quad 9e^{-0.4t}=1.

Taking logarithms gives

t=ln⁡90.4.t=\frac{\ln9}{0.4}.

At that time, P′=kL/4=100P'=kL/4=100 individuals per unit time. The population begins below five hundred, so it actually reaches this rate in the future. Had the initial population already exceeded five hundred but remained below one thousand, its growth rate would decrease from the start, and its largest rate for t≥0t\ge0 would occur at the initial time.

Before calculating, a logistic phase line predicts that an initial population between zero and capacity remains positive, rises, and approaches the capacity. The explicit formula should agree with all three predictions. A negative denominator, a curve crossing its equilibrium, or unbounded positive-time growth would indicate an algebra or sign error for this initial condition.

For other separable models, the exact solution can reveal finite-time blow-up. The solution y=1/(1−x)y=1/(1-x) for y′=y2y'=y^2 becomes unbounded at one, so a numerical table with rapidly increasing values near one is reflecting the model’s behavior. Continuing a numerical method past that singularity does not extend the original solution through it.

The phase line, slope field, initial condition, explicit solution, and numerical approximation describe the same rate law from different directions. Comparing them is a stronger check than substituting the initial point alone.

Inferring parameters from local measurements

Section titled “Inferring parameters from local measurements”

An initial rate can determine a model constant without solving the equation. After finding that constant, differentiating the rate law can predict whether the rate is increasing or decreasing at that same instant.

For example, suppose P′=kP(1−P/100)P'=kP(1-P/100), P(0)=20P(0)=20, and P′(0)=8P'(0)=8. Substitution gives 8=16k8=16k, so k=1/2k=1/2. Along a solution,

P′′=k(1−2P/100)P′.P''=k(1-2P/100)P'.

At the initial time, P′′(0)=(1/2)(0.6)(8)=2.4P''(0)=(1/2)(0.6)(8)=2.4. The population is increasing, and its rate of increase is itself increasing. No explicit formula for P(t)P(t) was needed for either conclusion.

The derivative data and the function data have different roles. The initial population chooses a solution within the model family, while the initial rate identifies the parameter governing that family.

A threshold model with harvesting (extension)

Section titled “A threshold model with harvesting (extension)”

Adding a constant removal rate can change the qualitative behavior of a population model. Consider

P′=P(4−P)−H,H≥0.P'=P(4-P)-H,\qquad H\ge0.

Equilibria solve P2−4P+H=0P^2-4P+H=0, giving

P=2±4−H.P=2\pm\sqrt{4-H}.

For 0<H<40<H<4 there are two positive equilibria. The rate is positive between them and negative outside them. The lower equilibrium is unstable: populations slightly below it fall, while populations slightly above it rise. The upper equilibrium is stable.

At H=4H=4, the equation becomes P′=−(P−2)2P'=-(P-2)^2. Rates are nonpositive on both sides of two. Populations above two approach it, while populations below two move away downward, so the equilibrium is semistable.

For H>4H>4 there are no equilibria and the modeled population decreases everywhere. If it reaches zero, continuing the formula to negative populations is no longer physically meaningful. The mathematical equation may continue, but the population interpretation stops at extinction.

This example uses the same sign-chart method as the standard logistic equation. The new feature is that changing one parameter can remove a stable long-term population entirely.


Differential equation questions often move among four representations:

  • a formula for dy/dxdy/dx,
  • a slope field,
  • a particular solution through an initial condition,
  • a verbal model of growth, decay, or limiting behavior.