4. (a) Consider the ordinary differential equation dy dt = f (t, y). (3) By integrating equation (3) over the interval [tn, tn+1] and approximating f(t, y) as a constant on this interval, derive the forward Euler scheme Yn+1 = Yn + hf (tn, Yn), (4) with the step-size h = tn+1 - tn (for all n). Define the local truncation error of a numerical scheme, obtain an expression for the local truncation error of the forward Euler scheme (4) and show that it is first order. (b) Taking f(t, y) = −λy and the initial condition yo = 1, obtain the exact solution to the ordinary differential equation and determine its behaviour in the limit t→ ∞. (c) Show that the value of the approximation at the nth step can be written as Уп Yo (1 - Ah)". (5) = Using 5 and step-sizes of h € 0.25 and h = = 0.5, calculate the approximation = of y at t = 1. Determine the absolute errors using the exact solution in 4.b. Do the numerical solutions behave in the same way as the exact solution? (d) Using equation (5), determine the condition on h that ensures stability of the Euler scheme. Does this stability criterion explain the behaviour of solutions in 4.c?
4. (a) Consider the ordinary differential equation dy dt = f (t, y). (3) By integrating equation (3) over the interval [tn, tn+1] and approximating f(t, y) as a constant on this interval, derive the forward Euler scheme Yn+1 = Yn + hf (tn, Yn), (4) with the step-size h = tn+1 - tn (for all n). Define the local truncation error of a numerical scheme, obtain an expression for the local truncation error of the forward Euler scheme (4) and show that it is first order. (b) Taking f(t, y) = −λy and the initial condition yo = 1, obtain the exact solution to the ordinary differential equation and determine its behaviour in the limit t→ ∞. (c) Show that the value of the approximation at the nth step can be written as Уп Yo (1 - Ah)". (5) = Using 5 and step-sizes of h € 0.25 and h = = 0.5, calculate the approximation = of y at t = 1. Determine the absolute errors using the exact solution in 4.b. Do the numerical solutions behave in the same way as the exact solution? (d) Using equation (5), determine the condition on h that ensures stability of the Euler scheme. Does this stability criterion explain the behaviour of solutions in 4.c?
Advanced Engineering Mathematics
10th Edition
ISBN:9780470458365
Author:Erwin Kreyszig
Publisher:Erwin Kreyszig
Chapter2: Second-order Linear Odes
Section: Chapter Questions
Problem 1RQ
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Recommended textbooks for you
Advanced Engineering Mathematics
Advanced Math
ISBN:
9780470458365
Author:
Erwin Kreyszig
Publisher:
Wiley, John & Sons, Incorporated
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…
Advanced Math
ISBN:
9781118141809
Author:
Nathan Klingbeil
Publisher:
WILEY
Advanced Engineering Mathematics
Advanced Math
ISBN:
9780470458365
Author:
Erwin Kreyszig
Publisher:
Wiley, John & Sons, Incorporated
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…
Advanced Math
ISBN:
9781118141809
Author:
Nathan Klingbeil
Publisher:
WILEY
Mathematics For Machine Technology
Advanced Math
ISBN:
9781337798310
Author:
Peterson, John.
Publisher:
Cengage Learning,