Presentation is loading. Please wait.

Presentation is loading. Please wait.

Slope Fields and Euler’s Method

Similar presentations


Presentation on theme: "Slope Fields and Euler’s Method"β€” Presentation transcript:

1 Slope Fields and Euler’s Method
Chapter 7.1

2 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

3 Example 1: Solving a Differential Equation
Find all functions 𝑦 that satisfy 𝑑𝑦 𝑑π‘₯ = sec 2 π‘₯ +2π‘₯+5.

4 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

5 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

6 Example 2: Solving an Initial Value Problem
Find the particular solutions to the equation 𝑑𝑦 𝑑π‘₯ = 𝑒 π‘₯ βˆ’6 π‘₯ 2 whose graph passes through the point (1,0).

7 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βˆ’π‘’ The particular solution is 𝑦= 𝑒 π‘₯ βˆ’2 π‘₯ 3 +2βˆ’π‘’

8 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)

9 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).

10 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.

11 Example 3: Handling Discontinuity in an Initial Value Problem

12 Example 4: Using the FTC to Solve an Initial Value Problem
Find the solution to the differential equation 𝑓 β€² π‘₯ = 𝑒 βˆ’ π‘₯ 2 for which 𝑓 7 =3.

13 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 𝑑𝑑

14 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?

15 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 = 𝑒 βˆ’ 𝑑 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

16 Example 5: Graphing a General Solution
Graph the family of functions that solve the differential equations 𝑑𝑦 𝑑π‘₯ = cos π‘₯ .

17 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.

18 Example 5: Graphing a General Solution

19 Slope Fields Let 𝑑𝑦 𝑑π‘₯ = cos π‘₯
Since this is a basic derivative, it is easy to find the antiderivative: 𝑦= ∫ cos π‘₯ = sin π‘₯ +𝐢

20 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

21 Example 6: Constructing a Slope Field
Construct a slope field for the differential equation 𝑑𝑦 𝑑π‘₯ = cos π‘₯ .

22 Example 6: Constructing a Slope Field

23 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).

24 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

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

26 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

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

28 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.

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

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

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

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

33 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 π‘₯+𝑦.

34 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. 𝑑𝑦 𝑑π‘₯ =π‘₯βˆ’π‘¦ 𝑑𝑦 𝑑π‘₯ =π‘₯𝑦 𝑑𝑦 𝑑π‘₯ = π‘₯ 𝑦 𝑑𝑦 𝑑π‘₯ = 𝑦 π‘₯

35 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 𝑦=π‘₯

36 Example 8: Matching Slope Fields with Differential Equations

37 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)

38 Example 8: Matching Slope Fields with Differential Equations

39 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.

40 Example 8: Matching Slope Fields with Differential Equations

41 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).

42 Example 8: Matching Slope Fields with Differential Equations

43 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

44 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 Ξ”π‘₯.

45 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).

46 Example 9: Applying Euler’s Method
Construct a table like the one below. (𝒙,π’š) π’…π’š 𝒅𝒙 =𝒙+π’š πš«π’™ πš«π’š= π’…π’š 𝒅𝒙 β‹…πš«π’™ (𝒙+πš«π’™, π’š+πš«π’š) (2,0) 2 0.2 0.4 (2.2,0.4)

47 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, ) 5.2208 (3, )

48 Example 9: Applying Euler’s Method

49 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.

50 Example 10: Moving Backward with Euler’s Method
Create the following table. (𝒙,π’š) π’…π’š 𝒅𝒙 =πŸπ’™βˆ’π’š πš«π’™ πš«π’š= π’…π’š 𝒅𝒙 β‹…πš«π’™ (𝒙+πš«π’™, π’š+πš«π’š) (2,3) 1 βˆ’0.1 (1.9, 2.9)

51 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, ) 0.5359 βˆ’0.5359 (1.5, )

52 Example 10: Moving Backward with Euler’s Method


Download ppt "Slope Fields and Euler’s Method"

Similar presentations


Ads by Google