Professional Documents
Culture Documents
dy
= f (x, y)
dx
for several points (x, y) represented by a vector having slope f (x, y) based at
(x, y), usually plotted with a fixed change in x (or so that all vectors have a
uniform length).
dy
Example 2.17 For dx = 21 (x2 y), plot the associated vectors at the points:
(1, 2), (1, 3), (2, 2), (2, 3), where the vectors are pictured having a change in x
of 1 (x = 1).
Solution:
dy
(x, y) dx
(1, 2) 21
(1, 3) 1
(2, 2) 1
(2, 3) 12
The vector at the point (1, 2), is to have slope 21 , and it is to have x =
dy
1. Since y = dx x the vector will be drawn from (1, 2) to (1 + x, 2 + y)
so it will have terminal point at (1 + 1, 2 0.5) = (2, 1.5). Plotting all four
vectors, we obtain Figure (2.1).
In general, one would plot many points to get a better idea of the behavior
of the differential equation, however it is also clear that one cannot plot too
many points or the resulting plot will be a cluttered mess. In Figure 2.2, we
44 CHAPTER 2. FIRST ORDER ODES
dy
Figure 2.1: A slope field plot for four points of dx
= 12 (x2 y).
2.7. GEOMETRIC INTERPRETATION, SLOPE FIELDS, AND EULERS METHOD45
dy
Figure 2.2: A slope field plot of dx
= 21 (x2 y).
46 CHAPTER 2. FIRST ORDER ODES
dy
show a slope field plot for dx = 21 (x2 y) where all vectors are plotted with
the same length.
Figure 2.2 gives us a good idea how the solutions of this differential equa-
tion will behave. Geometrically, the graph of a solution to a differential
equation is always tangent to vectors on the slope field. (Informally, if the
slope field were like the wind, the graph of a solution would be the path a
particle would take when blown by the wind).
We can use this idea to propose a method to approximate solutions to
first order differential equations, namely at the point (x0 , y0 ) we draw a
dy
line segment with slope f (x0 , y0 ) = dx . We know that this line is the
(x0 ,y0 )
tangent line to the actual solution through (x0 , y0 ). Recall from calculus that
the tangent line approximation of y(x0 + x) is
dy
y(x0 + x) y(x0 ) + x
dx
(x0 ,y0 )
which is valid for x small. This formula comes from the definition of the
derivative
dy y(x0 + x) y(x0 )
= lim .
dx x
x0
(x0 ,y0 )
y1 = y0 + xf (x0 , y0 )
y2 = y1 + f (x1 , y1 )x
yj+1 = yj + f (xj , yj )x
.
Then the graph obtained by line segments that connect the sequence of points
(x0 , y0 ), (x1 , y1 ), (x2 , y2 ), ..., (xn , yn ) gives an approximation to the graph of
the actual solution with initial condition y(x0 ) = y0 .
dy
Figure 2.3: A slope field plot of dx = y y 2 together with a plot
thick black arrows that with initial and terminal points given by
the points generated in Example (2.18).
50 CHAPTER 2. FIRST ORDER ODES
dy xy + 1
=
dx x + 2y
2.7. GEOMETRIC INTERPRETATION, SLOPE FIELDS, AND EULERS METHOD51
at the points (1, 1), (1, 2), (2, 2), (2, 1). Make each vector have a change
in x of 1.