3D Vectors
Components, Magnitude & Unit Vectors
Extend your vector toolkit into three dimensions: learn to describe direction and distance in space using \(\mathbf{i}\), \(\mathbf{j}\), \(\mathbf{k}\) components.
What Is a 3D Vector?
A 3D vector is a quantity with both magnitude and direction in three-dimensional space. While 2D vectors live on a flat plane, 3D vectors add a third axis: the \(z\)-axis, which points "out" of the page.
Here \(\mathbf{i}\), \(\mathbf{j}\), and \(\mathbf{k}\) are the standard unit basis vectors along the \(x\), \(y\), and \(z\) axes respectively.
The 3D Coordinate System
Why 3D Vectors Matter
In the IB HL syllabus (AHL 3.9), mastering 3D vectors opens the door to scalar and cross products, lines, and planes in space.
Components of a 3D Vector
Given two points \(A(x_1, y_1, z_1)\) and \(B(x_2, y_2, z_2)\), the vector from \(A\) to \(B\) is:
Each component tells you how far to travel along each axis to get from \(A\) to \(B\). Consistent with the diagram shown earlier, the \(x\)-component is depth, the \(y\)-component is horizontal, and the \(z\)-component is vertical.
Magnitude in 3D
This is the 3D Pythagorean theorem: first find the diagonal on the base (\(\sqrt{a^2 + b^2}\)), then use it with \(c\) to find the space diagonal.
Unit Vectors in 3D
A unit vector has magnitude exactly \(1\). It captures direction only, with no information about length. To find the unit vector \(\hat{\mathbf{v}}\) in the direction of \(\mathbf{v}\):
Position vs Displacement Vectors
| Position Vector | Displacement Vector | |
|---|---|---|
| Definition | From origin \(O\) to point \(P\) | From point \(A\) to point \(B\) |
| Notation | \(\overrightarrow{OP}\) or \(\mathbf{p}\) | \(\overrightarrow{AB}\) |
| Formula | \(\begin{pmatrix} x \\ y \\ z \end{pmatrix}\) | \(\mathbf{b} - \mathbf{a}\) |
| Start point | Always the origin | Any point \(A\) |
| Example | Where is the drone? | How far did it move? |
Vector Operations in 3D
How to Find a Unit Vector
Example 1: Finding Components
Find the vector \(\overrightarrow{AB}\) given \(A(1, 3, -2)\) and \(B(4, -1, 5)\).
Example 2: Magnitude
Find \(|\overrightarrow{AB}|\) for \(\overrightarrow{AB} = \begin{pmatrix} 3 \\ -4 \\ 7 \end{pmatrix}\).
Example 3: Unit Vector
Find the unit vector in the direction of \(\mathbf{v} = \begin{pmatrix} 2 \\ -6 \\ 3 \end{pmatrix}\).
Parallel and Anti-Parallel Vectors
Two vectors \(\mathbf{u}\) and \(\mathbf{v}\) are parallel if one is a scalar multiple of the other: \(\mathbf{u} = k\mathbf{v}\) for some \(k \in \mathbb{R}\), \(k \neq 0\).
Common Mistakes to Avoid
Summary of Key Formulas
| Concept | Formula | Result Type |
|---|---|---|
| Components | \(\overrightarrow{AB} = \mathbf{b} - \mathbf{a}\) | Vector |
| Magnitude | \(|\mathbf{v}| = \sqrt{a^2 + b^2 + c^2}\) | Scalar |
| Unit vector | \(\hat{\mathbf{v}} = \mathbf{v} / |\mathbf{v}|\) | Vector (\(|\hat{\mathbf{v}}|=1\)) |
| Distance | \(d = |\overrightarrow{AB}|\) | Scalar |
| Parallel test | \(\mathbf{u} = k\mathbf{v}\), \(k \neq 0\) | Boolean |
Question 1 of 5
Given \(A(2, -1, 4)\) and \(B(5, 3, -2)\), what is \(\overrightarrow{AB}\)?
Question 2 of 5
What is the magnitude of \(\mathbf{v} = \begin{pmatrix} 1 \\ -2 \\ 2 \end{pmatrix}\)?
Question 3 of 5
Which of the following is the unit vector in the direction of \(\begin{pmatrix} 0 \\ 3 \\ -4 \end{pmatrix}\)?
Question 4 of 5
Are the vectors \(\mathbf{u} = \begin{pmatrix} 6 \\ -9 \\ 3 \end{pmatrix}\) and \(\mathbf{v} = \begin{pmatrix} -2 \\ 3 \\ -1 \end{pmatrix}\) parallel?
Question 5 of 5
A particle moves from \(P(1, 0, -3)\) to \(Q(4, 4, 1)\). What is the distance \(PQ\)?