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


Example 01Medium
Solve dydx=xy\frac{dy}{dx} = \frac{x}{y} with y(0)=3y(0) = 3.
NEED A HINT?
Multiply both sides by yy and by dxdx to separate the variables.
SHOW DETAILED EXPLANATION

Separate

ydy=xdxy\,dy = x\,dx.

Integrate both sides

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

Apply the initial condition

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

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).
Example 02Medium
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 DETAILED EXPLANATION

Separate and integrate

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

Exponentiate

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

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.

Practice Exercises


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).
NEED A HINT?
Substitute each point into x+yx + y.
SHOW DETAILED EXPLANATION

At the point (1, 2)

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

At the point (0, 0)

slope =0+0=0= 0 + 0 = 0, so the segment is horizontal.
Example 02Medium
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 DETAILED EXPLANATION

Horizontal segments

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

Vertical segments

The slope is undefined when y=0y = 0 (the xx-axis), as long as x0x \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)=y0ekty(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 ln2k\frac{\ln 2}{k}; the half-life is ln2k\frac{\ln 2}{|k|}.
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 Exercises


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?
NEED A HINT?
Find kk from the 2-hour data point, then evaluate at t=5t = 5.
SHOW DETAILED EXPLANATION

Write the model

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

Find k

800=500e2k    e2k=1.6    k=ln1.620.235800 = 500\,e^{2k} \implies e^{2k} = 1.6 \implies k = \frac{\ln 1.6}{2} \approx 0.235.

Evaluate at t = 5

y(5)=500e5(0.235)=500e1.1751619y(5) = 500\,e^{5(0.235)} = 500\,e^{1.175} \approx 1619 cells.
Example 02Medium
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 DETAILED EXPLANATION

Find k from the half-life

12=e10k    k=ln(1/2)10=ln2100.0693\tfrac{1}{2} = e^{10k} \implies k = \frac{\ln(1/2)}{10} = \frac{-\ln 2}{10} \approx -0.0693.

Evaluate the fraction at t = 25

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

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.