It’s impossible to find explicit formulas for solutions of some differential equations. Even if there are such formulas, they may be so complicated that they’re useless. In this case we may resort to graphical or numerical methods to get some idea of how the solutions of the given equation behave.
In Section 2.3 we’ll take up the question of existence of solutions of a first order equation
y0 D f .x; y/: (1.3.1)
In this section we’ll simply assume that (1.3.1) has solutions and discuss a graphical method for ap-proximating them. In Chapter 3 we discuss numerical methods for obtaining approximate solutions of (1.3.1).
Recall that a solution of (1.3.1) is a function yD y.x/ such that y0.x/D f .x; y.x//
for all values of x in some interval, and an integral curve is either the graph of a solution or is made up of segments that are graphs of solutions. Therefore, not being able to solve (1.3.1) is equivalent to not knowing the equations of integral curves of (1.3.1). However, it’s easy to calculate the slopes of these curves. To be specific, the slope of an integral curve of (1.3.1) through a given point .x0; y0/is given by the number f .x0; y0/. This is the basis ofthe method of direction fields.
If f is defined on a set R, we can construct adirection field for (1.3.1) in R by drawing a short line segment through each point .x; y/ in R with slope f .x; y/. Of course, as a practical matter, we can’t actually draw line segments througheverypoint in R; rather, we must select a finite set of points in R.
For example, suppose f is defined on the closed rectangular region RW fa x b; c y d g:
Let
aD x0< x1< < xmD b be equally spaced points in Œa; b and
cD y0< y1< < ynD d be equally spaced points in Œc; d . We say that the points
.xi; yj/; 0 i m; 0 j n;
form arectangular grid(Figure1.3.1). Through each point in the grid we draw a short line segment with slope f .xi; yj/. The result is an approximation to a direction field for (1.3.1) in R. If the grid points are sufficiently numerous and close together, we can draw approximate integral curves of (1.3.1) by drawing curves through points in the grid tangent to the line segments associated with the points in the grid.
Section 1.3Direction Fields for First Order Equations 17
Unfortunately, approximating a direction field and graphing integral curves in this way is too tedious to be done effectively by hand. However, there is software for doing this. As you’ll see, the combina-tion of direccombina-tion fields and integral curves gives useful insights into the behavior of the solucombina-tions of the differential equation even if we can’t obtain exact solutions.
We’ll study numerical methods for solving a single first order equation (1.3.1) in Chapter 3. These methods can be used to plot solution curves of (1.3.1) in a rectangular region Riff is continuous onR.
Figures1.3.2,1.3.3, and1.3.4show direction fields and solution curves for the differential equations y0D x2 y2
1C x2C y2; y0D 1 C xy2; and y0 D x y 1C x2; which are all of the form (1.3.1) with f continuous for all .x; y/.
−4 −3 −2 −1 0 1 2 3 4
Figure 1.3.2 A direction field and integral curves for y D x2 y2
Figure 1.3.3 A direction field and integral curves for y0D 1 C xy2
−1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1
−1
−0.8
−0.6
−0.4
−0.2 0 0.2 0.4 0.6 0.8 1
y
x
Figure 1.3.4 A direction and integral curves for y0D x y 1C x2
The methods of Chapter 3 won’t work for the equation
y0D x=y (1.3.2)
if R contains part of the x-axis, since f .x; y/D x=y is undefined when y D 0. Similarly, they won’t work for the equation
y0D x2
1 x2 y2 (1.3.3)
if R contains any part of the unit circle x2C y2 D 1, because the right side of (1.3.3) is undefined if x2C y2D 1. However, (1.3.2) and (1.3.3) can written as
y0 D A.x; y/
B.x; y/ (1.3.4)
where A and B are continuous on any rectangle R. Because of this, some differential equation software is based on numerically solving pairs of equations of the form
dx
dt D B.x; y/; dy
dt D A.x; y/ (1.3.5)
where x and y are regarded as functions of a parameter t. If x D x.t/ and y D y.t/ satisfy these equations, then
y0 D dy dx D dy
dt
dx
dt D A.x; y/
B.x; y/; so yD y.x/ satisfies (1.3.4).
Section 1.3Direction Fields for First Order Equations 19 Eqns. (1.3.2) and (1.3.3) can be reformulated as in (1.3.4) with
dx
dt D y; dy dt D x
and dx
dt D 1 x2 y2; dy dt D x2;
respectively. Even if f is continuous and otherwise “nice” throughout R, your software may require you to reformulate the equation y0D f .x; y/ as
dx
dt D 1; dy
dt D f .x; y/;
which is of the form (1.3.5) with A.x; y/D f .x; y/ and B.x; y/ D 1.
Figure1.3.5shows a direction field and some integral curves for (1.3.2). As we saw in Example1.2.1 and will verify again in Section 2.2, the integral curves of (1.3.2) are circles centered at the origin.
x y
Figure 1.3.5 A direction field and integral curves for y0D x y
Figure1.3.6shows a direction field and some integral curves for (1.3.3). The integral curves near the top and bottom are solution curves. However, the integral curves near the middle are more complicated.
For example, Figure1.3.7shows the integral curve through the origin. The vertices of the dashed rectangle are on the circle x2C y2 D 1 (a :846, b :533), where all integral curves of (1.3.3) have infinite slope. There are three solution curves of (1.3.3) on the integral curve in the figure: the segment above the level yD b is the graph of a solution on . 1; a/, the segment below the level y D b is the graph of a solution on . a;1/, and the segment between these two levels is the graph of a solution on . a; a/.
USING TECHNOLOGY
As you study from this book, you’ll often be asked to use computer software and graphics. Exercises with this intent are marked as C (computer or calculator required), C/G (computer and/or graphics required), or L (laboratory work requiring software and/or graphics). Often you may not completely understand how the software does what it does. This is similar to the situation most people are in when they drive automobiles or watch television, and it doesn’t decrease the value of using modern technology as an aid to learning. Just be careful that you use the technology as a supplement to thought rather than a substitute for it.
y
x
Figure 1.3.6 A direction field and integral curves for y0 D x2
1 x2 y2
x y
(a,−b) (a,b) (−a,b)
(−a,−b)
1 2
−1
−2
1 2
−1
−2
Figure 1.3.7
1.3 Exercises
In Exercises1–11a direction field is drawn for the given equation. Sketch some integral curves.
Section 1.3Direction Fields for First Order Equations 21
−1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1
−1
−0.8
−0.6
−0.4
−0.2 0 0.2 0.4 0.6 0.8 1
x y
1 A direction field for y0D x y
0 0.5 1 1.5 2 2.5 3 3.5 4
−2
−1.5
−1
−0.5 0 0.5 1 1.5 2
x y
2 A direction field for y0D 2xy2 1C x2
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
−1
−0.8
−0.6
−0.4
−0.2 0 0.2 0.4 0.6 0.8 1
x y
3 A direction field for y0D x2.1C y2/
Section 1.3Direction Fields for First Order Equations 23
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
−1
−0.8
−0.6
−0.4
−0.2 0 0.2 0.4 0.6 0.8 1
x y
4 A direction field for y0D 1 1C x2C y2
0 0.5 1 1.5 2 2.5 3
−1
−0.8
−0.6
−0.4
−0.2 0 0.2 0.4 0.6 0.8 1
x y
5 A direction field for y0D .2xy2C y3/
−1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1
−1
−0.8
−0.6
−0.4
−0.2 0 0.2 0.4 0.6 0.8 1
x y
6 A direction field for y0 D .x2C y2/1=2
0 1 2 3 4 5 6 7
−3
−2
−1 0 1 2 3
x y
7 A direction field for y0D sin xy
Section 1.3Direction Fields for First Order Equations 25
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
x y
8 A direction field for y0D exy
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
−1
−0.8
−0.6
−0.4
−0.2 0 0.2 0.4 0.6 0.8 1
x y
9 A direction field for y0D .x y2/.x2 y/
1 1.2 1.4 1.6 1.8 2 2.2 2.4 2.6 2.8 3
−1
−0.8
−0.6
−0.4
−0.2 0 0.2 0.4 0.6 0.8 1
x y
10 A direction field for y0D x3y2C xy3
0 0.5 1 1.5 2 2.5 3 3.5 4
0 0.5 1 1.5 2 2.5 3 3.5 4
x y
11 A direction field for y0D sin.x 2y/
Section 1.3Direction Fields for First Order Equations 27 In Exercises12-22construct a direction field and plot some integral curves in the indicated rectangular region.
12. C/G y0D y.y 1/I f 1 x 2; 2 y 2g 13. C/G y0D 2 3xyI f 1 x 4; 4 y 4g 14. C/G y0D xy.y 1/I f 2 x 2; 4 y 4g 15. C/G y0D 3x C yI f 2 x 2; 0 y 4g 16. C/G y0D y x3I f 2 x 2; 2 y 2g 17. C/G y0D 1 x2 y2I f 2 x 2; 2 y 2g 18. C/G y0D x.y2 1/I f 3 x 3; 3 y 2g 19. C/G y0D x
y.y2 1/I f 2 x 2; 2 y 2g 20. C/G y0D xy2
y 1I f 2 x 2; 1 y 4g 21. C/G y0D x.y2 1/
y I f 1 x 1; 2 y 2g 22. C/G y0D x2C y2
1 x2 y2I f 2 x 2; 2 y 2g
23. L By suitably renaming the constants and dependent variables in the equations
T0D k.T Tm/ .A/
and
G0D G C r .B/
discussed in Section 1.2 in connection with Newton’s law of cooling and absorption of glucose in the body, we can write both as
y0 D ay C b; .C/
where a is a positive constant and b is an arbitrary constant. Thus, (A) is of the form (C) with y D T , a D k, and b D kTm, and (B) is of the form (C) with yD G, a D , and b D r. We’ll encounter equations of the form (C) in many other applications in Chapter 2.
Choose a positive a and an arbitrary b. Construct a direction field and plot some integral curves for (C) in a rectangular region of the form
f0 t T; c y d g
of the ty-plane. Vary T , c, and d until you discover a common property of all the solutions of (C).
Repeat this experiment with various choices of a and b until you can state this property precisely in terms of a and b.
24. L By suitably renaming the constants and dependent variables in the equations
P0D aP .1 ˛P / .A/
and
I0D rI.S I / .B/
discussed in Section 1.1 in connection with Verhulst’s population model and the spread of an epidemic, we can write both in the form
y0D ay by2; .C/
where a and b are positive constants. Thus, (A) is of the form (C) with y D P , a D a, and bD a˛, and (B) is of the form (C) with y D I , a D rS, and b D r. In Chapter 2 we’ll encounter equations of the form (C) in other applications..
(a) Choose positive numbers a and b. Construct a direction field and plot some integral curves for (C) in a rectangular region of the form
f0 t T; 0 y d g
of the ty-plane. Vary T and d until you discover a common property of all solutions of (C) with y.0/ > 0. Repeat this experiment with various choices of a and b until you can state this property precisely in terms of a and b.
(b) Choose positive numbers a and b. Construct a direction field and plot some integral curves for (C) in a rectangular region of the form
f0 t T; c y 0g
of the ty-plane. Vary a, b, T and c until you discover a common property of all solutions of (C) with y.0/ < 0.
You can verify your results later by doing Exercise 2.2.27.