Kim’s Math NotesCourse index

Reasoning Using Slope Fields and Differential Equations

How can I trace a solution through a given point on a slope field?

Sketch a solution curve on a slope field and, without solving, use the differential equation for tangent lines, extrema, concavity, and whether an approximation is over or under.

The whole interval, not one point

Common mistake d2ydx2<0 at x=0, so the estimate of y(0.4) is an overestimate.

Correction Show d2ydx2<0 for every x from 0 to 0.4; then it is an overestimate.

Put dy/dx back in

Common mistake dydx=y2−x, so d2ydx2=2y−1.

Correction y depends on x: d2ydx2=2ydydx−1=2y(y2−x)−1.

Flat is not enough

Common mistake dydx=0 at (4,2), so the solution has a maximum there.

Correction Also d2ydx2=−1<0 there (or a sign change): then a relative maximum.

Idea 1: follow the segments

Back to d y d x equals x minus y. To sketch a solution, start at the given point, zero, two. Then let the curve run alongside the segments near it, like a leaf floating on water, going with the flow. Zero, two sits on the line y equals x plus two, where x minus y is negative two at every point. So the curve starts steep, slope negative two, going down.

Don't jump from dot to dot; just ride along.

Watch this part of the concept lesson

Read the rest of this scene

Coming down, it crosses the line y equals x plus one. There x minus y is negative one: half as steep. It keeps coming down, gentler and gentler, until it reaches the line y equals x. There x minus y is zero: flat. That's the bottom of the valley.

Wait. Once it's flat, why doesn't it stay flat? Because the curve keeps moving right. Just past the bottom it's below y equals x, where x is bigger than y, so x minus y is positive, and the curve rises.

Curves never cross

Now take another start: zero, negative one. There the slope is zero minus negative one, positive one, and the segments along the way all have slope one. So this curve is a straight line: y equals x minus one. Check it the 7.2 way, by plugging in. y equals x minus one has slope one, and x minus the quantity x minus one is one.

They match: it's a solution.

Watch this part of the concept lesson

Read the rest of this scene

For an equation like this one, each point gets just one slope, so its solution curves never cross: the pink curve stays above the line. Start at zero, one and a half, or zero, three, and those curves stack below and above the pink one. A curve like this, through a starting point and running alongside the segments everywhere, is called a solution curve. Wherever the curve passes, its slope matches the segment drawn at that point. In the smooth examples of this lesson, each point carries just one slope, so two solution curves never meet.

On the AP exam, you may be asked to sketch the solution curve through a given point on a slope field. Start there, and ride along.

Idea 2: rising, falling, constant

Now take away the slope field. Back to d y d x equals cosine y. Can we still see what its solutions do? Step one is the sign of d y d x. Draw a helper graph, a slope meter: cosine y, with y on the horizontal axis, from negative pi over two to three pi over two.

It crosses zero at pi over two. It's not a solution curve, just a meter for the sign. Below pi over two, it's above the axis, so the sign is plus. Above pi over two, it's below the axis, so it's minus.

Watch this part of the concept lesson

Read the rest of this scene

For heights between negative pi over two and pi over two, cosine y is positive, so any solution living in that band rises. Between pi over two and three pi over two, cosine y is negative, so a solution in that band falls. Now the height y equals pi over two. Cosine there is zero at every x, so d y d x is zero and this flat line solves the equation. Just below it, curves rise toward it.

Just above it, curves fall toward it. So neither side ever crosses it. A horizontal line that solves the equation like this is called a constant solution: a flat line that never moves. Solutions below rise toward it, solutions above fall toward it, and neither one crosses it.

Idea 3: concavity, over or under

Alright, next comes the second derivative, and then over or under. Now follow one curve only: the solution through the origin, where y of zero equals zero. y is a function of x, not a constant. So the chain rule gives negative sine y, times d y d x. Don't leave d y d x sitting there: we know it's cosine y.

Plug it in, and the second derivative is negative sine y cosine y.

Watch this part of the concept lesson

Read the rest of this scene

To the right of the origin, this curve stays between zero and pi over two, where sine and cosine are both positive. So negative sine y cosine y is negative, and the curve is concave down. To the left, the curve sits between negative pi over two and zero. There sine is negative and cosine is positive, so the second derivative is positive and the curve is concave up. Here's that solution. Where y is positive, it's concave down.

Where y is negative, it's concave up. And the tangent line through the origin sits above the curve on the right and below it on the left. See the gaps at x equals one and x equals negative one. When it's concave down, the tangent line sits above the curve, so its value is too big: an overestimate. When the curve is concave up, it bends upward away from the tangent line.

The tangent sits underneath, so its value comes out too small, an underestimate. Now let's actually estimate with that tangent line. Plug the point zero, zero into d y d x: cosine zero is one. Slope one through the origin, so the tangent line is y equals x. No solving. We don't need a formula for y.

Near the point, the tangent line hugs the curve. So we read the line at zero point two and at negative zero point two. At zero point two, the line is at zero point two. At negative zero point two, it's at negative zero point two. That's two estimates.

Are they too big, or too small? Start on the right, with x from zero to zero point two. This solution climbs from zero, staying under the pi over two line from the first picture, so zero is less than y is less than pi over two on that whole interval. For those y, the second derivative is negative, so it's concave down. Picture the gap drawn bigger: the curve bends away below the tangent.

So zero point two is an overestimate. Now the left side, with x from negative zero point two to zero. The same solution is climbing up to zero, above the negative pi over two line, so negative pi over two is less than y is less than zero on that whole interval. For those y, the second derivative is positive, so it's concave up. The tangent sits below the curve, so negative zero point two is an underestimate.

So over or under is decided by the concavity along the whole stretch, from the point of tangency to the point we estimate, not by one spot. On the 2023 AB exam, question three part c, answers that checked d two y d x squared at only one point did not receive that credit. That's a note from one question, but it shows why we reason over an interval.

Example 1: the flat-line fence

Example one. Here's the nine-point slope field for d y d x equals x times the quantity y minus one, the one we filled in last time. Sketch the solution curve through the point zero, two. The nine segments stay up. The plan: start at zero, two, and follow the segments.

At zero, two, the slope is zero times one, which is zero. It's flat. To the right, the slopes are positive, so the curve climbs. To the left they're negative, tilting down as you go right, which means rising as you go left.

Watch this part of the concept lesson

Read the rest of this scene

So the curve rises that way too. So the curve is a valley, lowest at zero, two. Now look at the row y equals one: x times zero is zero, for every x. And the constant one has derivative zero. They match, so the flat line y equals one is a solution all by itself.

Just like before, a horizontal line that solves the equation is a constant solution. Could the wings of our valley ever dip across y equals one? No. That flat line is a solution curve too, and these curves don't cross. So the valley stays above it. Okay. In your workbook, start at the point, follow the segments, and look for flat rows.

Where points go missing: the curve

There are two slips with the curve. This is where people lose points. This one connects the segments like dots, with sharp corners. And its left side dives right through the flat row y equals one. Instead, let the curve run alongside the segments, smooth, with no corners.

And it stays above y equals one, the constant solution.

Watch this part of the concept lesson

Example 2: tangent, concavity, extremum

Example two, a classic three-part question. Let y equals f of x be the solution to d y d x equals y squared minus x, with f of zero equals one. Part a: write an equation for the tangent line at x equals zero, and use it to approximate f of zero point two. Part b: find d two y d x squared in terms of x and y, and tell whether the solution is concave up or down at zero, one. Part c: another solution passes through four, two.

Does it have a relative minimum, a relative maximum, or neither there? Justify your answer. Here's the route: the starting point gives the tangent line, and then the equation itself hands us y double prime for the concavity. In part a, plug zero, one into d y d x: one squared minus zero is one. Slope one, starting height one, so the tangent line is y equals one plus x. No solving.

At x equals zero point two, the line is at one plus zero point two, which is one point two.

Watch this part of the concept lesson

Read the rest of this scene

Right. In the workbook too, plug in the point first, before anything else. Parts b and c look at two different points, and one tool settles both: y double prime from the equation. At one point it gives the concavity, at the other it decides max or min. In part b, we differentiate y squared minus x with respect to x. y squared gives two y, times d y d x, by the chain rule.

Don't forget that d y d x. Minus x gives minus one. Now replace y prime with the original right side, y squared minus x. Now at zero, one: two times one times one, minus one, is one. That's positive, so the solution is concave up there.

Part c is at four, two, where d y d x is two squared minus four, which is zero. That's a flat tangent. But flat alone doesn't tell you which: max, min, or neither. The second derivative is two times two times zero, minus one: negative one. It's flat and concave down, so this point is a relative maximum.

So, d y d x is zero and the second derivative is negative: flat and concave down, like the top of a hill. A relative maximum at four, two. Write both facts with their values. Now, on your own in the workbook, plug in the point, differentiate again, and test both derivatives.

Where points go missing: flat is not enough

Here's a common slip. A flat tangent by itself can't tell you max or min. It could be either one, or neither. This answer shows d y d x is zero and calls it a relative max. Or it just points at the slope field.

A flat tangent could be a max, a min, or neither, and the slope field alone is too vague as a reason.

Watch this part of the concept lesson

Read the rest of this scene

Here, two lines do the job. d y d x is zero, and the second derivative is negative one, less than zero. So it's a relative maximum. Name both derivatives, with their values.

Example 3: three statements

Example three, multiple-choice style. Suppose d y d x equals the quantity y squared minus four, times e to the x. Which statements are true? One: y equals two is a solution. Two: the solution with y of zero equals zero is decreasing at x equals zero.

Three: the solution through zero, one has a relative minimum at x equals zero.

Watch this part of the concept lesson

Read the rest of this scene

Here's the graph of y squared minus four against y, another slope meter. The plan: read the sign off this graph. e to the x is always positive, so it never changes the sign. For statement one, at y equals two, the graph is at zero, so d y d x is zero. And the constant two has derivative zero.

They match, so it's a constant solution. True. For statement two, at y equals zero, the graph is at negative four, below the axis. Negative four times e to the zero is negative, so it's decreasing. True. For statement three, are you tempted to check concavity? Check the first derivative first.

At y equals one, the graph is at negative three. That's not zero, so x equals zero isn't even a critical point. No relative minimum. False. So one and two are true, and three is false. Right. With the workbook's statements, read each sign off a graph before you decide.

Example 4: over or under

Example four, a full A. P. style rehearsal. d y d t equals one over the quantity one plus y squared, with y of zero equals one, for t at least zero. Part a: use the tangent line at t equals zero to approximate y of zero point four. Part b: is it an overestimate or an underestimate?

Explain your reasoning.

Watch this part of the concept lesson

Read the rest of this scene

Two separate jobs here. The tangent line gives the estimate, and the sign of y double prime tells which way that estimate is off. In part a, at zero, one, the slope is one over one plus one, which is one half. So y of zero point four is about one, plus zero point four times one half, which is one point two. Rewrite d y d t as one plus y squared, to the negative one.

Differentiating brings down negative one and a factor of two y, and because y depends on t, the chain rule attaches one more d y d t. Then put one over one plus y squared in for d y d t: negative two y, over the quantity one plus y squared, cubed. Now the sign check, across the whole stretch from t equals zero to zero point four. The plan: the sign of the second derivative, on the whole interval, not just at t equals zero. Look back at d y d t: one over one plus y squared.

A square plus one is always positive, so d y d t is always positive, and y only goes up from one. So for every t at least zero, y is at least one: y is positive. A positive y on top with the minus sign, over a positive cube: the second derivative is negative on the whole interval from zero to zero point four. So it's concave down. D y d t is always positive, so y never drops below one, and y double prime stays negative on the whole interval from zero to zero point four.

The curve is concave down, lying below its tangent line, so one point two is an overestimate. Alright. One more over-or-under in your workbook, and this time write all three pieces.

Worked examples

Example 1

The slope field of dydx=x(y−1) at nine points.
Sketch the solution curve through (0,2).
xy-1112
Graph
Hint

Start at the point; follow the segments; look for a flat row.

Answer and solution

Answer flat at (0,2), a valley above the flat row y=1

  1. (0,2):0⋅(2−1)=0→flat
  2. Above y = 1 the sign of the slope is the sign of x: falling on the left, rising on the right.
  3. A valley with its lowest point at (0, 2). It stays above the flat row y = 1, a constant solution.

Example 2

Let y=f(x) be the solution to dydx=y2−x with f(0)=1.
(a) Tangent line at x=0; approximate f(0.2).
(b) y′′ in x,y; concave up or down at (0,1)?
(c) Another solution through (4,2): max, min, or neither? Justify.
Hint

Point in first. For y′′, differentiate y2 as 2ydydx, then put dydx back in.

Answer and solution
  1. y=1+x; f(0.2)≈1.2
  2. d2ydx2=2y(y2−x)−1; 1>0 at (0,1): concave up
  3. relative maximum: dydx=0 and d2ydx2=−1<0 at (4,2)
  1. (0,1):dydx=1→y=1+x,f(0.2)≈1.2
  2. d2ydx2=2ydydx−1=2y(y2−x)−1,(0,1)→1>0
  3. (4,2):dydx=0,d2ydx2=−1<0
  4. (b) concave up at (0, 1). (c) a relative maximum at x = 4.

Example 3

dydx=(y2−4)ex. Which are true?
I. y=2 is a solution.
II. y(0)=0 → decreasing at x=0.
III. Through (0,1) → relative min at x=0.
Hint

Put each line or point into the equation and read the sign.

Answer and solution

Answer I and II only

  1. I:y=2→(4−4)ex=0=ddx(2)
  2. II:(0,0)→−4<0;III:(0,1)→−3≠0
  3. I and II only. III: the slope at (0, 1) is not 0, so no relative minimum there.

Example 4

dydt=11+y2 with y(0)=1, for t≥0.
(a) Tangent line at t=0 → approximate y(0.4)
(b) Overestimate or underestimate? Explain.
Hint

Over or under: the sign of d2ydt2 on the whole interval, from t=0 to t=0.4.

Answer and solution
  1. y=1+t2; y(0.4)≈1.2
  2. overestimate: d2ydt2=−2y(1+y2)3<0 on 0≤t≤0.4 (y≥1)
  1. t=0:dydt=12→y=1+t2,y(0.4)≈1.2
  2. d2ydt2=−2y(1+y2)2⋅dydt=−2y(1+y2)3
  3. y >= 1 > 0 on the whole interval, so the graph is concave down: the tangent line is above, an overestimate.

Workbook

Problem 1

The slope field of dydx=x+1 is shown. Which could be the solution through (−1,0)?
xy-3-2-11-112
Graph
  1. y=12(x+1)2
  2. y=x+1
  3. y=−12(x+1)2
  4. y=ex+1−1
Hint

Start at (−1,0): is it flat there? Which way do the segments go on each side?

Answer and solution

Answer A. y=12(x+1)2

  1. flat at (−1,0),up on both sides→a valley
  2. Only (A) passes through (-1, 0), is flat there, and opens up. Answer A.

Common mistake Choosing a curve that is not flat at the point, or one that does not pass through it.

Watch the worked solution to Problem 1

Problem 2

The slope field for the differential equation dydx=x(y−2) is shown at the points with x=−2,−1,0,1,2 and y=0,1,2,3,4.
xy-2-1121234
Graph
  1. Sketch the solution curve that passes through the point (0,3).
  2. Does this solution have a relative minimum, a relative maximum, or neither at x=0? Justify your answer.
Hint

Start at the point. Follow the segments to the left and to the right. Which row is flat?

Answer and solution
  1. a valley with its lowest point at (0,3), above the line y=2
  2. relative minimum: dydx=0 at (0,3) and changes from − to + (the curve stays above y=2)
  1. (0,3):dydx=0⋅(3−2)=0→flat
  2. y = 2 is a flat row, a constant solution, so the curve stays above it. Above y = 2, the sign of dy/dx is the sign of x.
  3. (a) Going left the segments fall into (0, 3), going right they rise: a valley. (b) dy/dx changes from negative to positive at x = 0: a relative minimum.

Common mistake Crossing the flat row y = 2, or drawing a corner at the point.

Watch the worked solution to Problem 2

Problem 3

Let y=f(x) be the solution to dydx=xy−1 with f(2)=1. Write an equation for the line tangent to the graph of f at x=2, and use it to approximate f(2.1).
Hint

Put the point (2,1) into dydx first: that is the slope.

Answer and solution

Answer y=1+(x−2); f(2.1)≈1.1

  1. (2,1):dydx=2⋅1−1=1
  2. y=1+1⋅(x−2),f(2.1)≈1+0.1=1.1

Common mistake Solving the equation first instead of putting the point in.

Watch the worked solution to Problem 3

Problem 4

Consider dydx=x2(y−2). Which statement is true?
  1. y=2 is a constant solution.
  2. Every solution is increasing.
  3. The solution through (0,3) has a relative minimum at x=0.
  4. The solution through (1,1) is increasing at x=1.
Hint

Test each statement with the equation: put the line or the point in.

Answer and solution

Answer A. y=2 is a constant solution.

  1. y=2→dydx=0;(1,1)→−1;x2≥0does not change sign at 0
  2. Only (A) is true: y = 2 makes both sides 0 for every x. Answer A.

Common mistake Calling a flat point a minimum without a sign change.

Watch the worked solution to Problem 4

Problem 5

Let y=f(x) be the solution to dydx=3−xy with f(0)=2.
  1. Use the tangent line at x=0 to approximate f(0.1).
  2. Find d2ydx2 in terms of x and y. Is the graph of f concave up or down at (0,2)?
Hint

For (b), differentiate 3−xy with the product rule (y is a function of x), then put dydx=3−xy back in.

Answer and solution
  1. y=2+3x; f(0.1)≈2.3
  2. d2ydx2=−y−x(3−xy); −2<0 at (0,2): concave down
  1. 3−0=3→y=2+3x,f(0.1)≈2.3
  2. d2ydx2=−y−x(3−xy),(0,2)→−2<0

Common mistake Differentiating xy as y alone; forgetting to put dy/dx back in.

Watch the worked solution to Problem 5

Problem 6

Let y=f(x) be the solution to dydx=(x−1)ey whose graph passes through (1,0). At x=1, f has
  1. a relative minimum
  2. a relative maximum
  3. neither a relative maximum nor a relative minimum
  4. not enough information to decide
Hint

ey is always positive. Which factor decides the sign of dydx?

Answer and solution

Answer A. a relative minimum

  1. ey>0;x−1:−→+at x=1→relative minimum
  2. Answer A.

Common mistake Calling dy/dx = 0 enough for an extremum.

Watch the worked solution to Problem 6

Problem 7

Let y=f(x) be the solution to dydx=y2(3−x) with f(0)=1.
  1. Use the tangent line at x=0 to approximate f(0.2).
  2. Find d2ydx2. Is the approximation an overestimate or an underestimate? Explain your reasoning.
  3. Another solution passes through (3,2). Does it have a relative maximum, a relative minimum, or neither there? Justify your answer.
Hint

(b) needs the sign of d2ydx2 on the whole interval 0≤x≤0.2, not only at x=0.

Answer and solution
  1. y=1+3x; f(0.2)≈1.6
  2. underestimate: d2ydx2=y2(2y(3−x)2−1)>0 on 0≤x≤0.2
  3. relative maximum: dydx=0 and d2ydx2=−4<0 at (3,2)
  1. 12⋅3=3→y=1+3x,f(0.2)≈1.6
  2. d2ydx2=2ydydx(3−x)−y2=y2(2y(3−x)2−1)>0on[0,0.2]
  3. (3,2)→0;d2ydx2=0−4=−4<0

Common mistake Deciding over or under from x = 0 alone, not the whole interval.

Watch the worked solution to Problem 7

Problem 8

Consider dydx=y(y−2)2. Which of the following are true?
I. y=2 is a constant solution.
II. The solution with y(0)=1 is increasing at x=0.
III. The solution with y(0)=1 is concave up at x=0.
  1. I and II only
  2. I and III only
  3. II and III only
  4. I, II, and III
Hint

For III, differentiate y(y−2)2 with y a function of x, then put dydx back in.

Answer and solution

Answer A. I and II only

  1. I:0;II:1⋅1=1>0;III:d2ydx2=((y−2)2+2y(y−2))dydx=(1−2)⋅1<0
  2. III is false (concave down). Answer A.

Common mistake Computing d2y/dx2 without putting dy/dx back in.

Watch the worked solution to Problem 8