Vectors in Three Dimensions
Real problems live in three dimensions. Vectors describe position, motion, and force in space, and two kinds of product reveal angles, areas, and perpendicular directions.
Coordinates in space
Add a third axis, \(z\), perpendicular to the \(x\)- and \(y\)-axes, and every point in space has coordinates \((x, y, z)\). The distance between two points extends Pythagoras by one term. The set of points at distance \(r\) from a centre \((a, b, c)\) is a sphere, with equation \((x-a)^2 + (y-b)^2 + (z-c)^2 = r^2\).
d = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2 + (z_2-z_1)^2}What a vector is
A vector has both a size (magnitude) and a direction, like a velocity of 30 m/s north-east or a force of 10 N downward. We write \(\mathbf{v} = \langle v_1, v_2, v_3 \rangle\), the change in each coordinate from the vector's tail to its head. The same vector can be drawn anywhere; only its length and direction matter.
Vector arithmetic
Add vectors component by component: \(\langle 1, 2, 3\rangle + \langle 4, 0, -1\rangle = \langle 5, 2, 2\rangle\). Geometrically, place them head to tail. Multiply by a scalar to stretch or shrink: \(2\langle 1, 2, 3\rangle = \langle 2, 4, 6\rangle\); a negative scalar reverses direction. The standard unit vectors \(\mathbf{i}, \mathbf{j}, \mathbf{k}\) point along the axes, so \(\langle 3, -1, 2\rangle = 3\mathbf{i} - \mathbf{j} + 2\mathbf{k}\).
Magnitude and unit vectors
The magnitude of \(\mathbf{v}\) is \(|\mathbf{v}| = \sqrt{v_1^2 + v_2^2 + v_3^2}\). Dividing a vector by its magnitude gives a unit vector, length 1, pointing the same way: the direction without the size. For \(\mathbf{v} = \langle 3, 4, 12\rangle\), \(|\mathbf{v}| = 13\), and the unit vector is \(\langle \frac{3}{13}, \frac{4}{13}, \frac{12}{13}\rangle\).
|\mathbf{v}| = \sqrt{v_1^2 + v_2^2 + v_3^2}The dot product
The dot product multiplies matching components and adds: \(\mathbf{u}\cdot\mathbf{v} = u_1v_1 + u_2v_2 + u_3v_3\). The result is a number, not a vector. Geometrically, \(\mathbf{u}\cdot\mathbf{v} = |\mathbf{u}||\mathbf{v}|\cos\theta\), where \(\theta\) is the angle between them. So the dot product measures how much two vectors point the same way.
\mathbf{u}\cdot\mathbf{v} = |\mathbf{u}||\mathbf{v}|\cos\thetaAngles and perpendicular vectors
Rearranging gives \(\cos\theta = \frac{\mathbf{u}\cdot\mathbf{v}}{|\mathbf{u}||\mathbf{v}|}\). Two nonzero vectors are perpendicular (orthogonal) exactly when their dot product is \(0\). For example, \(\langle 1, 2, -1\rangle \cdot \langle 3, -1, 1\rangle = 3 - 2 - 1 = 0\), so they meet at a right angle. A positive dot product means an acute angle; a negative one means obtuse.
Projections and work
The scalar projection of \(\mathbf{b}\) onto \(\mathbf{a}\) is \(\frac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}|}\): how much of \(\mathbf{b}\) lies along \(\mathbf{a}\). In physics, the work done by a constant force \(\mathbf{F}\) moving an object along a displacement \(\mathbf{d}\) is \(W = \mathbf{F}\cdot\mathbf{d}\). Pulling a sled at an angle, only the component of force along the ground does work.
The cross product
The cross product \(\mathbf{u}\times\mathbf{v}\) of two vectors in 3D is a new vector perpendicular to both. Its length is \(|\mathbf{u}||\mathbf{v}|\sin\theta\), the area of the parallelogram the vectors span. Its direction follows the right-hand rule: curl your fingers from \(\mathbf{u}\) to \(\mathbf{v}\), and your thumb points along \(\mathbf{u}\times\mathbf{v}\). Order matters: \(\mathbf{v}\times\mathbf{u} = -\mathbf{u}\times\mathbf{v}\).
|\mathbf{u}\times\mathbf{v}| = |\mathbf{u}||\mathbf{v}|\sin\thetaComputing a cross product
Use the determinant pattern: \(\mathbf{u}\times\mathbf{v} = \langle u_2v_3 - u_3v_2,\ u_3v_1 - u_1v_3,\ u_1v_2 - u_2v_1\rangle\). For \(\mathbf{i}\times\mathbf{j}\), this gives \(\mathbf{k}\). For \(\langle 1, 2, 0\rangle\times\langle 0, 1, 3\rangle = \langle 6, -3, 1\rangle\). Check: its dot product with each original vector is \(0\). Torque, \(\boldsymbol{\tau} = \mathbf{r}\times\mathbf{F}\), is a key physical use.
Lines and planes
A line through point \(P_0\) with direction \(\mathbf{v}\) is \(\mathbf{r}(t) = P_0 + t\mathbf{v}\), so \(x = x_0 + at\), \(y = y_0 + bt\), \(z = z_0 + ct\). A plane through \(P_0\) with normal vector \(\mathbf{n} = \langle a, b, c\rangle\) is \(a(x - x_0) + b(y - y_0) + c(z - z_0) = 0\). To find the plane through three points, cross two edge vectors to get the normal.
a(x-x_0) + b(y-y_0) + c(z-z_0) = 0Common mistakes
Treating the dot product as a vector or the cross product as a number. Forgetting the square root in magnitudes. Reversing the order in a cross product, which flips its direction. Using the cross product in 2D, where it is not defined as a vector. Confusing a plane's normal vector with a direction inside the plane.
Try it yourself
Find the angle between \(\langle 1, 1, 0\rangle\) and \(\langle 1, 0, 1\rangle\). Answer: dot product \(1\), magnitudes \(\sqrt{2}\) each, so \(\cos\theta = \frac{1}{2}\) and \(\theta = 60^\circ\). Then find a vector perpendicular to both: the cross product \(\langle 1, -1, -1\rangle\).
Key takeaways
Vectors have magnitude and direction and combine component by component. The dot product is a number measuring alignment; zero means perpendicular. The cross product is a vector perpendicular to both inputs, with length equal to the parallelogram area. Lines use a point and direction; planes use a point and normal.
Flashcard
Equation of a sphere
Check your understanding
Are u = <2, -1, 3> and v = <1, 5, 1> perpendicular?
