MAT1052 · Week 7 · Cross Products, Planes and Surfaces

Cross product, lines and planes

You learn to find a perpendicular vector, area and volume with the cross product; to write equations of lines and planes in space; and to solve intersection, angle and distance questions. An introduction to surfaces with cylinders is included.

cross productright-hand ruleparallelogram areatriple scalar productparametric equations of a linedirection vectornormal vectorequation of a planedistance from a point to a planeskew linescylinder

This week we learn the second product of vector algebra and the geometry built with it. The dot product gave a number and measured angle and perpendicularity. The cross product, on the other hand, produces a new vector perpendicular to both vectors. Its length gives area as well. It is the shortest way to write the equation of a plane, find the area of a triangle, and compute the distance from a point to a line. The exam on this topic usually has one “find the plane through three points” and one distance or intersection question.

Golden rules:

  1. The cross product is defined only in three dimensions and its result is a vector.
  2. In the determinant expansion, the middle j\mathbf j term has a minus in front.
  3. A line needs a point + a direction vector, a plane needs a point + a normal vector.
  4. A plane from three points: n=PQ→×PR→\mathbf n = \overrightarrow{PQ}\times\overrightarrow{PR}.
  5. Check every result: the cross product must be perpendicular to both vectors, and the plane equation must be satisfied by all the given points.

The cross product

Definition.

u×v=∣ijku1u2u3v1v2v3∣=(u2v3−u3v2) i−(u1v3−u3v1) j+(u1v2−u2v1) k.\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} = (u_2v_3-u_3v_2)\,\mathbf i-(u_1v_3-u_3v_1)\,\mathbf j+(u_1v_2-u_2v_1)\,\mathbf k.

Geometry.

  • u×v\mathbf u\times\mathbf v is perpendicular to both u\mathbf u and v\mathbf v.
  • Its direction is found with the right-hand rule: as the fingers of your right hand curl from u\mathbf u to v\mathbf v, the thumb points in the direction of u×v\mathbf u\times\mathbf v.
  • ∣u×v∣=∣u∣∣v∣sin⁡θ\lvert\mathbf u\times\mathbf v\rvert = \lvert\mathbf u\rvert\lvert\mathbf v\rvert\sin\theta, which is the area of the parallelogram formed by u\mathbf u and v\mathbf v.

Properties. v×u=−(u×v)\mathbf v\times\mathbf u = -(\mathbf u\times\mathbf v) (NOT commutative). u×u=0\mathbf u\times\mathbf u = \mathbf 0. The cross product of parallel vectors is 0\mathbf 0. i×j=k\mathbf i\times\mathbf j = \mathbf k, j×k=i\mathbf j\times\mathbf k = \mathbf i, k×i=j\mathbf k\times\mathbf i = \mathbf j (cyclic order; minus in the reverse order).

Example 1. ⟨2,1,−1⟩×⟨1,3,2⟩\langle2,1,-1\rangle\times\langle1,3,2\rangle.

i component:   1·2 - (-1)·3 = 2 + 3 = 5
j component: -(2·2 - (-1)·1) = -(4 + 1) = -5
k component:   2·3 - 1·1 = 5
result: <5, -5, 5>
check: <5,-5,5>·<2,1,-1> = 10 - 5 - 5 = 0   ✓
       <5,-5,5>·<1,3,2>  = 5 - 15 + 10 = 0   ✓

Area and volume

Example 2 (area of a triangle). P(1,1,0)P(1,1,0), Q(3,1,2)Q(3,1,2), R(1,4,1)R(1,4,1). PQ→=⟨2,0,2⟩\overrightarrow{PQ} = \langle2,0,2\rangle, PR→=⟨0,3,1⟩\overrightarrow{PR} = \langle0,3,1\rangle.

PQ→×PR→=⟨0⋅1−2⋅3,  −(2⋅1−2⋅0),  2⋅3−0⟩=⟨−6,−2,6⟩,Area=762=19.\overrightarrow{PQ}\times\overrightarrow{PR} = \langle0\cdot1-2\cdot3,\;-(2\cdot1-2\cdot0),\;2\cdot3-0\rangle = \langle-6,-2,6\rangle,\qquad\text{Area} = \frac{\sqrt{76}}{2} = \sqrt{19}.

Triple scalar product. u⋅(v×w)\mathbf u\cdot(\mathbf v\times\mathbf w) is the 3×33\times3 determinant whose rows are u,v,w\mathbf u,\mathbf v,\mathbf w. Its absolute value is the volume of the parallelepiped formed by these three vectors. If it is zero, the three vectors are in the same plane (coplanar).

Example 3. ⟨1,2,0⟩,⟨0,1,3⟩,⟨2,0,1⟩\langle1,2,0\rangle,\langle0,1,3\rangle,\langle2,0,1\rangle: 1(1−0)−2(0−6)+0=1+12=131(1-0)-2(0-6)+0 = 1+12 = 13. The volume is 1313.

Lines in space

A line is determined by a point P0(x0,y0,z0)P_0(x_0,y_0,z_0) on it and a direction vector v=⟨a,b,c⟩\mathbf v = \langle a,b,c\rangle.

r(t)=r0+tv⟺x=x0+at,y=y0+bt,z=z0+ct.\mathbf r(t) = \mathbf r_0+t\mathbf v\qquad\Longleftrightarrow\qquad x = x_0+at,\quad y = y_0+bt,\quad z = z_0+ct.

The line through two points: the direction is P0P1→\overrightarrow{P_0P_1}. The line through (2,0,−1)(2,0,-1) and (4,3,1)(4,3,1): v=⟨2,3,2⟩\mathbf v = \langle2,3,2\rangle, x=2+2tx = 2+2t, y=3ty = 3t, z=−1+2tz = -1+2t. t=0t=0 gives the first point, t=1t=1 the second.

The relationship of two lines. If the directions are parallel, the lines are either parallel or coincident. If they are not parallel, they either intersect or are skew: neither parallel nor intersecting. To find the intersection, write the equalities of xx, yy, zz (tt and ss are different parameters!), solve t,st,s from two of them, and test in the third.

Example 4 (skew lines). L1:(1+t, t, 0)L_1: (1+t,\,t,\,0) and L2:(0, 1+s, 3+s)L_2: (0,\,1+s,\,3+s). From zz, 0=3+s0 = 3+s, s=−3s=-3; from yy, t=1+s=−2t = 1+s = -2; in xx, 1+t=−1≠01+t = -1\neq0. They do not intersect; the directions ⟨1,1,0⟩\langle1,1,0\rangle and ⟨0,1,1⟩\langle0,1,1\rangle are not parallel. Skew. The distance between them is ∣P1P2→⋅(v1×v2)∣∣v1×v2∣=∣⟨−1,1,3⟩⋅⟨1,−1,1⟩∣3=13\dfrac{\lvert\overrightarrow{P_1P_2}\cdot(\mathbf v_1\times\mathbf v_2)\rvert}{\lvert\mathbf v_1\times\mathbf v_2\rvert} = \dfrac{\lvert\langle-1,1,3\rangle\cdot\langle1,-1,1\rangle\rvert}{\sqrt3} = \dfrac{1}{\sqrt3}.

Planes in space

A plane is determined by a point P0P_0 on it and a normal vector n=⟨a,b,c⟩\mathbf n = \langle a,b,c\rangle perpendicular to the plane. For every PP in the plane, P0P→⊥n\overrightarrow{P_0P}\perp\mathbf n:

a(x−x0)+b(y−y0)+c(z−z0)=0⟺ax+by+cz=d.a(x-x_0)+b(y-y_0)+c(z-z_0) = 0\qquad\Longleftrightarrow\qquad ax+by+cz = d.

The coefficients of xx, yy, zz directly give the normal vector. The normal of the plane 2x−y+3z=72x-y+3z = 7 is ⟨2,−1,3⟩\langle2,-1,3\rangle.

Example 5 (a plane from three points). For PP, QQ, RR of Example 2: the normal is ⟨−6,−2,6⟩∥⟨3,1,−3⟩\langle-6,-2,6\rangle\parallel\langle3,1,-3\rangle. With PP: 3(x−1)+(y−1)−3z=03(x-1)+(y-1)-3z = 0, that is, 3x+y−3z=43x+y-3z = 4. QQ: 9+1−6=49+1-6 = 4 ✓. RR: 3+4−3=43+4-3 = 4 ✓.

Computations involving planes

QuestionMethod
Intersection of a line and a planePlug the line’s x(t),y(t),z(t)x(t),y(t),z(t) into the plane, solve for tt
Line of intersection of two planesDirection n1×n2\mathbf n_1\times\mathbf n_2; for a point, set one variable to 00
Angle between planescos⁡θ=∣n1⋅n2∣∣n1∣∣n2∣\cos\theta = \dfrac{\lvert\mathbf n_1\cdot\mathbf n_2\rvert}{\lvert\mathbf n_1\rvert\lvert\mathbf n_2\rvert}
Parallel?The normals are parallel (n1=kn2\mathbf n_1 = k\mathbf n_2)
Point-plane distance∣ax0+by0+cz0−d∣a2+b2+c2\dfrac{\lvert ax_0+by_0+cz_0-d\rvert}{\sqrt{a^2+b^2+c^2}}
Point-line distance∣PS→×v∣∣v∣\dfrac{\lvert\overrightarrow{PS}\times\mathbf v\rvert}{\lvert\mathbf v\rvert}

Example 6. The distance from the point (1,2,3)(1,2,3) to the plane 2x+y−2z=52x+y-2z = 5: ∣2+2−6−5∣3=73\dfrac{\lvert2+2-6-5\rvert}{3} = \dfrac73.

Example 7 (parallel planes). Between x+2y+2z=3x+2y+2z = 3 and x+2y+2z=12x+2y+2z = 12: take a point from the first plane, (3,0,0)(3,0,0); its distance to the second is ∣3−12∣3=3\dfrac{\lvert3-12\rvert}{3} = 3. Shortcut: ∣d1−d2∣∣n∣\dfrac{\lvert d_1-d_2\rvert}{\lvert\mathbf n\rvert} (if the normals are written the same).

PITFALL · line or plane? x+2y+2z=3x+2y+2z = 3 is a single equation, a plane in space. A line in space cannot be written with a single linear equation; it is written either parametrically or as the intersection of two planes. In two dimensions the “equation of a line” ax+by=cax+by = c is, in three dimensions, a plane parallel to the zz axis.

Cylinders: an introduction to surfaces

If one of the variables is missing from the equation, the surface is a cylinder extending along that axis. x2+y2=4x^2+y^2 = 4 is a circular cylinder of radius 22 parallel to the zz axis in space; at every height zz it gives the same circle. z=y2z = y^2 is a parabolic cylinder extending along the xx axis. Next week we will move on to second-degree surfaces (quadric surfaces) in which all three variables appear.

Common mistakes

WrongCorrect
Taking the sign in front of j\mathbf j in the determinant as ++−(u1v3−u3v1)-(u_1v_3-u_3v_1)
u×v=v×u\mathbf u\times\mathbf v = \mathbf v\times\mathbf uThe sign changes
Writing ∣u×v∣\lvert\mathbf u\times\mathbf v\rvert for the area of a triangleHalf of it: 12∣u×v∣\frac12\lvert\mathbf u\times\mathbf v\rvert
Leaving the volume negativeTake the absolute value
Using the same tt in the intersection of two linesDifferent parameters: tt and ss
Using the directions for the angle between planesThe angle between the normals
Plugging in dd in the distance formula without moving it to the leftWrite the equation as ax+by+cz=dax+by+cz = d, the numerator is ∣ax0+by0+cz0−d∣\lvert ax_0+by_0+cz_0-d\rvert
Forgetting to find a point on the line of intersectionSet one variable to 00, solve the remaining 2×22\times2 system

Test yourself

Exam-style questions. Solve them on paper first, then reveal the answer.

Question 1easy

Compute ⟨1,2,3⟩×⟨4,5,6⟩\langle1,2,3\rangle\times\langle4,5,6\rangle.

Show answer
⟨−3,6,−3⟩\langle-3,6,-3\rangle

i(2⋅6−3⋅5)−j(1⋅6−3⋅4)+k(1⋅5−2⋅4)=i(−3)−j(−6)+k(−3)\mathbf i(2\cdot6-3\cdot5)-\mathbf j(1\cdot6-3\cdot4)+\mathbf k(1\cdot5-2\cdot4) = \mathbf i(-3)-\mathbf j(-6)+\mathbf k(-3).
The result is ⟨−3,6,−3⟩\langle-3,6,-3\rangle. Check: ⟨−3,6,−3⟩⋅⟨1,2,3⟩=−3+12−9=0\langle-3,6,-3\rangle\cdot\langle1,2,3\rangle = -3+12-9 = 0.

Question 2easy

Find the area of the parallelogram spanned by u=⟨2,1,0⟩\mathbf u = \langle2,1,0\rangle and v=⟨1,3,0⟩\mathbf v = \langle1,3,0\rangle.

Show answer
55

u×v=⟨0,0,2⋅3−1⋅1⟩=⟨0,0,5⟩\mathbf u\times\mathbf v = \langle0,0,2\cdot3-1\cdot1\rangle = \langle0,0,5\rangle. Area =∣u×v∣=5=\lvert\mathbf u\times\mathbf v\rvert = 5.

Question 3medium

Find the area of the triangle with vertices P(1,0,0)P(1,0,0), Q(0,2,0)Q(0,2,0), R(0,0,3)R(0,0,3).

Show answer
7/27/2

PQ→=⟨−1,2,0⟩\overrightarrow{PQ} = \langle-1,2,0\rangle, PR→=⟨−1,0,3⟩\overrightarrow{PR} = \langle-1,0,3\rangle.
Cross product: ⟨2⋅3−0,  0−(−1)(3),  0−(−1)(2)⟩=⟨6,3,2⟩\langle2\cdot3-0,\;0-(-1)(3),\;0-(-1)(2)\rangle = \langle6,3,2\rangle, length 36+9+4=7\sqrt{36+9+4} = 7.
The triangle is half of the parallelogram: 72\dfrac72.

Question 4medium

Find the volume of the parallelepiped determined by u=⟨1,0,2⟩\mathbf u = \langle1,0,2\rangle, v=⟨0,3,1⟩\mathbf v = \langle0,3,1\rangle, w=⟨2,1,0⟩\mathbf w = \langle2,1,0\rangle.

Show answer
1313

The triple product determinant: ∣102031210∣=1(0−1)−0+2(0−6)=−1−12=−13\begin{vmatrix}1&0&2\\0&3&1\\2&1&0\end{vmatrix} = 1(0-1)-0+2(0-6) = -1-12 = -13.
The volume is the absolute value: 1313.

Question 5medium

The line through P(1,−2,3)P(1,-2,3) parallel to v=⟨2,1,−1⟩\mathbf v = \langle2,1,-1\rangle meets the xyxy-plane at which point?

Show answer
(7,1,0)(7,1,0)

Parametric: x=1+2tx = 1+2t, y=−2+ty = -2+t, z=3−tz = 3-t. The xyxy-plane is z=0z=0: t=3t = 3.
The point is (1+6, −2+3, 0)=(7,1,0)(1+6,\,-2+3,\,0) = (7,1,0).

Question 6easy

Find an equation of the plane through (1,2,−1)(1,2,-1) with normal vector ⟨3,−1,2⟩\langle3,-1,2\rangle.

Show answer
3x−y+2z=−13x-y+2z=-1

3(x−1)−(y−2)+2(z+1)=0⇒3x−y+2z−3+2+2=0⇒3x−y+2z=−13(x-1)-(y-2)+2(z+1) = 0\Rightarrow 3x-y+2z-3+2+2 = 0\Rightarrow 3x-y+2z = -1.

Question 7medium

Find an equation of the plane through A(1,1,0)A(1,1,0), B(2,0,1)B(2,0,1) and C(0,2,3)C(0,2,3).

Show answer
x+y=2x+y=2

AB→=⟨1,−1,1⟩\overrightarrow{AB} = \langle1,-1,1\rangle, AC→=⟨−1,1,3⟩\overrightarrow{AC} = \langle-1,1,3\rangle.n=AB→×AC→=⟨(−1)(3)−1⋅1,  1⋅(−1)−1⋅3,  1⋅1−(−1)(−1)⟩=⟨−4,−4,0⟩\mathbf n = \overrightarrow{AB}\times\overrightarrow{AC} = \langle(-1)(3)-1\cdot1,\;1\cdot(-1)-1\cdot3,\;1\cdot1-(-1)(-1)\rangle = \langle-4,-4,0\rangle, that is, ⟨1,1,0⟩\langle1,1,0\rangle.
With the point AA: (x−1)+(y−1)=0(x-1)+(y-1) = 0, x+y=2x+y = 2. BB and CC satisfy it too.

Question 8medium

Find the distance from the point (2,1,3)(2,1,3) to the plane 2x−y+2z=42x-y+2z=4.

Show answer
5/35/3

D=∣ax0+by0+cz0−d∣a2+b2+c2=∣4−1+6−4∣4+1+4=53D = \dfrac{\lvert ax_0+by_0+cz_0-d\rvert}{\sqrt{a^2+b^2+c^2}} = \dfrac{\lvert4-1+6-4\rvert}{\sqrt{4+1+4}} = \dfrac{5}{3}.

Question 9medium

Find the angle between the planes x+y+z=1x+y+z=1 and x−y+2z=3x-y+2z=3.

Show answer
≈61.87∘\approx 61.87^\circ

The angle between planes = the angle between the normals. n1⋅n2=1−1+2=2\mathbf n_1\cdot\mathbf n_2 = 1-1+2 = 2, ∣n1∣=3\lvert\mathbf n_1\rvert = \sqrt3, ∣n2∣=6\lvert\mathbf n_2\rvert = \sqrt6.cos⁡θ=218=23≈0.4714\cos\theta = \dfrac{2}{\sqrt{18}} = \dfrac{\sqrt2}{3}\approx0.4714, θ≈61.87∘\theta\approx61.87^\circ.

Question 10hard

Find parametric equations for the line of intersection of the planes x+y+z=3x+y+z=3 and x−y+z=1x-y+z=1.

Show answer
x=2+t, y=1, z=−tx=2+t,\ y=1,\ z=-t

The direction is perpendicular to both normals: n1×n2=⟨1,1,1⟩×⟨1,−1,1⟩=⟨2,0,−2⟩∥⟨1,0,−1⟩\mathbf n_1\times\mathbf n_2 = \langle1,1,1\rangle\times\langle1,-1,1\rangle = \langle2,0,-2\rangle\parallel\langle1,0,-1\rangle.
A common point: put z=0z=0, x+y=3x+y = 3, x−y=1x-y = 1, hence x=2x=2, y=1y=1.
The line: (2+t, 1, −t)(2+t,\,1,\,-t). (Equivalent answers that choose a different point or a multiple of the direction are also correct.)

Question 11easy

Where does the line x=1+t, y=2t, z=3−tx=1+t,\ y=2t,\ z=3-t meet the plane x+y+z=10x+y+z=10?

Show answer
(4,6,0)(4,6,0)

Plug the line into the plane: (1+t)+2t+(3−t)=4+2t=10(1+t)+2t+(3-t) = 4+2t = 10, t=3t = 3.
The point is (4,6,0)(4,6,0).

Question 12hard

Find the distance from S(1,1,5)S(1,1,5) to the line x=1+t, y=3−t, z=2tx = 1+t,\ y = 3-t,\ z = 2t.

Show answer
5\sqrt5

On the line, P(1,3,0)P(1,3,0), direction v=⟨1,−1,2⟩\mathbf v = \langle1,-1,2\rangle. PS→=⟨0,−2,5⟩\overrightarrow{PS} = \langle0,-2,5\rangle.PS→×v=⟨(−2)(2)−5(−1),  5⋅1−0⋅2,  0⋅(−1)−(−2)(1)⟩=⟨1,5,2⟩\overrightarrow{PS}\times\mathbf v = \langle(-2)(2)-5(-1),\;5\cdot1-0\cdot2,\;0\cdot(-1)-(-2)(1)\rangle = \langle1,5,2\rangle.d=∣PS→×v∣∣v∣=306=5d = \dfrac{\lvert\overrightarrow{PS}\times\mathbf v\rvert}{\lvert\mathbf v\rvert} = \dfrac{\sqrt{30}}{\sqrt6} = \sqrt5.

Verification: All cross products, determinants, plane equations, angles and distances were computed in node; point-line and skew-line distances were also verified by brute-force minimization (verify/MAT1052/07.mjs).

Review card

u×v = | i j k ; u1 u2 u3 ; v1 v2 v3 | (the j term is MINUS) u×v ⊥ u and v. Direction: right-hand rule. v×u = -(u×v). u×u = 0 |u×v| = |u||v|sin θ = parallelogram area. Triangle: half u·(v×w) = 3x3 determinant; |...| = parallelepiped volume; if 0 they are in the same plane i×j=k j×k=i k×i=j Line: r = P0 + t v → x=x0+at, y=y0+bt, z=z0+ct Plane: a(x-x0)+b(y-y0)+c(z-z0)=0, n=<a,b,c>. 3 points → n = PQ×PR Point-plane: |ax0+by0+cz0-d| / |n| Point-line: |PS × v| / |v| Plane intersection: direction n1×n2, point: set one variable to 0 Angle between planes: angle between the normals Cylinder: a variable is missing from the equation → parallel to that axis