Historical Context & Motivation
Vectors have been central to mathematics and physics for centuries, but the idea of multiplying two vectors together took a surprisingly long time to develop. Before the dot product existed, finding the angle between two directions in space required cumbersome trigonometric constructions. Mathematicians needed a compact, algebraic way to extract angle information directly from vector components — and the scalar product (also called the dot product) was the elegant answer.
So why do you need the dot product? Imagine you know two vectors only through their components, like a = (3, 4) and b = (−1, 2). What angle do they form? Are they perpendicular? Parallel? The dot product answers all of these questions with a single calculation. That's the power you'll unlock in this lesson.
Core Principles & Definitions
The dot product connects the algebraic world of components to the geometric world of angles. Before diving into formulas, it helps to understand four key ideas that underpin everything in this topic.
Scalar Result
Two Equivalent Formulas
Perpendicular Vectors
Parallel Vectors
Visual Explanation — Vectors and the Angle Between Them
The diagram makes the geometric meaning of the dot product crystal clear. When you compute a · b, you are really finding how much of b points in the direction of a (the projection, shown in amber), and then scaling that by the magnitude of a. If θ is 90°, the projection collapses to zero, so a · b = 0. If θ is 0°, the projection equals the full length of b, giving the maximum dot product. If θ is between 90° and 180°, the projection points opposite to a, so the dot product becomes negative.
Mathematical Framework
Component Form of the Dot Product
Geometric Form of the Dot Product
Finding the Angle Between Two Vectors
The two forms — component and geometric — are always equal. This is what makes the dot product so powerful: compute the left side with just components (pure algebra), then equate it to the right side to extract the angle (geometry). No protractors needed.
Perpendicular & Parallel Vectors
Two of the most commonly tested scenarios on the IB exam involve checking whether vectors are perpendicular or parallel. Both tests follow directly from the dot product formula.
| Condition | Algebraic Test | Geometric Meaning |
|---|---|---|
| Perpendicular | a · b = 0 (and a ≠ 0, b ≠ 0) | θ = 90°; the vectors form a right angle. |
| Parallel (same direction) | a = kb for some k > 0 | θ = 0°; a · b = |a| |b|. |
| Anti-parallel (opposite) | a = kb for some k < 0 | θ = 180°; a · b = −|a| |b|. |
| Acute angle | a · b > 0 | 0° < θ < 90°. |
| Obtuse angle | a · b < 0 | 90° < θ < 180°. |
Worked Example
Let's work through a full IB-style problem that brings together the dot product, the angle formula, and a perpendicularity check.
Properties, Strengths & Limitations
The dot product obeys several algebraic properties that make it versatile and reliable. Understanding these properties will help you simplify expressions and avoid common mistakes on exams.
| Property | Formula / Rule | Why It Matters |
|---|---|---|
| Commutative | a · b = b · a | Order doesn't matter. You'll never get a different answer by swapping the vectors. |
| Distributive | a · (b + c) = a · b + a · c | You can expand brackets just like ordinary algebra. |
| Scalar Multiplication | (ka) · b = k(a · b) | A scalar factor can be pulled outside the dot product. |
| Self Dot Product | a · a = |a|² | Dot-producting a vector with itself gives the square of its magnitude. Very useful for finding lengths. |
| Not Associative | (a · b) · c is undefined | a · b is a scalar, and you cannot dot a scalar with a vector. Be careful with triple products. |
Connections to Advanced Theory
The dot product you learn in IB HL is a gateway to many powerful ideas in university mathematics and science. Here's a quick look at where the concept leads.
| IB HL Concept | Advanced Extension |
|---|---|
| Dot product a · b = a₁b₁ + a₂b₂ + a₃b₃ | Inner product on abstract vector spaces: 〈f, g〉 = ∫ f(x)g(x) dx. This generalises the dot product to functions, used in Fourier analysis. |
| Perpendicular test: a · b = 0 | Orthogonality in higher dimensions: orthogonal bases, Gram–Schmidt process, and orthogonal projections in linear algebra. |
| Angle between two vectors | In machine learning, cosine similarity cos θ = (a · b)/(|a||b|) measures how alike two data vectors are — used in search engines and recommendation systems. |
| Scalar projection |a| cos θ | Work in physics: W = F · d. The work done by a force equals the dot product of the force vector and the displacement vector. |
If you continue into physics, you'll use the dot product on your very first day in mechanics when computing work done by a force. If you go into data science or AI, the cosine similarity between vectors will become one of your most-used tools. Mastering the dot product now gives you a huge head start.
Practice Problems
Lesson Summary
The scalar (dot) product of two vectors can be computed two ways: the component form a · b = a₁b₁ + a₂b₂ + a₃b₃, and the geometric form a · b = |a||b| cos θ. Equating them gives the angle formula: cos θ = (a · b)/(|a||b|). A dot product of zero means the vectors are perpendicular (provided neither is the zero vector). Vectors are parallel when one is a scalar multiple of the other, making the angle either 0° or 180°.
Key properties include commutativity (a · b = b · a), distributivity over addition, and the self-dot identity a · a = |a|². A positive dot product means an acute angle; a negative dot product means an obtuse angle. Beyond the IB, the dot product underpins work in physics, cosine similarity in data science, and generalised inner products in higher mathematics.