---
title: "Differential Equations, Slope Fields, and Models | FiveStudy"
description: "Model rates with differential equations, verify solutions, read slope fields, separate variables, and solve exponential initial-value problems."
url: https://fivestudy.com/guides/ap-calculus-ab-differential-equations-slope-fields-models
---

[AP Calculus AB](https://fivestudy.com/ap-calculus-ab) · Study guide

# Differential Equations, Slope Fields, and Models

[Figure: FiveStudy logo]

FiveStudy

AP Calculus AB · Unit 7

AP Calculus AB · Comprehensive Guide 14

# Differential Equations, Slope Fields, and *Models*

Model rates with differential equations, verify solutions, read slope fields, separate variables, and solve exponential initial-value problems.

7 topics · 7 worked examples

Prerequisite check

You should know derivatives, antiderivatives, logarithms, exponentials, and interpreting parameters with units.

AP reasoning lens

A separated solution is incomplete until constants and domain restrictions are handled; use the initial condition to determine the particular solution.

## In this guide

1. 7.1 · Modeling Situations with Differential Equations
2. 7.2 · Verifying Solutions for Differential Equations
3. 7.3 · Sketching Slope Fields
4. 7.4 · Reasoning Using Slope Fields
5. 7.6 · Finding General Solutions Using Separation of Variables
6. 7.7 · Finding Particular Solutions Using Initial Conditions and Separation of Variables
7. 7.8 · Exponential Models with Differential Equations

Topic 7.1

## Modeling Situations with Differential Equations

Modeling starts with a translation. Over and over, a real-world process is described by the same English template:

### Skills inside this topic

**7.1.a**Translating 'rate is proportional to' into dy/dt = ky

**7.1.b**Newton's law of cooling form: dy/dt = k(y - T)

**7.1.c**Identifying dependent and independent variables

### Core results and conditions

- **7.1.a · Translating 'rate is proportional to' into dy/dt = ky**The phrase 'the rate of change of y' is shorthand for the derivative dtdy with respect to time. It is not the quantity y itself. So the left side of one of these equations is always a derivative — never the bare letter for the amount. Here y is the dependent variable (the thing changing) and t is the independent variable (usually time).
- **7.1.b · Newton's law of cooling form: dy/dt = k(y - T)**If the rate of change of y is proportional to the difference between y and a fixed ambient value Ts, then dtdy=k(y−Ts). Here y=y(t) is the dependent state variable, t is the independent variable, Ts (a constant) is the surrounding or ambient value, and k is the constant of proportionality. The value y=Ts makes the right side zero, so it is the equilibrium the state drifts toward.
- **7.1.c · Identifying dependent and independent variables**In a verbal scenario, the dependent variable is the one described as following from another; the independent variable is the one named after the connecting word. Cue phrases: 'y depends on x' — y is dependent, x is independent.; 'y is a function of x' — same roles.; 'y changes with respect to x' — same roles.; 'y responds to changes in x' — same roles.

### Worked example · source skill 7.1.c

'A population P grows over time t at a rate proportional to its current size.' Name the variables and write the differential equation this sentence describes.

'Grows over time' → t is independent, P is dependent. The rate is dtdP.

'Rate proportional to its current size' means dtdP equals a constant times P.

Introduce a proportionality constant k: dtdP=kP.

The whole equation rested on first naming P as dependent on t — that fixed which letters appear in the rate.

**Result and interpretation**
Takeaway: 'Proportional to' turns into '=k(something),' but only after the rate dtdP is set up by naming the dependent and independent variables.

[Figure: AB Topic 7.1: A differential equation models how a quantity's local rate depends on its current state and input; a solution curve remains tangent to those rates.]

A differential equation models how a quantity's local rate depends on its current state and input; a solution curve remains tangent to those rates.

**Common mistake**

Mistake: "The rate of change of P is proportional to P, so P=kP."

**Correction:** Correct approach: Always turn 'rate of change of P' into dtdP. The correct translation is dtdP=kP.

**Check your understanding**

'A tank is draining: the volume V of water decreases over time t, and the problem states the water drains at a rate proportional to the current volume.' (a) Which variable is dependent and which is independent? (b) Write the rate of change of V with respect to t. (c) Translate the full sentence into a differential equation.

**Show answer**

(a) V is dependent; t is independent ('decreases over time' names t as the stepped variable). (b) Dependent on top, independent on the bottom: dtdV. (c) 'Rate proportional to the current volume' means dtdV=kV. Because the volume is decreasing, the constant k is negative — but identifying the variables is what let us write the equation at all.

Topic 7.2

## Verifying Solutions for Differential Equations

A differential equation is an equation that relates an unknown function y to one or more of its derivatives. For example, dtdy=−21y reads: the rate of change of y is negative one-half of y itself. This is exactly how radioactive decay, cooling, and unrestricted growth are modeled.

### Skills inside this topic

**7.2.a**Verifying solutions by direct substitution

**7.2.b**Verifying an initial condition

### Core results and conditions

- **7.2.a · Verifying solutions by direct substitution**To verify that a candidate function y is a solution of a differential equation: 1. Differentiate the candidate as many times as the equation needs. 2. Substitute the candidate and its derivatives into the equation. 3. Simplify and check that the two sides are equal as an identity. If the left side equals the right side for every value of the independent variable, the candidate is a solution. If they differ — even by a single coefficient — it is not.
- **7.2.b · Verifying an initial condition**An initial condition is written y(t0)=y0, which means: when the input is t0, the solution's output is y0. It is the single point (t0,y0) on the solution curve. The first coordinate t0 is the base point (the input). The second coordinate y0 is the required output.

### Worked example · source skill 7.2.a

Verify that y=t3−4 solves dtdy=3t2, and check the initial condition y(0)=−4.

Differentiate with the power rule: y′=3t2 (the constant −4 differentiates to 0).

Compare with the right side 3t2: the two are equal as functions of t. Verified.

Check the initial condition: y(0)=03−4=−4, which matches. So this candidate is the particular solution with y(0)=−4.

**Result and interpretation**
Takeaway: Here the right side depends on t alone, not on y, so substitution just compares y′ with a given function of t. Verifying a differential equation and verifying an initial condition are two separate, both-required checks.

**Common mistake**

Mistake: "To verify y=e3t solves y′=3y, I plugged in t=0, t=1, and t=2; both sides agreed each time, so it is verified."

**Correction:** Correct approach: Argue symbolically: y′=3e3t and 3y=3e3t are the same function of t, so they agree at every t at once. That single identity is the verification.

**Check your understanding**

A student claims y(t)=e2t satisfies the IC y(0)=5, reasoning: 'It solves the ODE y′=2y, so it is a solution; therefore the IC is automatic.' Is the reasoning valid, and what is the correct verdict?

**Show answer**

The reasoning is invalid; the IC fails. Solving an ODE only puts the candidate in the solution family — it says nothing about which point the curve passes through. You must still substitute the base point. Here y(0)=e0=1, and comparing with y0=5 gives 1=5, so the IC fails. (Different members of the family Ce2t satisfy different ICs; only C=5 would pass through (0,5).)

Topic 7.3

## Sketching Slope Fields

A differential equation written as dxdy=f(x,y) is a rule for slopes. It does not hand you a curve; it hands you a recipe. At every point (x0,y0) in the plane, the rule produces one number, and that number is the slope of the solution curve passing through that point.

### Skills inside this topic

**7.3.a**Computing slope at lattice points

**7.3.b**Drawing short segments with correct slope

**7.3.c**Recognizing slope-field signatures

### Core results and conditions

- **7.3.a · Computing slope at lattice points**If dxdy=f(x,y), then the slope of the solution curve at the lattice point (x0,y0) is the number obtained by substitution: slope at (x0,y0)=f(x0,y0). There is exactly one move: replace every x with x0, replace every y with y0, then simplify. The result is a plain number — the steepness of the tiny tangent segment you will later draw at that point.
- **7.3.b · Drawing short segments with correct slope**To draw the tick at a lattice point (a,b) for dxdy=f(x,y): 1. Evaluate m=f(a,b) — one number (or 'undefined'). 2. Draw a short segment through (a,b) of slope m. The segment's tilt angle from horizontal is arctan(m): the tick rises m units for every 1 unit it runs to the right.
- **7.3.c · Recognizing slope-field signatures**To classify a field, scan one full vertical column and one full horizontal row: What stays uniform | What it means | Family; Up every column (moving in y) | slope ignores y | dy/dx=f(x); Across every row (moving in x) | slope ignores x | dy/dx=f(y); Both directions | slope ignores both | constant; Neither direction | slope needs both | mixed f(x,y)

### Worked example · source skill 7.3.a

For dxdy=x2+y, find the slope at (−3,4).

Substitute with parentheses: (−3)2+(4).

Square first — and the parentheses are not optional: (−3)2=9, not −9.

Add: 9+4=13.

Slope at (−3,4) is 13.

**Result and interpretation**
Takeaway: Under order of operations −32=−9 but (−3)2=9. Squaring a substituted negative coordinate is exactly where the parentheses earn their keep.

[Figure: AB Topic 7.3: A slope field records the differential equation's local slopes at a grid of points without selecting any one particular solution.]

A slope field records the differential equation's local slopes at a grid of points without selecting any one particular solution.

**Common mistake**

Mistake: For dxdy=x−y at (2,5): "The slope is 5−2=3."

**Correction:** Correct approach: f(2,5)=(2)−(5)=−3. The correct slope is −3, not +3.

**Check your understanding**

In a slope field, as you walk straight UP a vertical column the tick slopes never change, but as you walk RIGHT along a row the slopes DO change. (a) Which family is dy/dx? (b) The ticks are flat exactly on the line x=−1; give the simplest matching ODE that is also negative for x<−1.

**Show answer**

(a) x-only, dy/dx=f(x). Walking up a column changes y but not the slope, so y is absent; walking right changes x and the slope reacts, so x is present. (b) Flats at x=−1 force f(−1)=0, and we need f(x)<0 for x<−1; the simplest match is dy/dx=x+1 (it is 0 at x=−1, negative to the left, positive to the right).

Topic 7.4

## Reasoning Using Slope Fields

A slope field for a differential equation dxdy=F(x,y) draws a tiny line segment at each grid point (x,y). The tilt of that segment is the slope F(x,y) the equation assigns there. Every segment has the same length; only its tilt carries information.

### Skills inside this topic

**7.4.a**Matching slope field to ODE

**7.4.b**Sketching a particular solution through a point

**7.4.c**Long-term behavior from slope fields

### Core results and conditions

- **7.4.a · Matching slope field to ODE**An isocline is a set of points where the slope F(x,y) is constant. Two isocline patterns reveal what F can depend on: Constant-on-verticals. If the segments are identical all the way up each vertical line, the slope does not change with y, so F depends on x only: dxdy=F(x). Constant-on-horizontals. If the segments are identical all the way across each horizontal line, the slope does not change with x, so F depends on y only: dxdy=F(y).
- **7.4.b · Sketching a particular solution through a point**To sketch the particular solution of dxdy=F(x,y) through (x0,y0): Plot the initial point (x0,y0).; Read the slope of the segment at that location and draw a short curve there that is tangent to it.; Step a little along your curve to a new point. Read the segment there — it may have a different slope — and extend the curve tangent to it.; Repeat, tracing in both directions (increasing and decreasing x).
- **7.4.c · Long-term behavior from slope fields**An equilibrium solution is a constant function y(x)=c that satisfies the differential equation. Its graph is the horizontal line y=c, and because it never changes, its slope is 0 everywhere along that line. In the slope field an equilibrium shows up as a complete flat row of horizontal segments. For an autonomous equation dxdy=f(y) (the slope depends on y only), the equilibria are exactly the solutions of f(y)=0. A field can have zero, one, two, or more equilibria — so finish scanning the whole field.

### Worked example · source skill 7.4.c

For dxdy=2−y, classify the equilibrium and find limx→∞y(x) for the solution with y(0)=0.5.

Equilibria: f(y)=2−y=0⇒y=2 (one flat row).

Stability: below 2, f=2−y>0 (up, in); above 2, f<0 (down, in). Both point in, so y=2 is stable.

Start y(0)=0.5 sits below 2. There f(0.5)=1.5>0, so the solution increases and is trapped under the line y=2.

It rises monotonically and presses against the stable line: limx→∞y(x)=2, approached from below.

**Result and interpretation**
Takeaway: A stable equilibrium ahead of the initial value attracts the solution. Starting below y=2, this solution increases toward y=2 and levels off there.

[Figure: AB Topic 7.4: Solution curves follow the local directions in the same slope field; different initial conditions select different nonintersecting members of the family.]

Solution curves follow the local directions in the same slope field; different initial conditions select different nonintersecting members of the family.

**Common mistake**

Mistake: "The horizontal segments lie along y=x, so I can pick either dxdy=x−y or dxdy=y−x — they share the zero-set."

**Correction:** Correct approach: After narrowing to two sign-twin candidates, always check ONE grid point off the zero-set. The tilt direction there eliminates the wrong sign.

**Check your understanding**

An autonomous equation dxdy=f(y) has equilibria at y=−1 and y=4. A sign analysis gives: f>0 for y>4; f<0 for −1<y<4; f>0 for y<−1. (a) Classify each equilibrium. (b) Find limx→∞y(x) for the solution with y(0)=2.

**Show answer**

(a) At y=4: below it f<0 (down, away) and above it f>0 (up, away) — arrows out on both sides, so y=4 is unstable. At y=−1: below it f>0 (up, in) and above it f<0 (down, in) — arrows in on both sides, so y=−1 is stable. (b) The start y(0)=2 lies in −1<y<4, where f<0; the solution decreases, trapped above y=−1, and presses against that stable line. limx→∞y(x)=−1, approached from above.

Topic 7.6

## Finding General Solutions Using Separation of Variables

A differential equation describes a function by telling you its rate of change. Solving one means finding the original function y whose derivative matches the equation. The general solution is the whole family of such functions (it carries an arbitrary constant); a particular solution is the one member that also passes through a given point.

### Skills inside this topic

**7.6.a**Separating variables

**7.6.b**Integrating both sides after separating

**7.6.c**Solving for y explicitly

### Core results and conditions

- **7.6.a · Separating variables**To solve dxdy=f(x)g(y) by separation of variables: 1. Separate: g(y)dy=f(x)dx — every y (and dy) left, every x (and dx) right. 2. Integrate both sides: ∫g(y)dy=∫f(x)dx. 3. Solve for y (and apply any initial condition).
- **7.6.b · Integrating both sides after separating**Given a separated equation h(y)dy=g(x)dx, integrate both sides: ∫h(y)dy=∫g(x)dx. If H is an antiderivative of h and G is an antiderivative of g, the implicit general solution is H(y)=G(x)+C.
- **7.6.c · Solving for y explicitly**Starting from ln∣y∣=f(x)+C, solve for y in four moves: Move | Result; 1. Exponentiate both sides (undo ln) | ∣y∣=ef(x)+C; 2. Split with ea+b=eaeb | ∣y∣=eCef(x); 3. Strip the absolute value (insert ±) | y=±eCef(x); 4. Fold ±eC into one constant K | y=Kef(x), K=0 ln∣y∣=f(x)+C ⟹ y=Kef(x),K=±eC=0 

### Worked example · source skill 7.6.c

Solve ln∣y∣=3x+C explicitly for y.

Exponentiate: ∣y∣=e3x+C.

Split: ∣y∣=eCe3x.

Sign-strip: y=±eCe3x.

Consolidate: y=Ke3x, K=0.

**Result and interpretation**
Takeaway: The coefficient 3 rides inside the exponent of e; it does not come out front as a separate multiplier. Compare to Example 1 — only the exponent changed.

[Figure: AB Topic 7.6: A separated exponential growth equation produces a family of curves whose rate remains proportional to the current amount.]

A separated exponential growth equation produces a family of curves whose rate remains proportional to the current amount.

**Common mistake**

Mistake: For dxdy=2y: "∫ydy=∫2dx gives ln∣y∣=2x, so y=e2x."

**Correction:** Correct approach: Write ln∣y∣=2x+C the moment you integrate. Exponentiating gives y=e2x+C=Ce2x — the constant travels through every later step.

**Check your understanding**

Solve ln∣y∣=−x+C explicitly for y. State the general solution and say which value of K is excluded and why.

**Show answer**

y=Ke−x, K=0. Run the recipe: ∣y∣=e−x+C=eCe−x; sign-strip to y=±eCe−x; fold ±eC into a single K. The value K=0 is excluded because ±eC is never zero (eC>0 for all real C). K=0 would be the singular solution y≡0, which is checked separately.

Topic 7.7

## Finding Particular Solutions Using Initial Conditions and Separation of Variables

When you solve a differential equation by antidifferentiation or separation of variables, the answer always arrives with a leftover constant of integration: a C (or K). Each value of that constant gives a different function, and every one of them satisfies the equation. Together they form the general solution — a whole family of curves.

### Skills inside this topic

**7.7.a**Determining C from the initial condition

**7.7.b**Domain of the particular solution

### Core results and conditions

- **7.7.a · Determining C from the initial condition**An initial condition is a known value of the solution, written y(t0)=y0. Read it aloud as: 'at t=t0, the value of y is y0.' Given a general solution y=G(t,C), the particular solution is found in four moves: (1) substitute t=t0 and y=y0 into the general solution, (2) simplify, (3) solve for C, (4) write y explicitly.
- **7.7.b · Domain of the particular solution**Let y=ϕ(t) be the particular solution of an initial value problem with initial condition at t=t0. Its interval of validity (its domain) is the largest open interval I such that t0∈I and ϕ is differentiable at every point of I. Equivalently: list every singularity of ϕ; these cut the t-axis into open pieces; the domain is the single piece that contains t0.

### Worked example · source skill 7.7.a

Solve dtdy=2y with the initial condition y(3)=5. Write the particular solution and state its domain.

Separate: ydy=2dt. Integrate: ln∣y∣=2t+C.

Solve for y: ∣y∣=e2t+C, so y=Ke2t with K=±eC (the general solution).

Apply the IC: 5=Ke2(3)=Ke6, so K=5e−6.

Particular solution: y=5e−6e2t=5e2t−6, valid for all real t; domain (−∞,∞).

**Result and interpretation**
Takeaway: When t0=0 the exponential does not collapse to 1: you must divide by e2t0. Combining e−6e2t=e2t−6 gives the tidiest form.

**Common mistake**

Mistake: On dtdy=y with y(0)=5: 'Substitute the IC into the equation: 5=5. True but useless, so C is indeterminate.'

**Correction:** Correct approach: First solve to get y=Ket; then substitute the IC: 5=Ke0=K, so K=5 and y=5et. Rule of thumb: the IC goes into the solution, never back into the ODE.

**Check your understanding**

Separating dtdy=2ty2 with y(1)=−1 gives the particular solution y=t2−1. (a) Verify the initial condition. (b) Where are the singularities, and what is the interval of validity? (c) Are the endpoints open or closed, and why?

**Show answer**

(a) ϕ(1)=12−1=−1. Matches y0=−1, so this is the right branch. (Separating gives ∫y−2dy=∫2tdt⇒−y1=t2+C; the IC forces C=0, hence y=t2−1.) (b) The denominator t2 is zero only at t=0. This single wall cuts the line into (−∞,0) and (0,∞). Since t0=1>0, the IC sits in the right piece. Domain: (0,∞). (c) The left endpoint t=0 is open: the denominator is zero there, so ϕ blows up and is not differentiable. There is no right endpoint — the piece runs to +∞.

Topic 7.8

## Exponential Models with Differential Equations

Some quantities grow or shrink at a rate that depends on how much is already there. A bacteria culture with twice as many cells divides twice as fast; a radioactive sample with twice the mass emits twice as many particles per second. In words, the rate of change is proportional to the amount present.

### Skills inside this topic

**7.8.a**Solving dy/dt = ky

**7.8.b**Growth vs. decay from sign of k

**7.8.c**Doubling time and half-life

**7.8.d**Setting up exponential models from word problems

### Core results and conditions

- **7.8.a · Solving dy/dt = ky**If a quantity satisfies dtdy=kywithy(0)=y0, then its unique solution is y(t)=y0ekt. To use the template, read off just two numbers from the problem: k — the constant multiplying y on the right of the ODE;; y0 — the value of y at t=0, from the initial condition.
- **7.8.b · Growth vs. decay from sign of k**For y(t)=y0ekt: If k>0: exponential growth. As t increases, ekt increases without bound, so ∣y(t)∣→∞. If k<0: exponential decay. As t increases, ekt→0, so ∣y(t)∣→0. If k=0: e0=1, so y(t)≡y0 for all t — the function is constant.
- **7.8.c · Doubling time and half-life**Treat the equation as a separable differential equation and integrate each side: Step | Work; Separate | y1dy=kdt; Integrate | ln∣y∣=kt+C; Exponentiate | y=ekt+C=Aekt; Apply y(0)=y0 | A=y0, so y=y0ekt
- **7.8.d · Setting up exponential models from word problems**The initial-value problem dtdy=ky, y(0)=y0 has the unique solution y(t)=y0ekt. It is multiplicative: each unit of time scales y by the fixed factor ek. It is NOT additive — y0+kt is a different (linear) model and almost always the wrong one for these problems.

### Worked example · source skill 7.8.a

A quantity satisfies dtdy=ky with y(0)=6 and y(3)=6e. Find y(9) in exact form.

Template: y(t)=6ekt. The given y(3)=6e means 6e3k=6e, so e3k=e.

Notice y(9)=6e9k=6(e3k)3 because e9k=(e3k)3.

Substitute the known ratio: (e3k)3=e3, so y(9)=6e3.

(Direct route: 3k=1⇒k=31, then y(9)=6e(1/3)(9)=6e3.)

**Result and interpretation**
Takeaway: When the target time is a whole-number multiple of a known time, raise the known ratio to that power — you can reach the answer without ever isolating k.

[Figure: AB Topic 7.8: A separated exponential growth equation produces a family of curves whose rate remains proportional to the current amount.]

A separated exponential growth equation produces a family of curves whose rate remains proportional to the current amount.

**Common mistake**

Mistake: For dtdy=−3y with y(0)=4: "y(t)=4t−3, so y(2)=4⋅2−3=21."

**Correction:** Correct approach: Use y(t)=4e−3t, so y(2)=4e−6. The base is the constant e; the variable t lives in the exponent, not the base.

**Check your understanding**

A continuously compounded deposit grows from 1000 dollars to 4000 dollars over 10 years. (a) Find the continuous rate r per year. (b) Write the balance model B(t). (c) What is B(0)?

**Show answer**

(a) The deposit obeys B=B0ert with B0=1000. The second point (10,4000) gives e10r=4000/1000=4, so r=10ln4=5ln2≈0.139 per year. (b) B(t)=1000e(ln4/10)t=1000⋅4t/10. (c) B(0)=1000 dollars — the initial deposit, NOT the later 4000. The continuous rate r plays exactly the role of k in the template.

## Last-pass checklist

**7.1 · Modeling Situations with Differential Equations**7.1.a, 7.1.b, 7.1.c

**7.2 · Verifying Solutions for Differential Equations**7.2.a, 7.2.b

**7.3 · Sketching Slope Fields**7.3.a, 7.3.b, 7.3.c

**7.4 · Reasoning Using Slope Fields**7.4.a, 7.4.b, 7.4.c

**7.6 · Finding General Solutions Using Separation of Variables**7.6.a, 7.6.b, 7.6.c

**7.7 · Finding Particular Solutions Using Initial Conditions and Separation of Variables**7.7.a, 7.7.b

**7.8 · Exponential Models with Differential Equations**7.8.a, 7.8.b, 7.8.c, 7.8.d

FiveStudy · AP Calculus AB · Unit 7

Guide 14 of 16
