Differential EquationsSolving First-Order Equations3 of 7
Solving First-Order Equations · 3
Slope Fields
Most differential equations are difficult or impossible to solve with an algebra formula, so we need a way to see what the solutions look like directly from the equation itself.
1
What a Slope Field Is
A slope field is a grid of short dashes across the coordinate plane, where each dash shows the exact slope dxdy that a solution curve must have if it passes through that point.
What a Slope Field Is
Text solution
Slope at (1,1)Plug x=1 and y=1 into dxdy=x+y to find the slope of the dash at that point.
dxdy=1+1=2
Slope at (0,1)Plug in x=0 and y=1 to get a gentler upward dash.
dxdy=0+1=1
Slope at (−1,1)Plug in x=−1 and y=1 to find where the dash is completely flat.
dxdy=−1+1=0
So even without a formula for y, following the dashes across the grid shows the paths the solution curves must take.
2
Slope Fields That Depend Only on x
Plotting points one by one takes a long time, so we look for shortcuts in the equation. First, let's sketch the field and see the family of solution curves when the right-hand side has only x:
dxdy=x
Slope Fields That Depend Only on x
Text solution
Fill each vertical columnBecause y does not appear in dxdy=x, every point in a vertical column has the exact same slope all the way up and down.
At x=0:dxdyAt x=1:dxdyAt x=2:dxdy=0=1=2
Connect the dashes into the family of curvesFollowing the dashes from left to right traces a vertical stack of parabolas, and starting at (0,1) picks out the single parabola passing through that point.
dxdy=x⟹y=21x2+vertical shiftC
3
Drawing Slope Fields with Isoclines
Now let's bring y into the equation alongside x:
dxdy=x−y
Here, neither the vertical columns nor the horizontal rows have matching slopes. To draw this field quickly, we find the isoclines, the curves where every dash has the exact same slope.
Drawing Slope Fields with Isoclines
Text solution
Where the slope is 0Set dxdy=0 to find the line where every dash is completely flat.
x−y=0⟹isocline for slope 0y=x
Where the slope is 1Set dxdy=1 to find the line where every dash tilts up at slope 1, pointing right along the line itself.
x−y=1⟹isocline for slope 1y=x−1
Where the slope is −1Set dxdy=−1 to find the line where every dash tilts down at slope −1.
x−y=−1⟹isocline for slope −1y=x+1
For dxdy=x−y, every point on the diagonal line y=x−m has the exact same dash slope m. The dashes are completely flat along y=x and point right along the line itself at y=x−1.
Every point on a diagonal line shares the same slope, and on just one diagonal the dashes point right along the line itself.
4
Tracing Solution Curves and Asymptotes
Once we have the slope field for dxdy=x−y, we can trace the solution curve from any starting point (x0,y0) and see where the dashes guide it as x grows.
Tracing Solution Curves and Asymptotes
Text solution
Straight-line solutionBecause the isocline y=x−1 is a line of slope 1 whose dashes also have slope 1, starting on this line guides the curve straight along it forever.
dxdy=x−(x−1)=1
Local minimum along y=xStarting at (−1,2) above y=x, the curve falls while x−y<0, flattens out at a local minimum right where it crosses the zero-slope line y=x, and then rises once x−y>0.
Along y=x:dxdy=x−x=0
Diagonal asymptote along y=x−1As x increases, curves starting either above or below y=x−1 bend toward slope 1 and get pulled closer and closer to y=x−1 without ever touching it.
y=x−1+→0 as x→∞Ce−x
Curves starting above y=x flatten out at a local minimum right as they cross y=x, and all curves bend toward the straight-line solution y=x−1 as x grows. A curve that starts off y=x−1 never touches or crosses it, because for C=0 the gap Ce−x between the curve and the line is never zero.
Every curve above the straight-line solution hits a flat minimum right where it crosses the upper diagonal line, and every curve gets closer and closer to that straight-line solution as you move right.
5
Equilibrium Solutions and Stability
Now consider an equation that depends only on y, with no x at all:
dxdy=y(2−y)
Here we want to find the equilibrium solutions, which are the flat horizontal lines that are constant solutions to the equation, and see whether nearby curves get pulled into them or pushed away.
Equilibrium Solutions and Stability
Text solution
Find the equilibrium solutionsSet dxdy=0 to find the horizontal rows where every dash is flat all the way across.
y(2−y)=0⟹equilibrium solutionsy=0 and y=2
Test the sign in each horizontal bandPick one test value of y in each band to see whether the dashes tilt up or down.
At y=−1:dxdyAt y=1:dxdyAt y=3:dxdy=−3<0=+1>0=−3<0
Classify each equilibriumBecause dashes on both sides of y=2 point toward y=2 while dashes on both sides of y=0 point away from y=0, curves move toward 2 and move away from 0.
stable equilibriumy=2unstable equilibriumy=0
Starting even slightly off y=0 sends the curve away from 0, while curves on both sides of y=2 get pulled into y=2. And because the slope depends only on y, moving the starting point horizontally only shifts the curve left or right.
Nudging off the bottom flat line sends the curve away, nudging off the top one pulls it back in, and moving sideways only slides the same curve left or right.
6
Matching Equations to Slope Fields
Putting these patterns together lets us match differential equations to their slope fields in seconds without plotting a grid of points.
Matching Equations to Slope Fields
Text solution
Check whether the equation has only x or only yAn equation with only x has identical vertical columns, and an equation with only y has identical horizontal rows.
dxdy=x−1dxdy=1−y⟹Field B (flat column at x=1)⟹Field D (flat row at y=1)
Find where the slope is zeroFor the equations with both x and y, set dxdy=0 to see where the flat dashes must be.
dxdy=xy=0dxdy=x+y=0⟹x=0 or y=0 (Field A)⟹y=−x (Field C)
Verify with one test pointCheck the sign of the slope at (−2,1) in the second quadrant to confirm which way the dashes tilt.
At (−2,1):dxdy=(−2)(1)=−2<0 (tilts down in Field A)
Key concepts
Before plugging in points to draw or match a slope field, look at which variables appear on the right-hand side of dxdy:
Only x appears
(such as dxdy=x−1): You don't need isoclines or a slope field to find the curves. You can integrate directly, and on the grid every vertical column has identical dashes.
Only y appears
(such as dxdy=y(2−y)): Every horizontal row has identical dashes. Set dxdy=0 to find the flat horizontal equilibrium solutions (y=0 and y=2), then check the sign of dxdy in the bands between them: slopes pointing in from both sides mean a stable equilibrium (y=2), while slopes pointing away mean an unstable equilibrium (y=0).
Both x and y appear
(such as dxdy=x−y): Set dxdy=m to find the isocline where all dashes have slope m. Always start with m=0 (x−y=0⟹y=x) to find the flat dashes where solution curves can have local minimums or maximums. If an isocline for slope m is itself a straight line of slope m (y=x−1 for m=1), the dashes point right along the line, making it an exact straight-line solution that other curves never cross (for dxdy=x−y, other curves also approach it as an asymptote as x grows).
7
Practice
1
For the differential equation dxdy=2x+y−1, find the slope of the dash at (−1,4),(0,1), and (1,1), and find the equation of the line along which all dashes in the slope field are horizontal.
After plugging each (x,y) pair into 2x+y−1, ask what value dxdy must have wherever dashes are horizontal.
Plugging in each point gives:
At (−1,4):dxdyAt (0,1):dxdyAt (1,1):dxdy=2(−1)+4−1=1=2(0)+1−1=0=2(1)+1−1=2
To find where all dashes are horizontal, set the slope dxdy=0. Be careful not to plug in y=0, which only finds the x-intercept and gives x=21:
2x+y−1=0⟹y=−2x+1
The slopes are 1 at (−1,4),0 at (0,1), and 2 at (1,1), and all dashes are horizontal along the line y=−2x+1.
2
A slope field has slopes that change across both vertical columns and horizontal rows, has horizontal dashes along both the x-axis (y=0) and the vertical line x=2, and has upward-tilting dashes in the region where x>2 and y<0. Which equation matches this field: (A) dxdy=x−2, (B) dxdy=y(x−2), (C) dxdy=−y(x−2), or (D) dxdy=x+y−2?
First check which equations equal 0 along the entire line y=0 and along the entire line x=2, then test one point in the region where x>2 and y<0.
Because the slopes change across both columns and rows, both x and y must appear in the equation (ruling out A). Setting dxdy=0 must give the two lines y=0 and x=2, which needs the factored form y(x−2)=0 rather than x+y−2=0 (ruling out D). Now test (3,−1) in the region x>2 and y<0. Don't forget that y is negative here, or you will pick (B), which gives (−1)(3−2)=−1 instead of a positive slope:
At (3,−1):dxdy=−(−1)(3−2)=+1>0
The matching equation is (C) dxdy=−y(x−2).
3
For the differential equation dxdy=(y−1)(y−4), find all equilibrium solutions, classify each as stable or unstable, and find what value y(x) approaches as x→∞ if y(0)=2 and if y(0)=0.
Set dxdy=0 to find the horizontal equilibrium lines, then test one y-value in each of the three horizontal bands they create.
Setting (y−1)(y−4)=0 gives the equilibrium solutions y=1 and y=4. Testing the three horizontal bands:
For y<1 (test y=0): (0−1)(0−4)=+4>0 (Watch out: both factors are negative when y<1, so their product is positive. Missing the double negative flips the sign to −4 and makes the y(0)=0 curve go down toward −∞.)
For 1<y<4 (test y=2): (2−1)(2−4)=−2<0
For y>4 (test y=5): (5−1)(5−4)=+4>0 Because curves rise for y<1 and fall for 1<y<4, curves on both sides get pulled into y=1, while curves on both sides of y=4 move away from it. The equilibrium y=1 is stable, y=4 is unstable, and both y(0)=2 and y(0)=0 approach 1.
4
A solution curve y(x) to dxdy=x2−y passes through the point (2,4). Does the solution curve have a local minimum, a local maximum, or neither at (2,4)? Justify your answer using the slope field.
After checking that the slope is 0 at (2,4), check the sign of x2−y along the flat path just to the left and just to the right of x=2.
At (2,4), the curve crosses the zero-isocline y=x2, so the slope is:
dxdy=22−4=0
Because the curve is flat at (2,4),y stays near 4 on either side of x=2. Just to the left of x=2 (where x<2 and y≈4), x2<4 so dxdy=x2−y<0 and the dashes tilt downward; just to the right of x=2 (where x>2 and y≈4), x2>4 so dxdy=x2−y>0 and the dashes tilt upward (be careful not to confuse the upward curve of the parabola y=x2 with the sign of x2−y, which would swap the signs and give a local maximum). Because the curve goes from falling to flat to rising, it has a local minimum at (2,4).
5
For the differential equation dxdy=2x−y, find the exact straight-line solution by finding which isocline has dashes pointing directly along itself, then describe the path of the solution curve starting at (−1,1) as x increases.
Write the isocline for slope m as y=2x−m, and look at the slope of that line to see what value m must equal.
Setting dxdy=m gives the isocline 2x−y=m, or:
y=2x−m
Every isocline is a straight line of slope 2. For the dashes on the line to point directly along the line itself, the dash slope m must match the line slope 2. Don't set m=0 and call the zero-isocline y=2x the straight-line solution, because along y=2x the dashes are flat (m=0) while the line has slope 2. Setting m=2 gives the straight-line solution y=2x−2. Starting at (−1,1), where the slope is 2(−1)−1=−3, the curve goes steeply downward, flattens out at a local minimum as it crosses the zero-isocline y=2x, and then rises while approaching y=2x−2 from above as a diagonal asymptote.