IB MATHEMATICS: ANALYSIS AND APPROACHES β€’ GEOMETRY AND TRIGONOMETRY

3D Vectors β€” AHL 3.9 Vectors in 3D (concept, components, magnitude, unit vectors) (HL)

Extend your understanding of vectors into three dimensions to describe direction and magnitude in real-world space.

Historical Context & Motivation

For centuries, mathematicians and scientists worked with quantities that could only be described by their size β€” think of temperature or mass. However, many physical phenomena, such as forces acting on a bridge or the velocity of a spacecraft, require both a size and a direction. The concept of a vector was developed to capture exactly this dual nature. While 2D vectors are powerful for describing motion in a flat plane, the world we inhabit is fundamentally three-dimensional, and extending vectors into 3D space unlocked an entirely new level of mathematical precision.

1637
Descartes & Coordinate Geometry
RenΓ© Descartes published his coordinate system, enabling points in a plane to be described with ordered pairs (x, y). This laid the groundwork for extending position into higher dimensions.
1843
Hamilton's Quaternions
William Rowan Hamilton invented quaternions β€” a four-component number system β€” while searching for a way to multiply 3D quantities. His work hinted at the structure of 3D vector algebra.
1844
Grassmann's Extension Theory
Hermann Grassmann published the Ausdehnungslehre, a theory of multi-dimensional spaces and the algebra of directed line segments, foreshadowing modern vector spaces.
1880s
Gibbs & Heaviside Formalize Vectors
Josiah Willard Gibbs and Oliver Heaviside independently distilled Hamilton's quaternions into the three-component vector notation (with dot and cross products) that students use today.
20th C
Vectors in Modern Science
3D vectors became indispensable across physics, engineering, computer graphics, and data science, describing everything from electromagnetic fields to the movement of robotic arms.

The central question for this lesson is: how do we precisely describe a quantity that has both magnitude and direction in the three-dimensional space we live in? To answer that, we need to understand 3D vector components, how to compute magnitude, and how to define unit vectors that capture direction alone.

Core Principles & Definitions

Before diving into calculations, you need a solid grasp of the foundational ideas that underpin 3D vectors. Each principle below builds on concepts you already know from 2D vectors but extends them by adding a third axis β€” the z-axis β€” perpendicular to both the x-axis and the y-axis.

1

3D Coordinate System

Three mutually perpendicular axes β€” x, y, and z β€” form a right-hand coordinate system. Every point in space is located by an ordered triple (x, y, z).
2

Vector Components

A 3D vector is written as v = (v₁, vβ‚‚, v₃) or equivalently v₁𝐒 + v₂𝐣 + v₃𝐀. Each component tells you how far the vector stretches along one axis.
3

Magnitude (Length)

The magnitude of a 3D vector is found using the 3D version of Pythagoras' theorem: |v| = √(v₁² + vβ‚‚Β² + v₃²). It is always non-negative.
4

Unit Vectors

A unit vector has magnitude exactly 1. You create one by dividing any non-zero vector by its magnitude: vΜ‚ = v / |v|. It preserves direction but scales length to 1.
5

Standard Basis Vectors

The vectors 𝐒 = (1, 0, 0), 𝐣 = (0, 1, 0), and 𝐀 = (0, 0, 1) are the standard basis vectors. Any 3D vector is a unique linear combination of these three.
✦ KEY TAKEAWAY
Think of a 3D vector like GPS directions from your current location. The x-component tells you how far east or west to go, the y-component tells you how far north or south, and the z-component tells you how far up or down (your altitude change). Together, the three numbers pinpoint exactly where you'll end up β€” and the magnitude tells you the total distance you'd travel in a straight line.

Visualising Vectors in 3D Space

One of the trickiest parts of working with 3D vectors is visualising them on a flat page or screen. The diagram below shows a right-hand coordinate system with the three axes and a vector v = (3, 4, 5) drawn from the origin. Notice how the vector's components correspond to projections onto each axis β€” the dashed lines show the "shadow" of the vector along each direction.

The green arrow represents vector v = (3, 4, 5) originating from O. Dashed segments show its x-component (cyan, 3 units), y-component (violet, 4 units), and z-component (pink, 5 units).

When you look at this diagram, notice that the x-axis and y-axis form the "floor" of the coordinate system, while the z-axis points upward. The right-hand rule is a convention that determines the positive direction of the z-axis: if you curl the fingers of your right hand from the positive x-axis toward the positive y-axis, your thumb points along the positive z-axis. This convention ensures consistency across all IB problems and scientific applications.

πŸ“ IB NOTATION NOTE
In IB Mathematics, vectors are usually written in column form as a 3 Γ— 1 column, or using the component notation v = v₁𝐒 + v₂𝐣 + v₃𝐀. On exam papers, you may also see the ordered triple (v₁, vβ‚‚, v₃). All three forms are equivalent and acceptable.

Mathematical Framework

Now let's formalise the key formulas you need for 3D vectors. These equations are the tools that turn the visual intuition from the previous section into precise, calculable results.

Position Vectors & Components

POSITION VECTOR
v = v₁𝐒 + v₂𝐣 + v₃𝐀 = ( v₁ , vβ‚‚ , v₃ )
v₁ is the component along the x-axis, vβ‚‚ along the y-axis, and v₃ along the z-axis. The vectors 𝐒, 𝐣, and 𝐀 are the standard basis vectors.

If a vector connects two points A = (a₁, aβ‚‚, a₃) and B = (b₁, bβ‚‚, b₃), then the vector from A to B is found by subtracting coordinates component-wise.

VECTOR BETWEEN TWO POINTS
ABβƒ— = B βˆ’ A = ( b₁ βˆ’ a₁ , bβ‚‚ βˆ’ aβ‚‚ , b₃ βˆ’ a₃ )
Always subtract the initial point from the terminal point: "destination minus departure."

Magnitude of a 3D Vector

MAGNITUDE (LENGTH)
|v| = √( v₁² + vβ‚‚Β² + v₃² )
This is the three-dimensional extension of the Pythagorean theorem. The magnitude is always β‰₯ 0, and equals 0 only for the zero vector (0, 0, 0).

Unit Vectors

UNIT VECTOR
vΜ‚ = v / |v| = ( v₁ / |v| , vβ‚‚ / |v| , v₃ / |v| )
Dividing each component by the magnitude produces a vector of length 1 pointing in the same direction as v. The notation vΜ‚ (v-hat) denotes a unit vector.
βœ“ QUICK CHECK
You can verify your unit vector is correct by computing its magnitude β€” it should equal 1 (or very close to 1 if you've rounded). That is: |vΜ‚| = √( (v₁/|v|)Β² + (vβ‚‚/|v|)Β² + (v₃/|v|)Β² ) = 1.

Components, Basis Vectors & Scalar Multiplication

Understanding the anatomy of a 3D vector goes beyond simply listing three numbers. Each component represents a scalar multiple of the corresponding standard basis vector. For instance, the vector (3, βˆ’2, 7) is really 3𝐒 + (βˆ’2)𝐣 + 7𝐀. This decomposition makes it easy to add, subtract, or scale vectors β€” you simply perform the operation on each component independently.

The left panel shows each component written as a scalar multiple of a basis vector. The right panel demonstrates the head-to-tail addition: place 3𝐒, then βˆ’2𝐣, then 7𝐀 end-to-end. The resultant (amber arrow) from O to the final tip equals v.

Scalar Multiplication in 3D

When you multiply a 3D vector by a scalar k, you multiply each component by k. If k > 0, the vector stretches (or shrinks) but keeps its direction; if k < 0, the direction reverses. Formally, k Β· v = (k Β· v₁, k Β· vβ‚‚, k Β· v₃). This is exactly how the unit vector formula works β€” dividing by |v| is the same as multiplying by the scalar 1/|v|.

Summary of key 3D vector operations
OperationFormulaResult Type
Additionu + v = (u₁+v₁, uβ‚‚+vβ‚‚, u₃+v₃)Vector
Subtractionu βˆ’ v = (uβ‚βˆ’v₁, uβ‚‚βˆ’vβ‚‚, uβ‚ƒβˆ’v₃)Vector
Scalar multiplicationkv = (kv₁, kvβ‚‚, kv₃)Vector
Magnitude|v| = √(v₁² + vβ‚‚Β² + v₃²)Scalar (β‰₯ 0)
Unit vectorvΜ‚ = v / |v|Vector (|vΜ‚| = 1)

Worked Example

Let's work through a complete example that ties together components, magnitude, and the unit vector.

Finding the Unit Vector from A to B
1
Step 1 β€” Identify the Given InformationTwo points are given: A = (1, βˆ’3, 2) and B = (4, 1, βˆ’2). We want to find the unit vector in the direction from A to B.
2
Step 2 β€” Find the Vector ABβƒ—Subtract coordinates of A from those of B: ABβƒ— = B βˆ’ A = (4 βˆ’ 1, 1 βˆ’ (βˆ’3), βˆ’2 βˆ’ 2) = (3, 4, βˆ’4).
ABβƒ— = (3, 4, βˆ’4)
3
Step 3 β€” Calculate the MagnitudeApply the magnitude formula: |ABβƒ—| = √(3Β² + 4Β² + (βˆ’4)Β²) = √(9 + 16 + 16) = √41.
|ABβƒ—| = √41 β‰ˆ 6.40
4
Step 4 β€” Compute the Unit VectorDivide each component of ABβƒ— by its magnitude: ABΜ‚ = (3/√41, 4/√41, βˆ’4/√41).
ABΜ‚ β‰ˆ (0.468, 0.625, βˆ’0.625)
5
Step 5 β€” VerifyCheck: |ABΜ‚| = √(0.468Β² + 0.625Β² + (βˆ’0.625)Β²) = √(0.219 + 0.391 + 0.391) = √1.001 β‰ˆ 1 βœ“. The slight deviation from 1 is due to rounding. In exact form, the answer is (3/√41, 4/√41, βˆ’4/√41), which has magnitude exactly 1.
|ABΜ‚| = 1 βœ“
πŸ’‘ EXAM TIP
On IB exams, leave your answer in exact (surd) form unless the question specifically asks for a decimal approximation. Writing (3/√41)𝐒 + (4/√41)𝐣 βˆ’ (4/√41)𝐀 is cleaner and avoids rounding errors.

2D Vectors vs 3D Vectors β€” Comparison

If you're already comfortable with 2D vectors, moving to 3D is largely a matter of adding one more component. Most of the formulas look almost identical β€” they just have an extra term. The table below highlights the key similarities and differences.

Key differences between 2D and 3D vector systems
Feature2D Vectors3D Vectors
Components(v₁, vβ‚‚)(v₁, vβ‚‚, v₃)
Basis vectors𝐒, 𝐣𝐒, 𝐣, 𝐀
Magnitude√(v₁² + vβ‚‚Β²)√(v₁² + vβ‚‚Β² + v₃²)
DirectionOne angle ΞΈ sufficesTwo angles (or direction cosines) needed
VisualisationEasy on paper (flat plane)Requires perspective/projection drawings
Cross productNot truly defined (only a scalar)Produces a perpendicular 3D vector
✦ KEY TAKEAWAY
Going from 2D to 3D is like upgrading from a paper map to a full GPS system. A paper map only shows you left/right and forward/back. GPS adds altitude β€” that one extra piece of information lets you navigate in the real, three-dimensional world. Similarly, adding the third component 𝐀 to your vector toolkit lets you describe any quantity in 3D space using the same simple algebra you already know from 2D.

Connection to Advanced Topics

The concepts of components, magnitude, and unit vectors are the foundation for everything else you'll study in AHL vector work. Once you master these basics, the IB syllabus builds directly on them with the scalar (dot) product, the vector (cross) product, and applications to lines and planes in 3D. The table below previews how today's content connects to these more advanced ideas.

How foundational 3D vector concepts connect to later IB HL topics
This LessonWhere It Leads
Components (v₁, vβ‚‚, v₃)Used to compute dot products (v Β· w = v₁w₁ + vβ‚‚wβ‚‚ + v₃w₃) and cross products
Magnitude |v|Appears in the angle formula: cos ΞΈ = (v Β· w) / (|v| Γ— |w|)
Unit vectors vΜ‚Direction vectors for lines in 3D; normal vectors for planes
Vector between two pointsParametric equations of lines: r = a + t Β· d
Standard basis 𝐒, 𝐣, 𝐀Determinant form of the cross product uses these as a row

Beyond the IB, 3D vectors are essential in physics (describing forces, fields, and torques), in computer graphics (placing objects in virtual worlds), and in engineering (stress analysis, robotics). If you continue to university-level mathematics, vectors generalise into n-dimensional vector spaces where the same ideas of magnitude and unit vectors apply β€” just with more components.

Practice Problems

PROBLEM 1 β€” CONCEPTUAL
Explain in your own words why a unit vector is useful. Why not just use the original vector to indicate direction?
PROBLEM 2 β€” BASIC CALCULATION
Find the magnitude of the vector w = (βˆ’2, 6, 3).
PROBLEM 3 β€” INTERMEDIATE
Given points P = (2, βˆ’1, 5) and Q = (βˆ’1, 3, 1), find the unit vector in the direction from P to Q. Leave your answer in exact form.
PROBLEM 4 β€” APPLIED
A drone takes off from position A = (10, 20, 0) metres and flies to position B = (40, 60, 30) metres. Find the total distance travelled in a straight line, and express the direction of travel as a unit vector.
PROBLEM 5 β€” CRITICAL THINKING
Let v = (a, b, c) be a non-zero vector. Show algebraically that |vΜ‚| = 1 for any choice of a, b, c (not all zero). Then explain what happens if you try to find a unit vector for the zero vector (0, 0, 0).

Lesson Summary

A 3D vector is represented by three components (v₁, vβ‚‚, v₃), each measuring displacement along one of the three perpendicular axes in a right-hand coordinate system. Every 3D vector can be written as a linear combination of the standard basis vectors 𝐒, 𝐣, and 𝐀. The magnitude is computed as |v| = √(v₁² + vβ‚‚Β² + v₃²), extending the Pythagorean theorem into three dimensions.

A unit vector vΜ‚ = v / |v| preserves the direction of v while scaling its length to exactly 1. To find a vector between two points, subtract coordinates: ABβƒ— = B βˆ’ A. These foundational skills β€” writing components, computing magnitudes, and constructing unit vectors β€” are the building blocks for every advanced vector topic in the IB HL syllabus, including dot products, cross products, and equations of lines and planes in three-dimensional space.

Varsity Tutors β€’ IB Mathematics: Analysis and Approaches β€’ 3D Vectors β€” AHL 3.9 Vectors in 3D (concept, components, magnitude, unit vectors) (HL)