20

Day 20

Differential Equations And Exponential Models


Separable Differential Equations

A differential equation relates a function to its derivatives. When the yy terms can be pushed to one side and the xx terms to the other, you integrate both sides to find the general solution, then use an initial condition to pin down the constant.

Core Theorem
If dydx=f(x) g(y)\frac{dy}{dx} = f(x)\,g(y), rewrite it as dyg(y)=f(x) dx\frac{dy}{g(y)} = f(x)\,dx and integrate both sides:
∫dyg(y)=∫f(x) dx\int \frac{dy}{g(y)} = \int f(x)\,dx
Add a single +C+C on the xx side, then apply the initial condition to solve for CC.

Worked Examples

Read these first — the full solution is shown, with the reasoning behind each move.

Worked Example 01Medium
Solve dydx=xy\frac{dy}{dx} = \frac{x}{y} with y(0)=3y(0) = 3.
How to think about it
Get every yy (with dydy) on one side and every xx (with dxdx) on the other, then integrate both sides. Put a single +C+C on the xx side and use the initial condition to pin it down.

Key idea: Multiply both sides by yy and by dxdx to separate the variables.

Full solution

1. Separate

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

2. Integrate both sides

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

3. Apply the initial condition

y(0)=3y(0) = 3: 92=0+C  ⟹  C=92\frac{9}{2} = 0 + C \implies C = \frac{9}{2}.

4. Solve for y

y2=x2+9  ⟹  y=x2+9y^2 = x^2 + 9 \implies y = \sqrt{x^2 + 9} (positive root, since y(0)=3>0y(0) = 3 > 0).
Step-by-Step SOP
  1. 1

    Separate

    Get all yy's with dydy on one side, all xx's with dxdx on the other.
  2. 2

    Integrate

    Integrate both sides; put a single +C+C on the xx side.
  3. 3

    Apply the initial condition

    Substitute the given point to solve for CC.
  4. 4

    Solve for y

    Isolate yy explicitly if the problem asks for y=…y = \dots

Practice — Your Turn

Try each one before opening the hint or the solution.

Practice 01Medium
Solve dydx=2xy\frac{dy}{dx} = 2xy with y(0)=4y(0) = 4.
Need a hint?
Divide both sides by yy to separate, then integrate.
Show solution

1. Separate and integrate

dyy=2x dx  ⟹  ln⁡∣y∣=x2+C\frac{dy}{y} = 2x\,dx \implies \ln|y| = x^2 + C.

2. Exponentiate

y=ex2+C=A ex2y = e^{x^2 + C} = A\,e^{x^2}.

3. Apply the initial condition

y(0)=4  ⟹  A=4y(0) = 4 \implies A = 4, so y=4ex2y = 4e^{x^2}.

Slope Fields

A slope field draws a short segment at each grid point (x,y)(x, y) with slope dydx\frac{dy}{dx} evaluated there. Solution curves follow the flow of these segments, so you can sketch a solution even when the equation cannot be solved by hand.

Core Theorem
Given dydx=F(x,y)\frac{dy}{dx} = F(x, y), the solution curve through a point (x,y)(x, y) has slope F(x,y)F(x, y) there. Every solution curve is tangent to the field segment at each point it passes through.

Worked Examples

Read these first — the full solution is shown, with the reasoning behind each move.

Worked Example 01Easy
For dydx=x+y\frac{dy}{dx} = x + y, find the slope of the solution curve at the points (1,2)(1, 2) and (0,0)(0, 0).
How to think about it
A slope field is just dydx\frac{dy}{dx} evaluated on a grid of points: each little segment's slope is what you get by plugging that (x,y)(x, y) into the equation. Nothing is solved — the differential equation itself is the instruction for drawing it.

Key idea: Substitute each point into x+yx + y.

Full solution

1. At the point (1, 2)

slope =1+2=3= 1 + 2 = 3.

2. At the point (0, 0)

slope =0+0=0= 0 + 0 = 0, so the segment is horizontal.

Practice — Your Turn

Try each one before opening the hint or the solution.

Practice 01Medium
For dydx=xy\frac{dy}{dx} = \frac{x}{y}, where are the field segments horizontal, and where are they vertical?
Need a hint?
Horizontal when the slope is 00; vertical (undefined) when the denominator is 00.
Show solution

1. Horizontal segments

xy=0\frac{x}{y} = 0 when x=0x = 0 (the yy-axis), as long as y≠0y \neq 0.

2. Vertical segments

The slope is undefined when y=0y = 0 (the xx-axis), as long as x≠0x \neq 0.
Common Pitfalls
  • ⚠
    Reading a slope field as a function graphThe field shows slopes at points in the plane, not the graph of dydx\frac{dy}{dx}. A solution curve threads through the field tangentially — it is not one of the segments.

Exponential Growth and Decay

When a quantity changes at a rate proportional to its current amount — populations, radioactive decay, compound interest, cooling — it follows y=y0ekty = y_0 e^{kt}. This is the single most tested differential equation on the AP exam.

Core Theorem
If dydt=ky\frac{dy}{dt} = ky, then
y(t)=y0 ekty(t) = y_0\,e^{kt}
where y0=y(0)y_0 = y(0) is the initial amount. k>0k > 0 gives growth, k<0k < 0 gives decay. The doubling time is ln⁡2k\frac{\ln 2}{k}; the half-life is ln⁡2∣k∣\frac{\ln 2}{|k|}.

Worked Examples

Read these first — the full solution is shown, with the reasoning behind each move.

Worked Example 01Medium
A bacteria culture starts with 500 cells and grows to 800 cells after 2 hours. How many cells are there after 5 hours?
How to think about it
"Rate proportional to amount" is the cue for y=y0ekty = y_0 e^{kt} — write that model down at once. You need two numbers: y0y_0 from the start, and kk from a second data point. Solve for kk before you answer what the question actually asks.

Key idea: Find kk from the 2-hour data point, then evaluate at t=5t = 5.

Full solution

1. Write the model

y(t)=500 ekty(t) = 500\,e^{kt}.

2. Find k

800=500 e2k  ⟹  e2k=1.6  ⟹  k=ln⁡1.62≈0.235800 = 500\,e^{2k} \implies e^{2k} = 1.6 \implies k = \frac{\ln 1.6}{2} \approx 0.235.

3. Evaluate at t = 5

y(5)=500 e5(0.235)=500 e1.175≈1619y(5) = 500\,e^{5(0.235)} = 500\,e^{1.175} \approx 1619 cells.
Step-by-Step SOP
  1. 1

    Set up the model

    Write y=y0ekty = y_0 e^{kt} and read y0y_0 from the initial condition.
  2. 2

    Solve for k

    Use a second data point (or a half-life / doubling time) and take a natural log.
  3. 3

    Answer the question

    Plug in the requested tt for an amount, or solve for tt for a time.

Practice — Your Turn

Try each one before opening the hint or the solution.

Practice 01Medium
A radioactive isotope has a half-life of 10 days. What fraction remains after 25 days?
Need a hint?
The half-life gives kk: 12=e10k\tfrac{1}{2} = e^{10k}.
Show solution

1. Find k from the half-life

12=e10k  ⟹  k=ln⁡(1/2)10=−ln⁡210≈−0.0693\tfrac{1}{2} = e^{10k} \implies k = \frac{\ln(1/2)}{10} = \frac{-\ln 2}{10} \approx -0.0693.

2. Evaluate the fraction at t = 25

y(25)y0=e25k=e−1.733≈0.177\frac{y(25)}{y_0} = e^{25k} = e^{-1.733} \approx 0.177.

3. Interpret

About 17.7%17.7\% of the original isotope remains after 25 days.
Common Pitfalls
  • ⚠
    Confusing k with a percentage rateIn y=y0ekty = y_0 e^{kt}, kk is the continuous rate. A 5%5\% continuous rate is k=0.05k = 0.05; a 5%5\% rate compounded per period is k=ln⁡(1.05)≈0.0488k = \ln(1.05) \approx 0.0488.
  • ⚠
    Sign of k for decayDecay means k<0k < 0. If a decay problem gives you a positive kk, recheck the algebra.
Gary Chang

Gary Chang

Calculus Educator

5+ Years of Calculus Teaching Experience | AP Calculus Specialist. Dedicated to helping students master calculus through step-by-step logic and clear visualizations.