



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Let ML denote the desired matrix. By definition, ML is a 4 × 4 matrix whose columns are coordinates of the matrices L(E 1 ), L(E 2 ), L(E 3 ), L(E 4 ) with respect to the basis E 1 , E 2 , E 3 , E 4. We have that
L(E 1 ) =
It follows that
First we apply the Gram-Schmidt orthogonalization process to vectors x 1 , x 2 and obtain an or- thogonal basis v 1 , v 2 for the subspace V :
v 1 = x 1 = (1, 1 , 1 , 1), v 2 = x 2 − x 2 · v 1 v 1 · v 1
v 1 = (1, 0 , 3 , 0) −
Then we normalize vectors v 1 , v 2 to obtain an orthonormal basis w 1 , w 2 for V :
w 1 =
v 1 ‖v 1 ‖
v 1 =
(1, 1 , 1 , 1), w 2 =
v 2 ‖v 2 ‖
v 2 =
Since the subspace V is spanned by vectors (1, 1 , 1 , 1) and (1, 0 , 3 , 0), it is the row space of the matrix
A =
Then the orthogonal complement V ⊥^ is the nullspace of A. To find the nullspace, we convert the matrix A to reduced row echelon form: ( 1 1 1 1 1 0 3 0
Hence a vector (x 1 , x 2 , x 3 , x 4 ) ∈ R^4 belongs to V ⊥^ if and only if { x 1 + 3x 3 = 0 x 2 − 2 x 3 + x 4 = 0
x 1 = − 3 x 3 x 2 = 2x 3 − x 4
The general solution of the system is (x 1 , x 2 , x 3 , x 4 ) = (− 3 t, 2 t − s, t, s) = t(− 3 , 2 , 1 , 0) + s(0, − 1 , 0 , 1), where t, s ∈ R. It follows that V ⊥^ is spanned by vectors x 3 = (0, − 1 , 0 , 1) and x 4 = (− 3 , 2 , 1 , 0). It remains to orthogonalize and normalize this basis for V ⊥:
v 3 = x 3 = (0, − 1 , 0 , 1), v 4 = x 4 − x 4 · v 3 v 3 · v 3
v 3 = (− 3 , 2 , 1 , 0) −
w 3 = v 3 ‖v 3 ‖
(0, − 1 , 0 , 1), w 4 = v 4 ‖v 4 ‖
v 4 =
Thus the vectors w 3 = √^12 (0, − 1 , 0 , 1) and w 4 = 2 √^13 (− 3 , 1 , 1 , 1) form an orthonormal basis for V ⊥.
Alternative solution: Suppose that an orthonormal basis w 1 , w 2 for the subspace V has been extended to an orthonormal basis w 1 , w 2 , w 3 , w 4 for R^4. Then the vectors w 3 , w 4 form an orthonormal basis for the orthogonal complement V ⊥. We know that vectors v 1 = (1, 1 , 1 , 1) and v 2 = (0, − 1 , 2 , −1) form an orthogonal basis for V. This basis can be extended to a basis for R^4 by adding two vectors from the standard basis. For example, we can add vectors e 3 = (0, 0 , 1 , 0) and e 4 = (0, 0 , 0 , 1). The vectors v 1 , v 2 , e 3 , e 4 do form a basis for R^4 since the matrix whose rows are these vectors is nonsingular: ∣ ∣∣ ∣∣ ∣∣ ∣
To orthogonalize the basis v 1 , v 2 , e 3 , e 4 , we apply the Gram-Schmidt process (note that the vectors v 1 and v 2 are already orthogonal):
v 3 = e 3 −
e 3 · v 1 v 1 · v 1 v 1 −
e 3 · v 2 v 2 · v 2 v 2 = (0, 0 , 1 , 0) −
v 4 = e 4 − e 4 · v 1 v 1 · v 1
v 1 − e 4 · v 2 v 2 · v 2
v 2 − e 4 · v 3 v 3 · v 3
v 3 =
It remains to normalize vectors v 1 , v 2 , v 3 , v 4 :
w 1 =
v 1 ‖v 1 ‖
(1, 1 , 1 , 1), w 2 =
v 2 ‖v 2 ‖
Finally, consider the case λ = 3. The row reduction yields
Hence
(A − 3 I)v = 0 ⇐⇒
x y z
x − z = 0, y − z = 0.
The general solution is x = t, y = t, z = t, where t ∈ R. In particular, v 3 = (1, 1 , 1) is an eigenvector of A associated with the eigenvalue 3.
The matrix A is diagonalizable, i.e., there exists a basis for R^3 formed by its eigenvectors. Namely, the vectors v 1 = (1, − 1 , 1), v 2 = (− 1 , 0 , 1), and v 3 = (1, 1 , 1) are eigenvectors of the matrix A belonging to distinct eigenvalues. Therefore these vectors are linearly independent. It follows that v 1 , v 2 , v 3 is a basis for R^3. Alternatively, the existence of a basis for R^3 consisting of eigenvectors of A already follows from the fact that the matrix A has three distinct eigenvalues.
Since A has eigenvalues −1, 1, and 3, it is similar to the diagonal matrix
Namely, A = U BU −^1 , where U is the matrix whose columns are vectors v 1 , v 2 , v 3 :
Then A^2 = U BU −^1 U BU −^1 = U B^2 U −^1 , that is, the matrix A^2 is similar to the diagonal matrix
Similar matrices have the same characteristic polynomial, hence they have the same eigenvalues. Thus the eigenvalues of A^2 are the same as the eigenvalues of B^2 : 1 and 9.
We are looking for a function f (x) = c 1 + c 2 x, where c 1 , c 2 are unknown coefficients. The data of the problem give rise to an overdetermined system of linear equations in variables c 1 and c 2 :
c 1 − 2 c 2 = − 3 , c 1 − c 2 = − 2 , c 1 = 1, c 1 + c 2 = 2, c 1 + 2c 2 = 5.
This system is inconsistent. We can represent it as a matrix equation Ac = y, where
, c =
c 1 c 2
, y =
The least squares solution c of the above system is a solution of the system AT^ Ac = AT^ y:
c 1 c 2
c 1 c 2
c 1 = 3/ 5 c 2 = 2
Thus the function f (x) = 35 +2x is the best least squares fit to the above data among linear polynomials.