Download presentation
Presentation is loading. Please wait.
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.