Assignment 2
Assignment 2
log e ( x1 x 2 ) 1 x 2 0
2
(b)
x1 x1 x 2 0
With initial approximation 2.4,0.6 .
T
Hence, find the interpolating polynomial and an approximation to the value of f (7) .
1
6. If f ( x) 2 , find the divided difference f ( x) f [ x1 , x2 , x3 , x4 ] .
x
7. Find the unique polynomial P(x) of degree 2 or less such that P(1) 1 , P(3) 27 ,
P(4) 64 using: (i) Lagrange interpolating formula and (ii) Newton divided differe nce
formula.
8. Given that P(0) 1 , P(1) 3 , P(3) 55 , find the unique polynomial of degree 2 or
less, which fits the given data. Find the bound on the error.
9. The following values of the function f ( x) sin x cos x , are given
x 10 0 20 0 30 0
f (x) 1.1585 1.2817 1.3660
Construct the interpolating polynomial that fits the data. Find f ( / 12) 1 .
10. The following data represents the function f ( x) e x .
x 1 1.5 2.0 2.5
f (x) 2.7183 4.4817 7.3891 12.1825
Estimate the value of f (2.25) using the (i) Newton’s forward difference interpolatio n
and (ii) Newton’s backward difference interpolation. Compare with the exact value.
Obtain the bound on the truncation error.
11. The following data represents the function f ( x) cos( x 1) .
x 0.0 0.2 0.4 0.6
f (x) 0.5403 0.3624 0.1700 -0.0292
Estimate the value of f (0.5) using the Newton’s backward difference interpolatio n.
Compare with the exact value.
12. Using the Newton’s backward difference interpolation, construct the interpola ting
polynomial that fits the data
x 0.2 0.4 0.6 0.8 1
f (x) 0.108 0.164 0.316 0.612 1.1
Estimate the value of f (x) at x 0.6 and x 1 .
13. Obtain the least squares polynomial approximation of degree one and two for
1
f ( x) x 2 on [0,1].
14. Obtain an approximation in the sense of the principle of least squares in the form of a
1
polynomial of degree 2 to the function f ( x) in the range 1 x 1 .
1 x2
15. In the following problems, obtain the linear and quadratic least square polynomia l
approximation to the given data.
(i)
x 0.2 0.4 0.6 0.8 1
f (x) 0.108 0.164 0.316 0.612 1.1
(ii)
x -1.0 -0.5 -0.25 0 0.25 0.5 1
f (x) 1 0.75 0.8125 1 1.3125 1.75 3
c1
16. Use the method of least squares to fit the curve f ( x) c0 x for the following data
x
x 0.2 0.3 0.5 1 2
f (x) 16 14 11 6 3