Docsity

Theorem - Linear Algebra - Solved Exercise, Exercises of Linear Algebra

Toggle sidebar
bg1
MTH5112 Linear Algebra I 2012–2013
Coursework 10 — Solutions
Exercise 1.
(a) Observe that by Theorem 6.22 proved in the lectures UTU=I, since Uhas orthonormal
columns. Thus
(Ux)·(Uy) = (Ux)TUy=xTUTUy=xTIy=xTy=x·y.
(b) Notice that by (a) we have
kUxk2= (Ux)·(Ux) = x·x=kxk2,
so the statement follows by taking square roots.
(c) Again by (a), we see that (Ux)·(Uy) = 0 if and only if x·y= 0, so Uxis orthogonal to Uy
if and only if xis orthogonal to y.
Exercise* 2.
(a) Since Qis a square matrix and QTQ=I, Corollary 2.42 implies that QQT=Ias well. Thus
Qis invertible with Q−1=QT.
(b) If {v1,...,vn}is an orthonormal basis for Rn, then
vi·vj=δij .
By Exercise 1 (a), (Qx)·(Qy) = x·yfor any x,y∈Rn. Thus
(Qvi)·(Qvj) = vi·vj=δij ,
so {Qv1, . . . , Qvn}is an orthonormal set in Rn. In particular, the nvectors Qv1, . . . , Qvn
are linearly independent by Theorem 6.15. But dim Rn=n, so {Qv1, . . . , Qvn}must be a
basis of Rn.
Exercise 3.
(a) Since
u1·u2= 1 ·3+0·1+(−3) ·1 = 0
u1·u3= 1 ·(−3) + 0 ·10 + (−3) ·(−1) = 0
u2·u3= 3 ·(−3) + 1 ·10 + 1 ·(−1) = 0
{u1,u2,u3}is an orthogonal set. In particular, the 3 vectors u1,u2,u3are linearly independent
by Theorem 6.15. But dim R3= 3, so {u1,u2,u3}is a basis for R3.
(b) First we calculate the following dot products:
y·u1= 6 ·1+(−8) ·0 + 12 ·(−3) = −30
u1·u1= 12+ 02+ (−3)2= 10
y·u2= 6 ·3+(−8) ·1 + 12 ·1 = 22
u2·u2= 32+ 12+ 12= 11
y·u3= 6 ·(−3) + (−8) ·10 + 12 ·(−1) = −110
u3·u3= (−3)2+ 102+ (−1)2= 110
Thus
y=y·u1
u1·u1
u1+y·u2
u2·u2
u2+y·u3
u3·u3
u3=−30
10 u1+22
11u2+−110
110 u3=−3u1+ 2u2−u3.
pf3
pf4

Partial preview of the text

Download Theorem - Linear Algebra - Solved Exercise and more Exercises Linear Algebra in PDF only on Docsity!

MTH5112 Linear Algebra I 2012–

Coursework 10 — Solutions

Exercise 1. (a) Observe that by Theorem 6.22 proved in the lectures U T^ U = I, since U has orthonormal columns. Thus

(U x)·(U y) = (U x)T^ U y = xT^ U T^ U y = xT^ Iy = xT^ y = x·y.

(b) Notice that by (a) we have

‖U x‖^2 = (U x)·(U x) = x·x = ‖x‖^2 , so the statement follows by taking square roots.

(c) Again by (a), we see that (U x)·(U y) = 0 if and only if x·y = 0, so U x is orthogonal to U y if and only if x is orthogonal to y.

Exercise* 2. (a) Since Q is a square matrix and QT^ Q = I, Corollary 2.42 implies that QQT^ = I as well. Thus Q is invertible with Q−^1 = QT^.

(b) If {v 1 ,... , vn} is an orthonormal basis for Rn, then vi·vj = δij.

By Exercise 1 (a), (Qx)·(Qy) = x·y for any x, y ∈ Rn. Thus

(Qvi)·(Qvj ) = vi·vj = δij ,

so {Qv 1 ,... , Qvn} is an orthonormal set in Rn. In particular, the n vectors Qv 1 ,... , Qvn are linearly independent by Theorem 6.15. But dim Rn^ = n, so {Qv 1 ,... , Qvn} must be a basis of Rn.

Exercise 3. (a) Since

u 1 ·u 2 = 1 · 3 + 0 · 1 + (−3) · 1 = 0 u 1 ·u 3 = 1 · (−3) + 0 · 10 + (−3) · (−1) = 0 u 2 ·u 3 = 3 · (−3) + 1 · 10 + 1 · (−1) = 0

{u 1 , u 2 , u 3 } is an orthogonal set. In particular, the 3 vectors u 1 , u 2 , u 3 are linearly independent by Theorem 6.15. But dim R^3 = 3, so {u 1 , u 2 , u 3 } is a basis for R^3.

(b) First we calculate the following dot products:

y·u 1 = 6 · 1 + (−8) · 0 + 12 · (−3) = − 30 u 1 ·u 1 = 1^2 + 0^2 + (−3)^2 = 10

y·u 2 = 6 · 3 + (−8) · 1 + 12 · 1 = 22 u 2 ·u 2 = 3^2 + 1^2 + 1^2 = 11

y·u 3 = 6 · (−3) + (−8) · 10 + 12 · (−1) = − 110 u 3 ·u 3 = (−3)^2 + 10^2 + (−1)^2 = 110 Thus

y =

y·u 1 u 1 ·u 1

u 1 +

y·u 2 u 2 ·u 2

u 2 +

y·u 3 u 3 ·u 3

u 3 =

u 1 +

u 2 +

u 3 = − 3 u 1 + 2u 2 − u 3.

Exercise 4.

(a) If x ∈ H, then x is orthogonal to each y ∈ H⊥, so x ∈ (H⊥)⊥. Thus H ⊂ (H⊥)⊥. Conversely, suppose that x ∈ (H⊥)⊥. By the Orthogonal Decomposition Theorem we can write x as a sum xˆ + z, where xˆ ∈ H and z ∈ H⊥. Since z ∈ H⊥, it is orthogonal to both x ˆ and x, so 0 = z·x = z·ˆx + z·z = z·z. Thus z = 0 , which implies that x = ˆx ∈ H. It follows that (H⊥)⊥^ ⊂ H.

(b) Let S 1 = {v 1 ,... , vp} be an orthogonal basis for H and let S 2 = {w 1 ,... , wq} be an orthogonal basis for H⊥. We start by showing that S 1 ∪ S 2 is an orthogonal basis for Rn. Since S 1 and S 2 are both orthogonal sets, any two distinct vectors in S 1 are orthogonal, and any two distinct vectors in S 2 are orthogonal. Moreover, since each vector in S 2 belongs to H⊥, each of them is orthogonal to every vector in S 1. Thus S 1 ∪ S 2 is an orthogonal set. In order to show the spanning property observe that by the Orthogonal Decomposition Theo- rem any vector y ∈ Rn^ can be written as a sum ˆy + z with ˆy ∈ H and z ∈ H⊥. Notice now that there exist scalars α 1 ,... , αp and β 1... , βq, such that

ˆy = α 1 v 1 + · · · αpvp , z = β 1 w 1 + · · · βqwq ,

because S 1 is a spanning set for H and S 2 is a spanning set for H⊥. Hence

y = ˆy + z = α 1 v 1 + · · · αpvp + β 1 w 1 + · · · βqwq ,

so y ∈ Span (v 1 ,... , vp, w 1 ,... , wq). Thus S 1 ∪ S 2 is a spanning set for Rn^ as claimed. Now we are ready to roll: the p + q vectors v 1 ,... , vp, w 1 ,... , wq form a basis for Rn, so p + q = dim Rn^ = n. But dim H = p and dim H⊥^ = q, so dim H + dim H⊥^ = n, as claimed.

Exercise 5. Since

y·u = (−1) · 1 + 7 · 3 = 20 u·u = 1 · 1 + 3 · 3 = 10

the orthogonal projection ˆy of y onto Span (u) is given by

ˆy =

y·u u·u

u =

u = 2u =

Thus

y − yˆ =

But

(y − yˆ)·u =

so y − yˆ and u are indeed orthogonal (as they should!). Now, since y − yˆ is perpendicular to u and ‖y − yˆ‖ is the distance from yˆ to y, the norm of y − yˆ is the shortest distance from y to the line in the direction u.

Exercise 6. Since u 1 ·u 2 = 1 · (−3) + 2 · 1 + 1 · 1 = 0 ,

the set {u 1 , u 2 } is an orthogonal set.

Exercise 8. In order to write down the normal equations for the least squares problem Ax = b we first calculate

AT^ A =

and

AT^ b =

so the normal equations are (^) 

x 1 x 2 x 3

The above system is solved using Gaussian elimination:

 

The leading variables are x 1 and x 2 and the free variable is x 3. Setting x 3 = α, we find x 2 = 3 − α and x 1 = 1 − α. Thus the set of least squares solutions of Ax = b is given by

 

1 − α 3 − α α

α ∈ R