Courses / Mathematics I
Matrices and Vectors

Dot Product and Angles

Mathematics I 261 words Free to read

The Dot Product & Geometry

The dot product combines two vectors into a single number, answering how aligned they are. 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

It connects algebra to geometry via the identity uv=uvcosθu \cdot v = \|u\|\|v\|\cos\theta, where θ\theta is the angle between them. Rearranging this gives the angle formula:

cosθ=uvuv\cos\theta = \frac{u \cdot v}{\|u\|\|v\|}

The dot product also recovers length: uu=u2u \cdot u = \|u\|^2. It enables projection, measuring how far one vector extends along another via uvv\frac{u \cdot v}{\|v\|}.

Angle TypeDot Product SignGeometric Meaning
Acute (θ<90\theta < 90^\circ)PositiveVectors broadly agree
Right (θ=90\theta = 90^\circ)ZeroOrthogonal (perpendicular)
Obtuse (θ>90\theta > 90^\circ)NegativeVectors broadly oppose

Tests, Inequalities, & Pitfalls

The orthogonality test is a workhorse: two nonzero vectors are perpendicular exactly when their dot product is zero, requiring no trigonometry.

The operation is also bound by the Cauchy–Schwarz inequality, stating uvuv|u \cdot v| \le \|u\|\|v\|. This fundamental rule guarantees that cosθ\cos\theta never exceeds 11 in magnitude.

Common Pitfalls to Avoid:

Wherever you need to measure alignment, projection, or perpendicularity, the dot product is the universal tool.

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

Matrices and Vectors