stfwn
  • Introduction
  • Calculus
    • Gradient
    • Taylor Series
    • Miscellaneous
  • Computer Science
    • Basic Architecture and Assembly
  • Fixes & Snippets
    • Docker
    • HTML
    • LaTeX
    • Linux
    • Node.js
    • Miscellaneous
  • Linear Algebra
    • Orthogonality
    • The Gram-Schmidt Process
    • QR-Factorization
    • Orthogonal Diagonalization
    • Quadratic Forms
    • Least Squares Theorem
    • Singular Value Decomposition
    • Pseudoinverse
  • Miscellaneous
    • Digital Safety
    • Homelab
    • Links
    • Music
  • Reading
Powered by GitBook
On this page
  • Orthogonal set and basis
  • Orthonormal set and basis
  • Orthogonal Matrix
  • Orthogonal Projection
  1. Linear Algebra

Orthogonality

PreviousLinear AlgebraNextThe Gram-Schmidt Process

Last updated 6 years ago

Orthogonal set and basis

An orthogonal set is a set in which all pairs of distinct vectors are orthogonal. Similarly, an orthogonal basis is a basis that is an orthogonal set.

If {v1⃗,...,vn⃗}\{\vec{v_1}, ..., \vec{v_n}\}{v1​​,...,vn​​} is an orthogonal basis for a subspace WWW and w⃗\vec{w}w is a vector in WWW, the scalars ci,...,cnc_i, ..., c_nci​,...,cn​ that express www as a linear combination of {v1⃗,...,vn⃗}\{\vec{v_1}, ..., \vec{v_n}\}{v1​​,...,vn​​} are given by:

ci=w⋅vivi⋅vifor i=1,...,nc_i = \frac{w \cdot v_i}{v_i \cdot v_i} \text{for } i = 1, ..., nci​=vi​⋅vi​w⋅vi​​for i=1,...,n

Orthonormal set and basis

A set of vectors in RnR^nRn is called an orthonormal set if it is an orthogonal set of unit vectors. Likewise, an orthonormal basis is an orthonormal set that is a basis for some subspace. You can easily obtain an orthonormal set from an orthogonal set by normalizing each vector in the set.

If {q1⃗,q2⃗,...,qn⃗}\{\vec{q_1}, \vec{q_2}, ..., \vec{q_n}\}{q1​​,q2​​,...,qn​​} is an orthonormal basis for subspace WWW and w⃗\vec{w}w is in WWW, then w⃗\vec{w}w can be expressed as a combination of projections:

w=(w⋅q1)q1+(w⋅q2)q2+...+(w⋅qn)qnw = (w \cdot q_1)q_1 + (w \cdot q_2)q_2 + ... + (w \cdot q_n)q_nw=(w⋅q1​)q1​+(w⋅q2​)q2​+...+(w⋅qn​)qn​

Orthogonal Matrix

Somewhat confusingly, a square matrix in which the columns form an orthonormal set is called an orthogonal matrix. There is no name for a non-square matrix with orthonormal columns.

Orthogonal Projection

The component of v orthogonal to W is the vector:

An orthogonal matrix some nice properties. Some of these are a bit obvious but it's nice to have them in a list. For any orthogonal matrix QQQ with dimension n×nn \times nn×n:

Q−1=QTQ^{-1} = Q^TQ−1=QT.

∣∣Qx⃗∣∣=∣∣x⃗∣∣||Q\vec{x}|| = ||\vec{x}||∣∣Qx∣∣=∣∣x∣∣ for any xxx in RnR^nRn.

Any eigenvalues λ\lambdaλ of QQQ have ∣λ∣=1|\lambda| = 1∣λ∣=1.

Qx⃗⋅Qy⃗=x⃗⋅y⃗Q \vec{x} \cdot Q \vec{y} = \vec{x} \cdot \vec{y}Qx⋅Qy​=x⋅y​ for every xxx and yyy in RnR^nRn.

Q−1Q^{-1}Q−1 is orthogonal.

det(Q)=±1det(Q) = \pm 1det(Q)=±1.

If WWW is some subspace of RnR^nRn and {u1⃗,...,un⃗}\{\vec{u_1}, ..., \vec{u_n}\}{u1​​,...,un​​} is an orthogonal basis for WWW, for any v⃗\vec{v}v in RnR^nRn, the orthogonal projection of v onto W is defined as:

projW(v)=(u1⋅vu1⋅u1)u1+...+(un⋅vun⋅un)unproj_W (v) = (\frac{u_1 \cdot v}{u_1 \cdot u_1})u_1 + ... + (\frac{u_n \cdot v}{u_n \cdot u_n})u_nprojW​(v)=(u1​⋅u1​u1​⋅v​)u1​+...+(un​⋅un​un​⋅v​)un​
perpW(v)=v−projW(v)perp_W (v) = v - proj_W (v)perpW​(v)=v−projW​(v)