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

Dot Product and Projections

College Depth 77 in the knowledge graph I know this Set as goal
5,164topics build on this
314prerequisites 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.

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 ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersDividing IntegersUnit RatesProportionsPercent ConceptConverting Between Fractions, Decimals, and PercentsOperations with Rational NumbersTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesAngle Pairs: Complementary, Supplementary, and VerticalParallel Lines and TransversalsCorresponding AnglesAlternate Interior AnglesTriangle Angle Sum TheoremExterior Angle TheoremTriangle Inequality TheoremSimilar Triangles: AA SimilaritySimilar Triangles: SSS and SAS SimilarityProportions in Similar TrianglesRight Triangle Trigonometry IntroductionSine, Cosine, and Tangent RatiosTrigonometric Ratios ReviewVectors in Two DimensionsVector Operations: Addition, Subtraction, and Scalar MultiplicationDot Product (Inner Product in R^n)Dot Product and Projections

Longest path: 78 steps · 314 total prerequisite topics

Prerequisites (2)

Leads To (3)