← Return to lesson

Class materials · 7.4

Reasoning Using Slope Fields and Differential Equations

Lecture transcript

0:00

Last time ended with a promise: start at a point, and follow the segments. We already put a short segment at every point, with the slope the equation gives there. Now here's an equation we won't solve: d y d x equals cosine y. No integrating today, not once. So here's today's question. Without solving, can we still tell where a solution rises, how it bends, and whether a tangent line estimate is too big or too small?

0:32

Let's go get that five. 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.

1:03

So the curve starts steep, slope negative two, going down. Don't jump from dot to dot; just ride along. 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?

1:37

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

2:11

y equals x minus one has slope one, and x minus the quantity x minus one is one. They match: it's a solution. 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.

2:45

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. Now take away the slope field. Back to d y d x equals cosine y. Can we still see what its solutions do?

3:17

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. For heights between negative pi over two and pi over two, cosine y is positive, so any solution living in that band rises.

3:55

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.

4:31

Solutions below rise toward it, solutions above fall toward it, and neither one crosses it. 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.

5:05

Plug it in, and the second derivative is negative sine y cosine y. 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.

5:37

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.

6:08

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.

6:40

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.

7:14

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.

7:44

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.

8:18

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.

8:50

To the left they're negative, tilting down as you go right, which means rising as you go left. 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.

9:25

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

10:01

Instead, let the curve run alongside the segments, smooth, with no corners. And it stays above y equals one, the constant solution. 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.

10:34

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.

11:04

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

11:40

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.

12:13

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.

12:50

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

13:21

A flat tangent could be a max, a min, or neither, and the slope field alone is too vague as a reason. 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 three, multiple-choice style. Suppose d y d x equals the quantity y squared minus four, times e to the x.

13:53

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

14:26

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?

14:57

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

15:35

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

16:13

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.

16:46

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.

17:23

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. So, back to today's question: can we tell rise, bend, and over or under, without solving? Yes.

17:59

Start at the point and follow the segments, like a leaf on water. Solution curves like these never cross, not even a flat constant solution. The sign of d y d x tells rising or falling, and where it's zero for every x, there's a constant solution. For the bend, differentiate with the chain rule and put d y d x back in, then read the sign. And for over or under, use that sign on the whole interval, never at just one point.

18:31

A few workbook problems and this starts to feel normal, and there's a video for each one. Questions? Drop them in the comments. Seven point five, Euler's method, is BC only. So next up for AB is seven point six: separation of variables, where we finally solve one. See you there.