Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

(M) Use the method in this section to produce a QR factorization of the matrix in Exercise 24.

Short Answer

Expert verified

The required factorization is, (rโˆ’10137โˆ’1121โˆ’53โˆ’6313โˆ’316โˆ’16โˆ’2521โˆ’5โˆ’7)=(r121213011012012โˆ’310โˆ’1213045013011012012)(20โˆ’20โˆ’101006โˆ’8โˆ’60063โˆ’3300052).

Step by step solution

01

QR factorization of a Matrix

A matrix with order mร—n can be written as the multiplication of an upper triangular matrix R and a matrix Q which is formed by applying the Gramโ€“Schmidt orthogonalization processto the col(A).

The matrix R can be found by the formula QTA=R.

02

Finding the matrix R

Given that, A=(rโˆ’10137โˆ’1121โˆ’53โˆ’6313โˆ’316โˆ’16โˆ’2521โˆ’5โˆ’7).

Hence, enter matrix A in MATLAB.

>> A=(-10 13 7 -11; 2 1 5 3; -6 3 13 -3; 16 -16 -2 5; 2 1 -5 -7);

The required function:

function (B) = GramSchmidt_N(A)

(m,n) = size(A);

(U, jb) = rref(A);

x = length(jb);

B = zeros(m,x);

for i = 1:x

C(:,i)= A(:,(jb(i)));

end

B=C;

for i = 2:x

for j = 1:i-1

B(:,i) = B(:,i) - dot(C(:,i),B(:,j))/dot(B(:,j),B(:,j))* B(:,j)

end

end

for i=1:size(B,2)

TMP=B(:,i);

TMP=TMP./(sqrt(sum(TMP.^2)));

B(:,i)=TMP;

end

end

Find the Normalised orthogonal basis:

(B) = GramSchmidt_N(A)

B=rโˆ’0.50000.50000.577400.10000.500000.7071โˆ’0.3000โˆ’0.50000.577400.800000.577400.10000.50000โˆ’0.7071

Therefore, the orthogonal matrix Q isQ=(r121213011012012โˆ’310โˆ’1213045013011012012).

Find the matrix R using the following formula:

R=QTA

R=Q'*A

R=20.0000โˆ’20.0000โˆ’10.000010.000006.00000โˆ’8.0000โˆ’6.00000010.3923โˆ’5.19620007.0711

Hence, the matrix isR=(20โˆ’20โˆ’101006โˆ’8โˆ’60063โˆ’3300052).

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Study anywhere. Anytime. Across all devices.

Sign-up for free