Assignment5 Cse330 Fall2022
Assignment5 Cse330 Fall2022
Use the above data values to find the best fit polynomial of degree 2 by using the QR-decomposition method by
answering the questiosn below step by step.
(a) (2.5 marks) Identify the matrix A and b. Also identify the linearly independent column vectors u1 , u2 and u3
from the matrix A.
(b) (1+2+3 marks) Using Gram-Schmidt process construct the orthonormal column matrices (or vectors) q1 , q2
and q3 from the linearly independent column vectors obtained in the previous part, and then write down the
Q matrix.
(c) (3 marks) Now calculate the matrix elements of R , and write down the matrix R.
(d) (4.5 marks) Compute Rx and QT b, with x = (a0 a1 a2 )T being the coefficients of the polynomial p2 (x), and
finally find the expression for the polynomial p2 (x).
2. Answer the following questions:
(a) (2 marks) Find the l2 -norms of the vectors, x = (1, 2, 3)T and y = (9, 11, 13)T .
(b) (6 marks) Show that the set,
{ )T }
1 ( )T 1 ( )T 1 (
S= √ 2, −1, 0 , √ 1, 2, −5 , √ 2, 4, 2
5 30 24
is orthonormal.
(c) (6 marks) Let f (x) = sin x and consider x0 = 4, x1 = 9 and x2 = −6. For f (x) take up to 3 decimal places
after rounding. Now, Find the polynomial using Least Square Approximation for n = 1.
Motto: Mathematics is NOT difficult, but what is difficult is to believe that mathematics is NOT difficult.