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.

IB Mathematics Applications and Interpretation emblem with a scatter plot, calculator, and data chart
Inside this lesson 10 sections 5 questions 9 figures

SECTION 1

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.

SECTION 2

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.

SECTION 3

Visual Explanation — Vectors in 3D Space

3D Coordinate System with Two Vectorsxyza = (2, 3, 4)b = (1, −1, 2)θOrigin OThe angle θ between a and bis found using the dot product:cos θ = (a · b) / (|a| × |b|)No protractor needed!
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.

SECTION 4

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∣=√(a12+a22+a32)|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=a1b1+a2b2+a3b3a · 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θ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θ=(a1b1+a2b2+a3b3)/(∣a∣×∣b∣)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.

SECTION 5

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.

Dot Product: Three Special CasesSAME DIRECTIONθ = 0° → cos θ = 1aba · b > 0Vectors point broadlyin the same direction.Maximum when parallela · b = |a| × |b|PERPENDICULARθ = 90° → cos θ = 0aba · b = 0Vectors are at rightangles to each other.Key perpendicularity testa · b = 0 ⟺ a ⊥ bOPPOSITE DIRECTIONθ = 180° → cos θ = −1aba · b < 0Vectors point broadlyin opposite directions.Minimum when anti-parallela · b = −|a| × |b|
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.

Angle θcos θa · bInterpretation
0°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

Dot product values for key angles

SECTION 6

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. 1

    Step 1 — Compute the Dot Product

    Using the component formula, multiply matching components and add: a · b = (3)(1) + (−2)(4) + (1)(−3) = 3 − 8 − 3.
    a · b = −8
  2. 2

    Step 2 — Find the Magnitude of a

    Apply the magnitude formula: |a| = √(3² + (−2)² + 1²) = √(9 + 4 + 1) = √14.
    |a| = √14 ≈ 3.742
  3. 3

    Step 3 — Find the Magnitude of b

    Similarly: |b| = √(1² + 4² + (−3)²) = √(1 + 16 + 9) = √26.
    |b| = √26 ≈ 5.099
  4. 4

    Step 4 — Apply the Angle Formula

    Substitute into cos θ = (a · b) / (|a| × |b|): cos θ = −8 / (√14 × √26) = −8 / √364 ≈ −8 / 19.08 ≈ −0.4193.
    cos θ ≈ −0.4193
  5. 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.

SECTION 7

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.

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.

Key properties of the dot 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.

SECTION 8

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.

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.

From AHL 3.6 to advanced applications

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.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

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.
Show answer
A negative dot product means cos θ is negative, which happens when the angle θ between the two vectors is greater than 90° (obtuse). The angle cannot be exactly 90° because cos 90° = 0, which would make the dot product zero, not −12. Therefore, the two vectors point in broadly opposite directions, with the angle between them somewhere between 90° and 180°. This is a direct consequence of the geometric form of the dot product: p · q = |p| × |q| × cos θ, where magnitudes are always positive, so the sign depends entirely on cos θ.

Question 2: BASIC 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.
Show answer
Using the component formula: u · v = (4)(2) + (−1)(5) + (3)(−2) = 8 − 5 − 6 = −3. Since the dot product is negative, cos θ < 0, which means the angle between u and v is obtuse (greater than 90°). The dot product gives us a quick classification without needing to compute the actual angle. The key step is multiplying corresponding components carefully, paying close attention to negative signs.

Question 3: INTERMEDIATE

Find the angle between a = (1, 2, −2) and b = (3, −6, 2), giving your answer in degrees correct to one decimal place.
Show answer
First, compute the dot product: a · b = (1)(3) + (2)(−6) + (−2)(2) = 3 − 12 − 4 = −13. Next, find the magnitudes: |a| = √(1 + 4 + 4) = √9 = 3, and |b| = √(9 + 36 + 4) = √49 = 7. Now apply the formula: cos θ = −13 / (3 × 7) = −13/21 ≈ −0.6190. Taking the inverse cosine: θ = cos⁻¹(−0.6190) ≈ 128.3°. The negative dot product correctly predicts an obtuse angle.

Question 4: APPLIED

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.
Show answer
First, find the direction vectors. The vector from B to A is BA = A − B = (1 − 4, 3 − 7, 5 − 2) = (−3, −4, 3). The vector from B to C is BC = C − B = (6 − 4, 5 − 7, 8 − 2) = (2, −2, 6). Now compute the dot product: BA · BC = (−3)(2) + (−4)(−2) + (3)(6) = −6 + 8 + 18 = 20. Find magnitudes: |BA| = √(9 + 16 + 9) = √34 ≈ 5.831 and |BC| = √(4 + 4 + 36) = √44 ≈ 6.633. Then cos θ = 20 / (√34 × √44) = 20 / √1496 ≈ 20 / 38.68 ≈ 0.5171, so θ = cos⁻¹(0.5171) ≈ 59°. The drone turns through an angle of approximately 59° at point B.

Question 5: CRITICAL 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.
Show answer
Two vectors are perpendicular when their dot product equals zero. Compute m · n = (2)(k) + (k)(3) + (−1)(4) = 2k + 3k − 4 = 5k − 4. Setting this equal to zero: 5k − 4 = 0, so k = 4/5 = 0.8. To verify, substitute back: m = (2, 0.8, −1) and n = (0.8, 3, 4). The dot product is (2)(0.8) + (0.8)(3) + (−1)(4) = 1.6 + 2.4 − 4 = 0 ✓. Since the dot product is zero, cos θ = 0, giving θ = cos⁻¹(0) = 90°, confirming perpendicularity. This type of problem combines algebraic reasoning with the geometric interpretation of the dot product.

SUMMARY

Lesson Summary

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