IB MATHEMATICS: APPLICATIONS AND INTERPRETATION • GEOMETRY AND TRIGONOMETRY

3D Vectors & Dot Product — AHL 3.6 Vectors in 3D and scalar product (dot product) (HL)

Extend vectors into three dimensions and use the dot product to measure angles and projections in space.

Historical Context & Motivation

Humans have always needed ways to describe direction and distance — think of ancient sailors navigating the Mediterranean or engineers planning the construction of the Egyptian pyramids. For centuries, people used flat, two-dimensional maps and diagrams to represent the world. But the real world is three-dimensional, and mathematicians eventually needed tools that could handle length, width, and height simultaneously. The story of vectors — quantities that carry both magnitude and direction — is a story of solving that exact problem.

1637
Descartes' Coordinate Geometry
René Descartes published La Géométrie, fusing algebra and geometry by introducing a coordinate system. This let mathematicians describe points and directions numerically in 2D for the first time.
1843
Hamilton's Quaternions
William Rowan Hamilton discovered quaternions while walking along a canal in Dublin. This four-component number system provided a way to handle rotations and directions in three-dimensional space.
1881
Gibbs & Heaviside Formalize Vectors
Josiah Willard Gibbs and Oliver Heaviside independently stripped quaternions down to the modern vector notation we use today, defining the dot product and cross product as separate operations on 3D vectors.
1900s
Vectors Become Universal
Vectors became the standard language of physics, engineering, and computer graphics. Today, every 3D video game, GPS system, and structural engineering calculation relies on dot products and 3D vector operations.

The central question this topic addresses is: how do we measure the angle between two directions in three-dimensional space, and how do we quantify how much one vector "pushes" along another? The scalar product (dot product) is the elegant algebraic tool that answers both questions without ever needing a protractor.

Core Principles & Definitions

Before diving into calculations, you need a solid grasp of a few foundational ideas. A 3D vector extends the familiar 2D vector by adding a third component. Instead of describing motion in a flat plane, you can now describe motion in full three-dimensional space — forward/backward, left/right, and up/down.

1

3D Vector Notation

A vector in 3D is written as a = (a₁, a₂, a₃) or as a₁i + a₂j + a₃k, where i, j, k are unit vectors along the x, y, and z axes respectively.
2

Magnitude in 3D

The magnitude (length) of a 3D vector is found using the 3D version of the Pythagorean theorem: |a| = √(a₁² + a₂² + a₃²). This generalizes the 2D formula you already know.
3

Scalar (Dot) Product

The dot product of two vectors produces a single number (a scalar), not a vector. It measures how aligned two vectors are. If they point in the same direction, the dot product is large and positive; if perpendicular, it is zero.
4

Angle Between Vectors

The dot product links directly to the angle θ between two vectors through the formula a · b = |a||b| cos θ. Rearranging this gives you the angle without measuring.
5

Perpendicularity Test

Two vectors are perpendicular (orthogonal) if and only if their dot product equals zero. This is one of the most useful quick tests in geometry and physics.
KEY TAKEAWAY
Think of the dot product like a "shadow meter." Imagine shining a flashlight straight down one vector. The dot product tells you how long the shadow of the other vector is along that direction. If the two vectors are perpendicular, the shadow has zero length — and the dot product is zero. If they point the same way, the shadow is as long as possible — and the dot product is maximized.

Visual Explanation — Vectors in 3D Space

Two vectors a (blue) and b (pink) originate from the same point O in a 3D coordinate system. The angle θ (amber arc) between them can be calculated purely from their components using the dot product formula — no physical measurement required.

In the diagram above, notice how each vector has three components that determine its position in space. The blue vector a = (2, 3, 4) reaches to the right, forward, and upward, while the pink vector b = (1, −1, 2) goes slightly right, backward, and upward. The dashed lines show how each vector can be "projected" down to the horizontal plane, helping you visualize its three separate components. The key insight is that the angle θ between the two vectors can be computed exactly from these six numbers using the dot product — you never need to draw the diagram to find the angle.

Mathematical Framework

The mathematical machinery behind 3D vectors and the dot product is surprisingly compact. You only need a handful of formulas, and each one builds naturally on the 2D versions you have seen before. Let's walk through each key equation.

MAGNITUDE OF A 3D VECTOR
|a| = √(a₁² + a₂² + a₃²)
Where a₁, a₂, a₃ are the x, y, z components of vector a. This is the 3D extension of the Pythagorean theorem. Think of it as finding the diagonal of a rectangular box whose sides are a₁, a₂, and a₃.
DOT PRODUCT — COMPONENT FORM
a · b = a₁b₁ + a₂b₂ + a₃b₃
Multiply matching components and add the results. For example, if a = (2, 3, 4) and b = (1, −1, 2), then a · b = (2)(1) + (3)(−1) + (4)(2) = 2 − 3 + 8 = 7.
DOT PRODUCT — GEOMETRIC FORM
a · b = |a| × |b| × cos θ
This connects the algebraic computation to the geometric angle θ between the two vectors. By equating the two forms, you can solve for θ.
FINDING THE ANGLE
cos θ = (a₁b₁ + a₂b₂ + a₃b₃) / (|a| × |b|)
Rearranging the geometric form gives this formula. To find θ itself, take the inverse cosine (cos⁻¹) of both sides. The angle θ will always be between 0° and 180° (or 0 and π radians).
📝 IB Exam Tip
Make sure your calculator is set to the correct angle mode (degrees or radians) before computing cos⁻¹. The IB formula booklet provides the dot product formula in both component and geometric forms — you do not need to memorize them, but you must know how to use them fluently.

Geometric Interpretation & Special Cases

The dot product is not just an abstract computation — it carries deep geometric meaning. The sign and size of a · b tell you about the relationship between the two vectors. Understanding these special cases will help you interpret results quickly, especially under timed exam conditions.

Three cases of the dot product. Positive when vectors align (θ < 90°), zero when perpendicular (θ = 90°), and negative when vectors oppose (θ > 90°).

The diagram above summarizes the three critical cases. When 0° < θ < 90°, the dot product is positive — the vectors share a general direction. When θ = 90°, the dot product is exactly zero, which is the perpendicularity condition. When 90° < θ ≤ 180°, the dot product is negative — the vectors generally oppose each other. Memorizing these three cases is extremely helpful for checking your work on exams. If your calculated dot product is positive but the vectors clearly point in roughly opposite directions, you know you have made an arithmetic error.

Dot product values for key angles
Angle θcos θa · bInterpretation
1|a| × |b| (maximum)Parallel, same direction
0° < θ < 90°0 < cos θ < 1PositiveAcute angle between them
90°00Perpendicular
90° < θ < 180°−1 < cos θ < 0NegativeObtuse angle between them
180°−1−|a| × |b| (minimum)Anti-parallel, opposite directions

Worked Example — Finding the Angle Between Two 3D Vectors

Let's put everything together. Suppose you are given a = (3, −2, 1) and b = (1, 4, −3). Find the angle θ between the two vectors, giving your answer to the nearest degree.

Find the angle between a = (3, −2, 1) and b = (1, 4, −3)
1
Step 1 — Compute the Dot ProductUsing the component formula, multiply matching components and add: a · b = (3)(1) + (−2)(4) + (1)(−3) = 3 − 8 − 3.
a · b = −8
2
Step 2 — Find the Magnitude of aApply the magnitude formula: |a| = √(3² + (−2)² + 1²) = √(9 + 4 + 1) = √14.
|a| = √14 ≈ 3.742
3
Step 3 — Find the Magnitude of bSimilarly: |b| = √(1² + 4² + (−3)²) = √(1 + 16 + 9) = √26.
|b| = √26 ≈ 5.099
4
Step 4 — Apply the Angle FormulaSubstitute into cos θ = (a · b) / (|a| × |b|): cos θ = −8 / (√14 × √26) = −8 / √364 ≈ −8 / 19.08 ≈ −0.4193.
cos θ ≈ −0.4193
5
Step 5 — Find θTake the inverse cosine: θ = cos⁻¹(−0.4193) ≈ 114.8°. The negative dot product confirms the angle is obtuse (greater than 90°), which matches our result.
θ ≈ 115° (to the nearest degree)
Checking Your Answer
Always perform a quick sanity check. The dot product was negative, so the angle must be greater than 90°. Our answer of 115° is indeed obtuse — this confirms we haven't made a sign error. If you had gotten an acute angle with a negative dot product, you would know something went wrong.

Properties, Strengths & Limitations of the Dot Product

The dot product has several algebraic properties that make it a powerful and reliable tool. Understanding these properties helps you simplify problems and avoid common mistakes. At the same time, it is important to know what the dot product cannot do, so you reach for the right tool at the right time.

Key properties of the dot product
PropertyFormula / RuleWhy It Matters
Commutativea · b = b · aOrder doesn't matter — you get the same scalar either way.
Distributivea · (b + c) = a · b + a · cYou can expand expressions just like regular algebra.
Scalar multiplication(ka) · b = k(a · b)Constants can be factored out of the dot product.
Self-dot-producta · a = |a|²Dot-producting a vector with itself gives the square of its magnitude.
Result is a scalara · b ∈ ℝThe output is a number, not a vector — don't confuse it with the cross product.
⚠️ DOT vs. CROSS
In the IB Applications and Interpretation course (HL), you will also encounter the cross product (vector product). The dot product outputs a scalar and measures alignment, while the cross product outputs a vector perpendicular to both inputs and measures how "twisted" the two vectors are. Think of it this way: the dot product is like measuring how much two hikers agree on a direction, while the cross product is like finding a signpost that points straight up from the path they form.

Connections to Advanced Topics

The dot product is not just a standalone skill — it is the gateway to several powerful techniques in the IB HL syllabus and beyond. Here is how this concept connects to what you will study next and to real-world applications.

From AHL 3.6 to advanced applications
This Lesson (AHL 3.6)Where It Leads
Dot product of two vectorsScalar projection: projecting one vector onto another using (a · b̂), where b̂ is the unit vector of b.
Angle between two vectorsAngle between two lines in 3D: using direction vectors of lines to find the acute angle between them.
Perpendicularity test (a · b = 0)Normal vectors to planes: the equation of a plane uses a normal vector, and the dot product checks if a line lies within the plane.
3D vector componentsVector equations of lines: r = a + λb, where a is a position vector and b is a direction vector in 3D.
Component-wise operationsPhysics & engineering: work = F · d (force dot displacement), used in mechanics to calculate energy transfer.

In physics, the concept of work done by a force is literally a dot product: W = F · d. If you push a box at an angle to the direction it moves, only the component of your force along the direction of motion does work — and the dot product automatically handles this decomposition. In computer graphics, the dot product determines how brightly a surface is illuminated based on the angle between the light source and the surface normal. The deeper you go in mathematics and its applications, the more you will appreciate the elegant simplicity of a · b.

Practice Problems

PROBLEM 1CONCEPTUAL
Two vectors p and q have a dot product of −12. What does the sign of this dot product tell you about the angle between them? Could the angle be exactly 90°? Explain your reasoning.
PROBLEM 2BASIC CALCULATION
Given u = (4, −1, 3) and v = (2, 5, −2), calculate u · v and determine whether the angle between them is acute, right, or obtuse.
PROBLEM 3INTERMEDIATE
Find the angle between a = (1, 2, −2) and b = (3, −6, 2), giving your answer in degrees correct to one decimal place.
PROBLEM 4APPLIED
A drone flies from point A(1, 3, 5) to point B(4, 7, 2) and then from B to point C(6, 5, 8). Find the angle ∠ABC at which the drone changes direction, to the nearest degree.
PROBLEM 5CRITICAL THINKING
Find the value of the constant k such that the vectors m = (2, k, −1) and n = (k, 3, 4) are perpendicular to each other. Then verify your answer by computing the angle between the vectors.

Lesson Summary

A 3D vector is written as (a₁, a₂, a₃), and its magnitude is |a| = √(a₁² + a₂² + a₃²), extending the Pythagorean theorem into three dimensions. The scalar (dot) product is computed as a · b = a₁b₁ + a₂b₂ + a₃b₃, producing a single number — not a vector. The geometric form a · b = |a| × |b| × cos θ links the algebraic result to the angle θ between the two vectors, allowing you to find angles purely from components.

The three critical cases to remember are: a positive dot product means an acute angle, a zero dot product means the vectors are perpendicular (the most useful quick test in vector geometry), and a negative dot product means an obtuse angle. The dot product is commutative and distributive, and it connects directly to advanced topics including vector projections, equations of planes, and the physics of work and energy.

Varsity Tutors • IB Mathematics: Applications and Interpretation • 3D Vectors & Dot Product