Question 1: (a) Consider the ordinary differential equation dy = f (t, y). dt (1) By integrating equation (1) over the interval [tn, tn+1] and approximating f(t, y) as a constant on this interval, derive the forward Euler scheme with the step-size h = Yn+1 = yn+hf (tn, Yn), 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 (2) and show that it is first order. (b) Verify that y(t) = (1+t) et is the solution to the initial value problem dy dt - y, y(0) 1. Use the forward Euler method (2) with a step-size of h = 1/2 to calculate an approxi- mation of Y at t = 1. Calculate the absolute error from the exact solution. (c) By finding a suitable quadrature formula for integration of equation (1) over the interval [tn, tn+1], derive the two-step Adams-Bashforth scheme Yn+1= Using this scheme, with h = Yn + [3f (tn, Yn) — f (tn−1, Yn−1)]. - 1/2 and the value of y₁ obtained from the forward Euler method (2) in part ((b)), compute the value of y2 for equation (3). Calculate the error from the exact solution.

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
Question 1:
(a) Consider the ordinary differential equation
dy
= f (t, y).
dt
(1)
By integrating equation (1) over the interval [tn, tn+1] and approximating f(t, y) as a
constant on this interval, derive the forward Euler scheme
with the step-size h
=
Yn+1 = yn+hf (tn, Yn),
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 (2) and show that it is first order.
(b) Verify that y(t) = (1+t) et is the solution to the initial value problem
dy
dt
- y, y(0) 1.
Use the forward Euler method (2) with a step-size of h = 1/2 to calculate an approxi-
mation of Y at t = 1. Calculate the absolute error from the exact solution.
(c) By finding a suitable quadrature formula for integration of equation (1) over the interval
[tn, tn+1], derive the two-step Adams-Bashforth scheme
Yn+1=
Using this scheme, with h
=
Yn + [3f (tn, Yn) — f (tn−1, Yn−1)].
-
1/2 and the value of y₁ obtained from the forward Euler
method (2) in part ((b)), compute the value of y2 for equation (3). Calculate the error
from the exact solution.
Transcribed Image Text:Question 1: (a) Consider the ordinary differential equation dy = f (t, y). dt (1) By integrating equation (1) over the interval [tn, tn+1] and approximating f(t, y) as a constant on this interval, derive the forward Euler scheme with the step-size h = Yn+1 = yn+hf (tn, Yn), 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 (2) and show that it is first order. (b) Verify that y(t) = (1+t) et is the solution to the initial value problem dy dt - y, y(0) 1. Use the forward Euler method (2) with a step-size of h = 1/2 to calculate an approxi- mation of Y at t = 1. Calculate the absolute error from the exact solution. (c) By finding a suitable quadrature formula for integration of equation (1) over the interval [tn, tn+1], derive the two-step Adams-Bashforth scheme Yn+1= Using this scheme, with h = Yn + [3f (tn, Yn) — f (tn−1, Yn−1)]. - 1/2 and the value of y₁ obtained from the forward Euler method (2) in part ((b)), compute the value of y2 for equation (3). Calculate the error from the exact solution.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
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,