A topic in the Open Knowledge Graph — a free, open map of 15,495 topics and the order to learn them in.

Gram-Schmidt Orthogonalization Process

College Depth 94 in the knowledge graph ☐ I know this ☆ Set as goal
116topics build on this
359prerequisites beneath it
See this on the map →
Orthogonal ProjectionsOrthogonal Vectors and Orthonormal Bases+1 more→→Least Squares Approximation and Normal Equations
gram-schmidt orthogonalization basis

Core Idea

The Gram-Schmidt process converts any basis into an orthonormal basis by iterative orthogonalization: orthogonalize each vector against all previous ones. Starting with v₁, compute u_k = v_k − Σ_{j<k} ⟨v_k, e_j⟩e_j and normalize. The process yields an orthonormal basis spanning the same space.

How It's Best Learned

Run the process on (1,1,1), (0,1,1), (0,0,1). Orthogonalize first and normalize last to avoid square roots, using the coefficient ⟨v, w⟩/⟨w, w⟩ for each unnormalized w. You should get w₂ = (−2/3, 1/3, 1/3) and w₃ = (0, −1/2, 1/2). Check that every pair has dot product zero, then normalize. Finally, try a dependent set and watch a zero residual appear.

Common Misconceptions

Explainer

You already know what an orthonormal basis is: a set of basis vectors that are mutually perpendicular (orthogonal) and each has length 1 (unit vectors). Working in an orthonormal basis makes calculations dramatically simpler — projections reduce to dot products, coordinates are just inner products, and many matrix algorithms become numerically stable. The Gram-Schmidt process is the algorithm for building such a basis starting from any ordinary basis you happen to have.

The key geometric idea is projection and subtraction. Suppose you have two vectors, v₁ and v₂, that are not perpendicular. Take v₁ as your first basis vector (just normalize it to get e₁). Now, v₂ points in some direction that has a component *along* e₁ and a component *perpendicular* to e₁. The component along e₁ is the projection: proj = ⟨v₂, e₁⟩ · e₁. If you subtract that projection from v₂, you get a new vector that is perpendicular to e₁ by construction — you've stripped out everything v₂ shared with the e₁ direction. Normalize what's left and you have e₂. Two orthonormal vectors, done.

The process extends by induction. For the k-th vector vₖ, subtract away its projection onto *every* basis vector already computed: uₖ = vₖ − ⟨vₖ, e₁⟩e₁ − ⟨vₖ, e₂⟩e₂ − … − ⟨vₖ, e_{k−1}⟩e_{k−1}. Each subtraction removes the component of vₖ that overlaps with a previously established direction, leaving a remainder that is perpendicular to all of them. Normalize this remainder to get eₖ. Crucially, the resulting orthonormal set spans exactly the same subspace as the original vectors — you haven't changed *what* space you're describing, only *how* you're describing it.

This process has a matrix factorization interpretation: Gram-Schmidt on the columns of a matrix A produces the QR decomposition, A = QR, where Q has orthonormal columns and R is upper triangular. The QR decomposition is one of the workhorses of numerical linear algebra — it underlies the standard algorithm for computing eigenvalues and is the basis of stable least-squares solvers. When you later study least-squares approximation, you'll see that the orthogonal projections Gram-Schmidt builds are exactly the geometry behind finding the best-fit solution when a system has no exact answer.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Combining Small Groups Within 5 → Number Bonds Within 5 → Number Bonds to 10 → Tens and Ones Place Value → Reading and Writing Three-Digit Numbers → Comparing Three-Digit Numbers → Comparing and Ordering Three-Digit Quantities → Comparing and Ordering Whole Numbers → Comparing Numbers 1 to 20 → Ordering Numbers to 20 → Number Line 0 to 20 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Multiplying Binomials (FOIL) → Factoring Trinomials → Factoring Completely → Introduction to Rational Expressions → Simplifying Radical Expressions → Segments and Distance → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Similar Right Triangles and the Geometric Mean → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Special Right Triangles: 30-60-90 → Trigonometric Ratios Review → Vectors in Two Dimensions → Vectors in R^n → Vector Addition and Subtraction → Vector Spaces → Subspaces → Linear Independence and Linear Dependence → Span, Linear Independence, and Basis → Basis and Dimension → Orthonormal Bases → Gram-Schmidt Orthogonalization Process

Longest path: 95 steps · 359 total prerequisite topics

Prerequisites (3)

Leads To (1)