Docsity

Linear Algebra: Problems & Solutions for Eigenvalues, Eigenvectors, and Bases, Exams of Linear Algebra

Toggle sidebar
bg1
MATH 304–503/504 Fall 2008
Sample problems for Test 2: Solutions
Any problem may be altered or replaced by a different one!
Problem 1 (20 pts.) Let M2,2(R) denote the vector space of 2 ×2 matrices with real
entries. Consider a linear operator L:M2,2(R)→ M2,2(R) given by
Lx y
z w=x y
z w1 2
3 4.
Find the matrix of the operator Lwith respect to the basis
E1=1 0
0 0, E2=0 1
0 0, E3=0 0
1 0, E4=0 0
0 1.
Let MLdenote the desired matrix. By definition, MLis a 4 ×4 matrix whose columns are
coordinates of the matrices L(E1), L(E2), L(E3), L(E4) with respect to the basis E1, E2, E3, E4. We
have that
L(E1) = 1 0
0 01 2
3 4=1 2
0 0= 1E1+ 2E2+ 0E3+ 0E4,
L(E2) = 0 1
0 01 2
3 4=3 4
0 0= 3E1+ 4E2+ 0E3+ 0E4,
L(E3) = 0 0
1 01 2
3 4=0 0
1 2= 0E1+ 0E2+ 1E3+ 2E4,
L(E4) = 0 0
0 11 2
3 4=0 0
3 4= 0E1+ 0E2+ 3E3+ 4E4.
It follows that
ML=
1300
2400
0013
0024
.
Problem 2 (30 pts.) Let Vbe a subspace of R4spanned by the vectors x1= (1,1,1,1)
and x2= (1,0,3,0).
(i) Find an orthonormal basis for V.
First we apply the Gram-Schmidt orthogonalization process to vectors x1,x2and obtain an or-
thogonal basis v1,v2for the subspace V:
v1=x1= (1,1,1,1),v2=x2−x2·v1
v1·v1
v1= (1,0,3,0) −4
4(1,1,1,1) = (0,−1,2,−1).
Then we normalize vectors v1,v2to obtain an orthonormal basis w1,w2for V:
w1=v1
kv1k=1
2v1=1
2(1,1,1,1),w2=v2
kv2k=1
√6v2=1
√6(0,−1,2,−1).
1
pf3
pf4
pf5

Partial preview of the text

Download Linear Algebra: Problems & Solutions for Eigenvalues, Eigenvectors, and Bases and more Exams Linear Algebra in PDF only on Docsity!

MATH 304–503/504 Fall 2008

Sample problems for Test 2: Solutions

Any problem may be altered or replaced by a different one!

Problem 1 (20 pts.) Let M 2 , 2 (R) denote the vector space of 2 × 2 matrices with real

entries. Consider a linear operator L : M 2 , 2 (R) → M 2 , 2 (R) given by

L

x y

z w

x y

z w

Find the matrix of the operator L with respect to the basis

E 1 =

, E 2 =

, E 3 =

, E 4 =

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 ) =

= 1E 1 + 2E 2 + 0E 3 + 0E 4 ,

L(E 2 ) =

= 3E 1 + 4E 2 + 0E 3 + 0E 4 ,

L(E 3 ) =

= 0E 1 + 0E 2 + 1E 3 + 2E 4 ,

L(E 4 ) =

= 0E 1 + 0E 2 + 3E 3 + 4E 4.

It follows that

ML =

Problem 2 (30 pts.) Let V be a subspace of R^4 spanned by the vectors x 1 = (1, 1 , 1 , 1)

and x 2 = (1, 0 , 3 , 0).

(i) Find an orthonormal basis for V.

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 =

(ii) Find an orthonormal basis for the orthogonal complement V ⊥.

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

A − 3 I =

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.

(iii) Is the matrix A diagonalizable? Explain.

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.

(iv) Find all eigenvalues of the matrix A^2.

Since A has eigenvalues −1, 1, and 3, it is similar to the diagonal matrix

B =

Namely, A = U BU −^1 , where U is the matrix whose columns are vectors v 1 , v 2 , v 3 :

U =

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

B^2 =

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.

Bonus Problem 4 (20 pts.) Find a linear polynomial which is the best least squares fit

to the following data:

x − 2 − 1 0 1 2

f (x) − 3 − 2 1 2 5

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

A =

, 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.