Professional Documents
Culture Documents
1 64 1 8 3 64 1
f (0) = 1, f ( ) = , f( ) = , f( ) = , f (1) =
4 65 2 9 4 91 2
Can we use this to evaluate the integral approximately?
Trapezoidal Rule; Approximate the function by a linear function in each of the inter-
vals [0, 41 ], [ 41 , 12 ], [ 21 , 43 ], [ 43 , 1].
If (a, f (a)), (b, f (b)) are two points the equation of the line joining them is
1 f (0) + f ( 41 ) f ( 41 ) + f ( 21 ) f ( 21 ) + f ( 43 ) f ( 43 ) + f (1)
I= [ + + + ]
4 2 2 2 2
1 1 1 3
= [f (0) + 2f ( ) + 2f ( ) + 2f ( ) + f (1)]
8 4 2 4
1 64 8 64 1
= [1 + 2( + + ) + ]
8 65 9 91 2
0.8317
1
Fit a Quadratic. Simpsons Rule.
Parabola through [(h, f (h)), (0, f (0)), (h, f (h))].
f (x) = ax2 + bx + c
Actual value?
1 1 1 2x 1
Z
dx 2
= log(1 + x) log(1 x + x ) + arctan( )+c
1 + x3 3 6 3 3
1 1 1 1
= log 2 + 0 + [arctan arctan ]
3 3 3 3
1
= log 2 + = 0.8364
3 3 3
Homework. Calculate the following integrals from 0 to 1 by taking the values at points
spaced 0.1 apart by using trapezoidal rule and Simpsons rule. Compare the two values
with the actual values by integrating, using calculator or tables as necessary.
R1
1. 0
(2x + 3)dx
R1
2. 0
(1 + x2 )dx
R1
3. 0
(sin 10x)2 dx
R
4. ex dx