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

Use the Gram–Schmidt process as in Example 2 to produce an orthogonal basis for the column space of

\(A = \left( {\begin{aligned}{{}{r}}{ - 10}&{13}&7&{ - 11}\\2&1&{ - 5}&3\\{ - 6}&3&{13}&{ - 3}\\{16}&{ - 16}&{ - 2}&5\\2&1&{ - 5}&{ - 7}\end{aligned}} \right)\)

Short Answer

Expert verified

The orthogonal basis is,\(W = \left\{ {\left( {\begin{aligned}{{}{r}}{ - 10}\\2\\{ - 6}\\{16}\\2\end{aligned}} \right),\left( {\begin{aligned}{{}{r}}3\\3\\{ - 3}\\0\\3\end{aligned}} \right),\left( {\begin{aligned}{{}{r}}6\\0\\6\\6\\0\end{aligned}} \right),\left( {\begin{aligned}{{}{r}}0\\5\\0\\0\\{ - 5}\end{aligned}} \right)} \right\}\).

Step by step solution

01

\(QR\) factorization of a Matrix

A matrix with order \(m \times 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 process to the \({\rm{col}}\left( A \right)\).

The matrix \(R\) can be found by the formula \({Q^T}A = R\).

By applying Gram-Schmidt orthogonal process, we can determine the orthogonal basis for the column space of \(A\)

02

Finding the matrix \(R\)

Given that, \(A = \left( {\begin{aligned}{{}{r}}{ - 10}&{13}&7&{ - 11}\\2&1&{ - 5}&3\\{ - 6}&3&{13}&{ - 3}\\{16}&{ - 16}&{ - 2}&5\\2&1&{ - 5}&{ - 7}\end{aligned}} \right)\).

Now with the help of MATLAB, we shall find the orthogonal basis of the column space

MATLAB Command:

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(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) = C(:,i)- dot(C(:,i),B(:,j))/dot(B(:,j),B(:,j))* B(:,j) ;

end

end

end

Find the orthogonal basis:

(B) = GramSchmidt(A)

\(\begin{aligned}{}B &= \\\begin{aligned}{{}{r}}{ - 10.0000}&{3.0000}&{8.5000}&{ - 7.9620}\\{2.0000}&{3.0000}&{6.5000}&{5.3232}\\{ - 6.0000}&{ - 3.0000}&{11.5000}&{1.1103}\\{16.0000}&0&{ - 2.0000}&{4.2852}\\{2.0000}&{3.0000}&{ - 3.5000}&{ - 8.2510}\end{aligned}\end{aligned}\)

So, the orthogonal basis is\(W = \left\{ {\left( {\begin{aligned}{{}{r}}{ - 10}\\2\\{ - 6}\\{16}\\2\end{aligned}} \right),\left( {\begin{aligned}{{}{r}}3\\3\\{ - 3}\\0\\3\end{aligned}} \right),\left( {\begin{aligned}{{}{r}}6\\0\\6\\6\\0\end{aligned}} \right),\left( {\begin{aligned}{{}{r}}0\\5\\0\\0\\{ - 5}\end{aligned}} \right)} \right\}\).

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

Most popular questions from this chapter

In Exercises 1-4, find the equation \(y = {\beta _0} + {\beta _1}x\) of the least-square line that best fits the given data points.

  1. \(\left( {0,1} \right),\left( {1,1} \right),\left( {2,2} \right),\left( {3,2} \right)\)

Question: In Exercises 9-12, find (a) the orthogonal projection of b onto \({\bf{Col}}A\) and (b) a least-squares solution of \(A{\bf{x}} = {\bf{b}}\).

11. \(A = \left( {\begin{aligned}{{}{}}{\bf{4}}&{\bf{0}}&{\bf{1}}\\{\bf{1}}&{ - {\bf{5}}}&{\bf{1}}\\{\bf{6}}&{\bf{1}}&{\bf{0}}\\{\bf{1}}&{ - {\bf{1}}}&{ - {\bf{5}}}\end{aligned}} \right)\), \({\bf{b}} = \left( {\begin{aligned}{{}{}}{\bf{9}}\\{\bf{0}}\\{\bf{0}}\\{\bf{0}}\end{aligned}} \right)\)

A Householder matrix, or an elementary reflector, has the form \(Q = I - 2{\bf{u}}{{\bf{u}}^T}\) where u is a unit vector. (See Exercise 13 in the Supplementary Exercise for Chapter 2.) Show that Q is an orthogonal matrix. (Elementary reflectors are often used in computer programs to produce a QR factorization of a matrix A. If A has linearly independent columns, then left-multiplication by a sequence of elementary reflectors can produce an upper triangular matrix.)

Exercises 13 and 14, the columns of \(Q\) were obtained by applying the Gram Schmidt process to the columns of \(A\). Find anupper triangular matrix \(R\) such that \(A = QR\). Check your work.

14.\(A = \left( {\begin{aligned}{{}{r}}{ - 2}&3\\5&7\\2&{ - 2}\\4&6\end{aligned}} \right)\), \(Q = \left( {\begin{aligned}{{}{r}}{\frac{{ - 2}}{7}}&{\frac{5}{7}}\\{\frac{5}{7}}&{\frac{2}{7}}\\{\frac{2}{7}}&{\frac{{ - 4}}{7}}\\{\frac{4}{7}}&{\frac{2}{7}}\end{aligned}} \right)\)

In Exercises 17 and 18, all vectors and subspaces are in \({\mathbb{R}^n}\). Mark each statement True or False. Justify each answer.

17. a.If \(\left\{ {{{\bf{v}}_1},{{\bf{v}}_2},{{\bf{v}}_3}} \right\}\) is an orthogonal basis for\(W\), then multiplying

\({v_3}\)by a scalar \(c\) gives a new orthogonal basis \(\left\{ {{{\bf{v}}_1},{{\bf{v}}_2},c{{\bf{v}}_3}} \right\}\).

b. The Gram–Schmidt process produces from a linearly independent

set \(\left\{ {{{\bf{x}}_1}, \ldots ,{{\bf{x}}_p}} \right\}\)an orthogonal set \(\left\{ {{{\bf{v}}_1}, \ldots ,{{\bf{v}}_p}} \right\}\) with the property that for each \(k\), the vectors \({{\bf{v}}_1}, \ldots ,{{\bf{v}}_k}\) span the same subspace as that spanned by \({{\bf{x}}_1}, \ldots ,{{\bf{x}}_k}\).

c. If \(A = QR\), where \(Q\) has orthonormal columns, then \(R = {Q^T}A\).

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free