380 likes | 1.17k Views
5.1 Orthogonality. Definitions. A set of vectors is called an orthogonal set if all pairs of distinct vectors in the set are orthogonal. An orthonormal set is an orthogonal set of unit vectors.
E N D
5.1 Orthogonality
Definitions • A set of vectors is called an orthogonal set if all pairs of distinct vectors in the set are orthogonal. • An orthonormal set is an orthogonal set of unit vectors. • An orthogonal (orthonormal) basis for a subspace W of Rn is a basis for W that is an orthogonal (orthonormal) set. • An orthogonal matrix is a square matrix whose columns form an orthonormal set.
Examples 1) Is the following set of vectors orthogonal? orthonormal? 2) Find an orthogonal basis and an orthonormal basis for the subspace W of Rn
Theorems • All vectors in an orthogonal set are linearly independent. Let {v1, v2,…, vk } be an orthogonal basis for a subspace W of Rn and wbe any vector in W. Then the unique scalars c1 ,c2 , …, ck such that w = c1v1 + c2v2 + …+ ckvkare given by Proof: To find ciwe take the dot product with vi w vi = (c1v1 + c2v2 + …+ ckvk) vi
Examples 3) The orthogonal basis for the subspace W in previous example is Pick a vector in W and express it in terms of the vectors in the basis. 4) Is the following matrix orthogonal? If it is orthogonal, find its inverse and its transpose.
Theorems on Orthogonal Matrix The following statements are equivalent for a matrix A : A is orthogonal A-1 = AT ||Av|| = ||v|| for every v in Rn Av1∙ Av2 = v1∙ v2for every v1 ,v2 in Rn Let A be an orthogonal matrix. Then its rows form an orthonormal set. A-1 is also orthogonal. |det(A)| = 1 |λ| = 1 where λ is an eigenvalue of A If A and Bare orthogonal matrices, then so is AB
5.2 Orthogonal Complements and Orthogonal Projections
Orthogonal Complements • Recall: A normal vector n to a plane is orthogonal to every vector in that plane. If the plane passes through the origin, then it is a subspaceW of R3 . • Also, span(n) is also a subspace of R3 • Note that every vector in span(n) is orthogonal to every vector in subspace W . Then span(n) is called orthogonal complement of W. Definition: • A vector v is said to be orthogonal to a subspace W of Rn if it is orthogonal to all vectors in W. • The set of all vectors that are orthogonal to W is called the orthogonal complement of W, denoted W ┴ . That is W perp http://www.math.tamu.edu/~yvorobet/MATH304-2011C/Lect3-02web.pdf
Example 1) Find the orthogonal complements for W of R3 .
Theorems Let W be a subspace of Rn . W ┴ is a subspace of Rn . (W ┴)┴ = W W ∩W ┴ = {0} If W= span(w1,w2,…,wk), then v is in W ┴ iffv∙wi = 0 for all i =1,…,k. Let A be an m x n matrix. Then (row(A))┴ = null(A) and (col(A))┴ = null(AT) Proof?
Example 2) Use previous theorem to find the orthogonal complements for W of R3 .
Orthogonal Projections u w2 w1 v • Let u and v be nonzero vectors. • w1 is called the vector componentof u alongv • (or projection of u onto v), and is denoted by projvu • w2 is called the vector component of u orthogonal tov
Orthogonal Projections • Let W be a subspace of Rn with an orthogonal basis • {u1, u2,…, uk }, the orthogonal projection of v onto W is defined as: • projWv= proju1v + proju2v + … +projukv • The component of vorthogonal toWis the vector • perpWv = v – projwv Let W be a subspace of Rn and vbe any vector in Rn . Then there are unique vectors w1 in W and w2 in W ┴ such that v = w1 + w2 .
Examples 3) Find the orthogonal projection of v = [ 1, -1, 2 ] onto W and the component of v orthogonal to W.
5.3 The Gram-Schmidt Process And the QR Factorization
The Gram-Schmidt Process Goal: To construct an orthogonal (orthonormal) basis for any subspace of Rn. We start with any basis {x1, x2,…, xk }, and “orthogonalize” each vector vi in the basis one at a time by finding the component of vi orthogonal to W = span(x1, x2,…, xi-1 ). • Let {x1, x2,…, xk } be a basis for a subspace W. Then choose the following vectors: • v1 = x1, • v2 = x2 – projv1x2 • v3 = x3 – projv1x3 – projv2x3 • … and so on • Then {v1, v2,…, vk } is orthogonal basis for W . • We can normalize each vector in the basis to form an orthonormal basis.
Examples 1) Use the following basis to find an orthonormal basis for R2 2) Find an orthogonal basis for R3 that contains the vector
The QR Factorization If A is an m x n matrix with linearly independent columns, then A can be factored as A = QR where R is an invertible upper triangular matrix and Q is an m x n orthogonal matrix. In fact columns of Q form orthonormal basis for Rn which can be constructed from columns of A by using Gram-Schmidt process. Note: Since Q is orthogonal, Q-1 = QT and we have R = QT A
Examples 3) Find a QR factorization for the following matrices.
5.4 Orthogonal Diagonalization of Symmetric Matrices
Example 1) Diagonalize the matrix. • Recall: • A square matrix A is symmetric if AT= A. • A square matrix A is diagonalizable if there exists a matrix P and a diagonal matrix D such that P-1AP= D.
Orthogonal Diagonalization Definition: • A square matrix A is orthogonally diagonalizable if there exists an orthogonal matrix Q and a diagonal matrix D such that Q-1AQ= D. • Note that Q-1 = QT
Theorems If A is orthogonally diagonalizable, then Ais symmetric. If A is a real symmetric matrix, then the eigenvalues of A are real. If A is a symmetric matrix, then any two eigenvectors corresponding to distinct eigenvalues of A are orthogonal. A square matrix A is orthogonally diagonalizable if and only if it is symmetric.
Example 2) Orthogonally diagonalize the matrix and write A in terms of matrices Q and D.
Theorem If A is orthogonally diagonalizable, and QTAQ= D then A can written as where qi is the orthonormal column of Q, and λiis the corresponding eigenvalue. This fact will help us construct the matrix A given eigenvalues and orthogonal eigenvectors.
Example 3) Find a 2 x 2 matrix that has eigenvalues 2 and 7, with corresponding eigenvectors
5.5 Applications
Quadratic Forms A quadratic form in x and y : A quadratic form in x,y and z: where x is the variable (column) matrix.
Quadratic Forms A quadratic form in n variables is a function f : Rn R of the form: where A is a symmetric n x n matrix and x is in Rn A is called the matrix associated with f.
The Principal Axes Theorem Every quadratic form can be diagonalized. In fact, if A is a symmetric n x n matrix and if Qis an orthogonal matrix so thatQTAQ= Dthen the change of variable x = Qytransforms the quadratic form into Example: Find a change of variable that transforms the Quadratic into one with no cross-product terms.