Вы находитесь на странице: 1из 4

ENGG2012 A&B: Advanced Engineering Mathematics

Solution 10
Tutor: WU Yan
Email: wy011 [AT] ie.cuhk.edu.hk

1. Newtons Method
The function () = sin has a zero on the interval (3,4), namely = . Perform three
iterations of Newtons Method to approximate this zero, using = 4. Determine the
absolute error in each computed approximation. What is the apparent convergence order?

2. Secant Method
Let () = cos . With = 1, = 0, find using Secant Method.

3. Interpolation
Solution:
Let () =

,0

a. Using linear interpolation with = 0 and = 0.5 to approximate (0. 5);


0. 5 0.5
0. 5 0 .5
(0. 5)
+
= 1.3 4361
0 0.5
0.5 0
b. Using linear interpolation with = 0.5 and = 1 to approximate (0.75);
0.75 1 .5 0.75 0.5
(0.75)
+
= .18350
0.5 1
1 0.5
c. Using quadratic interpolation polynomial with = 0, = 1 and 2 = to
approximate (0. 5) and (0.75);

d. Which approximation is better and why?

4. Numerical Integration
Calculate

( )

using Rectangular Rule and Trapezoidal Rule with n=10.

Solution: Subdivide the interval of integration into 10 subintervals of equal length, each
subinterval is 0.1.
Rectangular Rule:
We calculate the value of the function at the midpoint of each subinterval: 1.0512, 1.1612, 1.2807,
1.4090, 1.5449, 1.6866, 1.8316, 1.9771, 2.1197, 2.2556.

( )

= (1.051 + 1.161 + 1. 807 + 1.40 0 + 1.544 + 1.6866 + 1.8316


+ 1. 771 + .11 7 +

. 556) = 1.63176

Trapezoid Rule:

( )

3.31 8
(
+ 14.660 ) = 1.63 1