
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

QUIZ 2
Show ALL your work CAREFULLY.
(a) Recall that the error committed by using the Right Hand Sum Rn is less than
or equal to
K 1 ·(b−a) 2
2 n where |f
′ (x)| ≤ K 1 for some constant K 1. Use this result to
give an upper bound for ∣ ∣ ∣ ∣
∫ (^) e
1
(ln x) cos(x
2 ) dx − R 10
Here, f(x) = (ln x) cos(x 2 ).
Note that f ′ (x) =
1 x
cos(x 2 ) + (ln x)(− sin(x 2 ))(2x). Over the interval [1, e],
|f
′ (x)| ≤ |
x
cos(x
2 )| + |(ln x)(− sin(x
2 ))(2x)|
≤ 1 · 1 + 1 · 1 · 2 e = 1 + 2e.
Take K 1 = 1 + 2e. Then, the error is bounded by
(1+2e)·(e−1) 2
20
Remark: To get a better (smaller) K 1 , one finds the maximum value
for |f
′ (x)| over the interval [1, e].
(b) Consider the initial value problem
dy
dx
= −xy
with y(0) = 2.
Estimate the value y(1) (when x = 1) of the solution using Euler’s method with
two steps with initial point (0, 2). DO THIS BY HAND and show all your steps.
Using two steps, the interval [0, 1] is divided into two each of which is
of length 0. 5. Thus, ∆x = 0. 5. The slope is given by −xy. At x = 0, y 0 = 2.
At x = 0. 5 ,
y 0. 5 = y 0 + (−(0)(2)) · ∆x = 2.
Then, at x = 1,
y 1 = y 0. 5 + (−(0.5)(2)) · ∆x = 2 − 0 .5 = 1. 5.
Therefore,
y(1) ≈ 1. 5.
Date: January 18, 2006.
1