Gram-Schmidt Orthonormalization

Orthonormalize a set of vectors

Input vectors

Vector 1
Vector 2
Vector 3
qₖ = (vₖ − Σⱼ ⟨vₖ, qⱼ⟩ qⱼ) / ‖vₖ − Σⱼ ⟨vₖ, qⱼ⟩ qⱼ‖
Orthonormal basis
q = (0.7071, 0.7071, 0)
q = (0.4082, -0.4082, 0.8165)
q = (-0.5774, 0.5774, 0.5774)
Independent vectors
3 of 3
Orthogonality residual
0
Verified orthonormal
Gram-Schmidt process
  1. v = (1, 1, 0)
    Length ‖u‖ = 1.4142
    q = (0.7071, 0.7071, 0)
  2. v = (1, 0, 1)
    0.7071·q₁
    Length ‖u‖ = 1.2247
    q = (0.4082, -0.4082, 0.8165)
  3. v = (0, 1, 1)
    0.7071·q₁ − 0.4082·q₂
    Length ‖u‖ = 1.1547
    q = (-0.5774, 0.5774, 0.5774)
Gram-Schmidt OrthonormalizationDiagram of 3 input vectors in 3D and the 3 orthonormal basis vectors produced by Gram-Schmidt, drawn as arrows from the origin.xyzvvvqqqinput vᵢorthonormal qᵢ