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.

Mathematics For Machine Technology
8th Edition
ISBN:9781337798310
Author:Peterson, John.
Publisher:Peterson, John.
Chapter55: Introduction To Circles
Section: Chapter Questions
Problem 27A
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
Mathematics For Machine Technology
Mathematics For Machine Technology
Advanced Math
ISBN:
9781337798310
Author:
Peterson, John.
Publisher:
Cengage Learning,
College Algebra
College Algebra
Algebra
ISBN:
9781337282291
Author:
Ron Larson
Publisher:
Cengage Learning
Trigonometry (MindTap Course List)
Trigonometry (MindTap Course List)
Trigonometry
ISBN:
9781337278461
Author:
Ron Larson
Publisher:
Cengage Learning
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage