Courses / Mathematics I
Matrices and Vectors

Dot Product and Angles

Mathematics I 304 words Free to read

Multiplying Vectors into a Scalar

The dot product (scalar product) combines two vectors into a single number. For u=(u1,u2)u = (u_1, u_2) and v=(v1,v2)v = (v_1, v_2), uv=u1v1+u2v2u \cdot v = u_1 v_1 + u_2 v_2 (and analogously in higher dimensions: multiply matching components and sum). Despite its simplicity, it encodes the angle between vectors.

Its geometric identity is the key: uv=uvcosθ,u \cdot v = \|u\|\,\|v\|\cos\theta, where θ\theta is the angle between the vectors. So the sign of the dot product reveals the angle:

The orthogonality test is the workhorse: two nonzero vectors are perpendicular exactly when their dot product is zero — no trigonometry required. Rearranging the identity gives the angle itself: cosθ=uvuv\cos\theta = \frac{u \cdot v}{\|u\|\,\|v\|}. The dot product also recovers length, since uu=u2u \cdot u = \|u\|^2.

The dot product underlies projection (the component of one vector along another is uvv\frac{u \cdot v}{\|v\|}) and the Cauchy–Schwarz inequality uvuv|u \cdot v| \le \|u\|\,\|v\|, a cornerstone of geometry and analysis. Wherever "how aligned are these?" is asked, the dot product answers.

Common pitfall: thinking the dot product yields a vector, or forgetting that orthogonal means dot product zero. uvu \cdot v is a single scalar u1v1+u2v2u_1 v_1 + u_2 v_2, not a vector. And perpendicular vectors have uv=0u \cdot v = 0: a positive or negative dot product signals an acute or obtuse angle, never a right angle.

Two vectors from the origin with the angle theta marked; the accent dot-product value shrinks to zero as the angle opens to 90 degrees — orthogonality at u · v = 0.

uv=uvcosθu \cdot v = \|u\|\,\|v\|\cos\theta

Dot Product and Angles

Practise this lesson

The explanation above is free to read. The graded practice for this lesson lives in the Tryals app.

9practice questions
2interactive scenes
Start Mathematics I free

Matrices and Vectors