Model differential equations and slope fields

Translate a rate statement and check a proposed solution or slope field

What to practice

  • Translate a rate statement and check a proposed solution or slope field

Predict before you read. Every segment of a slope field is horizontal along the line y=xy=x. Is y=xy=x a solution of that differential equation? Write yes or no and one reason. Example 17.4 settles it.

This chapter turns rate statements into differential equations, checks proposed solutions, and reads the behavior of solutions from a slope field without solving anything. Chapter 18 adds the algebra that produces solution formulas.

Equations about rates

A differential equation relates a function to its derivatives (course framework). In dydx=x−y\frac{dy}{dx}=x-y, the unknown is a function yy of xx, and the equation describes its slope at every point. A solution is a function, not a number: substituting it makes the equation true for every xx in an interval.

A differential equation may have infinitely many solutions, as dydx=x−y\frac{dy}{dx}=x-y does. It need not: (dydx)2+y2=0(\frac{dy}{dx})^{2}+y^{2}=0 forces both squares to be 0, so its only solution is y=0y=0, and (dydx)2=−1(\frac{dy}{dx})^{2}=-1 has no real solution at all. An initial condition such as y(0)=1y(0)=1 picks out one particular solution.

Translate a rate statement

Turn a sentence into an equation one phrase at a time. "Rate of change of yy" becomes dydt\frac{dy}{dt}. "Proportional to" means "equals a constant kk times." "Decreases" fixes the sign of the right side. Whatever the rate depends on goes on the right side.

Example 17.1: three statements, three equations

Each quantity depends on time tt.

StatementEquationWhat the sign of kk says
A population PP grows at a rate proportional to its size.dPdt=kP\frac{dP}{dt}=kPk>0k>0, because the population grows.
A cup's temperature TT changes at a rate proportional to the difference between TT and the room temperature of 20 degrees.dTdt=k(T−20)\frac{dT}{dt}=k(T-20)k<0k<0: a cup hotter than the room has T−20>0T-20>0 and must cool.
The depth hh of water in a draining tank decreases at a rate proportional to the square root of the depth.dhdt=−kh\frac{dh}{dt}=-k\sqrt{h}k>0k>0, with the minus sign written in.

The second row shows the method at work. Read "the difference between TT and 20" as T−20T-20, then decide the sign of kk from the physical situation, not from the wording alone.

Common error. Writing dPdt=P+k\frac{dP}{dt}=P+k for "proportional to PP." A constant added to PP is not a constant multiple of PP.

Verify a proposed solution

To check that a function solves a differential equation, compute its derivative, substitute the function and its derivative into the equation, and simplify. The two sides must agree for every xx in an interval, not at one convenient point. Check any initial condition separately.

Example 17.2: verify a solution and see a family

Show that y=x−1+2e−xy=x-1+2e^{-x} solves dydx=x−y\frac{dy}{dx}=x-y with y(0)=1y(0)=1.

The left side is dydx=1−2e−x\frac{dy}{dx}=1-2e^{-x}. The right side is x−(x−1+2e−x)=1−2e−xx-(x-1+2e^{-x})=1-2e^{-x}. The sides agree for every xx, and y(0)=0−1+2=1y(0)=0-1+2=1. The function is the particular solution.

Replace 2 by any constant CC. Then y=x−1+Ce−xy=x-1+Ce^{-x} has derivative 1−Ce−x1-Ce^{-x}, and x−y=1−Ce−xx-y=1-Ce^{-x}, so every member of this family is a solution. Choosing C=0C=0 gives the line y=x−1y=x-1, a solution whose slope is 1 everywhere.

Example 17.3: diagnose an incorrect verification

A student checks whether y=1−x+x2y=1-x+x^{2} solves dydx=x−y\frac{dy}{dx}=x-y with y(0)=1y(0)=1:

"y(0)=1y(0)=1. Also y′=−1+2xy'=-1+2x, so at x=0x=0, y′=−1y'=-1, and x−y=0−1=−1x-y=0-1=-1. They match, so it is a solution."

The initial condition is satisfied, but the equation was tested at only one point. Substitute everywhere: y′−(x−y)=(−1+2x)−(2x−1−x2)=x2y'-(x-y)=(-1+2x)-(2x-1-x^{2})=x^{2}. The difference is 0 only at x=0x=0, so the function is not a solution. At x=1x=1, for example, y′=1y'=1 while x−y=0x-y=0. Repair: subtract the right side from y′y', simplify symbolically, and show that the difference is 0 for every xx.

Draw a slope field

A slope field draws, at each point of a grid, a short segment whose slope is the value of dydx\frac{dy}{dx} there. It represents the differential equation on a finite set of points (course framework). A solution curve is tangent to the segment at every grid point it passes through.

Example 17.4: from a table of slopes to a field

For dydx=x−y\frac{dy}{dx}=x-y, the slope at each integer point is x−yx-y:

x=−2x=-2x=−1x=-1x=0x=0x=1x=1x=2x=2
y=3y=3−5-5−4-4−3-3−2-2−1-1
y=2y=2−4-4−3-3−2-2−1-10
y=1y=1−3-3−2-2−1-101
y=0y=0−2-2−1-1012
y=−1y=-1−1-10123

Each diagonal of the table repeats one value, because the slope depends only on x−yx-y. Figure 17.1 draws the same equation on a grid with spacing one half.

Slope field on a grid from x equals negative 2 to 2 and y equals negative 1 to 3, with segments every half unit. Segments are horizontal along the dotted line y equals x, rise to the right below it and fall to the right above it, more steeply farther from the line. A dashed line y equals x minus 1 runs parallel to y equals x, one unit below, and the segments on it point along it. A solid curve passes through the marked point (0, 1), falls to a lowest point near x equals 0.7 and then rises, approaching the dashed line from above.

Figure 17.1. Slope field for dydx=x−y\frac{dy}{dx}=x-y, with the solution through (0,1)(0,1) and two lines.

Now answer the opening question. Along y=xy=x every segment is horizontal, but the line y=xy=x itself has slope 1, so a curve that followed it would cross the segments instead of following them: y=xy=x is not a solution. Along y=x−1y=x-1 every segment has slope x−(x−1)=1x-(x-1)=1, which is the line's own slope, so that line is a solution, as Example 17.2 found.

Read a slope field: choose the test

Matching a field to an equation is fastest with tests chosen in this order:

  1. Where are the segments horizontal? The zero-slope locus of each candidate is easy to find, and one look at the field often eliminates several candidates at once.
  2. What does the slope depend on? If the segments are parallel along every horizontal line, the slope depends only on xx. If they are parallel along every vertical line, it depends only on yy.
  3. What is the sign in one region? One point usually decides between equations that differ only in sign.

Example 17.5: match a field to its equation

Which equation could Figure 17.1 show: dydx=x+y\frac{dy}{dx}=x+y, dydx=xy\frac{dy}{dx}=xy, dydx=y−x\frac{dy}{dx}=y-x or dydx=x−y\frac{dy}{dx}=x-y?

Start with zero slopes, because that test separates the most candidates. The field is horizontal along y=xy=x. For x+yx+y the zero locus is y=−xy=-x, and for xyxy it is the two axes, so both are eliminated. The other two equations share the zero locus y=xy=x, so test a sign. At (0,1)(0,1) the segment falls, with slope −1-1; x−yx-y gives −1-1 there and y−xy-x gives 1. The field shows dydx=x−y\frac{dy}{dx}=x-y.

Why not compute slopes at many points? Random checks take longer and can miss a sign difference. Two well-chosen tests settle this match.

Equilibrium solutions and sign regions

If the right side of dydt=g(y)\frac{dy}{dt}=g(y) is 0 at y=cy=c, then the constant function y=cy=c is a solution: its derivative is 0 and the equation gives 0. Such a horizontal-line solution is an equilibrium solution. Unlike the line y=xy=x above, it really is a solution, because a horizontal line has slope 0. Where g(y)>0g(y)>0 solutions increase; where g(y)<0g(y)<0 they decrease.

Example 17.6: read a cooling model without solving it

A bowl of soup cools in a 20-degree room according to dTdt=−0.08(T−20)\frac{dT}{dt}=-0.08(T-20), with TT in degrees Celsius and tt in minutes (constructed practice data). Figure 17.2 shows the slope field.

Slope field for t from 0 to 40 minutes and T from 0 to 100 degrees. Above T equals 20 the segments fall to the right, steeply near the top and nearly flat close to 20. Along T equals 20 they are horizontal, and a dash-dot line marks that level. Below 20 the segments rise gently. A solid curve starts at the marked point (0, 80), falls quickly at first and then more slowly, and approaches T equals 20 from above without reaching it.

Figure 17.2. Slope field for dTdt=−0.08(T−20)\frac{dT}{dt}=-0.08(T-20), with the solution that starts at 80 degrees.

  • Rates. At T=80T=80 the rate is −0.08(60)=−4.8-0.08(60)=-4.8 degrees per minute. At T=50T=50 it is −2.4-2.4, and at T=5T=5 it is 1.21.2.
  • Equilibrium. T=20T=20 makes the rate 0, so T=20T=20 is a solution: soup at room temperature stays there.
  • Signs. Above 20 the temperature falls; below 20 it rises. Either way it moves toward 20.
  • Concavity. Differentiating the equation with respect to tt gives d2Tdt2=−0.08dTdt=0.0064(T−20)\frac{d^{2}T}{dt^{2}}=-0.08\frac{dT}{dt}=0.0064(T-20), which is positive above 20. The cooling curve is concave up, so the soup cools more slowly as time passes.
  • No crossing. Because the right side −0.08(T−20)-0.08(T-20) is differentiable, only one particular solution passes through a given point (course framework). If the soup's curve reached 20, two different solutions would share a point, so the soup approaches room temperature without going below it.

The field answered every question here graphically. Chapter 18 derives the formula T=20+60e−0.08tT=20+60e^{-0.08t} and finds T(10)≈46.960T(10)\approx 46.960.

Example 17.7: concavity and a tangent-line estimate

Let y=f(x)y=f(x) be the solution of dydx=x−y\frac{dy}{dx}=x-y with f(0)=1f(0)=1. Estimate f(0.2)f(0.2) and decide whether the estimate is too large or too small.

At (0,1)(0,1) the slope is 0−1=−10-1=-1, so the tangent line is y=1−xy=1-x and f(0.2)≈0.8f(0.2)\approx 0.8. Differentiate the equation, remembering that yy depends on xx: d2ydx2=1−dydx=1−(x−y)\frac{d^{2}y}{dx^{2}}=1-\frac{dy}{dx}=1-(x-y). At (0,1)(0,1) this is 1−(−1)=2>01-(-1)=2>0, so the graph is concave up near x=0x=0 and lies above its tangent line. The estimate 0.8 is an underestimate. (The exact value, from Example 17.2, is 0.2−1+2e−0.2≈0.8370.2-1+2e^{-0.2}\approx 0.837.)

Common error. Treating yy as a constant gives d2ydx2=1\frac{d^{2}y}{dx^{2}}=1. The derivative of yy is dydx\frac{dy}{dx}, which must be replaced by x−yx-y.

Try it

Try it 17.1. The fish population PP of a lake grows at a rate proportional to PP, and fishing removes 400 fish per year. Write a differential equation for PP, with tt in years.

Try it 17.2. Both y=4e2x−1y=4e^{2x}-1 and y=e2x+2y=e^{2x}+2 satisfy y(0)=3y(0)=3. Which, if either, solves dydx=2(y+1)\frac{dy}{dx}=2(y+1)?

Try it 17.3. For dPdt=0.5(P−40)\frac{dP}{dt}=0.5(P-40), find the equilibrium solution, the values of PP for which solutions increase, and the concavity of solutions with P>40P>40.

Try it 17.4. For dydx=xy\frac{dy}{dx}=xy, find the slope at each of the nine points with xx and yy in {−1,0,1}\{-1,0,1\}, and describe the segments you would draw.

Check your work

17.1. dPdt=kP−400\frac{dP}{dt}=kP-400 with k>0k>0. Growth contributes kPkP; harvesting subtracts a constant 400 per year.

17.2. For 4e2x−14e^{2x}-1: y′=8e2xy'=8e^{2x} and 2(y+1)=8e2x2(y+1)=8e^{2x}, so it is a solution. For e2x+2e^{2x}+2: y′=2e2xy'=2e^{2x} but 2(y+1)=2e2x+62(y+1)=2e^{2x}+6, which never agree. Only the first solves the equation.

17.3. P=40P=40. Solutions increase for P>40P>40 and decrease for P<40P<40, so they move away from 40. d2Pdt2=0.5dPdt=0.25(P−40)>0\frac{d^{2}P}{dt^{2}}=0.5\frac{dP}{dt}=0.25(P-40)>0, so solutions with P>40P>40 are concave up.

17.4. The slope is 0 at all five points on the axes, 1 at (1,1)(1,1) and (−1,−1)(-1,-1), and −1-1 at (1,−1)(1,-1) and (−1,1)(-1,1). Draw horizontal segments on the axes, segments at 45 degrees rising in the first and third quadrants, and segments falling in the second and fourth.

Practice

Chapter 17 practice is items APCAL-C17-M01 to APCAL-C17-M07 and the written task APCAL-C17-F01. They are printed after this chapter's companion panel as Questions 226–232 and Written task 24. Questions 226 and 232 require a graphing calculator in radian mode; the others and the written task do not. Answers, full reasoning, the error behind each wrong choice, a Repair and retry line and the written task's scoring rubric are in Answers, explanations and written responses at the back of the book, under Chapter 17: answers and explanations.

Before you move on

Close the book and write, from memory, the three tests for matching a slope field and why the zero-slope test comes first. Then sketch the slope field for dydx=x−y\frac{dy}{dx}=x-y at nine points and mark the line that is a solution. In two or three days, without the chapter, rework Example 17.6 for a cold drink at 5 degrees in a 25-degree room with k=−0.1k=-0.1, and check your signs against Try it 17.3.

Use this chapter companion

Review the lesson, attempt the original practice, then check the explanation. Your printed study guide remains complete without the website.

Independence

Skill by Skill Prep is independent. SAT® and AP® are trademarks registered by the College Board, which is not affiliated with, and does not endorse, this website or book. PSAT/NMSQT® is a registered trademark of the College Board and the National Merit Scholarship Corporation, which are not affiliated with, and do not endorse, this site. Bluebook™ is a trademark of the College Board. ACT® is a trademark of ACT Education Corp., which is not affiliated with and does not endorse this website or book. Desmos is a trademark of Desmos Studio PBC. Practice results describe these questions, not official scores or admission predictions.

Last updated .