Points, vectors and distance
Imagine a room with a corner on the floor chosen as the origin. To locate any point in the room, you need three numbers: how far right, how far forward, and how far up. We write a point as an ordered triple \((x, y, z)\). The set of all such triples is three-dimensional space, denoted \(\mathbb{R}^3\).
A vector is not just a location, but a displacement. Picture an arrow in the room pointing from one spot to another. Its length is how far it travels, and its direction tells you where it goes. We place the tail of the vector at the origin and the tip at some point \((v_1, v_2, v_3)\).
A three-dimensional vector \(v\) is an ordered triple of real numbers, written as \(v = \langle v_1, v_2, v_3 \rangle\). The numbers \(v_1, v_2, v_3\) are the components of the vector.
Adding two vectors means performing one displacement followed by another. Geometrically, if you place the tail of vector \(b\) at the tip of vector \(a\), their sum \(a + b\) is the vector from the tail of \(a\) to the tip of \(b\). Multiplying a vector by a scalar stretches or shrinks it without changing its straight-line orientation, reversing its direction if the scalar is negative.
To measure the physical length of a vector, we use the Pythagorean theorem twice in three dimensions.
Let \(P_1 = (x_1, y_1, z_1)\) and \(P_2 = (x_2, y_2, z_2)\) be two points in \(\mathbb{R}^3\). The distance \(d\) between them is given by
\[d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2 + (z_2 - z_1)^2}\]
The magnitude or length of a vector \(v = \langle v_1, v_2, v_3 \rangle\), denoted \(|v|\), is the distance from the origin to its tip:
\[|v| = \sqrt{v_1^2 + v_2^2 + v_3^2}\]
The dot product and projection
If you have two vectors starting from the same point, they form an angle between them. The dot product is a single number that measures how much two vectors point in the same direction. If they point the same way, the dot product is positive; if they point in opposite directions, it is negative; if they are perpendicular, it is zero.
For two vectors \(a = \langle a_1, a_2, a_3 \rangle\) and \(b = \langle b_1, b_2, b_3 \rangle\), their dot product \(a \cdot b\) is the scalar quantity defined by
\[a \cdot b = a_1 b_1 + a_2 b_2 + a_3 b_3\]
The dot product relates to the angle \(\theta\) between two non-zero vectors through the formula
\[a \cdot b = |a| |b| \cos\theta\]
This formula lets us find the angle between any two vectors in space. Two vectors are orthogonal, meaning they meet at a right angle, if and only if their dot product is zero.
Example 1.1: Angle Cosine
For \(a = \langle 1, 2, -2 \rangle\) and \(b = \langle 3, 0, 4 \rangle\) find the angle cosine between them.
Solution.
Compute the dot product \(a \cdot b = (1)(3) + (2)(0) + (-2)(4) = 3 + 0 - 8 = -5\).
Compute the magnitude of \(a\): \(|a| = \sqrt{1^2 + 2^2 + (-2)^2} = \sqrt{1 + 4 + 4} = \sqrt{9} = 3\).
Compute the magnitude of \(b\): \(|b| = \sqrt{3^2 + 0^2 + 4^2} = \sqrt{9 + 0 + 16} = \sqrt{25} = 5\).
Use the dot product formula to solve for the cosine: \(\cos\theta = \frac{a \cdot b}{|a| |b|}\).
Substitute the values: \(\cos\theta = \frac{-5}{(3)(5)} = \frac{-5}{15} = - \frac{1}{3}\).
Cross and triple products
Sometimes you need a vector that is perpendicular to two existing vectors at the same time. Picture two non-parallel vectors lying on a tabletop; the cross product gives a vector pointing straight up off the table.
Let \(a = \langle a_1, a_2, a_3 \rangle\) and \(b = \langle b_1, b_2, b_3 \rangle\) be two vectors in \(\mathbb{R}^3\). Their cross product \(a \times b\) is the vector defined by the determinant-like formula
\[a \times b = \langle a_2 b_3 - a_3 b_2, a_3 b_1 - a_1 b_3, a_1 b_2 - a_2 b_1 \rangle\]
- The resulting vector \(a \times b\) is orthogonal to both \(a\) and \(b\).
- The magnitude \(|a \times b|\) equals the area of the parallelogram spanned by \(a\) and \(b\).
- If \(a\) and \(b\) point in the exact same or exact opposite directions, their cross product is the zero vector \(\langle 0, 0, 0 \rangle\).
If we take three vectors and combine them using both a cross product and a dot product, we get the scalar triple product, \(a \cdot (b \times c)\). The absolute value of this number gives the volume of the three-dimensional box, or parallelepiped, spanned by the three vectors.
Example 1.2: Cross Product
Find \(a \times b\) for \(a = \langle 1, 2, -2 \rangle\) and \(b = \langle 3, 0, 4 \rangle\).
Solution.
Set up the formal determinant with standard unit vectors \(i, j, k\) in the first row, \(a\) in the second, and \(b\) in the third.
Calculate the first component for \(i\): \((2)(4) - (-2)(0) = 8 - 0 = 8\).
Calculate the second component for \(j\): negative of \(((1)(4) - (-2)(3)) = -(4 - (-6)) = -(4 + 6) = -10\).
Calculate the third component for \(k\): \((1)(0) - (2)(3) = 0 - 6 = -6\).
Assemble the vector components: \(\langle 8, -10, -6 \rangle\).
Lines in space
In the single variable plane, a line is defined by a slope and a y-intercept. In three-dimensional space, a slope is not enough because a line can tilt in multiple directions. Instead, to specify a straight line, we need a single specific point the line passes through, and a direction vector that tells us which way the line heads.
Imagine standing at a starting point represented by position vector \(r_0\). If you walk away from this point along a direction vector \(v\), your new position depends on how far you travel along that path. Let \(t\) be a real number representing time or distance along the line.
Let \(r_0 = \langle x_0, y_0, z_0 \rangle\) be the position vector of a known point on a line, and let \(v = \langle v_1, v_2, v_3 \rangle\) be a non-zero direction vector parallel to the line. The vector equation of the line is
\[r(t) = r_0 + t v\]
where \(t\) is any real number. Equating the components gives the parametric equations of the line:
\[x(t) = x_0 + t v_1\]
\[y(t) = y_0 + t v_2\]
\[z(t) = z_0 + t v_3\]
The point and the direction vector chosen for a line are not unique. If you pick a different point on the line, or scale the direction vector by a non-zero constant, the resulting parametric equations will look different, but they will describe the exact same geometric set of points in space.
Planes and distances
A flat sheet of paper floating in a room represents a plane. To lock down the exact position and tilt of this flat surface, you need two things: a single point lying directly on the plane, and a normal vector that sticks straight out of the surface at a right angle in all directions.
If you pick any random point \((x, y, z)\) on the plane and connect it to your known starting point, the resulting vector lies entirely flat inside the plane. Because the normal vector is perpendicular to the entire plane, it must be orthogonal to every vector lying within that plane.
Let \(P_0 = (x_0, y_0, z_0)\) be a point on a plane, and let \(n = \langle a, b, c \rangle\) be a normal vector orthogonal to the plane. The scalar equation of the plane is
\[a(x - x_0) + b(y - y_0) + c(z - z_0) = 0\]
Expanding this yields the standard linear form
\[ax + by + cz = D\]
where \(D = ax_0 + by_0 + cz_0\).
Finding the shortest distance from a point not on the plane to the plane itself is a common geometric task. We project the vector connecting an arbitrary point on the plane to our target point onto the normal vector.
Example 1.3: Distance from a Point to a Plane
Find the distance from the point \((1, 1, 1)\) to the plane \(2x + y - 2z = 7\).
Solution.
Identify the normal vector \(n = \langle 2, 1, -2 \rangle\) from the coefficients of the plane equation.
Find a point on the plane by inspection, for example, set \(y = 0\) and \(z = 0\), giving \(2x = 7\), so \(Q = (3.5, 0, 0)\). Alternatively, choose \(x = 4, y = 1, z = 0\), giving \(2(4) + 1 - 0 = 9\), which does not work. Let us choose \(x = 3, y = 3, z = 1\), yielding \(2(3) + 3 - 2(1) = 6 + 3 - 2 = 7\), so \(Q = (3, 3, 1)\) is on the plane.
Form the vector \(v\) from the point on the plane \(Q(3, 3, 1)\) to the target point \(P(1, 1, 1)\): \(v = \langle 1 - 3, 1 - 3, 1 - 1 \rangle = \langle -2, -2, 0 \rangle\).
Compute the magnitude of the normal vector: \(|n| = \sqrt{2^2 + 1^2 + (-2)^2} = \sqrt{4 + 1 + 4} = \sqrt{9} = 3\).
Use the distance formula \(d = \frac{|v \cdot n|}{|n|}\).
Calculate the dot product \(v \cdot n = (-2)(2) + (-2)(1) + (0)(-2) = -4 - 2 + 0 = -6\).
Take the absolute value of the dot product: \(|-6| = 6\).
Divide by the magnitude of the normal vector: \(d = \frac{6}{3} = 2\).
Practice
Practice 1: try it first
Give parametric equations of the line through \((1, 0, 2)\) and \((3, 1, 1)\).
Show the answer
\(x = 1 + 2t\), \(y = t\), \(z = 2 - t\)
Practice 2: try it first
Find the projection of \(\langle 3, 0, 4 \rangle\) onto \(\langle 2, 1, -2 \rangle\).
Show the answer
\(\langle - \frac{4}{9}, - \frac{2}{9}, \frac{4}{9} \rangle\)
Practice 3: try it first
Find the area of the triangle with vertices \((0,0,0)\), \((1,2,0)\) and \((0,1,2)\).
Show the answer
\(\frac{\sqrt{21}}{2}\)
Want a hint instead of an answer? Practise this chapter with the tutor.