3D Vectors &
Dot Product
Master vectors in three dimensions and the scalar (dot) product: compute magnitudes, find angles, and test perpendicularity.
What Is a 3D Vector?
A 3D vector extends the 2D idea by adding a third component along the \(z\)-axis. We write it as a column vector or in component form:
Magnitude in Three Dimensions
The magnitude (length) of a 3D vector extends the Pythagorean theorem into a third dimension:
A unit vector in the direction of \(\vec{v}\) is obtained by dividing each component by the magnitude:
Why 3D Vectors Matter
The Dot Product Formula
Given two vectors \(\vec{a} = \begin{pmatrix} a_1\\a_2\\a_3 \end{pmatrix}\) and \(\vec{b} = \begin{pmatrix} b_1\\b_2\\b_3 \end{pmatrix}\), the scalar (dot) product is defined in two equivalent ways:
Geometric Interpretation
Finding the Angle Between Vectors
By equating the two dot product forms, we can isolate the angle \(\theta\):
Perpendicularity Test
Two non-zero vectors \(\vec{a}\) and \(\vec{b}\) are perpendicular (orthogonal) if and only if their dot product is zero:
This is the fastest way to check perpendicularity: no need to compute magnitudes or use \(\cos^{-1}\).
Dot vs Cross Product
| Dot Product | Cross Product | |
|---|---|---|
| Notation | \(\vec{a}\cdot\vec{b}\) | \(\vec{a}\times\vec{b}\) |
| Result type | Scalar | Vector |
| Formula uses | \(\cos\theta\) | \(\sin\theta\) |
| Measures | Alignment / projection | Area / perpendicular direction |
| Zero when | Perpendicular | Parallel |
How to Apply the Dot Product
Example 1: Computing the Dot Product
Find \(\vec{a}\cdot\vec{b}\) given \(\vec{a}=\begin{pmatrix}2\\-1\\3\end{pmatrix}\) and \(\vec{b}=\begin{pmatrix}4\\0\\-2\end{pmatrix}\).
Example 2: Finding the Angle
Find the angle between \(\vec{a}=\begin{pmatrix}1\\2\\2\end{pmatrix}\) and \(\vec{b}=\begin{pmatrix}3\\-1\\1\end{pmatrix}\).
Example 3: Proving Perpendicularity
Show that \(\vec{p}=\begin{pmatrix}2\\1\\-3\end{pmatrix}\) and \(\vec{q}=\begin{pmatrix}1\\4\\2\end{pmatrix}\) are perpendicular.
Properties of the Dot Product
Common Mistakes
Summary of Key Formulas
| Concept | Formula | Result |
|---|---|---|
| Magnitude | \(\sqrt{v_1^2+v_2^2+v_3^2}\) | Scalar \(\geq 0\) |
| Dot product | \(a_1b_1+a_2b_2+a_3b_3\) | Scalar |
| Angle | \(\cos^{-1}\!\left(\frac{\vec{a}\cdot\vec{b}}{|\vec{a}||\vec{b}|}\right)\) | \(0° \leq \theta \leq 180°\) |
| Perpendicular | \(\vec{a}\cdot\vec{b}=0\) | \(\theta = 90°\) |
| Unit vector | \(\frac{\vec{v}}{|\vec{v}|}\) | Vector, \(|\hat{v}|=1\) |
Question 1 of 5
Compute \(\begin{pmatrix}3\\-2\\5\end{pmatrix}\cdot\begin{pmatrix}1\\4\\-1\end{pmatrix}\).
Question 2 of 5
Find the magnitude of \(\vec{v}=\begin{pmatrix}2\\-3\\6\end{pmatrix}\).
Question 3 of 5
If \(\vec{a}\cdot\vec{b}=0\), what can you conclude?
Question 4 of 5
Find the angle between \(\vec{a}=\begin{pmatrix}1\\0\\1\end{pmatrix}\) and \(\vec{b}=\begin{pmatrix}0\\1\\1\end{pmatrix}\).
Question 5 of 5
For which value of \(k\) are \(\vec{u}=\begin{pmatrix}2\\k\\-1\end{pmatrix}\) and \(\vec{w}=\begin{pmatrix}3\\1\\4\end{pmatrix}\) perpendicular?