In the previous two sections, we focused on finding solutions to differential equations. However, most differential equations cannot be solved explicitly.

Slides:



Advertisements
Similar presentations
Ch 2.7: Numerical Approximations: Euler’s Method
Advertisements

Exponential functions are positive: bx > 0 for all x.
Section 7.2: Direction Fields and Euler’s Methods Practice HW from Stewart Textbook (not to hand in) p. 511 # 1-13, odd.
1 Functions and Applications
Copyright © Cengage Learning. All rights reserved.
The Derivative as a Function
INTEGRALS 5. INTEGRALS We saw in Section 5.1 that a limit of the form arises when we compute an area.  We also saw that it arises when we try to find.
FURTHER APPLICATIONS OF INTEGRATION 9. In chapter 6, we looked at some applications of integrals:  Areas  Volumes  Work  Average values.
Announcements Topics: Work On:
Section 8.3 Slope Fields; Euler’s Method.  Calculus,10/E by Howard Anton, Irl Bivens, and Stephen Davis Copyright © 2009 by John Wiley & Sons, Inc. All.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Prentice Hall Slide 6- 1.
Homework Homework Assignment #19 Read Section 9.3 Page 521, Exercises: 1 – 41(EOO) Quiz next time Rogawski Calculus Copyright © 2008 W. H. Freeman and.
Copyright © Cengage Learning. All rights reserved. 5 Integrals.
Copyright © Cengage Learning. All rights reserved.
APPLICATIONS OF DIFFERENTIATION 4. In Sections 2.2 and 2.4, we investigated infinite limits and vertical asymptotes.  There, we let x approach a number.
8 TECHNIQUES OF INTEGRATION. There are two situations in which it is impossible to find the exact value of a definite integral. TECHNIQUES OF INTEGRATION.
Differential Equations
Copyright © Cengage Learning. All rights reserved.
A Numerical Technique for Building a Solution to a DE or system of DE’s.
Boyce/DiPrima 9 th ed, Ch 2.7: Numerical Approximations: Euler’s Method Elementary Differential Equations and Boundary Value Problems, 9 th edition, by.
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
Integrals 5.
Ch 8.3: The Runge-Kutta Method
1 Preliminaries Precalculus Review I Precalculus Review II
0.1 Functions and Their Graphs. Real Numbers A set is a collection of objects. The real numbers represent the set of numbers that can be represented as.
DERIVATIVES The Derivative as a Function DERIVATIVES In this section, we will learn about: The derivative of a function f.
DERIVATIVES The Derivative as a Function DERIVATIVES In this section, we will learn about: The derivative of a function f.
LIMITS AND DERIVATIVES
Math 3120 Differential Equations with Boundary Value Problems Chapter 2: First-Order Differential Equations Section 2-6: A Numerical Method.
APPLICATIONS OF DIFFERENTIATION 4. Many applications of calculus depend on our ability to deduce facts about a function f from information concerning.
LIMITS AND DERIVATIVES 2. In Sections 2.2 and 2.4, we investigated infinite limits and vertical asymptotes.  There, we let x approach a number.  The.
Math 3120 Differential Equations with Boundary Value Problems
In Sections 2.2 and 2.4, we investigated infinite limits and vertical asymptotes.  There, we let x approach a number.  The result was that the values.
INTEGRALS 5. INTEGRALS In Chapter 2, we used the tangent and velocity problems to introduce the derivative—the central idea in differential calculus.
Integrals  In Chapter 2, we used the tangent and velocity problems to introduce the derivative—the central idea in differential calculus.  In much the.
Copyright © Cengage Learning. All rights reserved. 4 Integrals.
Slope Fields Objective: To find graphs and equations of functions by the use of slope fields.
Differential Equations 7. Direction Fields and Euler's Method 7.2.
Boyce/DiPrima 9 th ed, Ch 2.7: Numerical Approximations: Euler’s Method Elementary Differential Equations and Boundary Value Problems, 9 th edition, by.
Slope Fields and Euler’s Method
Section 2.8 The Derivative as a Function Goals Goals View the derivative f ´(x) as a function of x View the derivative f ´(x) as a function of x Study.
Differential Equations Copyright © Cengage Learning. All rights reserved.
DIFFERENTIAL EQUATIONS 10. DIFFERENTIAL EQUATIONS Unfortunately, it’s impossible to solve most differential equations in the sense of obtaining an explicit.
CHAPTER 3 NUMERICAL METHODS
Differential Equations Chapter 1. A differential equation in x and y is an equation that involves x, y, and derivatives of y. A mathematical model often.
12 INFINITE SEQUENCES AND SERIES. In general, it is difficult to find the exact sum of a series.  We were able to accomplish this for geometric series.
Functions and Their Representations
Suppose we are given a differential equation and initial condition: Then we can approximate the solution to the differential equation by its linearization.
1 6.1 Slope Fields and Euler's Method Objective: Solve differential equations graphically and numerically.
Tangents.
In Chapters 6 and 8, we will see how to use the integral to solve problems concerning:  Volumes  Lengths of curves  Population predictions  Cardiac.
Ch 8.2: Improvements on the Euler Method Consider the initial value problem y' = f (t, y), y(t 0 ) = y 0, with solution  (t). For many problems, Euler’s.
INTEGRALS We saw in Section 5.1 that a limit of the form arises when we compute an area. We also saw that it arises when we try to find the distance traveled.
5 INTEGRALS.
Announcements Topics: -sections 6.4 (l’Hopital’s rule), 7.1 (differential equations), and 7.2 (antiderivatives) * Read these sections and study solved.
INTEGRALS 5. INTEGRALS In Chapter 3, we used the tangent and velocity problems to introduce the derivative—the central idea in differential calculus.
1.1 Basic Concepts. Modeling
Differential Equations
SLOPE FIELDS & EULER’S METHOD
SLOPE FIELDS & EULER’S METHOD
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Slope Fields; Euler’s Method
Solution of Equations by Iteration
Copyright © Cengage Learning. All rights reserved.
Isoclines and Direction Fields; Existence and Uniqueness
Slope Fields and Euler’s Method
Differential Equations
Direction Fields and Euler's Method
Presentation transcript:

In the previous two sections, we focused on finding solutions to differential equations. However, most differential equations cannot be solved explicitly. Fortunately, there are techniques for analyzing the solutions that do not rely on explicit formulas. In this section, we discuss the method of slope fields, which provides us with a good visual understanding of first-order equations. We also discuss Euler’s Method for finding numerical approximations to solutions. We use t as the independent variable and write for dy/dt. The notation often used for time derivatives in physics and engineering, was introduced by Isaac Newton. A first-order differential equation can then be written in the form where F (t, y) is a function of t and y. For example, dy/dt = -ty becomes

It is useful to think of this equation as a set of instructions that “tells a solution” which direction to go. Thus, a solution passing through a point (t, y) is “instructed” to continue in the direction of slope F (t, y). To visualize this set of instructions, we draw a slope field, which is an array of small segments of slope F (t, y) at points (t, y) lying on a rectangular grid in the plane. To illustrate, let’s return to the differential equation In this case, F (t, y) = −ty. According to Example 2 of Section 9.1, the general solution is

To sketch the slope field for , we draw small segments of slope −ty at an array of points (t, y) in the plane. The slope field allows us to visualize all of the solutions at a glance. Starting at any point, we can sketch a solution by drawing a curve that runs tangent to the slope segments at each point. The graph of a solution is also called an integral curve.

Using Isoclines Draw the slope field for and sketch the integral curves satisfying the initial conditions (a) y (0) = 1 and (b) y (1) = −2. Choose several values c and identify the curve F (t, y) = c, called the isocline of slope c. The isocline is the curve consisting of all points where the slope field has slope c. F (t, y) = y − t, so the isocline of fixed slope c has equation y − t = c, or y = t + c, which is a line. Consider the following values: c = 0: This isocline is y = t. We draw segments of slope c = 0 at points along the line y = t. c = 1: This isocline is y = t + 1. We draw segments of slope 1 at points along y = t + 1. c = 2: This isocline is y = t + 2. We draw segments of slope 2 at points along y = t + 2. c = −1: This isocline is y = t − 1. Slope Field

To sketch the solution satisfying y (0) = 1, begin at the point (t0, y0) = (0, 1) and draw the integral curve that follows the directions indicated by the slope field. Similarly, the graph of the solution satisfying y (1) = −2 is the integral curve obtained by starting at (t0, y0) = (1, −2) and moving along the slope field. Our last graph, shows several other solutions (integral curves). c Isoclines

GRAPHICAL INSIGHT Slope fields often let us see the asymptotic behavior of solutions (as t → ∞) at a glance. Figure 3(E) suggests that the asymptotic behavior depends on the initial value (the y-intercept): If y (0) > 1, then y (t) tends to ∞, and if y (0) < 1, then y (t) tends to −∞. We can check this using the general solution y (t) = 1 + t + Cet, where y (0) = 1 + C. If y (0) > 1, then C > 0 and y (t) tends to ∞, but if y (0) < 1, then C < 0 and y (t) tends to −∞. The solution y = 1 + t with initial condition y (0) = 1 is the straight line shown in Figure 3(D).

Newton’s Law of Cooling Revisited The temperature y (t) (°C) of an object placed in a refrigerator satisfies (t in minutes). Draw the slope field and describe the behavior of the solutions. Solution The function F (t, y) = −0.5(y − 4) depends only on y, so slopes of the segments in the slope field do not vary in the t-direction.

CONCEPTUAL INSIGHT Most first-order equations arising in applications have a uniqueness property: There is precisely one solution y(t) satisfying a given initial condition y (t0) = y0. Graphically, this means that precisely one integral curve (solution) passes through the point (t0, y0). Thus, when uniqueness holds, distinct integral curves never cross or overlap. Figure 5 shows the slope field of , where uniqueness fails. We can prove that once an integral curve touches the t-axis, it either remains on the t-axis or continues along the t-axis for a period of time before moving below the t-axis. Therefore, infinitely many integral curves pass through each point on the t-axis. However, the slope field does not show this clearly. This highlights again the need to analyze solutions rather than rely on visual impressions alone.

Euler’s Method Euler’s Method produces numerical approximations to the solution of a first-order initial value problem: We begin by choosing a small number h, called the time step, and consider the sequence of times spaced at intervals of size h: c c c c In general, tk = t0 + kh. Euler’s Method consists of computing a sequence of values y1, y2, y3,…, yn successively using the formula c c c c Starting with the initial value y0 = y (t0), we compute y1 = y0 + hF(t0, y0) , etc. The value yk is the Euler approximation to y (tk). We connect the points Pk = (tk, yk) by segments to obtain an approximation to the graph of y (t).

GRAPHICAL INSIGHT The values yk are defined so that the segment joining Pk−1 to Pk has slope Thus, in Euler’s method we move from Pk−1 to Pk by traveling in the direction specified by the slope field at Pk−1 for a time interval of length h.

Use Euler’s Method with time step h = 0 Use Euler’s Method with time step h = 0.2 and n = 4 steps to approximate the solution of Our initial value at t0 = 0 is y0 = 3. Since h = 0.2, the time values are t1 = 0.2, t2 = 0.4, t3 = 0.6, and t4 = 0.8. We use F (t, y) = y − t2 to calculate c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c

The figure shows the exact solution y (t) = 2 + 2t + t2 + et together with a plot of the points (tk, yk) for k = 0, 1, 2, 3, 4 connected by line segments.

CONCEPTUAL INSIGHT The time step h = 0 CONCEPTUAL INSIGHT The time step h = 0.1 gives a better approximation than h = 0.2. In general, the smaller the time step, the better the approximation. In fact, if we start at a point (a, y (a)) and use Euler’s Method to approximate (b, y (b)) using N steps with h = (b − a)/N, then the error is roughly proportional to 1/N (provided that F(t, y) is a well-behaved function). This is similar to the error size in the Nth left- and right-endpoint approximations to an integral. What this means, however, is that Euler’s Method is quite inefficient; to cut the error in half, it is necessary to double the number of steps, and to achieve n-digit accuracy requires roughly 10n steps. Fortunately, there are several methods that improve on Euler’s Method in much the same way as the Midpoint Rule and Simpson’s Rule improve on the endpoint approximations (see Exercises 22–27).

Let y (t) be the solution of (a) Use Euler’s Method with time step h = 0.1 to approximate y (0.5). (b) We will not be using a CAS! (a) When h = 0.1, yk is an approximation to y (0 + k (0.1)) = y (0.1k), so y5 is an approximation to y (0.5). It is convenient to organize calculations in the following table. Note that the value yk+1 computed in the last column of each line is used in the next line to continue the process. c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c Thus, Euler’s Method yields the approximation y (0.5) ≈ y5 ≈ 0.1.