Answer the following items on a clean sheet of paper. Upload photos of your answer sheets showing your solutions. Df = 2x – f with f(0): f(2) :-1 1. Consider the ODE With step size 1, approximate using Euler's method.

Advanced Engineering Mathematics
10th Edition
ISBN:9780470458365
Author:Erwin Kreyszig
Publisher:Erwin Kreyszig
Chapter2: Second-order Linear Odes
Section: Chapter Questions
Problem 1RQ
icon
Related questions
Question
Answer the following items on a clean sheet of paper. Upload photos of your answer sheets showing your solutions.
Df = 2x – f with
f (0) = –1
f(2).
1. Consider the ODE
With step size 1, approximate
using Euler's method.
Transcribed Image Text:Answer the following items on a clean sheet of paper. Upload photos of your answer sheets showing your solutions. Df = 2x – f with f (0) = –1 f(2). 1. Consider the ODE With step size 1, approximate using Euler's method.
Example 2.1
Consider the ODE Df – 2f + 3x = 0; f (0) = 1. With n = 2, approximate f (2)
a. Using Euler's Method.
b. Using Backward Euler's Method.
Solution:
We can rewrite the ODE as Df = 2f – 3x. Let g(x,f) = 2f – 3x. Dividing [0,2] into two (2) intervals, with
length h = = 1, we get xo = 0, x1 = 0 +1 = 1, and x, = 1+1= 2. Let yo = f (0) = 1.
2-0
2
a. Using Euler's Method,
b. Using Backward Euler's Method,
Yı = yo + 2yo – 3x,
= 1+ 2
= 3
Y2 = Yı + 2y1 – 3x1
= 3 + 2(3) – 3
= 6
Y1 = yo + 2y1 - 3x1
= 1+ 2y1 – 3
-Yı = -2
Y1 = 2
Y2 = y1 + 2y2 - 3x2
= 2 + 2y2 – 3(2)
-Y2 = -4
Y2 = 4
Transcribed Image Text:Example 2.1 Consider the ODE Df – 2f + 3x = 0; f (0) = 1. With n = 2, approximate f (2) a. Using Euler's Method. b. Using Backward Euler's Method. Solution: We can rewrite the ODE as Df = 2f – 3x. Let g(x,f) = 2f – 3x. Dividing [0,2] into two (2) intervals, with length h = = 1, we get xo = 0, x1 = 0 +1 = 1, and x, = 1+1= 2. Let yo = f (0) = 1. 2-0 2 a. Using Euler's Method, b. Using Backward Euler's Method, Yı = yo + 2yo – 3x, = 1+ 2 = 3 Y2 = Yı + 2y1 – 3x1 = 3 + 2(3) – 3 = 6 Y1 = yo + 2y1 - 3x1 = 1+ 2y1 – 3 -Yı = -2 Y1 = 2 Y2 = y1 + 2y2 - 3x2 = 2 + 2y2 – 3(2) -Y2 = -4 Y2 = 4
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Recommended textbooks for you
Advanced Engineering Mathematics
Advanced Engineering Mathematics
Advanced Math
ISBN:
9780470458365
Author:
Erwin Kreyszig
Publisher:
Wiley, John & Sons, Incorporated
Numerical Methods for Engineers
Numerical Methods for Engineers
Advanced Math
ISBN:
9780073397924
Author:
Steven C. Chapra Dr., Raymond P. Canale
Publisher:
McGraw-Hill Education
Introductory Mathematics for Engineering Applicat…
Introductory Mathematics for Engineering Applicat…
Advanced Math
ISBN:
9781118141809
Author:
Nathan Klingbeil
Publisher:
WILEY
Mathematics For Machine Technology
Mathematics For Machine Technology
Advanced Math
ISBN:
9781337798310
Author:
Peterson, John.
Publisher:
Cengage Learning,
Basic Technical Mathematics
Basic Technical Mathematics
Advanced Math
ISBN:
9780134437705
Author:
Washington
Publisher:
PEARSON
Topology
Topology
Advanced Math
ISBN:
9780134689517
Author:
Munkres, James R.
Publisher:
Pearson,