Skip to content

Chapter 1: Three-Dimensional Space and Introduction to Vectors

A point PP gives a position, which we can describe using different coordinate systems. A common choice is the Cartesian (rectangular) system, with P=(x,y,z)P=(x,y,z). xx, yy, and zz denote the distance from a plane, or basically an infinite horizontal sheet. The coordinate planes are z=0z=0 (the xyxy-plane), y=0y=0 (the xzxz-plane), and x=0x=0 (the yzyz-plane). To picture a point, locate (x,y,0)(x,y,0) first, then move vertically by zz.

xyz(x;y;0)P=(x;y;z)O
Locating a point by its horizontal projection and vertical displacement

The distance between P=(x1,y1,z1)P=(x_1,y_1,z_1) and Q=(x2,y2,z2)Q=(x_2,y_2,z_2) follows from the Pythagorean theorem:

d(P,Q)=(x2−x1)2+(y2−y1)2+(z2−z1)2.d(P,Q)=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}.

One of the most common types of shapes found in 3D planes is a spherical surface. A sphere is the set of points a fixed distance R>0R>0 from a center (a,b,c)(a,b,c), so its equation is

(x−a)2+(y−b)2+(z−c)2=R2.(x-a)^2+(y-b)^2+(z-c)^2=R^2.

Complete the square to find the center and radius when the equation is expanded.

A cylindrical surface forms when a 3D circle is extended along parallel lines. If an equation leaves out one coordinate, that coordinate is free. For example, x2+y2=9x^2+y^2=9 describes a circular cylinder extending in both directions along the zz-axis.

Example. Identify the surface x2+y2+z2−4x+6z=3x^2+y^2+z^2-4x+6z=3 and find its center and radius.

Group the terms and complete the squares:

(x−2)2−4+y2+(z+3)2−9=3,(x-2)^2-4+y^2+(z+3)^2-9=3,

so

(x−2)2+y2+(z+3)2=16.(x-2)^2+y^2+(z+3)^2=16.

This is a sphere with center (2,0,−3)(2,0,-3) and radius 44.

In two dimensions, fixing one coordinate usually leaves a line. In three dimensions, it leaves a plane because two coordinates can still vary. For example, x=2x=2 contains every point (2,y,z)(2,y,z). Adding y=−1y=-1 leaves the line (2,−1,z)(2,-1,z), and adding z=3z=3 selects a single point. Counting the remaining free coordinates is a useful first check when an equation is hard to picture.

The distinction between a surface and a solid also comes from the equation. Equality in the sphere equation gives only the boundary. Replacing equality with ≤\le includes the interior ball. Similarly, x2+y2≤9x^2+y^2\le9 describes an infinite solid cylinder, while adding 0≤z≤40\le z\le4 cuts out a finite cylinder with two flat ends.

Example. A sphere has diameter endpoints A=(−1,2,0)A=(-1,2,0) and B=(3,0,4)B=(3,0,4). Find its equation and describe its trace in the plane z=2z=2.

The center is the midpoint, found by averaging corresponding coordinates:

C=(−1+32,2+02,0+42)=(1,1,2).C=\left(\frac{-1+3}2,\frac{2+0}2,\frac{0+4}2\right)=(1,1,2).

The diameter vector is ⟨4,−2,4⟩\langle4,-2,4\rangle, whose length is 66. The radius is therefore 33, giving

(x−1)2+(y−1)2+(z−2)2=9.(x-1)^2+(y-1)^2+(z-2)^2=9.

Set z=2z=2 to obtain (x−1)2+(y−1)2=9(x-1)^2+(y-1)^2=9. This is the largest circular cross section because the plane passes through the center. At z=4z=4, the trace instead has radius 5\sqrt5; beyond z=5z=5 there are no points on the sphere.


A vector describes a magnitude and direction, which you should already be familiar with from Precalculus and Calculus. One thing that vectors can model is displacement, or how far a point moved from another. The displacement from PP to QQ is defined as

PQ→=⟨x2−x1,y2−y1,z2−z1⟩.\overrightarrow{PQ}=\langle x_2-x_1,y_2-y_1,z_2-z_1\rangle.

Unlike a point, a displacement vector can be moved without changing it. Its components tell us how much to move along each axis. For u=⟨u1,u2,u3⟩\mathbf u=\langle u_1,u_2,u_3\rangle and v=⟨v1,v2,v3⟩\mathbf v=\langle v_1,v_2,v_3\rangle, we can add (and subtract) and scale the vectors component by component:

u+v=⟨u1+v1,u2+v2,u3+v3⟩,cu=⟨cu1,cu2,cu3⟩.\mathbf u+\mathbf v=\langle u_1+v_1,u_2+v_2,u_3+v_3\rangle, \qquad c\mathbf u=\langle cu_1,cu_2,cu_3\rangle.

The standard basis vectors are i=⟨1,0,0⟩\mathbf i=\langle1,0,0\rangle, j=⟨0,1,0⟩\mathbf j=\langle0,1,0\rangle, and k=⟨0,0,1⟩\mathbf k=\langle0,0,1\rangle. Thus ⟨a,b,c⟩=ai+bj+ck\langle a,b,c\rangle=a\mathbf i+b\mathbf j+c\mathbf k.

The magnitude and a unit vector in the same direction are

∥v∥=v12+v22+v32,v^=v∥v∥(v≠0).\lVert\mathbf v\rVert=\sqrt{v_1^2+v_2^2+v_3^2}, \qquad \widehat{\mathbf v}=\frac{\mathbf v}{\lVert\mathbf v\rVert} \quad (\mathbf v\ne\mathbf0).

Two nonzero vectors are parallel exactly when one is a scalar multiple of the other. A negative multiple reverses direction. The zero vector has magnitude zero and no direction.

// add lots more introduction to vectors

When a vector problem asks for a specified magnitude in a specified direction, handle the direction first. Subtract endpoint coordinates in the correct order, divide by the resulting magnitude, and only then multiply by the requested magnitude. A unit vector records direction without retaining the original displacement’s length.

Adding vectors has a geometric interpretation too. Place the tail of the second displacement at the tip of the first. The sum runs from the original starting point to the final endpoint. This explains why displacement depends only on the endpoints even when the actual path changes direction many times.

Example. A force of magnitude 3030 acts from P=(1,−2,2)P=(1,-2,2) toward Q=(3,1,8)Q=(3,1,8). Find its component form, then find the force needed to balance it together with G=⟨4,0,−5⟩\mathbf G=\langle4,0,-5\rangle.

The required direction is

PQ→=⟨2,3,6⟩,∥PQ→∥=7.\overrightarrow{PQ}=\langle2,3,6\rangle,\qquad \lVert\overrightarrow{PQ}\rVert=7.

Thus the first force is

F=307⟨2,3,6⟩=⟨607,907,1807⟩.\mathbf F=\frac{30}7\langle2,3,6\rangle =\left\langle\frac{60}7,\frac{90}7,\frac{180}7\right\rangle.

For equilibrium, the total force must be the zero vector. The balancing force is therefore

H=−(F+G)=⟨−887,−907,−1457⟩.\mathbf H=-(\mathbf F+\mathbf G) =\left\langle-\frac{88}7,-\frac{90}7,-\frac{145}7\right\rangle.

The minus sign reverses the entire resultant, not just its largest component. Adding all three forces componentwise gives zero, which is the quickest check.


Suppose a force points partly along a displacement and partly across it. To measure how much of that force helps the motion, we need both its size and its alignment with the displacement. Multiplying the two magnitudes alone loses the direction information. A factor of cos⁡θ\cos\theta fixes that: it is one for matching directions, zero for perpendicular directions, and negative for opposing directions.

The dot product packages that geometric measurement into a calculation with components:

u⋅v=u1v1+u2v2+u3v3=∥u∥∥v∥cos⁡θ.\mathbf u\cdot\mathbf v=u_1v_1+u_2v_2+u_3v_3 =\lVert\mathbf u\rVert\lVert\mathbf v\rVert\cos\theta.

The component formula and angle formula are two descriptions of the same operation. One is useful when coordinates are known; the other explains what the result means.

Proof (Dot product and angle). Place nonzero vectors u,v\mathbf u,\mathbf v at a common starting point. The third side of their triangle is u−v\mathbf u-\mathbf v. The law of cosines gives

∥u−v∥2=∥u∥2+∥v∥2−2∥u∥∥v∥cos⁡θ.\lVert\mathbf u-\mathbf v\rVert^2 =\lVert\mathbf u\rVert^2+\lVert\mathbf v\rVert^2 -2\lVert\mathbf u\rVert\lVert\mathbf v\rVert\cos\theta.

Expanding the squared coordinate differences gives the same first two terms, followed by −2(u1v1+u2v2+u3v3)-2(u_1v_1+u_2v_2+u_3v_3). Equating the two expressions proves the identity. This also explains why a sum of component products can measure an angle even though no angle appears in that calculation.

For nonzero vectors, this gives the angle 0≤θ≤π0\le\theta\le\pi. A positive dot product means an acute angle, a negative one means an obtuse angle, and zero means the vectors are perpendicular.

Imagine dropping a perpendicular from the tip of u\mathbf u onto the line in direction v\mathbf v. The location of its foot gives the part of u\mathbf u that acts along that line. The signed distance to the foot is ∥u∥cos⁡θ\lVert\mathbf u\rVert\cos\theta. By the dot-product identity, this equals u⋅v/∥v∥\mathbf u\cdot\mathbf v/\lVert\mathbf v\rVert.

That distance is the scalar component. To turn it into a vector, multiply it by the unit direction v/∥v∥\mathbf v/\lVert\mathbf v\rVert. This supplies the second factor of the magnitude in the denominator:

comp⁡vu=u⋅v∥v∥,proj⁡vu=u⋅v∥v∥2v.\operatorname{comp}_{\mathbf v}\mathbf u =\frac{\mathbf u\cdot\mathbf v}{\lVert\mathbf v\rVert}, \qquad \operatorname{proj}_{\mathbf v}\mathbf u =\frac{\mathbf u\cdot\mathbf v}{\lVert\mathbf v\rVert^2}\mathbf v.

Subtracting the projection from u\mathbf u leaves a component perpendicular to v\mathbf v. This splits a vector into parallel and perpendicular parts.

For a constant force F\mathbf F acting through displacement d\mathbf d, work is W=F⋅dW=\mathbf F\cdot\mathbf d. Only the force component along the displacement contributes.

Example. For u=⟨3,1,2⟩\mathbf u=\langle3,1,2\rangle and v=⟨1,1,0⟩\mathbf v=\langle1,1,0\rangle, find the projection of u\mathbf u onto v\mathbf v and the perpendicular remainder.

Since u⋅v=4\mathbf u\cdot\mathbf v=4 and ∥v∥2=2\lVert\mathbf v\rVert^2=2,

proj⁡vu=2⟨1,1,0⟩=⟨2,2,0⟩.\operatorname{proj}_{\mathbf v}\mathbf u=2\langle1,1,0\rangle=\langle2,2,0\rangle.

The remainder is ⟨1,−1,2⟩\langle1,-1,2\rangle. Its dot product with v\mathbf v is 1−1=01-1=0, which checks that it is perpendicular.

Suppose the component of u\mathbf u parallel to v\mathbf v is cvc\mathbf v. The leftover vector must be perpendicular to v\mathbf v, so

(u−cv)⋅v=0.(\mathbf u-c\mathbf v)\cdot\mathbf v=0.

Expanding and solving gives c=(u⋅v)/(v⋅v)c=(\mathbf u\cdot\mathbf v)/(\mathbf v\cdot\mathbf v). This produces the vector projection formula without needing to find the angle first. It also explains why the denominator is the squared magnitude when the answer is a vector.

Example. A point P=(2,1,3)P=(2,1,3) lies near the line r(t)=⟨1,0,0⟩+t⟨1,2,2⟩\mathbf r(t)=\langle1,0,0\rangle+t\langle1,2,2\rangle. Find its nearest point on the line, the distance to the line, and the reflection of PP across the line.

The nearest point must be found along the whole line, rather than by choosing a coordinate that looks close. Write it as Q=⟨1+t,2t,2t⟩Q=\langle1+t,2t,2t\rangle. At a nearest point, the connecting displacement is perpendicular to the line direction. Otherwise we could move slightly along the line and shorten it.

Thus

(P−Q)⋅⟨1,2,2⟩=⟨1−t,1−2t,3−2t⟩⋅⟨1,2,2⟩=9−9t=0.(P-Q)\cdot\langle1,2,2\rangle =\langle1-t,1-2t,3-2t\rangle\cdot\langle1,2,2\rangle =9-9t=0.

This gives t=1t=1 and Q=(2,2,2)Q=(2,2,2). The distance is ∥P−Q∥=2\lVert P-Q\rVert=\sqrt2.

The perpendicular foot is the midpoint between a point and its reflection across the line. Continuing the displacement from PP to QQ an equal distance gives

P∗=2Q−P=(2,3,1).P^*=2Q-P=(2,3,1).

This reflection means a half-turn about the line in space. Its midpoint with PP lies on the line, and its distance to the line is again 2\sqrt2. Projection handles the nearest-point condition and the reflection in one calculation.

A scalar projection may be negative, but the length of the projected vector cannot be. Its length is the absolute value of the scalar projection. Keep this distinction when a question asks for a component, a projection vector, or a distance.


The dot product tells us about alignment within a plane. Sometimes we need the plane’s perpendicular direction instead, such as the normal to a triangular surface. Two independent vectors determine that plane, but there are two possible perpendicular directions. We choose one by the right-hand rule, curling from the first input toward the second.

We also want the result to record how much area the inputs span. Taking the first vector as a base, the perpendicular height supplied by the second is ∥v∥sin⁡θ\lVert\mathbf v\rVert\sin\theta. The parallelogram area is therefore ∥u∥∥v∥sin⁡θ\lVert\mathbf u\rVert\lVert\mathbf v\rVert\sin\theta. Nearly parallel vectors span little area even if both are long.

The cross product is the vector with this area as its magnitude and the chosen normal as its direction. In components it is

u×v=⟨u2v3−u3v2, u3v1−u1v3, u1v2−u2v1⟩.\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.

You can remember this using a determinant:

u×v=∣ijku1u2u3v1v2v3∣.\mathbf u\times\mathbf v= \begin{vmatrix} \mathbf i&\mathbf j&\mathbf k\\ u_1&u_2&u_3\\ v_1&v_2&v_3 \end{vmatrix}.

Its direction follows the right-hand rule from u\mathbf u toward v\mathbf v. In particular, i×j=k\mathbf i\times\mathbf j=\mathbf k, and reversing the order changes the sign:

v×u=−u×v.\mathbf v\times\mathbf u=-\mathbf u\times\mathbf v.

Its magnitude measures the area of the parallelogram spanned by the vectors:

∥u×v∥=∥u∥∥v∥sin⁡θ.\lVert\mathbf u\times\mathbf v\rVert =\lVert\mathbf u\rVert\lVert\mathbf v\rVert\sin\theta.

A triangle has half this area. The scalar triple product gives a signed volume, so the ordinary volume of a parallelepiped is

V=∣u⋅(v×w)∣.V=\lvert\mathbf u\cdot(\mathbf v\times\mathbf w)\rvert.

A zero triple product means the three vectors are coplanar. A zero cross product means the two vectors are linearly dependent.

Example. A triangle has vertices A=(0,0,0)A=(0,0,0), B=(1,2,0)B=(1,2,0), and C=(0,1,3)C=(0,1,3). Find its area and a normal vector to its plane.

Use two edges from the same vertex:

AB→×AC→=⟨1,2,0⟩×⟨0,1,3⟩=⟨6,−3,1⟩.\overrightarrow{AB}\times\overrightarrow{AC} =\langle1,2,0\rangle\times\langle0,1,3\rangle =\langle6,-3,1\rangle.

This is a normal vector, and the triangle’s area is

A=1236+9+1=462.A=\frac12\sqrt{36+9+1}=\frac{\sqrt{46}}2.

Products answer different geometric questions

Section titled “Products answer different geometric questions”

Use a dot product when the question concerns an angle, perpendicularity, or a component along a direction. Use a cross product when it concerns a normal direction or area. The dot product returns a scalar, while the cross product returns a vector; checking the type of the answer catches many setup errors.

Cross products distribute over addition, but they do not commute. They also do not generally associate, so keep parentheses in expressions involving three cross products. The determinant shortcut is safe when the component order is fixed and the middle cofactor receives its minus sign.

Example. The edges of a parallelepiped are u=⟨1,2,0⟩\mathbf u=\langle1,2,0\rangle, v=⟨0,1,3⟩\mathbf v=\langle0,1,3\rangle, and w=⟨2,0,1⟩\mathbf w=\langle2,0,1\rangle. Find its volume and its height above the base spanned by u,v\mathbf u,\mathbf v.

The base normal is u×v=⟨6,−3,1⟩\mathbf u\times\mathbf v=\langle6,-3,1\rangle. The scalar triple product is

w⋅(u×v)=12+1=13.\mathbf w\cdot(\mathbf u\times\mathbf v)=12+1=13.

Thus the volume is 1313. The base area is 46\sqrt{46}, so the perpendicular height is

h=VA=1346.h=\frac{V}{A}=\frac{13}{\sqrt{46}}.

The height is smaller than the edge length 5\sqrt5 because that edge is tilted relative to the base normal. Interchanging the two base edges would reverse the normal and the signed triple product, but the volume would remain 1313.


A point tells us where a line is, but it does not tell us which way the line runs. A direction vector supplies that missing information. Starting from r0\mathbf r_0, every move along the line must be a scalar multiple of the same direction: half a step, several steps, or a negative number of steps to move backward.

This is why one parameter is enough for a line in three-dimensional space. The coordinates vary together rather than independently:

r(t)=r0+tv,−∞<t<∞.\mathbf r(t)=\mathbf r_0+t\mathbf v,\qquad -\infty<t<\infty.

If r0=⟨x0,y0,z0⟩\mathbf r_0=\langle x_0,y_0,z_0\rangle and v=⟨a,b,c⟩\mathbf v=\langle a,b,c\rangle, the component equations are x=x0+atx=x_0+at, y=y0+bty=y_0+bt, and z=z0+ctz=z_0+ct. When all three direction components are nonzero, the symmetric form is

x−x0a=y−y0b=z−z0c.\frac{x-x_0}{a}=\frac{y-y_0}{b}=\frac{z-z_0}{c}.

If a component is zero, write that coordinate as constant instead of dividing by zero. A segment from PP to QQ uses r(t)=P+t(Q−P)\mathbf r(t)=P+t(Q-P) with 0≤t≤10\le t\le1.

To test whether two lines intersect, give them separate parameters and solve all three coordinate equations. Nonparallel lines in space can be skew: they do not intersect and are not in a common plane.

A parameter labels a point on one particular line. Two lines reaching the same spatial point need not do so at the same parameter value. Setting their parameter symbols equal imposes an extra condition that the geometry does not require. Instead, use one parameter for each line and solve for both.

Example. Find the minimum distance between the lines L1:r(t)=⟨t,t,0⟩L_1:\mathbf r(t)=\langle t,t,0\rangle and L2:q(s)=⟨1+s,−s,1+s⟩L_2:\mathbf q(s)=\langle1+s,-s,1+s\rangle, and find the two points attaining it.

The lines have directions u=⟨1,1,0⟩\mathbf u=\langle1,1,0\rangle and v=⟨1,−1,1⟩\mathbf v=\langle1,-1,1\rangle. These are not parallel. At the closest pair, the connecting vector must be perpendicular to both directions; otherwise sliding one endpoint along its line would reduce the distance.

The connecting vector from r(t)\mathbf r(t) to q(s)\mathbf q(s) is

d=⟨1+s−t,−s−t,1+s⟩.\mathbf d=\langle1+s-t,-s-t,1+s\rangle.

Imposing the two perpendicularity conditions gives

d⋅u=1−2t=0,d⋅v=2+3s=0.\mathbf d\cdot\mathbf u=1-2t=0, \qquad \mathbf d\cdot\mathbf v=2+3s=0.

Hence t=1/2t=1/2 and s=−2/3s=-2/3. The closest points are

A=(12,12,0),B=(13,23,13).A=\left(\frac12,\frac12,0\right),\qquad B=\left(\frac13,\frac23,\frac13\right).

Their displacement is ⟨−1/6,1/6,1/3⟩\langle-1/6,1/6,1/3\rangle, with length 1/61/\sqrt6. The positive minimum proves the lines are skew.

For an independent distance check, u×v=⟨1,−1,−2⟩\mathbf u\times\mathbf v=\langle1,-1,-2\rangle. Project the initial connecting vector q(0)−r(0)=⟨1,0,1⟩\mathbf q(0)-\mathbf r(0)=\langle1,0,1\rangle onto that common normal:

D=∣⟨1,0,1⟩⋅⟨1,−1,−2⟩∣6=16.D=\frac{\lvert\langle1,0,1\rangle\cdot\langle1,-1,-2\rangle\rvert}{\sqrt6} =\frac1{\sqrt6}.

The projection gives the distance quickly, while the perpendicularity equations also locate the points. For nonparallel infinite lines, the connecting vector’s common-normal component cannot change as either endpoint moves; finding a pair with no other component therefore establishes the global minimum.

For a line and a plane, substitution gives a single linear equation in the line parameter. One solution means the line crosses the plane once. An identity means every point of the line lies in the plane. A contradiction means the line is parallel to the plane and separate from it. These cases also follow from the dot product of the line direction with the plane normal: a nonzero dot product guarantees a unique intersection.


A plane has two independent directions of motion within it. Instead of tracking both, we can describe the one direction that motion in the plane never follows: its normal. If P0P_0 is fixed in the plane and PP is another point in it, their displacement must have zero component along that normal.

Write P0=(x0,y0,z0)P_0=(x_0,y_0,z_0) and choose a nonzero normal n=⟨a,b,c⟩\mathbf n=\langle a,b,c\rangle. Perpendicularity gives the plane equation directly:

n⋅⟨x−x0,y−y0,z−z0⟩=0,\mathbf n\cdot\langle x-x_0,y-y_0,z-z_0\rangle=0,

or ax+by+cz=dax+by+cz=d. The normal is perpendicular to every displacement within the plane.

To find a plane through three noncollinear points, take the cross product of two edge vectors to obtain a normal. To find the line where two nonparallel planes intersect, cross their normals to get a direction and solve for one common point.

The distance from P=(x1,y1,z1)P=(x_1,y_1,z_1) to ax+by+cz=dax+by+cz=d is

D=∣ax1+by1+cz1−d∣a2+b2+c2.D=\frac{\lvert ax_1+by_1+cz_1-d\rvert}{\sqrt{a^2+b^2+c^2}}.

This is the magnitude of the displacement’s scalar projection onto the normal. Similarly, the distance from PP to the line through P0P_0 with direction v\mathbf v is ∥P0P→×v∥/∥v∥\lVert\overrightarrow{P_0P}\times\mathbf v\rVert/\lVert\mathbf v\rVert.

Example. Find both planes containing the line x+y=1x+y=1, z=0z=0 that are tangent to the sphere x2+y2+(z−2)2=1x^2+y^2+(z-2)^2=1.

A plane containing the given line must vanish whenever x+y−1=0x+y-1=0 and z=0z=0. Its equation can therefore be written

A(x+y−1)+Bz=0.A(x+y-1)+Bz=0.

The case A=0A=0 gives z=0z=0, which is a distance 22 from the sphere’s center and is not tangent. For A≠0A\ne0, divide through and write x+y+kz=1x+y+kz=1.

Tangency means the perpendicular distance from the center C=(0,0,2)C=(0,0,2) to the plane equals the sphere’s radius, one. Thus

∣2k−1∣2+k2=1.\frac{\lvert2k-1\rvert}{\sqrt{2+k^2}}=1.

Squaring gives 3k2−4k−1=03k^2-4k-1=0, so

k=2±73.k=\frac{2\pm\sqrt7}{3}.

Both planes satisfy the original distance equation, so both are tangent. To see why this condition is enough, let HH be the center’s perpendicular foot on either plane. Every point PP in the plane satisfies CP2=CH2+HP2CP^2=CH^2+HP^2. Since CH=1CH=1, a point can also lie on the sphere only when HP=0HP=0. The plane and sphere meet at exactly HH.

Two independent directions within a plane are enough to determine its normal. Choose both directions from the same starting point so their geometric meaning is clear. The cross product may be multiplied by any nonzero constant without changing the plane; simplify its components before writing the equation.

Example. Find the plane through A=(1,0,0)A=(1,0,0), B=(0,2,0)B=(0,2,0), and C=(0,0,3)C=(0,0,3). Then find the perpendicular foot from the origin to the plane.

The edge vectors are AB→=⟨−1,2,0⟩\overrightarrow{AB}=\langle-1,2,0\rangle and AC→=⟨−1,0,3⟩\overrightarrow{AC}=\langle-1,0,3\rangle. Their cross product is n=⟨6,3,2⟩\mathbf n=\langle6,3,2\rangle, so the plane is

6(x−1)+3y+2z=0,6x+3y+2z=6.6(x-1)+3y+2z=0, \qquad6x+3y+2z=6.

A perpendicular line from the origin follows the normal: r(t)=t⟨6,3,2⟩\mathbf r(t)=t\langle6,3,2\rangle. Substituting into the plane gives 49t=649t=6. Thus the perpendicular foot is

H=(3649,1849,1249).H=\left(\frac{36}{49},\frac{18}{49},\frac{12}{49}\right).

Its distance from the origin is ∥H∥=6/7\lVert H\rVert=6/7, agreeing with the point-to-plane distance formula. This construction finds the actual nearest point, not just the distance.

The acute angle between two planes is the acute angle between their normal lines. Use the absolute value of the normals’ dot product in the cosine formula to select that acute angle. Parallel normals mean parallel or identical planes; perpendicular normals mean perpendicular planes.

A line direction is compared with the plane normal using a dot product, but that gives the angle to the normal rather than the angle to the plane itself. The acute angle to the plane is the complementary angle. If the line is parallel to the plane, its angle to the normal is a right angle and its angle to the plane is zero.

Example. Find the acute angle between a line with direction v=⟨1,0,1⟩\mathbf v=\langle1,0,1\rangle and the plane z=2z=2.

The plane has normal n=⟨0,0,1⟩\mathbf n=\langle0,0,1\rangle. The cosine of the angle β\beta between direction and normal is

cos⁡β=∣v⋅n∣∥v∥∥n∥=12.\cos\beta=\frac{\lvert\mathbf v\cdot\mathbf n\rvert}{\lVert\mathbf v\rVert\lVert\mathbf n\rVert} =\frac1{\sqrt2}.

Thus β=π/4\beta=\pi/4, and the angle to the plane is also π/4\pi/4. In general, if α\alpha is the acute angle to a plane, use sin⁡α=∣v⋅n∣/(∥v∥∥n∥)\sin\alpha=\lvert\mathbf v\cdot\mathbf n\rvert/(\lVert\mathbf v\rVert\lVert\mathbf n\rVert). A direction perpendicular to the plane gives a ratio of one, as it should.


A trace is the intersection of a surface with a plane. Setting one coordinate equal to a constant reduces a 3D problem to a familiar 2D curve. Use several traces before guessing a surface from its equation.

For positive a,b,ca,b,c, these standard forms are centered at the origin:

SurfaceStandard equationWhat to look for
Ellipsoidx2/a2+y2/b2+z2/c2=1x^2/a^2+y^2/b^2+z^2/c^2=1All squared terms positive; bounded
Hyperboloid of one sheetx2/a2+y2/b2−z2/c2=1x^2/a^2+y^2/b^2-z^2/c^2=1One negative term; connected around its axis
Hyperboloid of two sheetsz2/c2−x2/a2−y2/b2=1z^2/c^2-x^2/a^2-y^2/b^2=1One positive term; two separate pieces
Elliptic conez2/c2=x2/a2+y2/b2z^2/c^2=x^2/a^2+y^2/b^2Two halves meeting at a vertex
Elliptic paraboloidz=x2/a2+y2/b2z=x^2/a^2+y^2/b^2Elliptical horizontal traces; one opening direction
Hyperbolic paraboloidz=x2/a2−y2/b2z=x^2/a^2-y^2/b^2Saddle; vertical traces open in opposite directions

Changing which coordinate has the special sign changes the axis. Replacing xx by x−hx-h translates in the xx-direction, and similarly for the other coordinates.

For example, z=x2−y2z=x^2-y^2 has an upward parabola in y=0y=0, a downward parabola in x=0x=0, and two intersecting lines in z=0z=0. These traces explain the saddle shape.

A table of standard forms helps only after the equation has been normalized. Move the constant to one side, complete squares when necessary, and divide by the constant before comparing signs. A positive constant on the right and two positive squared terms describe a different surface from a negative constant with the same left side.

Example. Identify 4x2+y2−4z2=−44x^2+y^2-4z^2=-4 and describe where it exists relative to the zz-axis.

Divide by −4-4 and rearrange:

z2−x2−y24=1.z^2-x^2-\frac{y^2}4=1.

There is one positive squared term, so this is a hyperboloid of two sheets with axis along zz. At z=kz=k, its trace is

x2+y24=k2−1.x^2+\frac{y^2}4=k^2-1.

When ∣k∣<1\lvert k\rvert<1, there is no trace because the left side cannot be negative. At k=±1k=\pm1, the trace is a single point. For ∣k∣>1\lvert k\rvert>1, the trace is an ellipse. The missing middle heights explain why there are two separate sheets.

Contrast this with x2+y2−z2=1x^2+y^2-z^2=1. Its horizontal trace has radius 1+k2\sqrt{1+k^2} for every height, so the surface stays connected through its narrowest circle. At a cone, that narrowest circle shrinks to a point instead. This trace-based reasoning is more reliable than memorizing the names from the signs alone.


Cylindrical coordinates use polar coordinates in the horizontal plane:

x=rcos⁡θ,y=rsin⁡θ,z=z,r=x2+y2.x=r\cos\theta,\qquad y=r\sin\theta,\qquad z=z, \qquad r=\sqrt{x^2+y^2}.

Here r≥0r\ge0 and θ\theta measures the angle from the positive xx-axis in the xyxy-plane. Use the signs of xx and yy to select the quadrant; tan⁡θ=y/x\tan\theta=y/x alone loses that information.

Spherical coordinates locate a point by first choosing a ray from the origin and then traveling a distance ρ\rho along it. The polar angle ϕ\phi tips the ray down from the positive zz-axis; the azimuth θ\theta turns its horizontal projection around the vertical axis.

There are two right triangles behind the conversion formulas. In the vertical triangle, the hypotenuse is ρ\rho, the vertical leg is ρcos⁡ϕ\rho\cos\phi, and the horizontal leg is r=ρsin⁡ϕr=\rho\sin\phi. In the horizontal triangle, split that leg into rcos⁡θr\cos\theta and rsin⁡θr\sin\theta. Combining these steps gives

x=ρsin⁡ϕcos⁡θ,y=ρsin⁡ϕsin⁡θ,z=ρcos⁡ϕ.x=\rho\sin\phi\cos\theta,\qquad y=\rho\sin\phi\sin\theta,\qquad z=\rho\cos\phi.

We use ρ≥0\rho\ge0, 0≤ϕ≤π0\le\phi\le\pi, and one full turn for θ\theta. Also,

ρ2=x2+y2+z2,r=ρsin⁡ϕ.\rho^2=x^2+y^2+z^2,\qquad r=\rho\sin\phi.

A constant ρ\rho gives a sphere, a constant rr gives a cylinder, and a constant ϕ\phi strictly between 00 and π/2\pi/2 gives the upper half of a circular cone. Coordinates need not be unique on an axis or at the origin.

Example. Convert (−1,3,2)(-1,\sqrt3,2) to cylindrical and spherical coordinates.

The horizontal distance is r=2r=2, and the point lies in quadrant II, so θ=2π/3\theta=2\pi/3. Its distance from the origin is ρ=8=22\rho=\sqrt8=2\sqrt2, and cos⁡ϕ=2/(22)\cos\phi=2/(2\sqrt2) gives ϕ=π/4\phi=\pi/4.

Thus one cylindrical representation is (2,2π/3,2)(2,2\pi/3,2), and one spherical representation is (22,2π/3,π/4)(2\sqrt2,2\pi/3,\pi/4).

Converting surfaces instead of individual points

Section titled “Converting surfaces instead of individual points”

A coordinate system is useful when it simplifies a whole equation or region. Cylindrical coordinates preserve height and replace horizontal distance by rr. Spherical coordinates measure distance from the origin directly, so spheres centered there have especially simple equations. Neither system is automatically better just because a problem is three-dimensional.

Example. Rewrite the sphere x2+y2+z2=4zx^2+y^2+z^2=4z in cylindrical and spherical coordinates, and determine the spherical bounds for its interior.

In rectangular coordinates, completing the square gives x2+y2+(z−2)2=4x^2+y^2+(z-2)^2=4. The sphere has center (0,0,2)(0,0,2) and radius 22, touching the origin from above.

Cylindrical substitution gives

r2+z2=4z.r^2+z^2=4z.

Spherical substitution gives ρ2=4ρcos⁡ϕ\rho^2=4\rho\cos\phi. Away from the origin, divide by ρ\rho to obtain ρ=4cos⁡ϕ\rho=4\cos\phi. The origin still belongs to the original surface and must be retained separately after this division.

For the interior, a ray from the origin travels from ρ=0\rho=0 to ρ=4cos⁡ϕ\rho=4\cos\phi. Since the sphere is above the horizontal plane, use

0≤θ≤2π,0≤ϕ≤π2,0≤ρ≤4cos⁡ϕ.0\le\theta\le2\pi,\qquad0\le\phi\le\frac\pi2, \qquad0\le\rho\le4\cos\phi.

The radial upper bound depends on angle because this sphere is not centered at the origin. These same bounds will be useful for triple integrals in Chapter 4.


Topic and section order follows Anton, Bivens, and Davis, Calculus: Early Transcendentals, 12th edition, Chapter 11, renumbered as Chapter 1 here. Explanations and worked examples on this page are original study notes.