Docsity

Differential Equations and Slope Fields - Lecture Notes | MATH 160, Papers of Calculus

Toggle sidebar
bg1
22. DIFFERENTIAL EQUATIONS AND SLOPE FIELDS
Often a situation occurs where we know something about a rate, but the original function may not be explicitly known. For
example, we have seen how to antidifferentiate the equation dQ
t
dt
and solve for
Q
to find 2
Q t C
.This is a simple
case. It could be that the rate might depend on
Q
;the antidifferentiation is not so straightforward then. Equations such as
these that involve derivatives are called differential equations.
As in the above example,
t
is most often the independent variable, as most rates are expressed in terms of time. The
dependent variable is often a quantity, so
t
and
Q
are commonly the variables of differential equations. It is also quite
common to use the standard
x
and
variables, with a prime denoting a derivative. For example, the above differential
equation could also be written more succinctly
'
y x
.
A word about solving differential equations
In some cases, there are analytic solutions to differential equations, such as the example above. The current TI Eighty
series calculators only solve equations numerically. This means that they cannot tell you the solution as a formula, but
they can give you a table or a graph of the solution. This means that the calculator is most useful in checking to see if your
analytic solution agrees with the numerically derived solution graph or table. The numerically derived solution can also be
helpful in situations where you are doing guess-and-check to find an analytic solution. Looking at a graph will help you
guess the type of solution function.
General vs. particular solutions
Also, in the above example, the analytic solution was written with the constant C. This means that there is a whole set of
solutions which differ by a constant. To graph this whole set would fill the screen. A graph to show local representative
behavior, called slope lines, is called a slope field graph. The main purpose of this chapter is to introduce this tool.
However, we often know specific conditions that determine a single solution, called a particular solution. Particular
solutions are graphed as curves. Graphing these solution curves is the topic of the next chapter, although we show an
example in this chapter. It is common to draw a slope field graph to show the general solution and then superimpose a
particular solution curve starting at some initial value.
Discrete vs. continuous representation
Some calculators, such as the TI-85 and TI-86, are blessed with a differential equation mode, where the differential
equations can be directly entered and graphed. The TI- 82 and TI-83 do not have such a mode, but their sequence mode
(MODE Seq ) allows for entering and graphing difference equations, a kind of discrete differential equation. These two
approaches, the discrete and continuous, both offer insight into the topic. However, it must be noted that using the TI-83
and TI-82 for differential equations is like using a car as a moving van.
The TI-83 and TI-82 sequence models
To use the TI-83 sequence mode, press MODE and set the fourth line to Seq.(Don't forget to press ENTER to change the
setting.) Now pressing the Y= key will not show
functions equations, rather the three sequence functions u, v and w.
(The TI-82 is slightly different and this will be explained in a separate section below.) The independent variable now is n
and the
, , ,
X T n
key will paste an
n
instead of an
X
when pressed.
Tip: The Seq mode (note the capitals) should be distinguished from the Seq command; which has been used in earlier
chapters.
A simple sequence for modeling folding Some situations are modeled clearly and efficiently by defining a sequence
recursively, relating a tenn to its predecessor. Recall from Chapter 1 the folded paper that reached the moon; we used the
pf3
pf4
pf5

Partial preview of the text

Download Differential Equations and Slope Fields - Lecture Notes | MATH 160 and more Papers Calculus in PDF only on Docsity!

22. DIFFERENTIAL EQUATIONS AND SLOPE FIELDS

Often a situation occurs where we know something about a rate, but the original function may not be explicitly known. For

example, we have seen how to antidifferentiate the equation

dQ

t

dt

 and solve for Q to find

2

Q  t  C .This is a simple

case. It could be that the rate might depend on Q ; the antidifferentiation is not so straightforward then. Equations such as

these that involve derivatives are called differential equations.

As in the above example, t is most often the independent variable, as most rates are expressed in terms of time. The

dependent variable is often a quantity, so t and Q are commonly the variables of differential equations. It is also quite

common to use the standard x and y variables, with a prime denoting a derivative. For example, the above differential

equation could also be written more succinctly y ' x.

A word about solving differential equations

In some cases, there are analytic solutions to differential equations, such as the example above. The current TI Eighty series calculators only solve equations numerically. This means that they cannot tell you the solution as a formula, but they can give you a table or a graph of the solution. This means that the calculator is most useful in checking to see if your analytic solution agrees with the numerically derived solution graph or table. The numerically derived solution can also be helpful in situations where you are doing guess-and-check to find an analytic solution. Looking at a graph will help you guess the type of solution function.

General vs. particular solutions

Also, in the above example, the analytic solution was written with the constant C. This means that there is a whole set of solutions which differ by a constant. To graph this whole set would fill the screen. A graph to show local representative behavior, called slope lines, is called a slope field graph. The main purpose of this chapter is to introduce this tool.

However, we often know specific conditions that determine a single solution, called a particular solution. Particular solutions are graphed as curves. Graphing these solution curves is the topic of the next chapter, although we show an example in this chapter. It is common to draw a slope field graph to show the general solution and then superimpose a particular solution curve starting at some initial value.

Discrete vs. continuous representation

Some calculators, such as the TI-85 and TI-86 , are blessed with a differential equation mode, where the differential equations can be directly entered and graphed. The TI-82 and TI-83 do not have such a mode, but their sequence mode ( MODE Seq ) allows for entering and graphing difference equations, a kind of discrete differential equation. These two approaches, the discrete and continuous, both offer insight into the topic. However, it must be noted that using the TI- and TI-82 for differential equations is like using a car as a moving van.

The TI-83 and TI-82 sequence models

To use the TI-83 sequence mode, press MODE and set the fourth line to Seq. (Don't forget to press ENTER to change the

setting.) Now pressing the Y= key will not show y functions equations, rather the three sequence functions u, v and w.

(The TI-82 is slightly different and this will be explained in a separate section below.) The independent variable now is n

and the X T , , , n key will paste an n instead of an X when pressed.

Tip: The Seq mode (note the capitals) should be distinguished from the Seq command; which has been used in earlier chapters.

A simple sequence for modeling folding Some situations are modeled clearly and efficiently by defining a sequence recursively, relating a tenn to its predecessor. Recall from Chapter 1 the folded paper that reached the moon; we used the

function y  2 x. This is a continuous function that we figured out would do the job. But in fact, folding is discrete. If u n ( )

is the thickness (in sheets) after n folds, then

u n ( ) 2 * u n ( 1) where u (0)  1

This relationship is very clear: double the previous value (after starting at 1). In the sequence mode, this is exactly how we

enter the function and its initial value. To enter u , use the 2nd_u key above the 7 key. Like Y functions, the sequence

values can be displayed using a table. See Figure 22.1.

Figure 22.1 Entering the doubling function in Seq mode and using TABLE to view values.

..Tip: You can distinguish the sequence/functions u, v, w because they are defined using lower case letters. They are not the same as the upper case U, V, W which are variables.

TI-82 sequence mode

The TI-82 has a similar but slightly different means of defining a sequence. Use the same sequence of keystrokes given

above to enter the sequence mode. The first difference is that n is not included on the X T , , , n key, so you will use

2 nd _ u found above the 9 key instead, along with 2 nd _ un  1 and 2 nd _ vn  1 above the 7 and 8 keys. The term un  1 is a

single keystroke and is not constructed using four individual keystrokes as it is on the TI-83. The U Startn is set in the

WINDOW menu. The TI-82 has only two sequence functions, u and v. We show the TI-82 setup for the doubling

function in Figure 22.2.

Figure 22.2 TI-82 screens for entering the doubling function in Se", mode and using TABLE to view values.

The discrete learning curve using sequence mode

One theory of learning is that the more you already know, the slower you will learn. Let y be the percentage of a task we

know. The learning rate is then y 'and we assume y '  100  y. The time unit for this rate is the standard five day work

week. The slowing of learning takes place immediately and continuously, but we will start by looking at a discrete model where we assume the same rate all day.

Consider a new employee who knows 0% of a task at time 0, Monday morning. She learns at the rate y ' (100 0)%

during the first day. A manager, not versed in learning theory, divides the training for the task into five equal parts. On Monday, the part of the task the employee learns is

y

 ^ 

At this rate, she would have the task entirely mastered in a week. But Tuesday, because she already knows 20% of the task, her learning will slow to

y ' 100% 20% 80%

Therefore, on Tuesday the part of the task she learns is an additional

y

 ^ 

In total, she has learned 20% + 16% = 36% by the end of Tuesday.

1

ClrDraw

FnOff

8 A

ClrDraw

FnOff

8 A

12 B

(Ymax Ymin) / A V

( max min) /

For( ,1, )

For( ,1, )

min ( 1) / 2

min ( 1) / 2

If abs( ) .6 : Then

X X B H

I A

J B

Y V I V V

X H I H H

Y M

Y M H S

Y M H Z

X H P

X H Q

Z S V

Y V Z

Y V S

Z Y M X

End

Line( , , , )

End

End

Q

S Y M X P

P S Q Z

Setting up before using SLOPFLD

Before using the SLOPFLD program to show slope lines of a differential equation of the form y '  F x y ( , ) , you must

place the F x y ( , )side of the equation in Y 1. This means that Y 1 will be an expression using the variables X and Y

(using ALPHA the latter).

Next, set what you hope is an appropriate window. Knowing an appropriate window ahead of time is not always possible

and you may need to use a trial-and error approach. Note, however, that a Y 1 function that includes the variable Y will not

graph properly if you press GRAPH. It is still the case that Y 1 functions can only have X as the variable for normal

graphing; the SLOPFLD program gets away with its graph by not using the GRAPH mode. Thus, you must use the SLOPFLD program to find a nice window; pressing the GRAPH key may result in an error message screen.

A typical setup and graph are shown in Figure 22.5.

About the Graphs Produced by PRGM SLOPFLD The program divides the screen into 8x12 = 96 little boxes and finds a

slope line through the middle of each box. The number of slope lines can be adjusted by resetting the variables A and

B. The 0.3 value that occurs several times is used to shrink the line length within each box. This prevents lines from

reaching into neighboring boxes. If you prefer longer lines, change the 0.3 multipliers to 0.5 and use if abs( Z  S )  U in

the program line that checks for vertical slope lines.

Slope fields for several differential equations

We now show several examples of setting up and graphing slope lines for various differential equations.

Slope field for y '  100  y

We first graph the slope lines of learning function, 100

dy

y

dx

 . Notice how in Figure 22.5 the slope field shows us that

the values converge to 100 as X gets larger, this is independent of where X starts. ( X is in weeks.) A curve starting

at the origin would be the one shown in Figure 22.4.

Figure 22.5 Slope field for the learning function.

Slope field for y ' y

If you follow a set of slope lines that pass through (0,1) in Figure 22.6, then you trace out the exponential function

x

y  e.

Figure 22.6 Slope curves whose solution is y = ex + C.

Slope field for y '  2 x with a particular solution

The general solution of 2

2 is

dy

x y x C

dx

  . To draw a particular solution, we can overlay the slope field graph with a

graph of y fnInt( Y 1 , X , , X ), which is the particular solution containing (0, 0). This is a little tricky. Consider the

following important notes:

 You can only do this if Y is not involved in the equation.

 To draw a slope line graph, you must use the 2nd_DRAW 6:ClrDraw command.

 The graph cannot be traced.

 The slope line graph will remain on the graph screen, so you can use DrawF to overlay additional slope lines.

 Use 2nd_DRAW 1: ClrDraw to erase previous particular solution graphs.

Figure 22.7 shows a typical example in a ZDecimal window.

Figure 22.7 Slope curves for the solution y = x2 + C with a particular solution drawn in.