Worked ExampleLinear AlgebraIntermediateMath Workspace (CAS)

Carry out Gram-Schmidt orthogonalization on a basis in

Gram-Schmidt turns a useful but tilted basis into an orthogonal one. The example keeps the arithmetic small enough that the projection idea remains visible.

Primary Tool

Math Workspace (CAS)

Open CAS workspace

CAS is useful here because every projection coefficient has to be exact. The embed shows the vector subtraction and then checks the dot products, so the method is not reduced to memorizing a formula.

Problem

Apply Gram-Schmidt to , , and .

The goal is not to change the subspace. These vectors already form a basis of . The goal is to produce a new basis for the same space whose vectors meet at right angles.

Projection idea

Set . To build , remove from the component that points along : .

For , remove the components pointing along both and . That is the only new ingredient in three dimensions.

Step-by-step walkthrough

The fractions are not the point. The point is that each new vector is cleaned of every direction already chosen.

  1. 1Start with .
  2. 2Compute .
  3. 3Check , so the first two directions are orthogonal.
  4. 4Compute .
  5. 5Check and .
  6. 6The result is an orthogonal basis. Divide each by its length if you need an orthonormal basis.

Common Pitfall

Gram-Schmidt does not merely normalize vectors. Normalizing changes lengths; Gram-Schmidt first changes directions by removing projections so the vectors become orthogonal.

Try a Variation

Normalize the three vectors from the example. What are their lengths, and what orthonormal basis do you get?

Related Pages

Keep moving through the cluster

Back to Learn Math →