MATH 323 Lecture 20

From Notes
Jump to navigation Jump to search

« previous | Tuesday, November 6, 2012 | next »


Orthogonality

x→⊥y→⟺x→⋅y→=0⟺θ=π2

Subspaces X,Y⊂ℝn: X⊥Y⟺x→⊥y→∀x→∈X∀y→∈Y

If X∩Y≠{0→}, then take v→⋅v→=‖v→‖2≠0 for v→∈X∩Y≠0→: X is not orthogonal to Y.

X⊂ℝn, X⊥={y→∈ℝn:y→⊥X} is orthogonal complement. For example, a plane and a normal vector.

Range

R(A) for m×n matrix A and LA:ℝn→ℝm is defined as

R(LA)=R(A)={y→∈ℝm:y→=Ax→∃x→∈ℝn}⊂ℝm

For transpose matrix, R(AT)⊂ℝn

Note: Range is nothing more than the column space of a matrix

Theorem 5.2.1

Fundamental subspaces theorem

  1. N(A)=R(AT)⊥
  2. N(AT)=R(A)⊥

Proof

Prove one, then the proof of the second follows from the first: Let B=AT, then N(AT)=N(B)=R(BT)⊥=R(A)⊥


Example

A=[1020]AT=[1200]R(A)=Span(12)={α(12):α∈ℝ}N(A)=…=Span(e→2)R(AT)=Span((10),(20))=Span(e→1)N(AT)=…=Span(−21)

  1. N(A)⊥R(AT)
  2. N(AT)⊥R(A)

Theorem 5.2.2

If S is a subspace of ℝn, then dim⁡S+dim⁡S⊥=n=dim⁡ℝn

Furthermore, if {x→1,…,x→r} is a basis for S and {x→r+1,…,x→n} is a basis for S⊥, then {x→1,…x→r,x→r+1,…,x→n} is a basis for ℝn

Proof

If S≠{0→} and {x→1,…,x→r} is a basis for S, then dim⁡S=r.

Let X=(x→iT) be a r×n matrix formed by using the basis vectors as rows of X. The rank of X is r, and R(XT)=S.

S⊥=R(XT)⊥=N(X) by equation 1 of the previous theorem, so dim⁡S⊥=dim⁡N(X)=n−r

Therefore dim⁡S+dim⁡S⊥=r+(n−r)=n. This proves the first part of the theorem.

Check linear independence of x→s to determine whether it is a valid basis of ℝn.

c1x→1+…+crx→r⏟y+cr+1x→r+1+…+cnx→n⏟z=0

In order for y=−z to be true, y and z must be elements of S∩S⊥ Since S and S⊥ are orthogonal subspaces, S∩S⊥={0→}, so y=z=0→.


Direct Sum

If U,V⊂W are subspaces of a vector space W, and each w∈W can be written as a sum u+v, where u∈U and v∈V, then W is a direct sum of U and V, written W=U⊕V

Theorem 5.2.3

If S is a subspcae of ℝn, then ℝn=S⊕S⊥. In other words (or lack thereof):

S⊂ℝn⟹ℝn=S⊕S⊥

Proof

Let {x→1,…,x→r,x→r+1,…,x→n} be a basis for ℝn, then

x→=c1x→1+…+crx→r⏟y→+cr+1x→r+1+…+cnx→n⏟z→=y→+z→

x→=u→+v→x→=y→+z→

This must be unique since S∩S⊥={0→}.

Theorem 5.2.4

(S⊥)⊥=S

Example

A=[112011134]

Find basis for N(A), R(AT), N(AT), and R(A)


rrefA=[101011000]

Therefore, ⟨1,0,1⟩,⟨0,1,1⟩ is a basis for R(AT).


N(A)=α⟨−1,−1,1⟩, so ⟨−1,−1,1⟩ is basis for N(A).


Repeat above steps for AT=[101113214]


Section 5.3: Least Squares

Find best approximation of b→ (outside of a subspace) using vector p→ (in subspace)

Theorem 5.3.1

Let S⊂ℝm be a subspace.

For each b→∈ℝm, there is a unique element p→ of S that is closest to b→, i.e.

‖b→−y→‖>‖b→−p→‖ for any y→≠p→∈S

Furthermore, b→−p→∈S⊥


Definition: Residual Vector

A vector x^ is a solution to the least squares problem Ax→=b→ iff p→=Ax→ is the vector in R(A) that is closest to b→.

Thus we know that p→ is the projection of b→ onto R(A)

b→−p→=b→−Ax^=r(x^)∈R(A)⊥, where r(x^) is the residual vector.

Thus x→ is a solution of the least squares problem iff r(x^)∈R(A)⊥.