Sie sind auf Seite 1von 2

Tutorial 5 Numerical Differentiation

1.Given the table of values


x f(x)
1 4
2 -9
5 -108
Use LaGrange interpolation to estimate the value of (2.2)
2. Given the table of values
x
f(x)
-1 -2.71828
3
-0.04979
5
-0.00674
Use LaGrange interpolation to find the value of (3.4)
3. Given the table of values
x
f(x)
6
0.801153
7.2 -0.82236
9
-0.73922
13 0.994808
Use LaGrange interpolation to find the value of (8)
4. Given the table of values
x
f(x)
-2 -2.63906
0
-2.48491
5
-1.94591
6
-1.79176
Use LaGrange interpolation to estimate the values of a). f(-0.8) b). f(0.8) c). f(5.5)
5. Let f(x) = sin (x), where x is in measured in radians
a). Calculate approximations to f (0.8) using formula f'(x)

f(x + h) f(x h)
2h

with
h = 0.1, h = 0.01 and h = 0.001. Use nine decimal places
b). Compare with the value f (0.8) = cos (0.8)
( 3)
c). Compute the truncation error. Use f (c) cos(0.7) 0.764842187
6. Let f(x) = sin (x), where x is in measured in radians
a). Calculate approximations to f (0.8) using formula
f'(x)

f(x + 2h) + 8f(x + h) 8f(x h) + f(x 2h)


with h = 0.1 and h = 0.01
12h

b). Compare with the value f (0.8) = cos (0.8)

BTB28404 Engineering Mathematics IV

Page 1 of 2

Tutorial 5 Numerical Differentiation

c). Compute the truncation error. Use f (c) cos(0.6) 0.825335615


for both
cases
3
7. Compare the numerical differential formulas in question (5) and (6). Let f(x) =x
and find approximations for f (2)
a). Use formula in (5) with h = 0.05
b). Use formula in (6) with h = 0.05
h 2f ( 3) (c)
h 4f ( 5) (c)
c). Compute the truncation error using formulas
and
6
30
( 5)

8. Let f(x) = ln(x) and carry nine decimal places


a). Use formula f (x0 )

f1 2f0 + f1
with h = 0.05 to approximate f (5)
h2

b). Use formula above with h = 0.01 to approximate f (5)


c). Use formula f (x0 )

f2 + 16f1 30f0 + 16f1 f2


with h = 0.1 to approximate
12h 2

f (5)
d). Which formulae gives the closest approximation
9. Use the numerical differential formula f (x0 )

f1 2f0 + f1
and h = 0.01 to
h2

2
4
approximate f (1) for the functions a). f(x) =x b). f(x) =x

Answer
1. 12.8
2. 0.02771
3. 1.067
4a). 2.54859 b). 2.4177 c). 1.87141
5. h
0.1
0.01
0.001

approximate f (x)
0.69554611
0.696695079
0.696706186

approximation error
0.001160599
0.00001163
0.000000523

6. h
0.1
0.01

approximate f (x)
0.696704389
0.696706709

approximation error truncation error


0.000002320
0.000002751
0.000000001
0.000000000

7. a). 12.0025

b). 12

8. a). 0.0400016
9. a). 2

truncation error
0.001274736
0.000012747
0.000000127

c). 0.0025, 0

b). 0.0399914 c). 0.039999999

d). part (b)

b). 12

BTB28404 Engineering Mathematics IV

Page 2 of 2

Das könnte Ihnen auch gefallen