Calculus3Differential Equations2 of 7
Differential Equations · 2

Slope Fields

1

What a differential equation tells us before we solve it

We have the differential equation dydx=x−y\frac{dy}{dx} = x - y, and we want to know what its solutions look like. But we don't have a formula for yy.

dydx\displaystyle \frac{dy}{dx} =x−y:y\displaystyle = x - y:\quad y =  ?\displaystyle = \;?

Let's first look at an equation we can solve. Integrating dydx=2x\frac{dy}{dx} = 2x gives the parabolas y=x2+C\scurve{y = x^2 + C}. At each xx, the slope is the same on every one of them, because dydx\frac{dy}{dx} depends only on xx.

xx
−2-2
−1-1
00
11
22
C=−1\htmlClass{lc-blue}{C = -1}
C=0\htmlClass{lc-blue}{C = 0}
C=1\htmlClass{lc-blue}{C = 1}
C=2\htmlClass{lc-blue}{C = 2}
dydx\displaystyle \frac{dy}{dx} =2x  →  y=x2+C\displaystyle = 2x \;\to\; \scurve{y = x^2 + C}
x=1: 2(1)=2x=0: 2(0)=0x=−1: 2(−1)=−2} forevery C\displaystyle {\left.\begin{aligned} x = 1&:\ 2(1) = 2\\ x = 0&:\ 2(0) = \zs{0}\\ x = -1&:\ 2(-1) = -2\end{aligned}\right\}\,\begin{gathered}\text{for}\\ \text{every } C\end{gathered}}

So short segments with those slopes still show the shape of the solutions, even with the parabolas taken away. For dydx=x−y\frac{dy}{dx} = x - y, we can't integrate the right side with respect to xx, because yy is an unknown function of xx. But we can still find the slope at any point by plugging in its coordinates.

(1,−1):dydx\displaystyle (1, -1):\quad \frac{dy}{dx} =1−(−1)\displaystyle = 1 - (-1) =2\displaystyle = 2

If we draw a short segment with slope dydx\frac{dy}{dx} at each point (x,y)(x, y), we get a slope field, also called a direction field. Let's draw one at nine points, using xx and yy values of −1-1, 00, and 11.

Draw the slope field of dydx=x−y\frac{dy}{dx} = x - y at nine points
−1-1
00
11
−1-1
00
11
xx
yy
Text solution
Keep the order x−yx - yThe first coordinate is xx, so swapping the coordinates changes the sign of the slope.
(1,−1): 1−(−1)\displaystyle (1, -1):\ 1 - (-1) =2\displaystyle = 2
(−1,1): −1−1\displaystyle (-1, 1):\ -1 - 1 =−2\displaystyle = -2
Go row by rowOn each row yy is fixed, so the slope is a simple expression in xx.
y\displaystyle y =1: x−1\displaystyle = 1:\ x - 1
y\displaystyle y =0: x\displaystyle = 0:\ x
y\displaystyle y =−1: x+1\displaystyle = -1:\ x + 1
Slope 0\zs{0} along y=x\zs{y = x}The slope is 0\zs{0} at (−1,−1)(-1, -1), (0,0)(0, 0), and (1,1)(1, 1). Anywhere a solution intersects this line, it has a horizontal tangent line.
x−y\displaystyle x - y =0  ⟺  y=x\displaystyle = \zs{0} \iff \zs{y = x}

Here are all nine slopes, with the three zeros on the line y=x\zs{y = x}.

−1-1
00
11
−1-1
00
11
xx
yy
x−1011−2−10y0−101−1012\displaystyle {\def\arraystretch{1.5}\begin{array}{cr|rrr} & & & x & \\ & & -1 & 0 & 1\\ \hline & 1 & -2 & -1 & \zs{0}\\ y & 0 & -1 & \zs{0} & 1\\ & -1 & \zs{0} & 1 & 2\end{array}}

To draw the field accurately, keep every segment the same short length, centered on its point. A segment with slope 0\zs{0} is horizontal, a segment with negative slope falls from left to right, and a slope of 22 is visibly steeper than a slope of 11. If both axes have the same scale, a segment with slope 11 makes a 45∘45^\circ angle with the horizontal, so slope 22 will clearly look steeper.

2

Tracing a solution curve

Now let's follow one solution of dydx=x−y\frac{dy}{dx} = x - y through its field, the one that starts at (0,1)\scurve{(0, 1)}, and see where it goes as xx gets large. Whether the curve is falling or rising depends on which side of y=x\zs{y = x} it's on.

−2-2
−1-1
00
11
22
33
−2-2
−1-1
00
11
22
33
xx
yy
y=x\htmlClass{lc-pink}{y = x}
dydx\displaystyle \frac{dy}{dx} =x−y\displaystyle = x - y
(0,1):  0−1\displaystyle \scurve{(0, 1)}:\ \ 0 - 1 =−1\displaystyle = -1
y>x:x−y<0y=x:x−y=0y<x:x−y>0\displaystyle \begin{aligned} y > x&:\quad x - y < 0\\ \zs{y = x}&:\quad x - y = \zs{0}\\ y < x&:\quad x - y > 0\end{aligned}
Sketch the solution of dydx=x−y\frac{dy}{dx} = x - y with y(0)=1\scurve{y(0) = 1}, and find the line it approaches
−2-2
−1-1
00
11
22
33
−2-2
−1-1
00
11
22
33
xx
yy
Text solution
Down, flat, then upThe curve starts with slope −1-1 and decreases while it's above y=x\zs{y = x}. It's flat where it intersects that line and increases below it, so by the first derivative test, its lowest point is on y=x\zs{y = x}.
Test a line y=mx+b\lsol{y = mx + b}The line's slope m\lsol{m} has to equal x−(mx+b)x - (\lsol{mx + b}) for every xx. The left side has no xx, so the coefficient of xx on the right is 00, and the constant terms match.
m\displaystyle \lsol{m} =(1−m)x−b\displaystyle = (1 - m)x - b
1−m\displaystyle 1 - m =0,m\displaystyle = 0, \quad m =−b\displaystyle = -b
The line it approachesSo m=1m = 1 and b=−1b = -1. On this line, x−yx - y is 11, the same as the line's own slope, so it's an actual solution, and the curve through (0,1)\scurve{(0, 1)} gets closer and closer to it from above.
y=x−1\displaystyle \lsol{y = x - 1}
−2-2
−1-1
00
11
22
33
−2-2
−1-1
00
11
22
33
xx
yy
y=x\htmlClass{lc-pink}{y = x}
y=x−1\htmlClass{lc-green}{y = x - 1}

Every segment on y=x\zs{y = x} is flat, but the line y=x\zs{y = x} itself has slope 11. So it isn't a solution, and that's why our curve can intersect it.

y=x−1\displaystyle \lsol{y = x - 1}
dydx\displaystyle \frac{dy}{dx} =x−(x−1)\displaystyle = x - (\lsol{x - 1}) =1\displaystyle = 1
slope of the line: 1\displaystyle \text{slope of the line: } 1 =1\displaystyle = 1
y=x\displaystyle \zs{y = x}
dydx\displaystyle \frac{dy}{dx} =x−x\displaystyle = x - x =0\displaystyle = \zs{0}
slope of the line: 1≠0\displaystyle \text{slope of the line: } 1 \neq \zs{0}
3

Finding the equation from a slope field

When we're given a slope field without its equation, patterns in the slopes tell us which formula made it.

First, check whether the slopes repeat. For dydx=x\frac{dy}{dx} = x there's no yy, so the slopes stay the same down every column. For dydx=y\frac{dy}{dx} = y there's no xx, so they stay the same across every row.

dydx\displaystyle \frac{dy}{dx} =x\displaystyle = x
−2-2
−1-1
00
11
22
−2-2
−1-1
00
11
22
x\displaystyle x =1  →  dydx\displaystyle = 1 \;\to\; \frac{dy}{dx} =1  for every y\displaystyle = 1 \ \text{ for every } y
dydx\displaystyle \frac{dy}{dx} =y\displaystyle = y
−2-2
−1-1
00
11
22
−2-2
−1-1
00
11
22
y\displaystyle y =1  →  dydx\displaystyle = 1 \;\to\; \frac{dy}{dx} =1  for every x\displaystyle = 1 \ \text{ for every } x

Next, look for horizontal segments. They lie wherever the formula gives 0\zs{0}, and for a product like xyxy, that's along both axes.

x−y=0  ⟺  y=xx+y=0  ⟺  y=−xxy=0  ⟺  x=0  or  y=0\displaystyle \begin{aligned} x - y = \zs{0} &\iff \zs{y = x}\\ x + y = \zs{0} &\iff \zs{y = -x}\\ xy = \zs{0} &\iff \zs{x = 0} \ \text{ or } \ \zs{y = 0}\end{aligned}

Let's use both checks to find which of four equations made a slope field.

Which differential equation matches the slope field?
dydx=  ?\dfrac{dy}{dx} = \;?
y,x−y,x+y,−x−y\htmlClass{lc-violet}{y}, \quad \htmlClass{lc-green}{x - y}, \quad \htmlClass{lc-blue}{x + y}, \quad \htmlClass{lc-orange}{-x - y}
−2-2
−1-1
00
11
22
33
−2-2
−1-1
00
11
22
33
xx
yy
Text solution
Not y\ky{y}Across the row y=1y = 1, the slopes change from left to right, so the formula can't be yy.
Not x−y\kxmy{x - y}The segments are horizontal along y=−x\zs{y = -x}, at points like (−1,1)(-1, 1), (0,0)(0, 0), and (1,−1)(1, -1). The formula x−yx - y would give 0\zs{0} along y=x\zs{y = x} instead.
Test a point off that lineBoth x+yx + y and −x−y-x - y give 0\zs{0} on y=−x\zs{y = -x}, so we test (1,1)(1, 1). The field's segment there has slope 22, so the equation is dydx=x+y\frac{dy}{dx} = \kxpy{x + y}.
(1,1):  x+y\displaystyle (1, 1):\ \ \kxpy{x + y} =2\displaystyle = 2
−x−y\displaystyle \kmxy{-x - y} =−2\displaystyle = -2

In this field, the horizontal segments run along y=−x\zs{y = -x}, where x+y=0x + y = \zs{0}.

−2-2
−1-1
00
11
22
−2-2
−1-1
00
11
22
xx
yy
y=−x\htmlClass{lc-pink}{y = -x}

Which point can tell these equations apart?

One more thing to look for is a denominator. In dydx=−xy\frac{dy}{dx} = -\frac{x}{y}, every point on the x-axis except the origin gives a number over 00. The slope is undefined there, and we draw a vertical segment. At the origin we get 00\frac{0}{0}, so we don't draw a segment at all. Along the y-axis, −0y=0-\frac{0}{y} = \zs{0}, so the segments there are horizontal.

−3-3
−2-2
−1-1
00
11
22
33
−3-3
−2-2
−1-1
00
11
22
33
xx
yy
dydx\displaystyle \frac{dy}{dx} =−xy\displaystyle = -\frac{x}{y}
(2,0)→−20 undefined(0,0)→00 no slope(0,2)→−02=0\displaystyle \begin{aligned} (2, 0) &\to -\frac{2}{0}\ \text{undefined}\\ (0, 0) &\to \frac{0}{0}\ \text{no slope}\\ (0, 2) &\to -\frac{0}{2} = \zs{0}\end{aligned}
4

Constant solutions and long-term behavior

A slope field can also show where a solution ends up as xx gets large, without solving the equation. In dydx=(y−1)(y−3)\frac{dy}{dx} = (y - 1)(y - 3), the right side has no xx, so the slope is the same all along each horizontal line. Let's start by finding where it's 0\zs{0}.

(y−1)(y−3)\displaystyle (y - 1)(y - 3) =0  →  y=1,y=3\displaystyle = \zs{0} \;\to\; \zs{y = 1}, \quad \zs{y = 3}

A horizontal line has slope 0\zs{0} everywhere, and along y=1\zs{y = 1} the differential equation also gives 0\zs{0}. So the line y=1\zs{y = 1} is an actual solution. We call a horizontal line that satisfies the differential equation a constant solution, or an equilibrium solution, and y=3\zs{y = 3} is another one.

These two lines split the plane into three regions. The slope can only change sign where it's 0\zs{0}, so one test value of yy gives the sign across each region.

00
11
22
33
44
−1-1
00
11
22
33
44
55
xx
yy
y=1\htmlClass{lc-pink}{y = 1}
y=3\htmlClass{lc-pink}{y = 3}
y=4:(3)(1)=3>0y=2:(1)(−1)=−1<0y=0:(−1)(−3)=3>0\displaystyle \begin{aligned} y = 4&:\quad (3)(1) = 3 > 0\\ y = 2&:\quad (1)(-1) = -1 < 0\\ y = 0&:\quad (-1)(-3) = 3 > 0\end{aligned}
Trace solutions of dydx=(y−1)(y−3)\frac{dy}{dx} = (y - 1)(y - 3) from different starting values
00
11
22
33
44
−1-1
00
11
22
33
44
55
xx
yy
y(0)=2:lim⁡x→∞y=  ? range: ?\htmlClass{lc-blue}{y(0) = 2}:\quad \lim\limits_{x\to\infty} y = \;?\quad\ \text{range: } ?
Text solution
Where solutions goBelow y=1\zs{y = 1} they increase toward y=1\zs{y = 1}, between the lines they decrease toward y=1\zs{y = 1}, and above y=3\zs{y = 3} they increase and go to infinity.
Solution curves don't intersectFor this equation, a starting point determines just one solution curve, so two different solution curves can't intersect. Since y=1\zs{y = 1} is a solution curve, the curve from (0,2)\scurve{(0, 2)} never reaches it.
y>1  for every x\displaystyle y > 1 \ \text{ for every } x
The limit and the rangeThe curve starts at 22 and decreases toward 11 without reaching it, so its limit is 11 and its largest value on x≥0x \ge 0 is y(0)=2\scurve{y(0) = 2}.
00
11
22
33
44
−1-1
00
11
22
33
44
55
xx
yy
y=1\htmlClass{lc-pink}{y = 1}
y=3\htmlClass{lc-pink}{y = 3}
y(0)=2:  lim⁡x→∞y=11<y≤2  for x≥0\displaystyle \begin{aligned} &\scurve{y(0) = 2}:\ \ \lim_{x \to \infty} y = 1\\ &1 < y \le 2 \ \text{ for } x \ge 0\end{aligned}

Where does the solution go from each starting value?

5

Finding concavity and extrema

A differential equation also tells us about concavity, through the second derivative. Let's find where the solutions of dydx=x−y\frac{dy}{dx} = x - y are concave up, and check whether the solution through (1,1)\scurve{(1, 1)} has a relative minimum at x=1x = 1.

For dydx=x−y\frac{dy}{dx} = x - y, find where solutions are concave up, and test (1,1)\scurve{(1, 1)} for a relative minimum
−1-1
00
11
22
33
−2-2
−1-1
00
11
22
33
xx
yy
d2ydx2=  ?\dfrac{d^2y}{dx^2} = \;?
Text solution
Differentiate both sidesRemember that yy is a function of xx, so its derivative is dydx\frac{dy}{dx}, not 00.
d2ydx2\displaystyle \frac{d^2y}{dx^2} =ddx(x−y)\displaystyle = \frac{d}{dx}(x - y) =1−dydx\displaystyle = 1 - \frac{dy}{dx}
Substitute x−yx - y for dydx\frac{dy}{dx}That gives the second derivative in terms of xx and yy only.
d2ydx2\displaystyle \frac{d^2y}{dx^2} =1−(x−y)\displaystyle = 1 - (x - y) =1−x+y\displaystyle = 1 - x + y
Test (1,1)\scurve{(1, 1)}Check the slope first, since a point where the slope isn't 0\zs{0} can't be a relative minimum. The slope is 0\zs{0} and the second derivative is positive, so by the second derivative test, there's a relative minimum at x=1x = 1.
(1,1):dydx=1−1=0d2ydx2=1−1+1=1>0\displaystyle \begin{aligned} \scurve{(1, 1)}:\quad \frac{dy}{dx} &= 1 - 1 = \zs{0}\\ \frac{d^2y}{dx^2} &= 1 - 1 + 1 = 1 > 0\end{aligned}

Setting 1−x+y>01 - x + y > 0 gives y>x−1\cvup{y > x - 1}. So solutions are concave up above the line y=x−1\lsol{y = x - 1}, and concave down below it. On the line itself, the second derivative is 00, as it should be for a line solution.

1−x+y>0  ⟺  y>x−11−x+y<0  ⟺  y<x−1\displaystyle \begin{aligned} 1 - x + y > 0 &\iff \cvup{y > x - 1}\\ 1 - x + y < 0 &\iff \cvdn{y < x - 1}\end{aligned}
−2-2
−1-1
00
11
22
33
−2-2
−1-1
00
11
22
33
xx
yy
y>x−1\htmlClass{lc-orange}{y > x - 1}
y=x−1\htmlClass{lc-green}{y = x - 1}
y<x−1\htmlClass{lc-violet}{y < x - 1}

The solution through (0,1)\scurve{(0, 1)} stays above y=x−1\lsol{y = x - 1}, so it's concave up everywhere. But at (0,1)\scurve{(0, 1)}, dydx=0−1=−1≠0\frac{dy}{dx} = 0 - 1 = -1 \ne \zs{0}, so that solution has no relative extremum at x=0x = 0, even though it's concave up there.

Summary

What a slope field shows
(1,−1):dydx=1−(−1)=2\displaystyle \begin{aligned} &(1, -1):\\ &\frac{dy}{dx} = 1 - (-1) = 2\end{aligned}

A differential equation gives the slope of the solution curve through each point (x,y)(x, y). In a slope field, we draw a short segment with that slope at each point on a grid. A solution curve doesn't have to pass through the grid points, and its slope stays close to the slopes of the nearby segments.

Tracing a solution curve
dydx\displaystyle \frac{dy}{dx} =x−y\displaystyle = x - y
y>x  →  dydx<0y=x  →  dydx=0y<x  →  dydx>0\displaystyle \begin{aligned} y > x &\;\to\; \frac{dy}{dx} < 0\\ \zs{y = x} &\;\to\; \frac{dy}{dx} = \zs{0}\\ y < x &\;\to\; \frac{dy}{dx} > 0\end{aligned}

Where dydx>0\frac{dy}{dx} > 0, the solution curve is increasing, and where dydx<0\frac{dy}{dx} < 0, it's decreasing. When a solution curve passes through a point where dydx=0\frac{dy}{dx} = \zs{0}, its tangent line is horizontal. For dydx=x−y\frac{dy}{dx} = x - y, that happens wherever the curve intersects the line y=x\zs{y = x}.

Matching a slope field to its equation
dydx=x: equal down each column,dydx=y: equal along each row\displaystyle {\frac{dy}{dx} = x:\ \text{equal down each column}}, \qquad {\frac{dy}{dx} = y:\ \text{equal along each row}}
x−y\displaystyle x - y =0  ⟺  y=x,x+y\displaystyle = \zs{0} \iff \zs{y = x}, \qquad x + y =0  ⟺  y=−x\displaystyle = \zs{0} \iff \zs{y = -x}
−xy:  y=0→vertical\displaystyle {-\frac{x}{y}:\ \ y = 0 \to \text{vertical}}
dydx=x:equal down each columndydx=y:equal along each row\displaystyle \begin{aligned} &\frac{dy}{dx} = x:\\ &\quad \text{equal down each column}\\ &\frac{dy}{dx} = y:\\ &\quad \text{equal along each row}\end{aligned}
x−y=0  ⟺  y=xx+y=0  ⟺  y=−x\displaystyle \begin{aligned} x - y = \zs{0} &\iff \zs{y = x}\\ x + y = \zs{0} &\iff \zs{y = -x}\end{aligned}
−xy:  y=0→vertical\displaystyle {-\frac{x}{y}:\ \ y = 0 \to \text{vertical}}

If slopes are equal down each column, the formula has no yy. If slopes are equal along each row, it has no xx. Segments are horizontal where the formula equals 0\zs{0}, and vertical where the denominator is 00 while the numerator is nonzero. For −xy-\frac{x}{y}, segments are vertical along y=0y = 0 except at the origin. If several equations share the same horizontal segments, test a point where their slopes differ.

Line solutions
y=mx+b:m=(1−m)x−b→  y=x−1\displaystyle \begin{aligned} &\lsol{y = mx + b}:\\ &\lsol{m} = (1 - m)x - b\\ &\to\; \lsol{y = x - 1}\end{aligned}

A straight line is a solution only if its own slope equals dydx\frac{dy}{dx} at every point on the line. To test y=mx+b\lsol{y = mx + b}, plug it into the differential equation and match the coefficients of xx and the constant terms. A line along which all the segments are horizontal is a solution only if the line itself is horizontal. Along y=x\zs{y = x}, dydx=x−y=0\frac{dy}{dx} = x - y = \zs{0}, but the line y=x\zs{y = x} has slope 11, so it isn't a solution.

Constant solutions and limits
(y−1)(y−3)=0→  y=1,y=3\displaystyle \begin{aligned} &(y - 1)(y - 3) = \zs{0}\\ &\to\; \zs{y = 1}, \quad \zs{y = 3}\end{aligned}
y(0)=2:  lim⁡x→∞y=11<y≤2  for x≥0\displaystyle \begin{aligned} &\scurve{y(0) = 2}:\ \ \lim_{x \to \infty} y = 1\\ &1 < y \le 2 \ \text{ for } x \ge 0\end{aligned}

A horizontal row where dydx=0\frac{dy}{dx} = \zs{0} gives a constant solution y=c\zs{y = c}. The sign of dydx\frac{dy}{dx} above and below y=c\zs{y = c} tells you whether nearby solutions approach y=c\zs{y = c} or get farther from it. For (y−1)(y−3)(y - 1)(y - 3), dydx\frac{dy}{dx} is negative between y=1\zs{y = 1} and y=3\zs{y = 3}, so solutions in that strip decrease toward y=1\zs{y = 1}. Because solution curves for this equation can never intersect, a solution that approaches a constant solution gets closer and closer to it, but never reaches it.

Concavity and relative extrema
d2ydx2\displaystyle \frac{d^2y}{dx^2} =1−dydx\displaystyle = 1 - \frac{dy}{dx} =1−(x−y)\displaystyle = 1 - (x - y) =1−x+y\displaystyle = 1 - x + y
d2ydx2=1−dydx=1−(x−y)=1−x+y\displaystyle \begin{aligned} \frac{d^2y}{dx^2} &= 1 - \frac{dy}{dx}\\ &= 1 - (x - y)\\ &= 1 - x + y\end{aligned}

To find d2ydx2\frac{d^2y}{dx^2}, differentiate the differential equation with respect to xx, treating yy as a function of xx so ddx(y)=dydx\frac{d}{dx}(y) = \frac{dy}{dx}. Then substitute the formula for dydx\frac{dy}{dx}. A solution curve is concave up where d2ydx2>0\frac{d^2y}{dx^2} > 0 and concave down where d2ydx2<0\frac{d^2y}{dx^2} < 0. To test a point for a relative extremum, check that dydx=0\frac{dy}{dx} = \zs{0} first. If dydx≠0\frac{dy}{dx} \ne \zs{0}, the point can't be a relative extremum. If dydx=0\frac{dy}{dx} = \zs{0}, then d2ydx2>0\frac{d^2y}{dx^2} > 0 gives a relative minimum and d2ydx2<0\frac{d^2y}{dx^2} < 0 gives a relative maximum.

6

Practice

Enter exact values and simplified expressions. For limits, enter an exact number or ∞\infty.

1
Sketch the slope field of dydx=x+y−1\dfrac{dy}{dx} = x + y - 1 at the nine points with x=−1,0,1x = -1, 0, 1 and y=0,1,2y = 0, 1, 2.

Plug each point (x,y)(x, y) into x+y−1x + y - 1 to find the slope of its segment. What is the slope at (−1,0)(-1, 0)?

If you got a slope of −2-2 at (1,2)(1, 2) Check the formula. At (1,2)(1, 2), x+y−1x + y - 1 is 1+2−11 + 2 - 1, not 1−2−11 - 2 - 1.

If you got vertical segments at (1,0)(1, 0), (0,1)(0, 1) and (−1,2)(-1, 2) A slope of 00 means the segment is horizontal. A vertical segment would mean an undefined slope.

At each point, plug xx and yy into x+y−1x + y - 1 to find the slope of the segment.
(−1,0):−1+0−1\displaystyle (-1, 0):\quad -1 + 0 - 1 =−2\displaystyle = -2
Working across each row gives the nine slopes.
x−1012012y1−1010−2−10\displaystyle {\def\arraystretch{1.5}\begin{array}{cr|rrr} & & & x & \\ & & -1 & 0 & 1\\ \hline & 2 & \zs{0} & 1 & 2\\ y & 1 & -1 & \zs{0} & 1\\ & 0 & -2 & -1 & \zs{0}\end{array}}
Draw a short segment with that slope at each point. The slope is 0\zs{0} at (1,0)(1, 0), (0,1)(0, 1), and (−1,2)(-1, 2), which all lie on the line y=1−x\zs{y = 1 - x}.
2
Which differential equation has the slope field shown?
−2-2
−1-1
00
11
22
00
11
22
33
44
xx
yy

Look along a horizontal row, then down a vertical column. Which one keeps the same slope?

At y=3y = 3, do the segments have positive or negative slope? What are 2−y2 - y and y−2y - 2 at y=3y = 3?

If you got dydx=2−x\dfrac{dy}{dx} = 2 - x 2−x2 - x gives equal slopes down each column, but this field has equal slopes along each row.

If you got dydx=y−2\dfrac{dy}{dx} = y - 2 Check the sign of the slope. At y=3y = 3, y−2y - 2 gives 11, but the field has negative slope there.

Along any horizontal row, the slope stays the same as xx changes, so the formula can only depend on yy. That leaves 2−y2 - y and y−2y - 2.
2−x,  x−2: equal down each column2−y,  y−2: equal along each row\displaystyle \begin{aligned} 2 - x,\ \ x - 2&:\ \text{equal down each column}\\ 2 - y,\ \ y - 2&:\ \text{equal along each row}\end{aligned}
Both choices give 0\zs{0} along y=2\zs{y = 2}, so that row doesn't tell them apart.
y=2:2−y\displaystyle \zs{y = 2}:\quad 2 - y =0,y−2\displaystyle = \zs{0}, \qquad y - 2 =0\displaystyle = \zs{0}
Test a row where their signs differ. At y=3y = 3, the segments have negative slope, which matches 2−y2 - y.
y\displaystyle y =3:2−3\displaystyle = 3:\quad 2 - 3 =−1<0,3−2\displaystyle = -1 < 0, \qquad 3 - 2 =1>0\displaystyle = 1 > 0
3
Let yy be the solution of dydx=(2−y)(y+1)\dfrac{dy}{dx} = (2 - y)(y + 1) with the given initial condition. (a) Find lim⁡x→∞y\displaystyle\lim_{x \to \infty} y if y(0)=0y(0) = 0. (b) Find lim⁡x→∞y\displaystyle\lim_{x \to \infty} y if y(0)=−1y(0) = -1. (c) Find lim⁡x→∞y\displaystyle\lim_{x \to \infty} y if y(0)=5y(0) = 5. (d) For y(0)=5y(0) = 5, find the range of the solution for x≥0x \ge 0.

Find the constant solutions by setting (2−y)(y+1)=0(2 - y)(y + 1) = 0.

At y=0y = 0, what is the sign of (2−y)(y+1)(2 - y)(y + 1)? Does yy increase or decrease from there?

If you got (b) 22 At y=−1y = -1, the derivative is (2−(−1))(−1+1)=0(2 - (-1))(-1 + 1) = 0 right from the start, so yy stays −1-1 for every xx.

If you got (c) ∞\infty At y=5y = 5, the derivative is (2−5)(5+1)=−18(2 - 5)(5 + 1) = -18, which is negative, so yy decreases toward 22.

If you got (d) 2≤y≤52 \le y \le 5 The line y=2y = 2 is a solution curve, and solution curves can't intersect, so yy never reaches 22.

Constant solutionsSetting the derivative equal to 0\zs{0} gives two horizontal lines where the slope is always 0\zs{0}.
(2−y)(y+1)\displaystyle (2 - y)(y + 1) =0  →  y=2,y=−1\displaystyle = \zs{0} \;\to\; \zs{y = 2}, \quad \zs{y = -1}
Solution from y(0)=0\scurve{y(0) = 0}Between −1-1 and 22, the derivative is positive, so yy increases toward 22.
(a)  y=0:(2−0)(0+1)=2>0:lim⁡x→∞y=2\displaystyle \begin{aligned} \text{(a)}\ \ y = 0&:\quad (2 - 0)(0 + 1) = 2 > 0\\ &\phantom{:}\quad \lim_{x \to \infty} y = 2\end{aligned}
Solution from y(0)=−1\scurve{y(0) = -1}We start on a constant solution, so yy stays −1-1 for all xx.
(b)  y(0)=−1:y=−1  for every x:lim⁡x→∞y=−1\displaystyle \begin{aligned} \text{(b)}\ \ \scurve{y(0) = -1}&:\quad \zs{y = -1} \ \text{ for every } x\\ &\phantom{:}\quad \lim_{x \to \infty} y = -1\end{aligned}
Solution from y(0)=5\scurve{y(0) = 5}Above y=2\zs{y = 2}, the derivative is negative, so yy decreases toward the constant solution y=2\zs{y = 2}.
(c)  y=5:(2−5)(5+1)=−18<0:lim⁡x→∞y=2\displaystyle \begin{aligned} \text{(c)}\ \ y = 5&:\quad (2 - 5)(5 + 1) = -18 < 0\\ &\phantom{:}\quad \lim_{x \to \infty} y = 2\end{aligned}
Range for x≥0x \ge 0The solution starts at 55 and decreases toward 22, but because solution curves can't intersect, it never reaches 22.
(d)  2<y\displaystyle \text{(d)}\ \ 2 < y ≤5\displaystyle \le 5
4
For dydx=2x−y\dfrac{dy}{dx} = 2x - y, find d2ydx2\dfrac{d^2y}{dx^2} in terms of xx and yy. Is the solution through (3,1)(3, 1) concave up or concave down at that point?

Remember that yy is a function of xx. What is ddx(y)\frac{d}{dx}(y)?

Differentiating gives 2−dydx2 - \frac{dy}{dx}. Replace dydx\frac{dy}{dx} with 2x−y2x - y to write the answer in terms of xx and yy.

If you got d2ydx2=2\dfrac{d^2y}{dx^2} = 2, concave up yy is a function of xx, not a constant. Its derivative with respect to xx is dydx\frac{dy}{dx}, not 00.

Differentiate both sides with respect to xx, using ddx(y)=dydx\frac{d}{dx}(y) = \frac{dy}{dx}, then substitute 2x−y2x - y for dydx\frac{dy}{dx}.
d2ydx2=ddx(2x−y)=2−dydx=2−(2x−y)=2−2x+y\displaystyle \begin{aligned} \frac{d^2y}{dx^2} &= \frac{d}{dx}(2x - y) = 2 - \frac{dy}{dx}\\ &= 2 - (2x - y) = 2 - 2x + y\end{aligned}
d2ydx2=ddx(2x−y)=2−dydx=2−(2x−y)=2−2x+y\displaystyle \begin{aligned} \frac{d^2y}{dx^2} &= \frac{d}{dx}(2x - y)\\ &= 2 - \frac{dy}{dx}\\ &= 2 - (2x - y)\\ &= 2 - 2x + y\end{aligned}
Plug x=3x = 3 and y=1y = 1 into the second derivative. The value is negative, so the solution curve is concave down.
(3,1):2−6+1\displaystyle \scurve{(3, 1)}:\quad 2 - 6 + 1 =−3<0\displaystyle = -3 < 0