Skip to content
🎯⭐ INTERACTIVE LESSON

Differential Equations

Learn step-by-step with interactive practice!

Differential Equations - Complete Interactive Lesson

Part 1: Introduction to Differential Equations

Differential Equations

Part 1 of 7 — Introduction to Differential Equations

Table of Contents

  1. What is a Differential Equation?
  2. Separation of Variables
  3. Slope Fields
  4. Exponential Growth & Decay
  5. Particular Solutions & IVPs
  6. Problem-Solving Workshop
  7. Comprehensive Assessment

What is a Differential Equation?

A differential equation (DE) is an equation that relates a function to one or more of its derivatives.

TypeExampleMethod
Directly integrabledydx=3x2\frac{dy}{dx} = 3x^2Integrate both sides
Separabledydx=2y\frac{dy}{dx} = 2ySeparate and integrate
Non-separabledydx=x+y\frac{dy}{dx} = x + yNot on AP AB

Key Fact: On the AP Calculus AB exam, you only need to solve separable DEs and those solvable by direct integration.

Solving by Direct Integration

When dydx=f(x)\frac{dy}{dx} = f(x) (right side depends only on xx):

y=∫f(x) dx+C\boxed{y = \int f(x)\,dx + C}

Step-by-Step Process

StepActionExample: dydx=6x2−4x+1\frac{dy}{dx} = 6x^2 - 4x + 1, y(0)=3y(0) = 3
1Integrate both sidesy=∫(6x2−4x+1) dxy = \int (6x^2 - 4x + 1)\,dx
2Find antiderivativey=2x3−2x2+x+Cy = 2x^3 - 2x^2 + x + C
3Apply initial conditiony(0)=0−0+0+C=3y(0) = 0 - 0 + 0 + C = 3
4Write particular solutiony=2x3−2x2+x+3y = 2x^3 - 2x^2 + x + 3

General vs. Particular Solutions

TermMeaningExample
General solutionFamily of curves (includes CC)y=2x3−2x2+x+Cy = 2x^3 - 2x^2 + x + C
Particular solutionOne specific curve (CC determined)y=2x3−2x2+x+3y = 2x^3 - 2x^2 + x + 3
Initial conditionPoint that determines CCy(0)=3y(0) = 3

AP Tip: ALWAYS write "+C+C" when finding a general solution. Forgetting +C+C is one of the most common point-losing mistakes on FRQs.

Direct Integration Practice 🎯

Double Integration (Second-Order Direct)

When given d2ydx2=f(x)\frac{d^2y}{dx^2} = f(x) with two conditions:

Integrate twice, using one condition each time\boxed{\text{Integrate twice, using one condition each time}}

Example: f′′(x)=12xf''(x) = 12x, f′(0)=−2f'(0) = -2, f(0)=5f(0) = 5.

Step 1: f′(x)=∫12x dx=6x2+C1f'(x) = \int 12x\,dx = 6x^2 + C_1

f′(0)=C1=−2f'(0) = C_1 = -2, so f′(x)=6x2−2f'(x) = 6x^2 - 2

Step 2: f(x)=∫(6x2−2) dx=2x3−2x+C2f(x) = \int (6x^2 - 2)\,dx = 2x^3 - 2x + C_2

f(0)=C2=5f(0) = C_2 = 5, so f(x)=2x3−2x+5f(x) = 2x^3 - 2x + 5

Key Fact: Each integration introduces one constant, each initial condition determines one constant.

Classify each DE. 🔍

Solve an IVP. ✍️

Key Takeaways — Part 1

ConceptKey Point
Differential equationRelates a function to its derivatives
Direct integrationWhen dy/dx=f(x)dy/dx = f(x) — integrate both sides
General solutionIncludes +C+C (family of curves)
Particular solutionCC determined by initial condition
Double integrationIntegrate twice for f′′(x)f''(x), two conditions needed

Up Next: Part 2 — Separation of Variables.

Part 2: Separation of Variables

Differential Equations

Part 2 of 7 — Separation of Variables

The Most Important DE Technique on AP AB

A DE is separable if it can be written as:

dydx=f(x)⋅g(y)\boxed{\frac{dy}{dx} = f(x) \cdot g(y)}

The 5-Step Method

StepActionExample: dydx=xy\frac{dy}{dx} = xy, y(0)=2y(0) = 2
1Separate variablesdyy=x dx\frac{dy}{y} = x\,dx
2Integrate both sides∫dyy=∫x dx\int \frac{dy}{y} = \int x\,dx
3Add +C+C (one side only)$\ln
4Solve for yyy=Aex2/2y = Ae^{x^2/2} where A=±eCA = \pm e^C
5Apply initial conditiony(0)=A=2y(0) = A = 2 → y=2ex2/2y = 2e^{x^2/2}

Key Fact: You only need ONE constant CC (not C1C_1 and C2C_2 on each side). The constants combine.

Common Separable Patterns

DE FormSeparationGeneral Solution
dydx=ky\frac{dy}{dx} = kydyy=k dx\frac{dy}{y} = k\,dxy=Aekxy = Ae^{kx}
dydx=xy\frac{dy}{dx} = \frac{x}{y}y dy=x dxy\,dy = x\,dxy2=x2+Cy^2 = x^2 + C
dydx=xy2\frac{dy}{dx} = xy^2dyy2=x dx\frac{dy}{y^2} = x\,dxy=−1x2/2+Cy = \frac{-1}{x^2/2 + C}
dydx=yx\frac{dy}{dx} = \frac{y}{x}dyy=dxx\frac{dy}{y} = \frac{dx}{x}y=Axy = Ax
dydx=y(1−y)\frac{dy}{dx} = y(1-y)dyy(1−y)=dx\frac{dy}{y(1-y)} = dxLogistic (partial fractions)

Worked Example — Careful with Signs

dydx=−xy\frac{dy}{dx} = -\frac{x}{y}, y(3)=4y(3) = 4

y dy=−x dxy\,dy = -x\,dx

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

y2=−x2+2Cy^2 = -x^2 + 2C, i.e., x2+y2=Kx^2 + y^2 = K

y(3)=4y(3) = 4: 9+16=K=259 + 16 = K = 25

x2+y2=25(a circle!)x^2 + y^2 = 25 \quad \text{(a circle!)}

Separation of Variables 🎯

Common Mistakes in Separation

MistakeProblemCorrection
Forgetting to separate ALL yy'sLeaving yy on the dxdx sideMove everything with yy to one side
Dividing by g(y)=0g(y) = 0Lose equilibrium solutions!Check: does g(y)=0g(y) = 0 give solutions?
Wrong sign on $\lny$
Forgetting absolute valueln⁡y\ln y vs $\lny
Two constants of integrationC1C_1 on left AND C2C_2 on rightCombine into single CC on one side

Domain Restrictions

When dividing by g(y), check if g(y)=0 gives an equilibrium solution\boxed{\text{When dividing by } g(y), \text{ check if } g(y) = 0 \text{ gives an equilibrium solution}}

Example: dydx=y(3−y)\frac{dy}{dx} = y(3-y)

Dividing by y(3−y)y(3-y) loses y=0y = 0 and y=3y = 3 — these ARE constant solutions (equilibria).

Analyze each DE. 🔍

Solve a separable IVP. ✍️

Key Takeaways — Part 2

ConceptKey Rule
Separable DEdy/dx=f(x)⋅g(y)dy/dx = f(x) \cdot g(y)
MethodSeparate, integrate, solve, apply IC
Only one CCConstants combine — use CC on one side only
Equilibrium solutionsSet g(y)=0g(y) = 0 — don't lose them!
$\int dy/y = \lny

Up Next: Part 3 — Slope Fields.

Part 3: Slope Fields

Differential Equations

Part 3 of 7 — Slope Fields

What is a Slope Field?

A slope field (direction field) is a visual representation of a DE. At each point (x,y)(x, y), draw a short line segment with slope dydx\frac{dy}{dx}.

Slope field shows dydx at every point — no solving needed!\boxed{\text{Slope field shows } \frac{dy}{dx} \text{ at every point — no solving needed!}}

Reading Slope Fields — Key Patterns

ObservationWhat It Tells You
All slopes horizontal along y=cy = cdydx=0\frac{dy}{dx} = 0 when y=cy = c (equilibrium)
Slopes same along horizontal linesDE depends only on yy: dydx=g(y)\frac{dy}{dx} = g(y)
Slopes same along vertical linesDE depends only on xx: dydx=f(x)\frac{dy}{dx} = f(x)
Slopes same along diagonal y=x+cy = x + cDE depends on y−xy - x
Slopes get steeper as $y

Key Fact: Solution curves follow the slope field like a river current. A solution through any point must be tangent to the slope segments.

Matching DEs to Slope Fields

Strategy: Check slopes at specific test points.

Test Pointdydx=x\frac{dy}{dx} = xdydx=y\frac{dy}{dx} = ydydx=x+y\frac{dy}{dx} = x+ydydx=xy\frac{dy}{dx} = xy
(0,0)(0,0)00000000
(1,0)(1,0)11001100
(0,1)(0,1)00111100
(1,1)(1,1)11112211
(−1,1)(-1,1)−1-11100−1-1

Isoclines

An isocline is a curve where all slopes are equal.

For dydx=x+y\frac{dy}{dx} = x + y, the isocline where slope =k= k is the line x+y=kx + y = k (or y=k−xy = k - x).

AP Tip: On the AP exam, you might be asked to sketch a solution curve through a given point on a slope field. Follow the arrows smoothly — don't make sharp corners!

Slope Field Analysis 🎯

Sketching Solution Curves

Rules for sketching on a slope field:

RuleWhy
Solution must be tangent to every segment it crossesBy definition of slope
Solutions cannot cross each otherUniqueness theorem (unless DE is undefined)
Curve must be smooth (no corners)Solutions to these DEs are differentiable
Follow the "flow" of the fieldSolutions are carried along like water

Stability of Equilibria

For an autonomous DE dydx=g(y)\frac{dy}{dx} = g(y):

Equilibrium TypeSlope Field BehaviorStability
StableArrows point TOWARD equilibriumSolutions approach it
UnstableArrows point AWAY from equilibriumSolutions diverge
Semi-stableArrows point toward on one side, away on otherMixed behavior

Example: dydx=y(2−y)\frac{dy}{dx} = y(2-y)

  • y=0y = 0: unstable (slopes point away for y<0y < 0 and toward for y>0y > 0... actually for y<0y < 0, g(y)=y(2−y)<0g(y) = y(2-y) < 0 pushes yy more negative → unstable)
  • y=2y = 2: stable (solutions above and below approach y=2y = 2)

Analyze slope fields. 🔍

Point analysis. ✍️

Key Takeaways — Part 3

ConceptKey Point
Slope fieldVisual: short segments showing dy/dxdy/dx at each point
Matching DEsEvaluate dy/dxdy/dx at test points
Solution curvesMust be tangent to segments, smooth, non-crossing
EquilibriumWhere dy/dx=0dy/dx = 0
Stable/UnstableDo nearby solutions approach or diverge?

Up Next: Part 4 — Exponential Growth & Decay.

Part 4: Exponential Growth and Decay

Differential Equations

Part 4 of 7 — Exponential Growth & Decay

The Fundamental Model

dydt=ky  ⟹  y=y0ekt\boxed{\frac{dy}{dt} = ky \implies y = y_0 e^{kt}}

ParameterMeaning
y0y_0Initial value: y(0)=y0y(0) = y_0
k>0k > 0Exponential growth
k<0k < 0Exponential decay
ttTime variable

Deriving the Solution

dyy=k dt\frac{dy}{y} = k\,dt → ln⁡∣y∣=kt+C\ln|y| = kt + C → y=ekt+C=eC⋅ekt=Aekty = e^{kt+C} = e^C \cdot e^{kt} = Ae^{kt}

At t=0t = 0: y(0)=A=y0y(0) = A = y_0. So y=y0ekty = y_0 e^{kt}.

Key Fact: "yy changes at a rate proportional to yy" is the verbal form of dydt=ky\frac{dy}{dt} = ky.

Doubling Time & Half-Life

ConceptFormulaDerivation
Doubling time (k>0)(k > 0)Td=ln⁡2kT_d = \frac{\ln 2}{k}2y0=y0ekT2y_0 = y_0 e^{kT}, ln⁡2=kT\ln 2 = kT
Half-life (k<0)(k < 0)$T_h = \frac{\ln 2}{k

Quick Computation Tricks

Number of half-livesFraction remaining
111/21/2
221/41/4
331/81/8
nn(1/2)n(1/2)^n

Example: Substance has half-life 10 hours. Starting with 200 g:

  • After 10 hrs: 100100 g
  • After 20 hrs: 5050 g
  • After 30 hrs: 2525 g

Finding kk: Th=ln⁡2/∣k∣T_h = \ln 2 / |k| → k=−ln⁡2/10≈−0.0693k = -\ln 2 / 10 \approx -0.0693

Exponential Models 🎯

Newton's Law of Cooling

dTdt=−k(T−Tenv)\boxed{\frac{dT}{dt} = -k(T - T_{env})}

VariableMeaning
TTTemperature of object
TenvT_{env}Ambient (surrounding) temperature
k>0k > 0Cooling constant

Solution: Let u=T−Tenvu = T - T_{env}, then dudt=−ku\frac{du}{dt} = -ku:

T(t)=Tenv+(T0−Tenv)e−ktT(t) = T_{env} + (T_0 - T_{env})e^{-kt}

Example: Coffee at 200°F200°F in a 70°F70°F room, k=0.1k = 0.1:

T(t)=70+130e−0.1tT(t) = 70 + 130e^{-0.1t}

As t→∞t \to \infty: T→70°FT \to 70°F (room temperature).

AP Tip: Newton's Law of Cooling is a VERY common AP FRQ topic. The key insight: the rate of cooling is proportional to the temperature DIFFERENCE, not the temperature itself.

Classify exponential models. 🔍

Apply Newton's Law of Cooling. ✍️

Key Takeaways — Part 4

ModelDESolution
Exponential growthdy/dt=kydy/dt = ky, k>0k>0y=y0ekty = y_0 e^{kt}
Exponential decaydy/dt=kydy/dt = ky, k<0k<0y=y0ekty = y_0 e^{kt}
Newton's coolingdT/dt=−k(T−Tenv)dT/dt = -k(T-T_{env})T=Tenv+(T0−Tenv)e−ktT = T_{env} + (T_0-T_{env})e^{-kt}
Doubling time—Td=ln⁡2/kT_d = \ln 2/k
Half-life—$T_h = \ln 2/

Up Next: Part 5 — Particular Solutions & IVPs.

Part 5: More Separation of Variables Practice

Differential Equations

Part 5 of 7 — Particular Solutions & Advanced IVPs

Harder Separable DEs

Not all separable DEs give y=Aekty = Ae^{kt}. Here are the main solution forms:

DE TypeSeparationSolution Form
dydx=ky\frac{dy}{dx} = kydyy=k dx\frac{dy}{y} = k\,dxy=Aekxy = Ae^{kx}
dydx=f(x)y\frac{dy}{dx} = \frac{f(x)}{y}y dy=f(x) dxy\,dy = f(x)\,dxy2=2F(x)+Cy^2 = 2F(x) + C
dydx=f(x)⋅y2\frac{dy}{dx} = f(x) \cdot y^2dyy2=f(x) dx\frac{dy}{y^2} = f(x)\,dxy=−1F(x)+Cy = \frac{-1}{F(x) + C}
dydx=yf(x)\frac{dy}{dx} = \frac{y}{f(x)}dyy=dxf(x)\frac{dy}{y} = \frac{dx}{f(x)}$\ln

Worked Example 1: y2y^2 Type

dydx=y2x,y(1)=2\frac{dy}{dx} = \frac{y^2}{x}, \quad y(1) = 2

dyy2=dxx\frac{dy}{y^2} = \frac{dx}{x} → −1y=ln⁡∣x∣+C-\frac{1}{y} = \ln|x| + C

y(1)=2y(1) = 2: −12=0+C-\frac{1}{2} = 0 + C, so C=−12C = -\frac{1}{2}

−1y=ln⁡x−12  ⟹  y=112−ln⁡x=21−2ln⁡x-\frac{1}{y} = \ln x - \frac{1}{2} \implies y = \frac{1}{\frac{1}{2} - \ln x} = \frac{2}{1 - 2\ln x}

Worked Example 2: Square Root Type

dydx=xy,y(0)=4\frac{dy}{dx} = \frac{x}{\sqrt{y}}, \quad y(0) = 4

y dy=x dx\sqrt{y}\,dy = x\,dx → 23y3/2=x22+C\frac{2}{3}y^{3/2} = \frac{x^2}{2} + C

y(0)=4y(0) = 4: 23(8)=C=163\frac{2}{3}(8) = C = \frac{16}{3}

y3/2=3x24+8y^{3/2} = \frac{3x^2}{4} + 8

AP Tip: On AP FRQs, it's acceptable to leave the answer in implicit form (not solved for yy) unless the problem specifically says "solve for yy".

Advanced Separation 🎯

Domain of Solutions

The domain of a particular solution may be restricted!\boxed{\text{The domain of a particular solution may be restricted!}}

When finding a particular solution, always check:

IssueExampleDomain Restriction
Division by zeroy=21−2ln⁡xy = \frac{2}{1-2\ln x}x≠e1/2x \neq e^{1/2}
Square root of negativey=9−x2y = \sqrt{9-x^2}−3≤x≤3-3 \leq x \leq 3
Logarithm of non-positive$\lny
Continuity through ICMust connect to initial pointChoose interval containing IC

Key Fact: A particular solution exists on the largest interval containing the initial point where the solution is continuous and the DE is defined.

Analyze solutions. 🔍

Find a particular solution value. ✍️

Key Takeaways — Part 5

ConceptKey Point
1/y21/y^2 DEsGive −1/y=F(x)+C-1/y = F(x) + C solutions
y\sqrt{y} DEsGive y3/2=F(x)+Cy^{3/2} = F(x) + C solutions
Domain restrictionsCheck for division by zero, square roots
IC determines branchPositive IC → positive root
Implicit solutions OKDon't need to solve for yy unless asked

Up Next: Part 6 — Problem-Solving Workshop.

Part 6: AP-Style Workshop

Differential Equations

Part 6 of 7 — Problem-Solving Workshop

AP FRQ Strategy Guide

Problem TypeWhat to Do
"Find the particular solution"Separate, integrate, apply IC, solve for yy
"Sketch solution on slope field"Follow slope segments smoothly from given point
"Find equilibrium solutions"Set dy/dx=0dy/dx = 0, solve for yy
"Determine stability"Check sign of dy/dxdy/dx near equilibrium
"Rate proportional to..."Set up dy/dt=kydy/dt = ky or variant
"Use Euler's method"yn+1=yn+f(xn,yn)⋅Δxy_{n+1} = y_n + f(x_n, y_n) \cdot \Delta x

Euler's Method

yn+1=yn+f(xn,yn)⋅Δx\boxed{y_{n+1} = y_n + f(x_n, y_n) \cdot \Delta x}

Example: dydx=x+y\frac{dy}{dx} = x + y, y(0)=1y(0) = 1, Δx=0.5\Delta x = 0.5. Approximate y(1)y(1).

Stepxnx_nyny_nf(xn,yn)=xn+ynf(x_n, y_n) = x_n + y_nyn+1=yn+f⋅0.5y_{n+1} = y_n + f \cdot 0.5
00011111+0.5=1.51 + 0.5 = 1.5
10.50.51.51.5221.5+1=2.51.5 + 1 = 2.5

So y(1)≈2.5y(1) \approx 2.5.

Euler's Method Accuracy

ConditionEuler's result is...
Solution is concave upUnderestimate (tangent line below curve)
Solution is concave downOverestimate (tangent line above curve)
Smaller Δx\Delta xMore accurate

AP Tip: Euler's method questions typically ask for 2-3 steps. Set up a TABLE — it's the clearest way to show work.

AP-Style Workshop 🎯

Common AP FRQ Patterns

Pattern 1: Rate In − Rate Out

A tank has water flowing in at rate RinR_{in} and out at rate RoutR_{out}:

dVdt=Rin−Rout\frac{dV}{dt} = R_{in} - R_{out}

Pattern 2: Logistic Growth (BC topic, but concept appears in AB)

dPdt=kP(1−PL)\frac{dP}{dt} = kP\left(1 - \frac{P}{L}\right)

  • P<LP < L: population grows
  • P>LP > L: population decreases
  • P=LP = L: equilibrium (carrying capacity)
  • Fastest growth at P=L/2P = L/2

Pattern 3: Using dydx\frac{dy}{dx} from a Table

Given a table of (x,y,dy/dx)(x, y, dy/dx) values, use Euler's method or verify a proposed solution.

Classify and solve. 🔍

Euler's method computation. ✍️

Key Takeaways — Part 6

TopicKey Formula/Idea
Euler's methodyn+1=yn+f(xn,yn)⋅Δxy_{n+1} = y_n + f(x_n,y_n) \cdot \Delta x
Concave up → EulerUnderestimate
Concave down → EulerOverestimate
Equilibriumdy/dx=0dy/dx = 0: constant solutions
Newton's coolingdT/dt=−k(T−Tenv)dT/dt = -k(T - T_{env})

Up Next: Part 7 — Comprehensive Assessment.

Part 7: Comprehensive Assessment

Differential Equations

Part 7 of 7 — Comprehensive Assessment

Complete Reference

TopicKey Formula
Direct integrationdy/dx=f(x)  ⟹  y=∫f(x) dx+Cdy/dx = f(x) \implies y = \int f(x)\,dx + C
Separation of variablesdyg(y)=f(x) dx\frac{dy}{g(y)} = f(x)\,dx, integrate both sides
Exponential modeldy/dt=ky  ⟹  y=y0ektdy/dt = ky \implies y = y_0e^{kt}
Newton's coolingdT/dt=−k(T−Tenv)  ⟹  T=Tenv+(T0−Tenv)e−ktdT/dt = -k(T-T_{env}) \implies T = T_{env}+(T_0-T_{env})e^{-kt}
Euler's methodyn+1=yn+f(xn,yn)Δxy_{n+1} = y_n + f(x_n,y_n)\Delta x
Half-life$T_h = \ln 2/
Equilibriumdy/dx=0dy/dx = 0 → constant solutions

Top AP Mistakes

MistakeFix
Forgetting +C+CALWAYS include until IC is applied
Not separating completelyALL yy's on one side, ALL xx's on the other
Losing equilibrium solutionsCheck g(y)=0g(y)=0 before dividing
Wrong Euler directionConcave up = underestimate
Forgetting domainCheck where solution is defined

Final Assessment — Set 1 🎯

Final Assessment — Set 2 🎯

Final classification. 🔍

Final challenge. ✍️

Differential Equations — Complete! ✅

SkillStatus
Direct integration✅
Separation of variables✅
Slope fields✅
Exponential growth/decay✅
Newton's cooling✅
Euler's method✅
Equilibrium & stability✅
Particular solutions & domains✅

Congratulations! You've mastered differential equations for AP Calculus AB.