1. Given the following initial value problem over the interval from 0 to 1: dy = y+2.xe* , y(0) = 1. dx а. Verify that the analytical solution is y= e*(x² +1). b. Implement Euler's method with step size h=0.25, and determine the true percent relative error at each step based on 1(a).

Calculus For The Life Sciences
2nd Edition
ISBN:9780321964038
Author:GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Publisher:GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Chapter11: Differential Equations
Section11.3: Euler's Method
Problem 22E
icon
Related questions
Question
Answer the question
1. Given the following initial value problem over the interval from 0 to 1:
dy
= y+ 2.xe* , y(0) =1.
dx
а.
Verify that the analytical solution is y=e*(x² +1).
b.
Implement Euler's method with step size h=0.25, and determine the
true percent relative error at each step based on 1(a).
С.
Repeat part 1(b) with Heun's method. Compare the results. Which
method is the best? Explain with justification.
Transcribed Image Text:1. Given the following initial value problem over the interval from 0 to 1: dy = y+ 2.xe* , y(0) =1. dx а. Verify that the analytical solution is y=e*(x² +1). b. Implement Euler's method with step size h=0.25, and determine the true percent relative error at each step based on 1(a). С. Repeat part 1(b) with Heun's method. Compare the results. Which method is the best? Explain with justification.
Expert Solution
steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Recommended textbooks for you
Calculus For The Life Sciences
Calculus For The Life Sciences
Calculus
ISBN:
9780321964038
Author:
GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Publisher:
Pearson Addison Wesley,
Functions and Change: A Modeling Approach to Coll…
Functions and Change: A Modeling Approach to Coll…
Algebra
ISBN:
9781337111348
Author:
Bruce Crauder, Benny Evans, Alan Noell
Publisher:
Cengage Learning
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage