Comparison of Numerical and Analytic Solutions: Consider the initial-value problem y′ =y−2, y(0)=1 (a)  Find the approximate solutions at x = 0.1, 0.2, and 0.3 using the Euler method with step size h = 0.1. (b)  Find the approximations at the same points x as in part (a) using the step size h = 0.05; you will have to compute twice as many steps to reach each point x. (c)  Find the analytic solution of the initial value problem. Compute the errors be- tween the analytic solution and each of the approximations in parts (a) and (b). What can you say about the behavior of the errors?

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
icon
Concept explainers
Question
  1. Comparison of Numerical and Analytic Solutions: Consider the initial-value problem y′ =y−2, y(0)=1

    (a)  Find the approximate solutions at x = 0.1, 0.2, and 0.3 using the Euler method with step size h = 0.1.

(b)  Find the approximations at the same points x as in part (a) using the step size h = 0.05; you will have to compute twice as many steps to reach each point x.

(c)  Find the analytic solution of the initial value problem. Compute the errors be- tween the analytic solution and each of the approximations in parts (a) and (b). What can you say about the behavior of the errors?

4. Comparison of Numerical and Analytic Solutions: Consider the initial-value problem
y = y – 2, y(0) = 1
-
(a) Find the approximate solutions at x = 0.1, 0.2, and 0.3 using the Euler method
with step size h = 0.1.
(b) Find the approximations at the same points x as in part (a) using the step size
h = 0.05; you will have to compute twice as many steps to reach each point x.
(c) Find the analytic solution of the initial value problem. Compute the errors be-
tween the analytic solution and each of the approximations in parts (a) and (b).
What can you say about the behavior of the errors?
Transcribed Image Text:4. Comparison of Numerical and Analytic Solutions: Consider the initial-value problem y = y – 2, y(0) = 1 - (a) Find the approximate solutions at x = 0.1, 0.2, and 0.3 using the Euler method with step size h = 0.1. (b) Find the approximations at the same points x as in part (a) using the step size h = 0.05; you will have to compute twice as many steps to reach each point x. (c) Find the analytic solution of the initial value problem. Compute the errors be- tween the analytic solution and each of the approximations in parts (a) and (b). What can you say about the behavior of the errors?
Expert Solution
Step 1

(a) Consider the differential equation 

y'=y-2,   y(0)=1

According to Euler Method, the approximate solution at the step "n+1" is calculated as

yn+1=yn+hf(xn+yn)

Here h=0.1, x0=0, y0=1, f(x,y)=y-2. We have to find the approximate solutions at x = 0.1, 0.2, and 0.3 using the step size h=0.1.

 

x1=x0+h=0+0.1=0.1f0=f(x0+y0)=f(0,1)=y0-2=1-2=-1y1=y(x1)=y0+hf0=1+(0.1)(-1)=0.9

Thus the approximate solution at x=0.1 is y1=0.9.

Next, 

x2=x1+h=0.1+0.1=0.2f1=f(x1+y1)=f(0.1,0.9)=y1-2=0.9-2=-1.1y2=y(x2)=y1+hf1=0.9+(0.1)(-1.1)=0.79

Thus the approximate solution at x=0.2 is y1=0.79.

Next, 

x3=x2+h=0.2+0.1=0.3f2=f(x2+y2)=f(0.2,0.79)=y2-2=0.79-2=-1.21y3=y(x3)=y2+hf2=0.79+(0.1)(-1.21)=0.669

Thus the approximate solution at x=0.3 is y1=0.669.

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps

Blurred answer
Knowledge Booster
Application of Integration
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, advanced-math and related others by exploring similar questions and additional content below.
Similar questions
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,