New Update Assured Satisfaction
Homework 4
' f ( x +h)−f ( x ) .
Q Suppose that f ( x )=e2 x. We know that if h is small, then f ( x )= Using this expression with h =0.01, find an approximate value for f ’ (1).
h
14.926
Difference Quotient
Given f ( x )=e2 x; point of interest x =1; step size h =0.01
f (1+0.01)−f (1) f (1.01)−f (1)
f ' ( x )= ⇒
0.01 0.01
2x ⇒ 2×1.01⇒
f ( x )=e f (1.01)=e ¿ e2.02 = 7.358382
2x ⇒ 2×1 ⇒ 2 = 7.38906
f ( x )=e f (1)=e ¿e
7.358382−7.38905
f ' ( x )= ⇒ 14.926
0.01
Q Suppose that f ( x )=e2 x . What is the actual value of f ’ (1) ?
14.78
Power/Chain Rule: 2 e2
Q Consider the differential equation f ' ( x )=( x +1 ) f ( x ) with f ( 0)=1. What is the exact formula for f ( x )?
2
{ }
x
f ( x )=ex p +x
2
TI-89 → [F3] (Calc) → deSolve(y' = (x+1)*y and y(0)=1, x, y)
Q Consider the differential equation f ’ ( x )=( x +1) f ( x ) with f ( 0)=1. Solve for f ( 0.20)using Euler's approximation method with increment h=0.01
for x ∈ [ 0 , 0.20 ]
1.24
1
3
Q Suppose that we want to use Monte Carlo integration to approximate I =∫ dx if U 1 , U 2 ,…, U n are i.i.d.
'
Unif ( 0 , 1) s, what's a good
1 1+ x
approximation
n
I n for I ?
1 1
∑
n i=1 1+U i
n
b b−a
Monte Carlo integration for ∫ g ( x ) dx is approximated by Here a=1 , b=3. X =a+( b−a ) U ⇒ X i =1+2 Ui.
n 1 g U = 1 1
a
g ( x )= ⇒ ( ) =