Q 3.6-3E
Question
Show that when the trapezoid scheme given in formula (8) is used to approximate the solution , at x = 1, then we get ,n = 0, 1, 2, . . . , which leads to the approximation for the constant e. Compute this approximation for h = 1, and compare your results with those in Tables 3.4 and 3.5.
Step-by-Step Solution
Verified Answer
h | y(1)=e |
1 | 3 |
0.1 | 2.72055 |
0.01 | 2.71830 |
0.001 | 2.71828 |
0.0001 | 2.71828 |
1Step 1: Apply iteration rule for the trapezoidal scheme
Here
Apply the iteration rule for the trapezoidal scheme is
In our case of differential equation our equation is
The interval is
2Step 2: Find the values of f(x) = e x
h | y(1)=e |
1 | 3 |
0.1 | 2.72055 |
0.01 | 2.71830 |
0.001 | 2.71828 |
0.0001 | 2.71828 |
3Step 3: Substitute in the iteration rule for the trapezoidal scheme
Now,
Hence the solution is
h | e |
1 | 3 |
0.1 | 2.72055 |
0.01 | 2.71830 |
0.001 | 2.71828 |
0.0001 | 2.71828 |
Other exercises in this chapter
Q 3.6-1E
Show that when Euler’s method is used to approximate the solution of the initial value problem y'=5y y(0) = 1 , at x = 1, then the approxi
View solution Q 3.6-2E
Show that when Euler’s method is used to approximate the solution of the initial value problem y'=-12y,y(0)=3,at x = 2, then the approximation with step s
View solution Q 3.6-5E
Show that when the improved Euler’s method is used to approximate the solution of the initial value problem y'=4y,y(0)=13, at x=12 , then the approxi
View solution Q 3.6-7E
Use the improved Euler’s method subroutine with step size h = 0.1 to approximate the solution to the initial value problem y'=x=y2,y(1)=0 ,
View solution