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

Dot Product and Projections

College Depth 89 in the knowledge graph ☐ I know this ☆ Set as goal
5,263topics build on this
347prerequisites beneath it
See this on the map →
3D Coordinate Systems and VectorsDot Product (Inner Product in R^n)→→Directional DerivativesDot Product+1 more
dot-product projections orthogonality

Core Idea

The dot product a·b = |a||b|cos(θ) measures how aligned two vectors are. Geometrically, it computes the projection of one vector onto another: proj_a(b) = (a·b/|a|²)a. When a·b = 0, vectors are orthogonal.

How It's Best Learned

Draw one projection on graph paper and check it with arithmetic. Take a = (3, 4) and b = (2, 1). Then a·b = 10 and |a|² = 25, so proj_a(b) = (6/5, 8/5). The leftover piece b − proj_a(b) = (4/5, −3/5) has dot product 0 with a. The drawing shows it as the perpendicular drop from b to the line through a.

Common Misconceptions

Explainer

You already know the algebraic definition of the dot product: a · b = a₁b₁ + a₂b₂ + a₃b₃ for vectors in R³. What the formula a · b = |a||b|cos(θ) adds is a geometric interpretation: the dot product is the product of the two magnitudes, scaled by the cosine of the angle between them. Cosine is 1 when the vectors point the same way, 0 when perpendicular, and −1 when antiparallel. So the dot product is a measure of alignment — how much the two vectors point in the same direction, weighted by their lengths.

This is why orthogonality (perpendicularity) has the clean test a · b = 0. At 90°, cos(θ) = 0, so the product vanishes regardless of the magnitudes. Two nonzero vectors with zero dot product are perpendicular. This test generalizes to any dimension, even when you have no direct geometric picture of "perpendicular" — in Rⁿ, we *define* orthogonality by the dot product being zero. The algebraic formula extends the geometric notion.

The scalar projection of b onto a is the signed length of b's shadow cast along the direction of a: comp_a(b) = (a · b)/|a| = |b|cos(θ). The vector projection rescales the unit vector in a's direction by this amount: proj_a(b) = ((a · b)/|a|²)a. Intuitively, you are decomposing b into two components: one along a and one perpendicular to a. The vector projection gives the parallel component; subtracting it from b gives the perpendicular component b − proj_a(b), which is orthogonal to a by construction. This decomposition — parallel plus perpendicular — is one of the most repeatedly useful tools in vector calculus.

The dot product's role will grow significantly as you move to directional derivatives and gradients. The directional derivative of f in direction u is ∇f · u — the dot product of the gradient with a unit vector. This dot product is maximized when u aligns with ∇f, which is why the gradient points in the direction of steepest ascent. Every statement about "how fast f changes in direction u" is a dot product statement. Learning to see alignment and projection as the fundamental interpretations of the dot product now sets you up to read gradient geometry fluently.

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 → Scalar Multiplication of Vectors → Dot Product (Inner Product in R^n) → Dot Product and Projections

Longest path: 90 steps · 347 total prerequisite topics

Prerequisites (2)

Leads To (3)