Skip to main content

Section 12.2 Three-Dimensional Spaces: Surfaces, Vectors, and Curves

We live in a three-dimensional world, yet our study of calculus has so far been largely restricted to the flat, two-dimensional plane. In this section, we will upgrade our coordinate system from \(\R^2\) to \(\R^3\text{.}\) We will see that many familiar concepts, such as the distance formula, vectors, and lines, extend naturally into this new dimension.
To discuss stuff in three-dimensional space, we need to first determine how to represent points in \(\R^3\text{.}\) Just like points in \(\R^2\text{,}\) we can use an ordered triple of real numbers \((a,b,c)\) to represent a point in \(\R^3\text{.}\)
You may guess that we can graph stuff in \(\R^3\) using three orthogonal axes, one for each coordinate. This is indeed the case, and the three axes are usually labeled \(x\text{,}\) \(y\text{,}\) and \(z\text{,}\) following the right-hand rule: if the curled fingers of the right hand are rotated from the positive \(x\)-axis to the positive \(y\)-axis, the thumb points in the direction of the positive \(z\)-axis.
Figure 12.2.1. Right-hand rule for labeling axes in \(\R^3\)
The point where the three axes intersect is called the origin and is denoted by \((0,0,0)\text{.}\) An ordered triple \((a,b,c)\) represents the point that is \(a\) units along the \(x\)-axis, \(b\) units along the \(y\)-axis, and \(c\) units along the \(z\)-axis.
Figure 12.2.2. Plotting the following points in \(\R^3\)
To visualize this point, it is helpful to construct a rectangular box with one vertex at the origin and the opposite vertex at the point \((a,b,c)\text{.}\)
Recall that the two axes in \(\R^2\) divide the plane into four quadrants. Similarly, the three axes in \(\R^3\) divide the space into eight regions called octants. We call the region where \(x\gt 0\text{,}\) \(y\gt 0\text{,}\) and \(z\gt 0\) the first octant. Unlike how quadrants are usually numbered in \(\R^2\text{,}\) there is no consistent way to number the octants in \(\R^3\text{.}\)
Next, we can talk about the distance between two points in \(\R^3\text{.}\) The distance formula in \(\R^3\) is an extension of the distance formula in \(\R^2\) using the Pythagorean Theorem twice.

A quick proof to show the distance formula in \(\R^3\).

Let \(P = (a_1, b_1, c_1)\) and \(Q = (a_2, b_2, c_2)\) be two points in \(\R^3\text{.}\) We first construct the point \(R = (a_2, b_2, c_1)\text{.}\) Then, by applying the Pythagorean Theorem in the right triangle \(\triangle PRQ\text{,}\) we have
\begin{equation*} |P - Q|^2 = |P - R|^2 + |R - Q|^2 \end{equation*}
Figure 12.2.4. \(\triangle PQR\) in \(\R^3\)
We can see that \(|R - Q| = |c_2 - c_1|\text{.}\) To find the hypotenuse \(|P - Q|\text{,}\) we need to find \(|P - R|\) first.
To find \(|P - R|\text{,}\) we will need to construct another point \(O = (a_1, b_2, c_1)\text{.}\)
Figure 12.2.5. \(\triangle POR\) in \(\R^3\)
We apply the Pythagorean Theorem again in the triangle \(\triangle POR\) to find \(|P - R|^2\text{:}\)
\begin{equation*} |P - R|^2 = |P - O|^2 + |O - R|^2 = (a_2 - a_1)^2 + (b_2 - b_1)^2 \end{equation*}
Hence, we obtain
\begin{align*} |P - Q|^2 \amp= |P - R|^2 + |R - Q|^2 \\ \amp= (a_2 - a_1)^2 + (b_2 - b_1)^2 + (c_2 - c_1)^2 \end{align*}
Taking the square root of both sides gives the desired result.
Now that we know how \(\R^3\) works, let’s move on to discussing some other important objects in \(\R^3\text{,}\) including surfaces, vectors, and lines.

Subsection Surfaces

It is difficult to put a precise mathematical definition of what a surface is. One way to think about it is that a surface is a generalization of a plane in the sense that surfaces can be curved (this is similar to how curves are generalizations of lines).
The most easiest planes in \(\R^3\) are the \(xy\)-plane, \(xz\)-plane, and \(yz\)-plane.
Figure 12.2.6. \(xy\)-, \(xz\)-, and \(yz\)-planes in \(\R^3\)
Similarly, we can get a plane by setting one of the coordinates to be a constant. These types of planes are called the coordinate planes.
  • The equation \(x = a\) defines a plane parallel to the \(yz\)-plane that intersects the \(x\)-axis at \((a,0,0)\text{.}\)
  • The equation \(y = b\) defines a plane parallel to the \(xz\)-plane that intersects the \(y\)-axis at \((0,b,0)\text{.}\)
  • The equation \(z = c\) defines a plane parallel to the \(xy\)-plane that intersects the \(z\)-axis at \((0,0,c)\text{.}\)

Example 12.2.7.

Describe the following surfaces in \(\R^3\) and sketch them:
  1. \(\displaystyle x = 2\)
  2. \(\displaystyle y = 4\)
  3. \(\displaystyle z = 3\)
Solution.
The equations describe planes in \(\R^3\) as follows:
  1. The equation \(x = 2\) describes a plane parallel to the \(yz\)-plane that intersects the \(x\)-axis at \((2,0,0)\text{.}\)
  2. The equation \(y = 4\) describes a plane parallel to the \(xz\)-plane that intersects the \(y\)-axis at \((0,4,0)\text{.}\)
  3. The equation \(z = 3\) describes a plane parallel to the \(xy\)-plane that intersects the \(z\)-axis at \((0,0,3)\text{.}\)
The sketch of these planes is shown below.
Figure 12.2.8. Planes \(x = 2\text{,}\) \(y = 4\text{,}\) and \(z = 3\) in \(\R^3\)
There are other types of planes in \(\R^3\) as well. In general, a plane in \(\R^3\) can be determined by a point on the plane and a normal vector to the plane. We will discuss planes in 3D more in detail in Section 12.5.
Let’s shift our focus to other types of surfaces in \(\R^3\text{.}\) To describe surfaces in \(\R^3\text{,}\) we need some equations to put some constraints on the coordinate(s).
For example, we can describe the surface of a sphere by thinking about the constraint of the points on it. Imagine there is a sphere in \(\R^3\) centered at the point \(Q = (a,b,c)\) with radius \(R\text{.}\) Then any point \(P = (x,y,z)\) on the sphere must be exactly \(R\) units away from the center \(Q\text{.}\) Using our distance formula in \(\R^3\text{,}\) we have
\begin{equation*} R = \sqrt{(x - a)^2 + (y - b)^2 + (z - c)^2} \end{equation*}
We can "simplify" this equation by squaring both sides to get rid of the square root. This gives us the standard equation of a sphere in \(\R^3\)

Definition 12.2.9. Standard Equation of a Sphere in \(\R^3\).

An equation of the sphere in \(\R^3\) of radius \(R\) centered at \(Q = (a,b,c)\) is
\begin{equation*} (x - a)^2 + (y - b)^2 + (z - c)^2 = R^2 \end{equation*}
Figure 12.2.10. Sphere of radius \(R\) centered at \(Q = (a,b,c)\) in \(\R^3\)

Note 12.2.11. Hey Richard, can we call this a ball instead of a sphere?

The short answer is no... There is a big difference between a sphere and a ball in mathematics.
Observing the standard equation of a sphere, we can see that it only describes the surface of the sphere, not the interior.
Yet, a ball includes both the surface and the interior. An equation of a ball of radius \(R\) centered at \(Q = (a,b,c)\) is given by the inequality
\begin{equation*} (x - a)^2 + (y - b)^2 + (z - c)^2 \le R^2 \end{equation*}
If you took MTH 252 (or 252Z) with Richard, you may remember he pointed out the difference between a circle and a disk when he taught the Disk Method. This is the same idea here.

Example 12.2.12.

Give an equation of the sphere of radius \(3\) centered at \((0,0,-3)\text{.}\)
Solution.
Using the standard equation of a sphere, we have
\begin{equation*} (x - 0)^2 + (y - 0)^2 + (z - (-3))^2 = 3^2 \end{equation*}
which simplifies to
\begin{equation*} x^2 + y^2 + (z + 3)^2 = 9 \end{equation*}
We can put more constraints on the equation of a sphere to get other surfaces. One thing to do so is to restrict the domain of the coordinate(s).

Example 12.2.13.

Describe the surface \(x^2 + y^2 + z^2 = 9\) with \(x,y,z \ge 0\text{.}\)
Hint.
If we drop the constraints \(x,y,z \ge 0\text{,}\) then the equation describes a sphere of radius \(3\) centered at the origin. But we don’t get the whole sphere because of the constraints...
Then which part of the sphere do we get if we only allow \(x,y,z \ge 0\text{?}\)
Solution.
The equation \(x^2 + y^2 + z^2 = 9\) describes a sphere of radius \(3\) centered at the origin. However, since we have the constraints \(x,y,z \ge 0\text{,}\) we only get the portion of the sphere that is in the first octant. That is, the surface is one eighth of the sphere.
The surface is shown in the figure below.
Figure 12.2.14. Portion of the sphere \(x^2 + y^2 + z^2 = 9\) in the first octant
Another way to get a different surface is to relax the constraints on the coordinate(s). For example, consider the equation
\begin{equation*} (x - a)^2 + (y - b)^2 = R^2 \end{equation*}
We know that this is an equation of a circle in \(\R^2\) (or more specifically, in the \(xy\)-plane) with radius \(R\) centered at \((a,b)\text{.}\) If we consider this equation in \(\R^3\text{,}\) then there is no constraint on the \(z\)-coordinate. That is, \(z\) can take any real value. When we allow \(z\) to vary freely, the circle will "extend" infinitely in both positive and negative \(z\)-directions, forming a surface called a right circular cylinder, a cylinder whose cross-sections are circles and whose axis is perpendicular to the base.
Figure 12.2.15. Right circular cylinder of radius \(R\) whose central axis is the vertical line through \((a,b,0)\)

Definition 12.2.16. Standard Equation of a Cylinder in \(\R^3\).

An equation of the right circular cylinder in \(\R^3\) of radius \(R\) whose central axis is the vertical line through \((a,b,0)\) is
\begin{equation*} (x - a)^2 + (y - b)^2 = R^2 \end{equation*}

Example 12.2.17.

Describe the surface \(x^2 + y^2 = 4\) with \(y,z \ge 0\text{.}\)
Hint.
If we drop the constraints \(y,z \ge 0\text{,}\) then the equation describes a cylinder of radius \(2\) whose central axis is the vertical line through the origin. But we don’t get the whole cylinder because of the constraints...
Then which part of the cylinder do we get if we only allow \(y,z \ge 0\text{?}\)
Solution.
The equation \(x^2 + y^2 = 4\) describes a cylinder of radius \(2\) whose central axis is the vertical line through the origin. However, since we have the constraints \(y,z \ge 0\text{,}\) we only get the portion of the cylinder where \(y\ge 0\) and \(z\ge 0\text{.}\) That is, we get one fourth of the cylinder.
The surface is shown in the figure below.
Figure 12.2.18. Fourth-cylinder \(x^2 + y^2 = 4\) with \(y, z \ge 0\)
We can create many other surfaces in \(\R^3\) by putting different types of constraints on the coordinates. We will explore more surfaces in section 12.6 and even more in chapter 14. Spheres and cylinders are the two most basic surfaces in \(\R^3\) with a lot more applications (for example, we can construct coordinate systems based on them) so make sure you understand them well!

Subsection Vectors in 3-Space

Vectors in \(\R^3\) are super similar to vectors in \(\R^2\) we discussed in SectionΒ 12.1. Two points in \(\R^3\) can determine a vector. Let \(P = (a_1, b_1, c_1)\) and \(Q = (a_2, b_2, c_2)\) be two points in \(\R^3\text{.}\) Then we can define a vector as follows
\begin{equation*} \overrightarrow{PQ} = \la a_2-a_1, b_2-b_1, c_2-c_1 \ra \end{equation*}
where the \(x\)-component is \(a_2 - a_1\text{,}\) the \(y\)-component is \(b_2 - b_1\text{,}\) and the \(z\)-component is \(c_2 - c_1\text{.}\)

Example 12.2.19.

Find the components of the vector \(\overrightarrow{PQ}\text{,}\) where \(P = (-3,-4,2)\) and \(Q = (1,-4,3)\text{.}\) Then sketch the vector.
Solution.
By the definition of the vector components we have
\begin{equation*} \overrightarrow{PQ} = \la 1 - (-3), -4 - (-4), 3 - 2 \ra = \la 4, 0, 1 \ra \end{equation*}
The sketch of the vector \(\v{v}\) is shown below.
Figure 12.2.20. Vector \(\v{v} = \langle 4,0,1 \rangle\) in \(\R^3\)
The vector terminologies remain the same as in \(\R^2\text{:}\)
  • Two non-zero vectors are parallel if one is a scalar multiple of the other.
  • Two vectors are equivalent if they have the same components.
  • The position vectors are the ones whose tails are at the origin \((0,0,0)\text{.}\)

Example 12.2.21.

Determine whether or not the two vectors \(\v{u} = \la 1,-2,5 \ra\) and \(\v{v} = \la -2,4,-10 \ra\) are parallel.
Solution.
Since
\begin{equation*} \v{v} = \la -2,4,-10 \ra = -2 \la 1,-2,5 \ra = -2\v{u} \end{equation*}
the two vectors are parallel.
In addition, since the scalar here is negative, we know that the two vectors point in opposite directions.
Just like how we can find the magnitude and the direction of a vector in \(\R^2\text{,}\) we can do the same(ish) thing in \(\R^3\text{.}\) Given a vector \(\v{v} = \la v_1, v_2, v_3 \ra\text{,}\) its magnitude is
\begin{equation*} \|\v{v}\| = \sqrt{v_1^2 + v_2^2 + v_3^2} \end{equation*}
Also, the vector itself can tell us about its direction. If you really want to work with a unit vector in the same direction as \(\v{v}\text{,}\) you can find it by dividing the vector by its magnitude:
\begin{equation*} \v{e_v} = \frac{1}{\|\v{v}\|} \v{v} \end{equation*}
In addition, vector algebra works similarly in \(\R^3\) as it does in \(\R^2\text{.}\) Vector addition and scalar multiplication are defined component-wise. That is, if \(\v{v} = \la v_1,v_2,v_3 \ra\) and \(\v{w} = \la w_1,w_2,w_3 \ra\text{,}\) then
\begin{equation*} \v{v} + \v{w} = \la v_1 + w_1, v_2 + w_2, v_3 + w_3 \ra \end{equation*}
and for a scalar \(c\text{,}\)
\begin{equation*} c\v{v} = \la cv_1, cv_2, cv_3 \ra \end{equation*}
Then we can construct new vectors through linear combinations.
The standard basis vectors in \(\R^3\) are
\begin{equation*} \v{i} = \la 1,0,0 \ra, \qquad \v{j} = \la 0,1,0 \ra, \qquad \v{k} = \la 0,0,1 \ra \end{equation*}
and every vector in \(\R^3\) can be expressed as a linear combination of these basis vectors. Using fancy linear algebra terminology, the set \(\{\v{i}, \v{j}, \v{k}\}\) spans \(\R^3\text{.}\)

Example 12.2.22.

Which vector has the smaller magnitude: \(\v{u} = 3\v{i} - \v{j} - \v{k}\) or \(\v{v} = 2\lp \v{i} + \v{j} + \v{k} \rp\text{?}\)
Solution.
We first find the components of each vector:
\begin{equation*} \v{u} = 3\v{i} - \v{j} - \v{k} = 3\la 1,0,0 \ra - \la 0,1,0 \ra - \la 0,0,1 \ra = \la 3,-1,-1 \ra \end{equation*}
and
\begin{equation*} \v{v} = 2\lp \v{i} + \v{j} + \v{k} \rp = 2\la 1,0,0 \ra + 2\la 0,1,0 \ra + 2\la 0,0,1 \ra = \la 2,2,2 \ra \end{equation*}
Then we compute their magnitudes:
\begin{equation*} \|\v{u}\| = \sqrt{3^2 + (-1)^2 + (-1)^2} = \sqrt{9 + 1 + 1} = \sqrt{11} \end{equation*}
and
\begin{equation*} \|\v{v}\| = \sqrt{2^2 + 2^2 + 2^2} = \sqrt{4 + 4 + 4} = \sqrt{12} \end{equation*}
Since \(\sqrt{11} \lt \sqrt{12}\text{,}\) we conclude that \(\v{u}\) has the smaller magnitude.

Subsection Curves and Lines

Most curves in \(\R^3\) can be represented parametrically than using a single equation. That is, we use three functions to represent the \(x\)-, \(y\)-, and \(z\)-coordinates of the points on the curve with a parameter \(t\text{.}\) This can be visualized as representing the coordinates of a particle moving through space as a function of time \(t\text{,}\) and the curve is the path traced out by the particle.
Figure 12.2.23. The curve is traced out by the tip of a moving position vector \(\v{r}(t)\)
Alternatively, we can construct a function of the position vectors with tips on the curve
\begin{equation*} \v{r}(t) = \la x(t), y(t), z(t) \ra \end{equation*}
Essentially, the tips of this "vector function" trace out the curve as \(t\) varies. This is called the vector-valued function. You will learn all the fun stuff about vector-valued functions in Chapter 13. In this section, we will focus on the simplest type of curves in \(\R^3\text{,}\) lines.
Remember back when you first learned about lines in \(\R^2\text{,}\) you probably remember that we need both the slope and a point on the line to define a line.
  • The slope tells us the direction of the line. Yet knowing just the slope doesn’t tell us a unique line... There can be thousands of parallel lines with the same slope!
  • A point on the line can pin down the location of the line. Yet knowing just a point on the line doesn’t tell us the direction of the line... We can draw infinitely many lines through a single point!
This is also the case in \(\R^3\text{!}\) In order to determine a line in \(\R^3\text{,}\) we need to know both the direction of the line and a point on the line.
Unlike stuff in \(\R^2\text{,}\) there is no "slope" in \(\R^3\) to represent the direction of a line, since "slope" is a concept that only works in two dimensions. Instead, we use a vector to represent the direction of the line.
We can find a point in \(\R^3\) just fine, since points in \(\R^3\) are represented by ordered triples.
Hence, a line in \(\R^3\) is determined by a point \(P_0 = (x_0, y_0, z_0)\) on the line and a direction vector \(\v{v} = \la a, b, c \ra\text{.}\)

Definition 12.2.24. Equation of a Line in \(\R^3\).

The line \(\c{L}\) through \(P_0 = (x_0, y_0, z_0)\) in the direction of \(\v{v} = \la a,b,c \ra\) is described by
Vector Parametrization:
\begin{equation*} \v{r}(t) = \v{r}_0 + t \v{v} = \la x_0,y_0,z_0 \ra + t \la a,b,c \ra \end{equation*}
where \(\v{r}_0 = \overrightarrow{OP_0}\text{.}\)
Parametric Equations:
\begin{equation*} x = x_0 + at, \qquad y = y_0 + bt, \qquad z = z_0 + ct \end{equation*}
The parameter \(t\) takes on values \(-\infty \lt t \lt \infty\text{.}\)
Figure 12.2.25. The line \(\v{r} = \v{r}_0 + t \v{v}\) in \(\R^3\)
Observe that the parametric equations specify the \(x\)-, \(y\)-, and \(z\)-coordinates of the points on the line as functions of the parameter \(t\text{.}\) These three parametric equations is itself a linear function in the parameter \(t\text{.}\) What we did here is essentially to extend this idea in the notion of vector parametrization.

Example 12.2.26.

Find an equation of the line that passes through the point \(P_0 = (1,2,4)\) in the direction of \(\v{v} = \la 5,-3,1 \ra\text{.}\)
Solution.
We are given \(\v{r}_0 = \la 1,2,4 \ra\text{.}\) Therefore, an equation of the line is
\begin{equation*} \v{r}(t) = \v{r}_0 + t \v{v} = \la 1,2,4 \ra + t \la 5,-3,1 \ra \end{equation*}
for \(-\infty \lt t \lt \infty\text{.}\) The corresponding parametric equations are
\begin{equation*} x = 1 + 5t, \qquad y = 2 - 3t, \qquad z = 4 + t \end{equation*}
for \(-\infty \lt t \lt \infty\text{.}\)
Back in algebra 2, you may also have learned that two points can also determine a line in \(\R^2\text{.}\) This is also true in \(\R^3\text{.}\) The trick here is to determine the direction vector using the two points.

Example 12.2.27.

Find an equation of the line that passes through the points \(P = (-2,0,-2)\) and \(Q = (4,3,7)\text{.}\)
Hint.
To find an equation of a line, we need a point on the line and a direction vector. So there are really things we need to find out.
The easier part is to find a point on the line (we are given two points on the line!)
The slightly trickier part is to find a direction vector. Can we find a vector parallel to the line using the two points?
Solution.
A directional vector is \(\overrightarrow{PQ}\text{.}\) Then we obtain
\begin{equation*} \v{v} = \overrightarrow{PQ} = \la 4-(-2), 3-0, 7-(-2) \ra = \la 6,3,9 \ra \end{equation*}
We can use either point \(P\) or \(Q\) as the point on the line. Using point \(P\text{,}\) we have \(\v{r}_0 = \la -2,0,-2 \ra\text{.}\) Therefore, an equation of the line is
\begin{equation*} \v{r}(t) = \v{r}_0 + t \v{v} = \la -2,0,-2 \ra + t \la 6,3,9 \ra \end{equation*}
for \(-\infty \lt t \lt \infty\text{.}\) The corresponding parametric equations are
\begin{equation*} x = -2 + 6t, \qquad y = 3t, \qquad z = -2 + 9t \end{equation*}
for \(-\infty \lt t \lt \infty\text{.}\)
You may feel like the equation of a line is not unique since we can choose different points on the line to represent the same line (for example, in the previous example, Richard chose the point \(P\) to write the equation of the line instead of point \(Q\text{.}\) He would have obtained a different equation if he had chosen point \(Q\) instead). It is true that the equation of a line is not unique, not only because we can choose different points on the line to construct the equation, we can also pick different vectors that are parallel to each other to represent the direction of the line.
When things are not unique, it is often helpful to verify that two different equations can represent the same line. Remember that we can determine a line by knowing a point on the line and a direction vector. Then two equations represent the same line if the direction vectors are parallel and they share a point in common.

Example 12.2.28.

Show that \(\v{r}_1(t)\) and \(\v{r}_2(t)\) define the same line, where
\begin{equation*} \v{r}_1(t) = t \la 2,1,3 \ra \qquad \text{and} \qquad \v{r}_2(t) = \la -6,-3,-9 \ra + t \la 8,4,12 \ra \end{equation*}
Hint.
The line \(\v{r}_1(t)\) has the direction vector of \(\v{v}_1 = \la 2,1,3 \ra\) and passes through the point \(P_1 = (0,0,0)\text{.}\)
The line \(\v{r}_2(t)\) has the direction vector of \(\v{v}_2 = \la 8,4,12 \ra\) and passes through the point \(P_2 = (-6,-3,-9)\text{.}\)
If they represent the same line, then \(\v{v}_1\) and \(\v{v}_2\) must be parallel, and there must be a point that lies on both lines.
Solution.
Observe that \(\v{v}_2 = 2\v{v}_1\text{,}\) so the two direction vectors are parallel.
To show that the two lines share a point in common, we can check if point \(P_2 = (-6,-3,-9)\) lies on line \(\v{r}_1(t)\text{.}\) Observe that
\begin{equation*} \v{r}_1(-3) = -3 \la 2,1,3 \ra = \la 6,-3,-9 \ra \end{equation*}
This implies that \(P_2 = (-6,-3,-9)\) lies on line \(\v{r}_1(t)\text{.}\)
Therefore, the two lines represent the same line in \(\R^3\text{.}\)
In \(\R^2\text{,}\) we learned that two lines are either parallel or they intersect at a single point, assuming the lines are not coincident. In \(\R^3\text{,}\) however, two lines can also be skew, meaning that they do not intersect and are not parallel (hence they are not coplanar).

Example 12.2.29.

Determine whether the lines \(\v{r}_1(t) = \la 1, -3, 5 \ra + t \la 1, 2, -1 \ra\) and \(\v{r}_2(s) = \la 0, 0, 7 \ra + s \la -2, 1, 3 \ra\) intersect, and if so, find the point of intersection.
Hint.
Let’s just assume that the two lines intersect. If two lines intersect, then they must intersect at a single point.
Now put on your algebra 2 hat and think about how to find the point of intersection of two lines in \(\R^2\text{.}\) (You would set the two equations equal to each other and solve for \(x\text{!}\))
Solution.
The lines intersect if there exist parameter values \(t\) and \(s\) such that
\begin{align*} \la 1, -3, 5 \ra + t \la 1, 2, -1 \ra \amp= \la 0, 0, 7 \ra + s \la -2, 1, 3 \ra \\ \la 1+t, -3+2t, 5-t \ra \amp= \la -2s, s, 7+3s \ra \end{align*}
Equating corresponding components, we get
\begin{equation*} \begin{cases} 1 + t = -2s \\ -3 + 2t = s \\ 5 - t = 7 + 3s \end{cases} \end{equation*}
This is a system of three equations with two unknowns. If you know linear algebra, feel free to solve it using matrices. Otherwise, we can solve it using basic algebra methods, like substitution or elimination.
Richard assumes no linear algebra knowledge here, so he will use substitution. Substituting \(s\) from the second equation into the first equation we get
\begin{equation*} 1 + t = -2(-3 + 2t) \qquad \implies \qquad t = 1 \end{equation*}
Using \(t = 1\) in the second equation gives \(s = -3 + 2(1) = -1\text{.}\) Don’t forget that there are. three equations in the system but we only used two of them so far! We need to check whether \(t = 1\) and \(s = -1\) satisfy the third equation:
\begin{align*} 5 - (1) \amp= 7 + 3(-1) \\ 4 \amp= 4 \end{align*}
We conclude that \(t = 1\text{,}\) \(s = -1\) is the solution to the system, hence the two lines intersect.
Note 12.2.30. If you really like linear algebra and want to solve it using matrices....
There are multiple ways to solve the system of equations using linear algebra (like row reduce the augmented matrix, or use Cramer’s rule, etc.). Richard will pick the method of row reducing the augmented matrix here (the cramer’s rule or the inverse matrix method don’t work here since there are more equations than the variables).
The agumented matrix of the system is
\begin{equation*} \begin{pmatrix} 1 \amp 2 \amp \big| \amp -1 \\ 2 \amp -1 \amp \big| \amp 3 \\ -1 \amp -3 \amp \big| \amp 2 \end{pmatrix} \end{equation*}
Row reducing this matrix we get
\begin{equation*} \begin{pmatrix} 1 \amp 0 \amp \big| \amp 1 \\ 0 \amp 1 \amp \big| \amp -1 \\ 0 \amp 0 \amp \big| \amp 0 \end{pmatrix} \end{equation*}
From here we can read off the solution \(t = 1\text{,}\) \(s = -1\text{.}\)
To find the point of intersection we substitute \(t = 1\) into the equation for \(\v{r}_1\) (or \(s = -1\) into \(\v{r}_2\)) to obtain
\begin{equation*} \la 1+1, -3+2(1), 5-1 \ra = \la 2, -1, 4 \ra \end{equation*}
The point of intersection is the terminal point of this vector, that is, \(\lp 2, -1, 4 \rp\text{.}\)

Example 12.2.31.

Determine whether the lines \(\v{r}_1(t) = \la 1,-2,4 \ra + t \la 1,3,-1 \ra\) and \(\v{r}_2(s) = \la 0,3,-3 \ra + s \la 2,1,4 \ra\) are parallel, intersect, or are skew.
Hint.
Observe that the direction vectors are \(\v{v}_1 = \la 1,3,-1 \ra\) and \(\v{v}_2 = \la 2,1,4 \ra\) are not multiples of each other, so the lines are not parallel.
Then the two other possibilities are that the lines intersect or they are skew. We haven’t discussed how to check if two lines are skew, but we can check if they intersect. So the question becomes: do the two lines intersect?
Solution.
If the two lines intersect, then there exist parameter values \(t\) and \(s\) such that
\begin{align*} \la 1, -2, 4 \ra + t \la 1, 3, -1 \ra \amp= \la 0, 3, -3 \ra + s \la 2, 1, 4 \ra \\ \la 1+t, -2+3t, 4 - t \ra \amp= \la 2s, 3 + s, -3 + 4s \ra \end{align*}
Equating corresponding components, we get
\begin{equation*} \begin{cases} 1 + t = 2s \\ -2 + 3t = 3 + s \\ 4 - t = -3 + 4s \end{cases} \end{equation*}
Substituting \(s\) from the second equation into the first equation we get
\begin{equation*} -2 + 3t = 3 + \frac{1 + t}{2} \qquad \implies \qquad t = \frac{11}{5} \end{equation*}
Using \(t = \dfrac{11}{5}\) in the first equation gives \(s = \dfrac{1 + 3}{2} = \dfrac{8}{5}\text{.}\) Don’t forget that there are three equations in the system but we only used two of them so far! We need to check whether \(t = \dfrac{11}{5}\) and \(s = \dfrac{8}{5}\) satisfy the third equation:
\begin{align*} 4 - \dfrac{11}{5} \amp= -3 + 4 \cdot \dfrac{8}{5} \\ \dfrac{9}{5} \amp= \dfrac{17}{5} \end{align*}
This is a contradiction, so the two lines do not intersect.
Note 12.2.32. If you again want to solve it using matrices....
The augmented matrix of the system is
\begin{equation*} \begin{pmatrix} 1 \amp -2 \amp \big| \amp -1 \\ 3 \amp -1 \amp \big| \amp 5 \\ -1 \amp -4 \amp \big| \amp -7 \end{pmatrix} \end{equation*}
Row reducing this matrix we get
\begin{equation*} \begin{pmatrix} 1 \amp 0 \amp \big| \amp 0 \\ 0 \amp 1 \amp \big| \amp 0 \\ 0 \amp 0 \amp \big| \amp 1 \end{pmatrix} \end{equation*}
Observe that a pivot appears in the rightmost column, which implies that the system is inconsistent.
Since we have already established that the lines are not parallel, we conclude that the two lines are skew.
The sketch of the two lines is shown below. Observe that these two lines do not intersect and are not parallel. They are not coplanar.
Figure 12.2.33. Line \(\mathbf{r}_1(t)\) (blue) and Line \(\mathbf{r}_2(s)\) (red)

Worksheet Assigned Problems for Section 12.2

The problems listed below are assigned to be included in your problem set portfolio. Note that a specific selection of these problems will also form the written homework assignments. I recommend working through all of them to ensure a solid grasp of the material. Reach out to Richard for help if you get stuck or have any questions.
The solutions will be posted after the written homework due dates. If you have any questions about your work, talk to Richard and he is happy to discuss the process with you.

12.2.5.

Find the components of the vector \(\overrightarrow{PQ}\text{,}\) where \(P = (1,0,1)\) and \(Q = (2,1,0)\)
Solution.
By the definition of the vector components we have
\begin{equation*} \overrightarrow{PQ} = \la 2 - 1, 1 - 0, 0 - 1 \ra = \la 1, 1, -1 \ra \end{equation*}

12.2.13.

Let \(\v{v} = \la 4,8,12 \ra\text{.}\) Which of the following vectors is parallel to \(\v{v}\text{?}\) Which point in the same direction?
  1. \(\displaystyle \la 2,4,6 \ra\)
  2. \(\displaystyle \la -1,-2,3 \ra\)
  3. \(\displaystyle \la -7,-14,-21 \ra\)
  4. \(\displaystyle \la 6,10,14 \ra\)
Solution.
A vector is parallel to \(\v{v}\) if it is a scalar multiple of \(\v{v}\text{.}\) It points in the same direction if the multiplying scalar is positive. Using these properties we obtain the following answers:
  1. \(\la 2,4,6 \ra = \dfrac{1}{2}\v{v}\text{.}\) The vectors are parallel and point in the same direction.
  2. \(\la -1,-2,3 \ra\) is not a scalar multiple of \(\v{v}\text{,}\) hence these vectors are not parallel.
  3. \(\la -7,-14,-21 \ra = -\dfrac{7}{4}\v{v}\text{.}\) The vectors are parallel but point in opposite directions.
  4. \(\la 6,10,14 \ra\) is not a scalar multiple of \(\v{v}\text{.}\) hence these vectors are not parallel.

12.2.25.

Determine whether or not the two vectors \(\v{u} = \la 4,2,-6 \ra\) and \(\v{v} = \la 2,-1,3 \ra\) are parallel.
Solution.
Since the first component of \(\v{u}\) is twice the first component of \(\v{v}\text{,}\) if the two vectors are to be parallel, the second component of \(\v{u}\) must be twice the second component of \(\v{v}\text{.}\) But it is not; it is \(-2\) times the second component of \(\v{v}\text{.}\) Thus the two vectors are not parallel.

12.2.32.

Sketch the following vectors, and find their components and lengths:
  1. \(\displaystyle 4\v{i} + 3\v{j} - 2\v{k}\)
  2. \(\displaystyle \v{i} + \v{j} + \v{k}\)
  3. \(\displaystyle 4\v{j} + 3\v{k}\)
  4. \(\displaystyle 12\v{i} + 8\v{j} - \v{k}\)
Solution.
By the definition of the standard basis vectors in \(\R^3\) and the definition of vector length, we obtain the following answers:
  1. \(4\v{i} + 3\v{j} - 2\v{k} = \la 4,3,-2 \ra\)
    \(\|4\v{i} + 3\v{j} - 2\v{k}\| = \sqrt{4^2 + 3^2 + (-2)^2} = \sqrt{16 + 9 + 4} = \sqrt{29}\)
    Figure 12.2.34. Sketch of \(4\v{i} + 3\v{j} - 2\v{k}\)
  2. \(\v{i} + \v{j} + \v{k} = \la 1,1,1 \ra\)
    \(\|\v{i} + \v{j} + \v{k}\| = \sqrt{1^2 + 1^2 + 1^2} = \sqrt{3}\)
    Figure 12.2.35. Sketch of \(\v{i} + \v{j} + \v{k}\)
  3. \(4\v{j} + 3\v{k} = \la 0,4,3 \ra\)
    \(\|4\v{j} + 3\v{k}\| = \sqrt{0^2 + 4^2 + 3^2} = \sqrt{16 + 9} = 5\)
    Figure 12.2.36. Sketch of \(4\v{j} + 3\v{k}\)
  4. \(12\v{i} + 8\v{j} - \v{k} = \la 12,8,-1 \ra\)
    \(\|12\v{i} + 8\v{j} - \v{k}\| = \sqrt{12^2 + 8^2 + (-1)^2} = \sqrt{144 + 64 + 1} = \sqrt{209}\)
    Figure 12.2.37. Sketch of \(12\v{i} + 8\v{j} - \v{k}\)

Exercise Group.

In the following exercises, describe the surface.
12.2.33.
\(x^2 + y^2 + (z - 2)^2 = 4\text{,}\) with \(z\geq 2\)
Solution.
The equation \(x^2 + y^2 + (z - 2)^2 = 4\) describes a sphere of radius \(2\) centered at \((0,0,2)\text{.}\) The inequality \(z \geq 2\) restricts the surface to the upper hemisphere (the top half of the sphere).
The surface is shown in the figure below.
Figure 12.2.38. Upper semi-sphere with radius \(2\) and centered at \((0,0,2)\)
12.2.35.
\(x^2 + y^2 = 7\text{,}\) with \(|z| \leq 7\)
Solution.
The equation \(x^2 + y^2 = 7\) describes a cylinder of radius \(\sqrt{7}\) centered on the \(z\)-axis. The inequality \(|z| \leq 7\) restricts the cylinder to the finite portion between the planes \(z = -7\) and \(z = 7\text{.}\)
The surface is shown in the figure below.
Figure 12.2.39. Cylinder with \(r=\sqrt{7}\) between \(z=-7\) and \(z=7\)

Exercise Group.

In the following exercises, give an equation for the indicated surface.
12.2.39.
The sphere centered at \((6,-3,11)\) passing through \((0,1,-4)\)
Solution.
The radius of the sphere is the distance between the center \(C=(6,-3,11)\) and the point on the surface \(P=(0,1,-4)\text{:}\)
\begin{equation*} r^2 = (6-0)^2 + (-3-1)^2 + (11-(-4))^2 = 36 + 16 + 225 = 277 \end{equation*}
Thus, the equation of the sphere is
\begin{equation*} (x-6)^2 + (y+3)^2 + (z-11)^2 = 277 \end{equation*}
12.2.41.
The cylinder passing through the origin with the vertical line through \((1,-1,0)\) as its central axis.
Solution.
The vertical line through \((1,-1,0)\) corresponds to the axis \(x=1\text{,}\) \(y=-1\text{.}\) Since the cylinder passes through the origin \((0,0,0)\text{,}\) the radius is the distance from the axis to the origin:
\begin{equation*} r = \sqrt{(1-0)^2 + (-1-0)^2} = \sqrt{2} \end{equation*}
Therefore, the equation of the cylinder is
\begin{equation*} (x-1)^2 + (y+1)^2 = 2 \end{equation*}

Exercise Group.

In the following exercises, find a vector parametrization for the line with the given description.
12.2.43.
Passes through \(P = (1,2,-8)\text{,}\) direction vector \(\v{v} = \la 2,1,3 \ra\)
Solution.
A vector parametrization of the line is
\begin{equation*} \v{r}(t) = \la 1,2,-8 \ra + t \la 2,1,3 \ra = \la 1 + 2t, 2 + t, -8 + 3t \ra \end{equation*}
12.2.45.
Passes through \(P = (4,0,8)\text{,}\) direction vector \(\v{v} = 7\v{i} + 4\v{k}\)
Solution.
Since \(\v{v} = 7\v{i} + 4\v{k} = \la 7,0,4 \ra\text{,}\) we obtain the following parametrization:
\begin{equation*} \v{r}(t) = \overrightarrow{PQ} + t\v{v} = \la 4,0,8 \ra + t \la 7,0,4 \ra = \la 4 + 7t, 0, 8 + 4t \ra \end{equation*}

12.2.57.

Show that \(\v{r}_1(t)\) and \(\v{r}_2(t)\) define the same line, where
\begin{equation*} \v{r}_1(t) = \la 3,-1,4 \ra + t \la 8,12,-6 \ra \end{equation*}
\begin{equation*} \v{r}_2(t) = \la 11,11,-2 \ra + t \la 4,6,-3 \ra \end{equation*}
Hint.
Show that \(\v{r}_2(t)\) passes through \((3,-1,4)\) and that the direction vectors for \(\v{r}_1(t)\) and \(\v{r}_2(t)\) are parallel.
Solution.
We observe first that the direction vectors of \(\v{r}_1(t)\) and \(\v{r}_2(t)\) are multiples of each other:
\begin{equation*} \la 8,12,-6 \ra = 2\la 4,6,-3 \ra \end{equation*}
Therefore, \(\v{r}_1(t)\) and \(\v{r}_2(t)\) are parallel. To show they coincide, it suffices to prove that they share a point in common, so we verify that \(\v{r}_1(0) = \la 3,-1,4 \ra\) lies on \(\v{r}_2(t)\) by solving for \(t\text{:}\)
\begin{align*} \la 3,-1,4 \ra \amp= \la 11,11,-2 \ra + t \la 4,6,-3 \ra \\ \la 3,-1,4 \ra - \la 11,11,-2 \ra \amp= t \la 4,6,-3 \ra \\ \la -8,-12,6 \ra \amp= t \la 4,6,-3 \ra \end{align*}
This equation is satisfied for \(t = -2\text{,}\) so \(\v{r}_1\) and \(\v{r}_2\) coincide.

12.2.59.

Find two different vector parametrizations of the line through \(P = (5,5,2)\) with direction vector \(\v{v} = \la 0,-2,1 \ra\text{.}\)
Solution.
Two different parametrizations are
\begin{align*} \v{r}_1(t) \amp= \la 5,5,2 \ra + t \la 0,-2,1 \ra \\ \v{r}_2(t) \amp= \la 5,5,2 \ra + t \la 0,-20,10 \ra \end{align*}

12.2.63.

Determine whether the lines \(\v{r}_1(t) = \la 0,1,1 \ra + t \la 1,1,2 \ra\) and \(\v{r}_2(s) = \la 2,0,3 \ra + s \la 1,4,4 \ra\) intersect, and if so, find the point of intersection.
Solution.
The lines intersect if there exist parameter values \(t\) and \(s\) such that
\begin{align*} \la 0,1,1 \ra + t \la 1,1,2 \ra \amp= \la 2,0,3 \ra + s \la 1,4,4 \ra \\ \la t,1+t,1+2t \ra \amp= \la 2+s,4s,3+4s \ra \end{align*}
Equating corresponding components, we get
\begin{equation*} \begin{cases} t = 2 + s \\ 1 + t = 4s \\ 1 + 2t = 3 + 4s \end{cases} \end{equation*}
Substituting \(t\) from the first equation into the second equation we get
\begin{equation*} \begin{cases} 1 + 2 + s = 4s \\ 3s = 3 \end{cases} \qquad \implies \qquad s = 1, t = 2 + s = 3 \end{equation*}
We now check whether \(s = 1\) and \(t = 3\) satisfy the third equation:
\begin{align*} 1 + 2\cdot 3 \amp= 3 + 4\cdot 1 \\ 7 \amp= 7 \end{align*}
We conclude that \(s = 1\text{,}\) \(t = 3\) is the solution to the equation, hence the two lines intersect.
To find the point of intersection we substitute \(s = 1\) in the right-hand side of the equation to obtain
\begin{equation*} \la 2+1,4\cdot 1,3+4\cdot 1 \ra = \la 3,4,7 \ra \end{equation*}
The point of intersection is the terminal point of this vector, that is, \(\lp 3,4,7 \rp\)