Slope Fields and Euler’s Method

Slides:



Advertisements
Similar presentations
Section 7.2: Direction Fields and Euler’s Methods Practice HW from Stewart Textbook (not to hand in) p. 511 # 1-13, odd.
Advertisements

Ch 2.1: Linear Equations; Method of Integrating Factors
Copyright © Cengage Learning. All rights reserved. 5 Integrals.
In the previous two sections, we focused on finding solutions to differential equations. However, most differential equations cannot be solved explicitly.
M 112 Short Course in Calculus Chapter 2 – Rate of Change: The Derivative Sections 2.1 – Instantaneous Rate of Change V. J. Motto.
Slope Fields and Euler’s Method. When taking an antiderivative that is not dealing with a definite integral, be sure to add the constant at the end. Given:find.
AP Calculus AB/BC 6.1 Notes - Slope Fields
Integrals 5.
The mileage of a certain car can be approximated by: At what speed should you drive the car to obtain the best gas mileage? Of course, this problem isn’t.
Math 3120 Differential Equations with Boundary Value Problems Chapter 2: First-Order Differential Equations Section 2-6: A Numerical Method.
 The functions that we have met so far can be described by expressing one variable explicitly in terms of another variable.  For example,, or y = x sin.
6.1 day 1: Antiderivatives and Slope Fields Greg Kelly, Hanford High School, Richland, Washington.
Slope Fields and Euler’s Method Copyright © Cengage Learning. All rights reserved Day
Differential Equations: Slope Fields
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.
6.1: Antiderivatives and Slope Fields. First, a little review: Consider: then: or It doesn’t matter whether the constant was 3 or -5, since when we take.
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.
Slope Fields and Euler’s Method
Slope Fields and Euler’s Method
6.1 D IFFERENTIAL E QUATIONS & S LOPE F IELDS. D IFFERENTIAL E QUATIONS Any equation involving a derivative is called a differential equation. The solution.
Extreme Values of Functions Sec. 4.1 Notes. The textbook gives the following example at the start of chapter 4: The mileage of a certain car can be approximated.
Differential Equations Copyright © Cengage Learning. All rights reserved.
First, a little review: Consider: then: or It doesn’t matter whether the constant was 3 or -5, since when we take the derivative the constant disappears.
DIFFERENTIAL EQUATIONS 10. DIFFERENTIAL EQUATIONS Unfortunately, it’s impossible to solve most differential equations in the sense of obtaining an explicit.
Differential Equations and Slope Fields 6.1. Differential Equations  An equation involving a derivative is called a differential equation.  The order.
ANTIDERIVATIVES Definition: reverse operation of finding a derivative.
1 6.1 Slope Fields and Euler's Method Objective: Solve differential equations graphically and numerically.
Ch 2.1: Linear Equations; Method of Integrating Factors A linear first order ODE has the general form where f is linear in y. Examples include equations.
In Chapters 6 and 8, we will see how to use the integral to solve problems concerning:  Volumes  Lengths of curves  Population predictions  Cardiac.
AP CALCULUS AB Chapter 6: Differential Equations and Mathematical Modeling Section 6.1: Slope Fields and Euler’s Met hod.
Warm up Problem Solve the IVP, then sketch the solution and state the domain.
1 Differential Equations 6 Copyright © Cengage Learning. All rights reserved. 6.1 DE & Slope Fields BC Day 1.
Slope Fields Differential Equations. Slope Fields A slope field is a graphical picture of a derivative that projects the curve within the picture. Or.
The textbook gives the following example at the start of chapter 4: The mileage of a certain car can be approximated by: At what speed should you drive.
Solving separable differential equations HW: Practice WS (last two pages of slide show)
INTEGRALS 5. INTEGRALS In Chapter 3, we used the tangent and velocity problems to introduce the derivative—the central idea in differential calculus.
Copyright © Cengage Learning. All rights reserved.
5.3 Trigonometric Graphs.
Chapter 6: Differential Equations
Copyright © Cengage Learning. All rights reserved.
SLOPE FIELDS & EULER’S METHOD
7-1 Differential equations & Slope fields
SLOPE FIELDS & EULER’S METHOD
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Ch 2.1: Linear Equations; Method of Integrating Factors
2.9 Linear Approximations and Differentials
Definite Integrals Finney Chapter 6.2.
Copyright © Cengage Learning. All rights reserved.
7.1 Slope Fields and Euler’s Method
Linear graphs.
Integral as Net Change Chapter 8.1.
The mileage of a certain car can be approximated by:
Slope Fields; Euler’s Method
Copyright © Cengage Learning. All rights reserved.
KS4 Mathematics Linear Graphs.
Copyright © Cengage Learning. All rights reserved.
Quadratic Equations and Functions
5.3 Trigonometric Graphs.
KS3 Mathematics A5 Functions and graphs
Slope Fields.
Differential Equations
Slope Fields Rita Korsunsky.
A8 Linear and real-life graphs
Direction Fields and Euler's Method
Graphing linear equations
Slope Fields (6.1) January 10th, 2017.
Presentation transcript:

Slope Fields and Euler’s Method Chapter 7.1

Definition of Differential Equations An equation involving a derivative is called a differential equation. The order of a differential equation is the order of the highest derivative involved in the equation. Examples: 𝑑𝑦 𝑑𝑥 =2𝑥−1, 𝑥 𝑦 ′ +𝑦=0, 𝑦 ′′ + 𝑦 ′ =1

Example 1: Solving a Differential Equation Find all functions 𝑦 that satisfy 𝑑𝑦 𝑑𝑥 = sec 2 𝑥 +2𝑥+5.

Example 1: Solving a Differential Equation Although Finney delays introducing this, it is helpful to remember that we can write this in differential form: 𝑑𝑦= sec 2 𝑥 +2𝑥+5 𝑑𝑥 Now it is easy to visualize that the solution is 𝑦 and to obtain this solution we must integrate with respect to 𝑥 ∫𝑑𝑦=∫ sec 2 𝑥 +2𝑥+5 𝑑𝑥 The family of functions that represent the solution are 𝑦= tan 𝑥 + 𝑥 2 +5𝑥+𝐶, 𝐶 constant

Solving a Differential Equation The solution in the previous example is a general solution to the differential equation because it represents all possible solutions that differ only by the constant 𝐶 If the general solution to a first-order differential equation is continuous, then knowing the value of the function (that is, the solution) at a single point will give us the particular solution to the differential equation The known value is called an initial condition and such a differential equation problem is called an initial value problem

Example 2: Solving an Initial Value Problem Find the particular solutions to the equation 𝑑𝑦 𝑑𝑥 = 𝑒 𝑥 −6 𝑥 2 whose graph passes through the point (1,0).

Example 2: Solving an Initial Value Problem Writing this in differential form gives 𝑑𝑦= 𝑒 𝑥 −6 𝑥 2 𝑑𝑥 Integrating both sides ∫𝑑𝑦=∫ 𝑒 𝑥 −6 𝑥 2 𝑑𝑥 Solving (finding an antiderivative on the right) 𝑦= 𝑒 𝑥 −2 𝑥 3 +𝐶 Now, since the point (1,0) is known to be on the graph, we find 𝐶: 0= 𝑒 1 −2 1 3 +𝐶 𝐶=2−𝑒 The particular solution is 𝑦= 𝑒 𝑥 −2 𝑥 3 +2−𝑒

Discontinuity in an Initial Value Problem If the general solution to an initial value problem is a continuous curve, then the initial condition “captures” the curve for the entire domain However, if the curve is discontinuous, the initial condition “captures” the curve for the domain over which it is continuous So for these kinds of initial value problems, include the domain over which the function is continuous (as shown in the next example)

Example 3: Handling Discontinuity in an Initial Value Problem Find the particular solution to the equation 𝑑𝑦 𝑑𝑥 =2𝑥− sec 2 𝑥 whose graph passes through the point (0,3).

Example 3: Handling Discontinuity in an Initial Value Problem In differential form: 𝑑𝑦= 2𝑥− sec 2 𝑥 𝑑𝑥 The general solution is : ∫𝑑𝑦=∫ 2𝑥− sec 2 𝑥 𝑑𝑥 𝑦= 𝑥 2 − tan 𝑥 +𝐶 Note that this function is continuous over − 𝜋 2 , 𝜋 2 and 𝑥=3 is contained in this interval. So the particular solution is 3= 0 2 − tan 0 +𝐶⟹𝐶=3 and 𝑦= 𝑥 2 − tan 𝑥 +3, − 𝜋 2 ≤𝑥≤ 𝜋 2 Note that you must stipulate that this is true only for the interval.

Example 3: Handling Discontinuity in an Initial Value Problem

Example 4: Using the FTC to Solve an Initial Value Problem Find the solution to the differential equation 𝑓 ′ 𝑥 = 𝑒 − 𝑥 2 for which 𝑓 7 =3.

Example 4: Using the FTC to Solve an Initial Value Problem If we think of this as 𝑑𝑦 𝑑𝑥 = 𝑒 − 𝑥 2 , then 𝑑𝑦= 𝑒 − 𝑥 2 𝑑𝑥 and ∫𝑑𝑦=∫ 𝑒 −𝑥 2 𝑑𝑥 But we want the particular solution and this is set up as 𝑦=𝑓(𝑥)=3+ 7 𝑥 𝑒 − 𝑡 2 𝑑𝑡

Example 4: Using the FTC to Solve an Initial Value Problem 𝑓(𝑥)=3+ 7 𝑥 𝑒 − 𝑡 2 𝑑𝑡 We are done. That is, the particular solution is 𝑦=3+ 7 𝑥 𝑒 − 𝑡 2 𝑑𝑡. Does something seem to be missing? If so, what? Can we find 𝑓(7)? How? Can we find 𝑓(−2)? How?

Example 4: Using the FTC to Solve an Initial Value Problem 𝑓(𝑥)=3+ 7 𝑥 𝑒 − 𝑡 2 𝑑𝑡 We are done. That is, the particular solution is 𝑦=3+ 7 𝑥 𝑒 − 𝑡 2 𝑑𝑡. Does something seem to be missing? If so, what? You might be thinking that we haven’t found the explicit form of 𝑓. But strictly speaking, we have found the function we are after. Can we find 𝑓(7)? How? 𝑓 7 =3+ 7 7 𝑒 − 𝑡 2 𝑑𝑡=3+0=3 Can we find 𝑓(−2)? How? Without an explicit function, we must rely on approximate values. This is most easily carried out using a calculator: 𝑓 −2 ≈1.232

Example 5: Graphing a General Solution Graph the family of functions that solve the differential equations 𝑑𝑦 𝑑𝑥 = cos 𝑥 .

Example 5: Graphing a General Solution Graph the family of functions that solve the differential equations 𝑑𝑦 𝑑𝑥 = cos 𝑥 . In differential form: 𝑑𝑦= cos 𝑥 𝑑𝑥 Integrate: ∫𝑑𝑦= cos 𝑥 𝑑𝑥⟹𝑦= sin 𝑥 +𝐶 Now, if we change the values of 𝐶, the graphs of the general solution “shift” vertically.

Example 5: Graphing a General Solution

Slope Fields Let 𝑑𝑦 𝑑𝑥 = cos 𝑥 Since this is a basic derivative, it is easy to find the antiderivative: 𝑦= ∫ cos 𝑥 = sin 𝑥 +𝐶

Slope Fields What do the following values mean for the graph of y 𝑑𝑦 𝑑𝑥 = cos 0 =1 𝑑𝑦 𝑑𝑥 = cos 𝜋 2 =0 𝑑𝑦 𝑑𝑥 = cos 𝜋 =−1 𝑑𝑦 𝑑𝑥 = cos 3𝜋 2 =0 These are the slopes of the tangent lines at each of the input values

Example 6: Constructing a Slope Field Construct a slope field for the differential equation 𝑑𝑦 𝑑𝑥 = cos 𝑥 .

Example 6: Constructing a Slope Field

Example 7: Constructing a Slope Field for a Nonexact Differential Equation Use a calculator to construct a slope field for the differential equation 𝑑𝑦 𝑑𝑥 =𝑥+𝑦 and sketch a graph of the particular solution that passes through the point (2,0).

Example 7: Constructing a Slope Field for a Nonexact Differential Equation This procedure can only be performed on the TI89. From the Home screen, select MODE, then Graph, then 6:DIFF EQUATIONS Select Y=; you must use 𝑡 in place of 𝑥 and 𝑦1 in place of 𝑦 Enter 𝑡+𝑦1 in 𝑦1′ Set the window by choosing F2 (Zoom) and 5: ZoomSqr

Example 7: Constructing a Slope Field for a Nonexact Differential Equation

Example 7: Constructing a Slope Field for a Nonexact Differential Equation To find the graph of the particular solution that passes through (2,0), press 2nd F8 Enter 2 for 𝑡 and 0 for 𝑦1; the calculator graphs first from left to right, then from right to left, beginning each time at the chosen point

Example 7: Constructing a Slope Field for a Nonexact Differential Equation

Example 7: Constructing a Slope Field for a Nonexact Differential Equation The following slides highlight the these facts about the slope field. The slopes are zero along the line 𝑥+𝑦=0, or 𝑦=−𝑥 The slopes are −1 along the line 𝑥+𝑦=−1 or 𝑦=−𝑥−1 The slopes get steeper as 𝑥 increases. We can see that this follows from 𝑑𝑦 𝑑𝑥 =𝑥+𝑦: as 𝑥 increases for particular values of 𝑦, the slope increases to infinity, so the lines tend to become vertical The slopes get steeper as 𝑦 increases, for the same reason as in 3.

Example 7: Constructing a Slope Field for a Nonexact Differential Equation

Example 7: Constructing a Slope Field for a Nonexact Differential Equation

Example 7: Constructing a Slope Field for a Nonexact Differential Equation

Example 7: Constructing a Slope Field for a Nonexact Differential Equation

Example 7: Constructing a Slope Field for a Nonexact Differential Equation A note about the general solution to the unintimidating differential equation 𝑑𝑦 𝑑𝑥 =𝑥+𝑦 Though it is a simple equation, solving it requires advanced methods that you will learn about in a class on differential equations (sometimes called Diff E Q). The solution is 𝑦=𝐶 𝑒 𝑥 −𝑥−1, where 𝐶 is a constant. Although we can’t yet use the methods for solving, we can take the derivative and show that the derivative actually is 𝑥+𝑦.

Example 8: Matching Slope Fields with Differential Equations Use slope analysis to match each of the following differential equations with one of the slope fields (a) through (d). Do not use your graphing calculator. 𝑑𝑦 𝑑𝑥 =𝑥−𝑦 𝑑𝑦 𝑑𝑥 =𝑥𝑦 𝑑𝑦 𝑑𝑥 = 𝑥 𝑦 𝑑𝑦 𝑑𝑥 = 𝑦 𝑥

Example 8: Matching Slope Fields with Differential Equations The key to matching the graphs is to pick a slope value that is easy to identify (for example, 0, 1, −1). If 𝑑𝑦 𝑑𝑥 =0, the lines are horizontal and this occurs where 𝑥−𝑦=0 or along the line 𝑦=𝑥

Example 8: Matching Slope Fields with Differential Equations

Example 8: Matching Slope Fields with Differential Equations The key to matching the graphs is to pick a slope value that is easy to identify (for example, 0, 1, −1). If 𝑥=0, then the slopes are 𝑑𝑦 𝑑𝑥 =0 along the y-axis (where 𝑥=0); also, if 𝑦=0, then the slopes are also zero along the x-axis (where 𝑦=0)

Example 8: Matching Slope Fields with Differential Equations

Example 8: Matching Slope Fields with Differential Equations The key to matching the graphs is to pick a slope value that is easy to identify (for example, 0, 1, −1). If 𝑥=0, then 𝑑𝑦 𝑑𝑥 =0. The lines along the line 𝑥=0 (the y-axis) are horizontal. If 𝑦=0, then the field lines are vertical (undefined slope) along the x-axis.

Example 8: Matching Slope Fields with Differential Equations

Example 8: Matching Slope Fields with Differential Equations The key to matching the graphs is to pick a slope value that is easy to identify (for example, 0, 1, −1). The slopes are zero when 𝑦=0 (along the x-axis). The slopes are vertical when 𝑥=0 (along the y-axis).

Example 8: Matching Slope Fields with Differential Equations

Euler’s Method Euler’s Method provides a means of finding an approximate graph for a particular solution to a differential equation The idea is to take advantage of local linearity and creating short segments of a defined length, starting at the initial value point Then use the value of x at the endpoint of the short segment to create another short segment Repeat this process In this way, the graph approximation will lie to the right of the actual graph; the smaller the segments, the more accurate the graph

Euler’s Method Euler’s Method for Graphing a Solution to an Initial Value Problem Begin at the point (𝑥,𝑦) specified by the initial condition. This point will be on the graph as required. Use the differential equation to find the slope 𝑑𝑦 𝑑𝑥 at the point. Increase x by a small amount Δ𝑥. Increase y by a small amount Δ𝑦, where Δ𝑦= 𝑑𝑦 𝑑𝑥 ⋅Δ𝑥. This defines a new point (𝑥+Δ𝑥,𝑦+Δ𝑦) that lies along the linearization. Using this new point, return to step 2. Repeating the process constructs the graph to the right of the initial point. To construct the graph moving to the left from the initial point, repeat the process using negatives values for Δ𝑥.

Example 9: Applying Euler’s Method Let 𝑓 be the function that satisfies the initial value problem in Example 6, 𝑑𝑦 𝑑𝑥 =𝑥+𝑦 and 𝑓 2 =0. Use Euler’s Method and increments of Δ𝑥=0.2 to approximate 𝑓(3).

Example 9: Applying Euler’s Method Construct a table like the one below. (𝒙,𝒚) 𝒅𝒚 𝒅𝒙 =𝒙+𝒚 𝚫𝒙 𝚫𝒚= 𝒅𝒚 𝒅𝒙 ⋅𝚫𝒙 (𝒙+𝚫𝒙, 𝒚+𝚫𝒚) (2,0) 2 0.2 0.4 (2.2,0.4)

Example 9: Applying Euler’s Method Construct a table like the one below. (𝒙,𝒚) 𝒅𝒚 𝒅𝒙 =𝒙+𝒚 𝚫𝒙 𝚫𝒚= 𝒅𝒚 𝒅𝒙 ⋅𝚫𝒙 (𝒙+𝚫𝒙, 𝒚+𝚫𝒚) (2,0) 2 0.2 0.4 (2.2,0.4) (2.2, 0.4) 2.6 0.52 (2.4, 0.92) 3.32 0.664 (2.6, 1.584) 4.184 0.8368 (2.8, 2.4208) 5.2208 1.04416 (3,3.46496)

Example 9: Applying Euler’s Method

Example 10: Moving Backward with Euler’s Method If 𝑑𝑦 𝑑𝑥 =2𝑥−𝑦 and if 𝑦=3 when 𝑥=2, use Euler’s Method with five equal steps to approximate 𝑦 when 𝑥=1.5.

Example 10: Moving Backward with Euler’s Method Create the following table. (𝒙,𝒚) 𝒅𝒚 𝒅𝒙 =𝟐𝒙−𝒚 𝚫𝒙 𝚫𝒚= 𝒅𝒚 𝒅𝒙 ⋅𝚫𝒙 (𝒙+𝚫𝒙, 𝒚+𝚫𝒚) (2,3) 1 −0.1 (1.9, 2.9)

Example 10: Moving Backward with Euler’s Method Create the following table. (𝒙,𝒚) 𝒅𝒚 𝒅𝒙 =𝟐𝒙−𝒚 𝚫𝒙 𝚫𝒚= 𝒅𝒚 𝒅𝒙 ⋅𝚫𝒙 (𝒙+𝚫𝒙, 𝒚+𝚫𝒚) (2,3) 1 −0.1 (1.9, 2.9) 0.9 −0.09 (1.8, 2.81) 0.79 −0.079 (1.7, 2.731) 0.669 −0.0669 (1.6, 2.6641) 0.5359 −0.5359 (1.5, 2.61051)

Example 10: Moving Backward with Euler’s Method