Docsity

Calculus II Quiz 2 - MATH 106B, Winter 2006, Exercises of Calculus

Toggle sidebar
bg1
MATH 106B - CALCULUS II
WINTER 2006
QUIZ 2
NAME:
Show ALL your work CAREFULLY.
(a) Recall that the error committed by using the Right Hand Sum Rnis less than
or equal to K1·(b−a)2
2nwhere |f0(x)|≤K1for some constant K1. Use this result to
give an upper bound for
Ze
1
(ln x) cos(x2)dx −R10
.
Here, f(x) = (ln x) cos(x2).
Note that f0(x)= 1
xcos(x2) + (ln x)(−sin(x2))(2x). Over the interval [1,e],
|f0(x)|≤|
1
xcos(x2)|+|(ln x)(−sin(x2))(2x)|
≤1·1+1·1·2e=1+2e.
Tak e K1=1+2e. Then, the error is bounded by (1+2e)·(e−1)2
20 .
Remark: To get a better (smaller) K1, one finds the maximum value
for |f0(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.Atx=0,y0=2.
At x=0.5,
y0.5=y0+(−(0)(2)) ·∆x=2.
Then, at x=1,
y1=y0.5+(−(0.5)(2)) ·∆x=2−0.5=1.5.
Therefore,
y(1) ≈1.5.
Date: January 18, 2006.
1

Partial preview of the text

Download Calculus II Quiz 2 - MATH 106B, Winter 2006 and more Exercises Calculus in PDF only on Docsity!

MATH 106B - CALCULUS II

WINTER 2006

QUIZ 2

NAME:

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