MATH 323 Lecture 24

From Notes
Jump to navigation Jump to search

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


Theorem 5.6.1 (Gram-Schmidt Process)

Let {x1,…,xn} be a basis for V,⟨⋅,⋅⟩. Let u1=x1‖x1‖ and define u2,…,un recursively by

uk+1=xk+1−pk‖xk+1−pk‖

Where pk=⟨xk+1,u1⟩u1+⟨xk+1,u2⟩u2+…+⟨xk+1,uk⟩uk is the projection of xk+1 onto vk=Span(u1,…,uk)=Span(x1,…,xk).

The set {u1,…,un} is an orthonormal basis for V.

Notation

From now on,

rkk=‖xk−pk−1‖rik=⟨xk,ui⟩

Proof by Induction

Span(x1)=Span(u1) and u1 is an orthonormal basis for V1

Suppose u1,…,uk are constructed so they are an orthonormal basis for vk and Span{x1,…,xk}=Span{u1,…,uk}.

pk∈Span{u1,…,uk}⟹xk+1−pk∈Span{x1,…,xk,xk+1}

xk+1−pk≠0 because x1,…,xk+1 are linearly independent.

xk+1−pk=xk+1−∑i=1kcixi, where ci=⟨xk+1,ui⟩

Therefore u1,…,uk+1 is an orthonormal set of vectors in Span{x1,…,xk+1}, and is a basis for subspace of dimension k+1.

Thus the theorem holds by induction.

Q.E.D.


Example

Find an orthonormal basis for the range of the following matrix:

A=[1−1414−21421−10]

Column space is defined by Span{(1111),(−144−1),(4−220)}=Span{a→1,a→2,a→3}

r11=‖a→1‖=12+12+12+12=1q→1=a→1r11=⟨12,12,12,12⟩r12=⟨a→2,q→1⟩=3p→1=r12q→1=3q→1a→2−p→1=⟨−52,52,52,−52⟩r22=‖a→2−p→1‖=5q2=a→2−p→1r22=⟨−12,12,12,−12⟩r13=⟨a→3,q→1⟩=2r23=⟨a→3,q→2⟩=−2p→2=r13q→1+r23q→2=⟨2,0,0,2⟩a→3−p→2=⟨2,−2,2,−2⟩r33=‖a→3−p→2‖=4q3=a→3−p→2r33=⟨12,−12,12,−12⟩

Therefore, {q→1,q→2,q→3}={(12121212),(−121212−12),(12−1212−12)} is an orthonormal basis for the range of A.

Theorem 5.6.2 (Gram-Schmidt QR Factor)

If A is an m×n matrix of rank n, then A can be factored into a product QR, where Q is an m×n matrix with orthonormal column vectors and R is an upper triangular n×n matrix whose diagonal entries are all positive.

In the Gram-Schmidt Orthogonalization Process, p→i represents the projection vectors.

rij={‖x→1‖i=j=1‖x→i−p→i‖i=j⟨q→i,x→j⟩otherwise

We use the defined values above to form an upper triangular matrix R

R=({riji≤j0otherwise)

such that A=QR, where Q=(q→1,…,q→n).

Example

From previous example,

R=[r11r12r130r22r2300r33]Q=(q→1,q→2,q→3)


Polynomial Space Example

Consider P3, the subspace consisting of quadratic polynomials, with an inner product:

⟨p,q⟩=∑i=1np(ci)q(ci), where c→=⟨−1,0,1⟩

1, x, and x2 (represented by x→) form a basis for P3, but they are not orthonormal w.r.t. the inner product definition.


Find an orthonormal basis {u1,u2,u3} for P3.


‖x1‖=‖1‖=⟨1,1⟩=1⋅1+1⋅1+1⋅13u1=x1‖x1‖=13p1=⟨x,13⟩13=0x2−p1=x‖x2−p1‖=⟨x,x⟩=2u2=x2p2=⟨x2,13⟩13+⟨x2,x2⟩x2=23‖x2−p2‖=⟨x2−23,x2−23⟩=62u3=x2−2323

Eigenvalues and Eigenvectors

Let A be an n×n matrix.

A scalar λ is an eigenvalue of A if there is a nonzero vector x→∈ℂn such that

Ax→=λx→

x→ is said to be an eigenvector belonging to λ.

All of the following are equivalent: λ is an eigenvalue iff

  • (A−λI)x→=0→ has nonzero solution
  • |A−λI|=0 This is important since it gives the characteristic equation
  • A−λI is singular
  • N(A−λI)≠0

Example

A=[4−211], x=[21]

Ax→=[63]=3x→.

Therefore, λ=3 is the eigenvalue, and x→=⟨2,1⟩ is an eigenvector belonging to λ=3.

If x→ is an eigenvector belonging to λ, then μx→ is also an eigenvector belonging to λ (for nonzero μ):

A(μx→)=μAx→=μλx→


Characteristic Equation

p(λ)=‖A−λI‖ is called the characteristic polynomial

‖A−λI‖=0 is called the characteristic equation

Either way, the form is

|a11−λ…a1n⋮⋱⋮an1…ann−λ|

Example 1

A=[323−2]

Characteristic equation is |3−λ23−2−λ|=λ2−λ−12.

Solutions are λ=4,−3.

Eigenvectors can be obtained by solving (A−λI)x→=0.