What a differential equation tells us before we solve it
We have the differential equation dxdy=x−y, and we want to know what its solutions look like. But we don't have a formula for y.
dxdy=x−y:y=?
Let's first look at an equation we can solve. Integrating dxdy=2x gives the parabolas y=x2+C. At each x, the slope is the same on every one of them, because dxdy depends only on x.
So short segments with those slopes still show the shape of the solutions, even with the parabolas taken away. For dxdy=x−y, we can't integrate the right side with respect to x, because y is an unknown function of x. But we can still find the slope at any point by plugging in its coordinates.
(1,−1):dxdy=1−(−1)=2
If we draw a short segment with slope dxdy at each point (x,y), we get a slope field, also called a direction field. Let's draw one at nine points, using x and y values of −1,0, and 1.
Draw the slope field of dxdy=x−y at nine points
Text solution
Keep the order x−yThe first coordinate is x, so swapping the coordinates changes the sign of the slope.
(1,−1):1−(−1)=2
(−1,1):−1−1=−2
Go row by rowOn each row y is fixed, so the slope is a simple expression in x.
y=1:x−1
y=0:x
y=−1:x+1
Slope 0 along y=xThe slope is 0 at (−1,−1),(0,0), and (1,1). Anywhere a solution intersects this line, it has a horizontal tangent line.
x−y=0⟺y=x
Here are all nine slopes, with the three zeros on the line y=x.
y10−1−1−2−10x0−1011012
To draw the field accurately, keep every segment the same short length, centered on its point. A segment with slope 0 is horizontal, a segment with negative slope falls from left to right, and a slope of 2 is visibly steeper than a slope of 1. If both axes have the same scale, a segment with slope 1 makes a 45∘ angle with the horizontal, so slope 2 will clearly look steeper.
2
Tracing a solution curve
Now let's follow one solution of dxdy=x−y through its field, the one that starts at (0,1), and see where it goes as x gets large. Whether the curve is falling or rising depends on which side of y=x it's on.
dxdy=x−y
(0,1):0−1=−1
y>xy=xy<x:x−y<0:x−y=0:x−y>0
Sketch the solution of dxdy=x−y with y(0)=1, and find the line it approaches
Text solution
Down, flat, then upThe curve starts with slope −1 and decreases while it's above 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.
Test a line y=mx+bThe line's slope m has to equal x−(mx+b) for every x. The left side has no x, so the coefficient of x on the right is 0, and the constant terms match.
m=(1−m)x−b
1−m=0,m=−b
The line it approachesSo m=1 and b=−1. On this line, x−y is 1, the same as the line's own slope, so it's an actual solution, and the curve through (0,1) gets closer and closer to it from above.
y=x−1
Every segment on y=x is flat, but the line y=x itself has slope 1. So it isn't a solution, and that's why our curve can intersect it.
y=x−1
dxdy=x−(x−1)=1
slope of the line: 1=1
y=x
dxdy=x−x=0
slope of the line: 1=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 dxdy=x there's no y, so the slopes stay the same down every column. For dxdy=y there's no x, so they stay the same across every row.
dxdy=x
x=1→dxdy=1 for every y
dxdy=y
y=1→dxdy=1 for every x
Next, look for horizontal segments. They lie wherever the formula gives 0, and for a product like xy, that's along both axes.
x−y=0x+y=0xy=0⟺y=x⟺y=−x⟺x=0 or y=0
Let's use both checks to find which of four equations made a slope field.
Which differential equation matches the slope field?
Text solution
Not yAcross the row y=1, the slopes change from left to right, so the formula can't be y.
Not x−yThe segments are horizontal along y=−x, at points like (−1,1),(0,0), and (1,−1). The formula x−y would give 0 along y=x instead.
Test a point off that lineBoth x+y and −x−y give 0 on y=−x, so we test (1,1). The field's segment there has slope 2, so the equation is dxdy=x+y.
(1,1):x+y=2
−x−y=−2
In this field, the horizontal segments run along y=−x, where x+y=0.
Which point can tell these equations apart?
One more thing to look for is a denominator. In dxdy=−yx, every point on the x-axis except the origin gives a number over 0. The slope is undefined there, and we draw a vertical segment. At the origin we get 00, so we don't draw a segment at all. Along the y-axis, −y0=0, so the segments there are horizontal.
A slope field can also show where a solution ends up as x gets large, without solving the equation. In dxdy=(y−1)(y−3), the right side has no x, so the slope is the same all along each horizontal line. Let's start by finding where it's 0.
(y−1)(y−3)=0→y=1,y=3
A horizontal line has slope 0 everywhere, and along y=1 the differential equation also gives 0. So the line 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 is another one.
These two lines split the plane into three regions. The slope can only change sign where it's 0, so one test value of y gives the sign across each region.
y=4y=2y=0:(3)(1)=3>0:(1)(−1)=−1<0:(−1)(−3)=3>0
Trace solutions of dxdy=(y−1)(y−3) from different starting values
Text solution
Where solutions goBelow y=1 they increase toward y=1, between the lines they decrease toward y=1, and above 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 is a solution curve, the curve from (0,2) never reaches it.
y>1 for every x
The limit and the rangeThe curve starts at 2 and decreases toward 1 without reaching it, so its limit is 1 and its largest value on x≥0 is y(0)=2.
y(0)=2:x→∞limy=11<y≤2 for x≥0
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 dxdy=x−y are concave up, and check whether the solution through (1,1) has a relative minimum at x=1.
For dxdy=x−y, find where solutions are concave up, and test (1,1) for a relative minimum
Text solution
Differentiate both sidesRemember that y is a function of x, so its derivative is dxdy, not 0.
dx2d2y=dxd(x−y)=1−dxdy
Substitute x−y for dxdyThat gives the second derivative in terms of x and y only.
dx2d2y=1−(x−y)=1−x+y
Test (1,1)Check the slope first, since a point where the slope isn't 0 can't be a relative minimum. The slope is 0 and the second derivative is positive, so by the second derivative test, there's a relative minimum at x=1.
(1,1):dxdydx2d2y=1−1=0=1−1+1=1>0
Setting 1−x+y>0 gives y>x−1. So solutions are concave up above the line y=x−1, and concave down below it. On the line itself, the second derivative is 0, as it should be for a line solution.
1−x+y>01−x+y<0⟺y>x−1⟺y<x−1
The solution through (0,1) stays above y=x−1, so it's concave up everywhere. But at (0,1),dxdy=0−1=−1=0, so that solution has no relative extremum at x=0, even though it's concave up there.
Summary
What a slope field shows
(1,−1):dxdy=1−(−1)=2
A differential equation gives the slope of the solution curve through each point (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
dxdy=x−y
y>xy=xy<x→dxdy<0→dxdy=0→dxdy>0
Where dxdy>0, the solution curve is increasing, and where dxdy<0, it's decreasing. When a solution curve passes through a point where dxdy=0, its tangent line is horizontal. For dxdy=x−y, that happens wherever the curve intersects the line y=x.
Matching a slope field to its equation
dxdy=x:equal down each column,dxdy=y:equal along each row
x−y=0⟺y=x,x+y=0⟺y=−x
−yx:y=0→vertical
dxdy=x:equal down each columndxdy=y:equal along each row
x−y=0x+y=0⟺y=x⟺y=−x
−yx:y=0→vertical
If slopes are equal down each column, the formula has no y. If slopes are equal along each row, it has no x. Segments are horizontal where the formula equals 0, and vertical where the denominator is 0 while the numerator is nonzero. For −yx, segments are vertical along y=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
A straight line is a solution only if its own slope equals dxdy at every point on the line. To test y=mx+b, plug it into the differential equation and match the coefficients of x 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,dxdy=x−y=0, but the line y=x has slope 1, so it isn't a solution.
Constant solutions and limits
(y−1)(y−3)=0→y=1,y=3
y(0)=2:x→∞limy=11<y≤2 for x≥0
A horizontal row where dxdy=0 gives a constant solution y=c. The sign of dxdy above and below y=c tells you whether nearby solutions approach y=c or get farther from it. For (y−1)(y−3),dxdy is negative between y=1 and y=3, so solutions in that strip decrease toward 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
dx2d2y=1−dxdy=1−(x−y)=1−x+y
dx2d2y=1−dxdy=1−(x−y)=1−x+y
To find dx2d2y, differentiate the differential equation with respect to x, treating y as a function of x so dxd(y)=dxdy. Then substitute the formula for dxdy. A solution curve is concave up where dx2d2y>0 and concave down where dx2d2y<0. To test a point for a relative extremum, check that dxdy=0 first. If dxdy=0, the point can't be a relative extremum. If dxdy=0, then dx2d2y>0 gives a relative minimum and dx2d2y<0 gives a relative maximum.
6
Practice
Enter exact values and simplified expressions. For limits, enter an exact number or ∞.
1
Sketch the slope field of dxdy=x+y−1 at the nine points with x=−1,0,1 and y=0,1,2.
Plug each point (x,y) into x+y−1 to find the slope of its segment. What is the slope at (−1,0)?
If you got a slope of −2 at (1,2) Check the formula. At (1,2),x+y−1 is 1+2−1, not 1−2−1.
If you got vertical segments at (1,0),(0,1) and (−1,2) A slope of 0 means the segment is horizontal. A vertical segment would mean an undefined slope.
At each point, plug x and y into x+y−1 to find the slope of the segment.
(−1,0):−1+0−1=−2
Working across each row gives the nine slopes.
y210−10−1−2x010−11210
Draw a short segment with that slope at each point. The slope is 0 at (1,0),(0,1), and (−1,2), which all lie on the line y=1−x.
2
Which differential equation has the slope field shown?
Look along a horizontal row, then down a vertical column. Which one keeps the same slope?
At y=3, do the segments have positive or negative slope? What are 2−y and y−2 at y=3?
If you got dxdy=2−x2−x gives equal slopes down each column, but this field has equal slopes along each row.
If you got dxdy=y−2 Check the sign of the slope. At y=3,y−2 gives 1, but the field has negative slope there.
Along any horizontal row, the slope stays the same as x changes, so the formula can only depend on y. That leaves 2−y and y−2.
2−x,x−22−y,y−2:equal down each column:equal along each row
Both choices give 0 along y=2, so that row doesn't tell them apart.
y=2:2−y=0,y−2=0
Test a row where their signs differ. At y=3, the segments have negative slope, which matches 2−y.
y=3:2−3=−1<0,3−2=1>0
3
Let y be the solution of dxdy=(2−y)(y+1) with the given initial condition. (a) Find x→∞limy if y(0)=0. (b) Find x→∞limy if y(0)=−1. (c) Find x→∞limy if y(0)=5. (d) For y(0)=5, find the range of the solution for x≥0.
Find the constant solutions by setting (2−y)(y+1)=0.
At y=0, what is the sign of (2−y)(y+1)? Does y increase or decrease from there?
If you got (b) 2 At y=−1, the derivative is (2−(−1))(−1+1)=0 right from the start, so y stays −1 for every x.
If you got (c) ∞ At y=5, the derivative is (2−5)(5+1)=−18, which is negative, so y decreases toward 2.
If you got (d) 2≤y≤5 The line y=2 is a solution curve, and solution curves can't intersect, so y never reaches 2.
Constant solutionsSetting the derivative equal to 0 gives two horizontal lines where the slope is always 0.
(2−y)(y+1)=0→y=2,y=−1
Solution from y(0)=0Between −1 and 2, the derivative is positive, so y increases toward 2.
(a)y=0:(2−0)(0+1)=2>0:x→∞limy=2
Solution from y(0)=−1We start on a constant solution, so y stays −1 for all x.
(b)y(0)=−1:y=−1 for every x:x→∞limy=−1
Solution from y(0)=5Above y=2, the derivative is negative, so y decreases toward the constant solution y=2.
(c)y=5:(2−5)(5+1)=−18<0:x→∞limy=2
Range for x≥0The solution starts at 5 and decreases toward 2, but because solution curves can't intersect, it never reaches 2.
(d)2<y≤5
4
For dxdy=2x−y, find dx2d2y in terms of x and y. Is the solution through (3,1) concave up or concave down at that point?
Remember that y is a function of x. What is dxd(y)?
Differentiating gives 2−dxdy. Replace dxdy with 2x−y to write the answer in terms of x and y.
If you got dx2d2y=2, concave upy is a function of x, not a constant. Its derivative with respect to x is dxdy, not 0.
Differentiate both sides with respect to x, using dxd(y)=dxdy, then substitute 2x−y for dxdy.
dx2d2y=dxd(2x−y)=2−dxdy=2−(2x−y)=2−2x+y
dx2d2y=dxd(2x−y)=2−dxdy=2−(2x−y)=2−2x+y
Plug x=3 and y=1 into the second derivative. The value is negative, so the solution curve is concave down.