Linear AlgebraDot and Cross Products5 of 5
Dot and Cross Products · 5

The Cross Product

The dot product measures how much two vectors point in the same direction, and now we need the opposite: a way to measure how much two vectors spread apart.

1

Signed Area of a 2D Parallelogram

Two vectors a\first{a} and b\second{b} starting from the same point sweep out a parallelogram whose area measures how much they spread apart. Before stepping into 3D, we can find this area in 2D straight from the coordinates of a=[31]\first{a} = \first{\begin{bmatrix} 3 \\ 1 \end{bmatrix}} and b=[14]\second{b} = \second{\begin{bmatrix} 1 \\ 4 \end{bmatrix}} by breaking each vector into its horizontal and vertical pieces.

Signed Area of a 2D Parallelogram
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
[31]\htmlClass{lc-green}{\begin{bmatrix} 3 \\ 1 \end{bmatrix}}
[14]\htmlClass{lc-pink}{\begin{bmatrix} 1 \\ 4 \end{bmatrix}}
?\htmlClass{lc-blue}{?}
Text solution
Cross the horizontal and vertical piecesPairing two horizontal pieces or two vertical pieces makes a flat line with zero area, so all the area comes from pairing a\first{a}'s horizontal piece with b\second{b}'s vertical piece and subtracting the clockwise pairing.
Signed area from a to b\displaystyle \text{Signed area from } \first{a} \text{ to } \second{b} =(3×4)⏟right to up(counter-clockwise)−(1×1)⏟up to right(clockwise)\displaystyle = \underbrace{(\first{3} \times \second{4})}_{\substack{\text{right to up} \\ \text{(counter-clockwise)}}} - \underbrace{(\first{1} \times \second{1})}_{\substack{\text{up to right} \\ \text{(clockwise)}}} =12−1\displaystyle = 12 - 1 =11\displaystyle = 11
Swap the order of the vectorsMeasuring from b=[14]\second{b} = \second{\begin{bmatrix} 1 \\ 4 \end{bmatrix}} to a=[31]\first{a} = \first{\begin{bmatrix} 3 \\ 1 \end{bmatrix}} turns clockwise instead of counter-clockwise, which gives the same area of 1111 with the opposite sign.
Signed area from b to a\displaystyle \text{Signed area from } \second{b} \text{ to } \first{a} =(1×1)−(4×3)\displaystyle = (\second{1} \times \first{1}) - (\second{4} \times \first{3}) =1−12\displaystyle = 1 - 12 =−11\displaystyle = -11

So the parallelogram has an area of 1111, and the positive sign tells us that turning from a\first{a} to b\second{b} goes counter-clockwise.

As b\second{b} moves around a\first{a}, the signed area is always the sum or difference of the two horizontal-by-vertical rectangles: it drops to zero when the vectors line up and flips sign when b\second{b} crosses to the clockwise side of a\first{a}.

Pairing each vector's horizontal piece with the other's vertical piece gives the signed area between a\first{a} and b\second{b}, which shrinks to zero when they line up and turns negative when b\second{b} swings to the clockwise side of a\first{a}.
2

The Cross Product in 3D

In 2D, every parallelogram lies in the same flat plane, so a single number tells us both its area and the turn direction. In 3D, a parallelogram with area 1111 can tilt at any angle, so we want a single vector that captures both the parallelogram's area and how it is tilted in space.

The Cross Product in 3D
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
z\htmlClass{lc-mute}{z}
a\htmlClass{lc-green}{a}
b\htmlClass{lc-pink}{b}
area=11orientation=  ?\begin{aligned} \text{area} &= \htmlClass{lc-blue}{11} \\ \text{orientation} &= \;? \end{aligned}

No single direction lying flat inside the parallelogram stands out, but a normal vector sticking straight out at 90∘90^\circ tells us the exact tilt of the entire surface:

a×b⏟normal vector ⊥ to a and bwith length ∣a×b∣=Area\displaystyle \underbrace{\cross{a \times b}}_{\substack{\text{normal vector } \perp \text{ to } \first{a} \text{ and } \second{b} \\ \text{with length } \cross{|a \times b|} = \text{Area}}}

Unlike the dot product a⋅b\first{a} \cdot \second{b}, which is a single number, the 3D cross product a×b\cross{a \times b} is a vector. Curling the fingers of your right hand from the first vector toward the second points your thumb along the cross product, so reversing the order flips the vector to the opposite side of the plane:

b×a\displaystyle \second{b} \times \first{a} =−(a×b)\displaystyle = -(\first{a} \times \second{b})

As the parallelogram between a\first{a} and b\second{b} tilts and changes size in 3D space, the vector a×b\cross{a \times b} stays perpendicular to both vectors, stretches to match the parallelogram's area, and flips to the opposite side whenever the turn from a\first{a} to b\second{b} reverses.

Wherever you move b in 3D space, the cross product sticks straight out at a right angle to the parallelogram of a and b, matches its area in length, and flips sides when the turn from a to b reverses.
3

Computing the 3D Cross Product

Now let's find the xx, yy, and zz coordinates of the cross product a×b\cross{a \times b} from the coordinates of a=[231]\first{a} = \first{\begin{bmatrix} 2 \\ 3 \\ 1 \end{bmatrix}} and b=[142]\second{b} = \second{\begin{bmatrix} 1 \\ 4 \\ 2 \end{bmatrix}} by projecting the parallelogram onto the three coordinate planes.

Computing the 3D Cross Product
a×b=[231]×[142]=[???]\displaystyle \cross{a \times b} = \first{\begin{bmatrix} 2 \\ 3 \\ 1 \end{bmatrix}} \times \second{\begin{bmatrix} 1 \\ 4 \\ 2 \end{bmatrix}} = \cross{\begin{bmatrix} ? \\ ? \\ ? \end{bmatrix}}
Text solution
Cover the xx-row for the xx-componentIgnoring the top row projects the parallelogram onto the yzyz-plane, where y→zy \to z follows the forward x→y→z→xx \to y \to z \to x cycle.
x-component\displaystyle x\text{-component} =(3×2)−(1×4)\displaystyle = (\first{3} \times \second{2}) - (\first{1} \times \second{4}) =6−4\displaystyle = 6 - 4 =2\displaystyle = \cross{2}
Cover the yy-row and flip the sign for the yy-componentIgnoring the middle row leaves xx and zz, which goes backward against the x→y→z→xx \to y \to z \to x cycle, so we flip the sign of the 2D area.
y-component\displaystyle y\text{-component} =−((2×2)−(1×1))\displaystyle = -\big((\first{2} \times \second{2}) - (\first{1} \times \second{1})\big) =−(4−1)\displaystyle = -(4 - 1) =−3\displaystyle = \cross{-3}
Cover the zz-row for the zz-componentIgnoring the bottom row projects the parallelogram onto the xyxy-plane in the forward x→yx \to y order.
z-component\displaystyle z\text{-component} =(2×4)−(3×1)\displaystyle = (\first{2} \times \second{4}) - (\first{3} \times \second{1}) =8−3\displaystyle = 8 - 3 =5\displaystyle = \cross{5}
Put the three components togetherCombining the xx-, yy-, and zz-components gives the normal vector.
a×b=[231]×[142]=[2−35]\displaystyle \cross{a \times b} = \first{\begin{bmatrix} 2 \\ 3 \\ 1 \end{bmatrix}} \times \second{\begin{bmatrix} 1 \\ 4 \\ 2 \end{bmatrix}} = \cross{\begin{bmatrix} 2 \\ -3 \\ 5 \end{bmatrix}}
Check with the dot productTwo vectors are perpendicular when their dot product is zero, which gives a quick check on a test that your result is at 90∘90^\circ to both starting vectors.
(a×b)⋅a=[2−35]⋅[231]=(2×2)+(−3×3)+(5×1)=4−9+5=0\displaystyle \begin{aligned} & (\cross{a \times b}) \cdot \first{a} = \cross{\begin{bmatrix} 2 \\ -3 \\ 5 \end{bmatrix}} \cdot \first{\begin{bmatrix} 2 \\ 3 \\ 1 \end{bmatrix}} \\ &\quad = (2 \times 2) + (-3 \times 3) \\ &\quad + (5 \times 1) = 4 - 9 + 5 = 0 \end{aligned}
(a×b)⋅b=[2−35]⋅[142]=(2×1)+(−3×4)+(5×2)=2−12+10=0\displaystyle \begin{aligned} & (\cross{a \times b}) \cdot \second{b} = \cross{\begin{bmatrix} 2 \\ -3 \\ 5 \end{bmatrix}} \cdot \second{\begin{bmatrix} 1 \\ 4 \\ 2 \end{bmatrix}} \\ &\quad = (2 \times 1) + (-3 \times 4) \\ &\quad + (5 \times 2) \\ &\quad = 2 - 12 + 10 = 0 \end{aligned}

So a×b=[2−35]\cross{a \times b} = \cross{\begin{bmatrix} 2 \\ -3 \\ 5 \end{bmatrix}} is perpendicular to both a\first{a} and b\second{b}.

At any 3D tilt, the xx, yy, and zz coordinates of a×b\cross{a \times b} match the signed areas of the three shadows on the yzyz-, zxzx-, and xyxy-planes, and tilting the parallelogram flat into one coordinate plane makes the other two shadows and components drop to zero.

Each component of the cross product is the signed area of the parallelogram's shadow on the wall or floor perpendicular to that component's axis.
4

Cross Product Length and the Angle Between Vectors

When we have the vector lengths and the angle θ\theta between them instead of coordinates, or when we want to find the angle θ\theta from coordinates, we use the parallelogram's base and height to write the cross product's length ∣a×b∣\cross{|a \times b|} in terms of θ\theta.

Cross Product Length and the Angle Between Vectors
a\htmlClass{lc-green}{a}
b\htmlClass{lc-pink}{b}
θ\theta
∣a×b∣=  ?\htmlClass{lc-blue}{|a \times b|} = \;?
θ\theta
∣b∣\htmlClass{lc-pink}{|b|}
∣b∣cos⁡θ\htmlClass{lc-pink}{|b| \cos\theta}
∣a∣\htmlClass{lc-green}{|a|}
∣b∣sin⁡θ\htmlClass{lc-pink}{|b| \sin\theta}

Bars around a vector, like ∣a×b∣\cross{|a \times b|}, mean its length (magnitude). Because a parallelogram's area is its base ∣a∣\first{|a|} times its perpendicular height ∣b∣sin⁡θ\second{|b|\sin\theta}, we can compare the cross product length directly with the dot product formula:

a⋅b=∣a∣ ∣b∣cos⁡θ⏟part of balong a∣a×b∣=∣a∣ ∣b∣sin⁡θ⏟part of bperpendicular to a\displaystyle \begin{aligned} \first{a} \cdot \second{b} &= \first{|a|}\,\underbrace{\second{|b|\cos\theta}}_{\substack{\text{part of } \second{b} \\ \text{along } \first{a}}} \\[6pt] \cross{|a \times b|} &= \first{|a|}\,\underbrace{\second{|b|\sin\theta}}_{\substack{\text{part of } \second{b} \\ \text{perpendicular to } \first{a}}} \end{aligned}

With the lengths ∣a∣\first{|a|} and ∣b∣\second{|b|} held fixed, opening the angle θ\theta from 0∘0^\circ to 90∘90^\circ shrinks the base projection ∣b∣cos⁡θ\second{|b|\cos\theta} and the dot product to zero while growing the perpendicular height ∣b∣sin⁡θ\second{|b|\sin\theta} and the cross product length to their maximum.

As you open the angle between the two vectors, the projection along the base shrinks while the perpendicular height grows, so the dot product drops as the cross product's size rises.

When the lengths ∣a∣=6\first{|a|} = 6 and ∣b∣=5\second{|b|} = 5 and the angle θ=30∘\theta = 30^\circ are given directly, we plug them straight in to find the parallelogram's area:

Area\displaystyle \text{Area} =∣a×b∣\displaystyle = \cross{|a \times b|} =6×5×sin⁡(30∘)\displaystyle = \first{6} \times \second{5} \times \sin(30^\circ) =30×12\displaystyle = 30 \times \frac{1}{2} =15\displaystyle = 15

Now going the other way, from the coordinates of a=[231]\first{a} = \first{\begin{bmatrix} 2 \\ 3 \\ 1 \end{bmatrix}} and b=[142]\second{b} = \second{\begin{bmatrix} 1 \\ 4 \\ 2 \end{bmatrix}} to the angle θ\theta between them.

Text solution
Find the length of the cross productUsing a×b=[2−35]\cross{a \times b} = \cross{\begin{bmatrix} 2 \\ -3 \\ 5 \end{bmatrix}} from earlier, its length gives the parallelogram's area.
∣a×b∣\displaystyle \cross{|a \times b|} =22+(−3)2+52\displaystyle = \sqrt{2^2 + (-3)^2 + 5^2} =4+9+25\displaystyle = \sqrt{4 + 9 + 25} =38\displaystyle = \cross{\sqrt{38}}
Find the lengths of the two vectorsWe compute the lengths ∣a∣\first{|a|} and ∣b∣\second{|b|}.
∣a∣\displaystyle \first{|a|} =22+32+12\displaystyle = \sqrt{2^2 + 3^2 + 1^2} =14,∣b∣\displaystyle = \first{\sqrt{14}}, \qquad \second{|b|} =12+42+22\displaystyle = \sqrt{1^2 + 4^2 + 2^2} =21\displaystyle = \second{\sqrt{21}}
Divide by ∣a∣∣b∣\first{|a|}\second{|b|} to find sin⁡θ\sin\thetaDividing the parallelogram's area by the product of the two vector lengths gives sin⁡θ\sin\theta.
sin⁡θ\displaystyle \sin\theta =∣a×b∣∣a∣∣b∣\displaystyle = \frac{\cross{|a \times b|}}{\first{|a|}\second{|b|}} =381421\displaystyle = \frac{\cross{\sqrt{38}}}{\first{\sqrt{14}}\second{\sqrt{21}}} =38294≈0.36\displaystyle = \sqrt{\frac{38}{294}} \approx 0.36

So sin⁡θ≈0.36\sin\theta \approx 0.36, which gives θ≈21∘\theta \approx 21^\circ or θ≈159∘\theta \approx 159^\circ. Since a⋅b=(2×1)+(3×4)+(1×2)=16\first{a} \cdot \second{b} = (2 \times 1) + (3 \times 4) + (1 \times 2) = 16 is positive, cos⁡θ\cos\theta is positive, so the angle between a\first{a} and b\second{b} is θ≈21∘\theta \approx 21^\circ.

5

Triangles and Planes from Three Points

In geometry and 3D graphics, you are often given three corner points in space, like P=(1,1,0)P = (1, 1, 0), Q=(3,4,1)Q = (3, 4, 1), and R=(2,5,2)R = (2, 5, 2), rather than vectors at the origin, and asked for the area of the triangle PQRPQR and the equation of the plane passing through all three points.

Triangles and Planes from Three Points
P(1,1,0)P(1, 1, 0)
Q(3,4,1)Q(3, 4, 1)
R(2,5,2)R(2, 5, 2)
area=  ?plane=  ?\begin{aligned} \text{area} &= \;? \\ \text{plane} &= \;? \end{aligned}
Text solution
Subtract one corner to build two edge vectorsPoints are only locations in space, so before crossing anything we subtract the starting corner PP from QQ and RR to get two edge vectors lying in the plane.
PQ=Q−P=[3−14−11−0]=[231],PR=R−P=[2−15−12−0]=[142]\displaystyle \first{PQ} = Q - P = \begin{bmatrix} 3 - 1 \\ 4 - 1 \\ 1 - 0 \end{bmatrix} = \first{\begin{bmatrix} 2 \\ 3 \\ 1 \end{bmatrix}}, \qquad \second{PR} = R - P = \begin{bmatrix} 2 - 1 \\ 5 - 1 \\ 2 - 0 \end{bmatrix} = \second{\begin{bmatrix} 1 \\ 4 \\ 2 \end{bmatrix}}
Cross the edge vectors for the normalCrossing the two edge vectors gives a vector n\cross{n} perpendicular to the entire plane whose length is the parallelogram's area.
n=PQ×PR=[231]×[142]=[2−35]\displaystyle \cross{n} = \first{PQ} \times \second{PR} = \first{\begin{bmatrix} 2 \\ 3 \\ 1 \end{bmatrix}} \times \second{\begin{bmatrix} 1 \\ 4 \\ 2 \end{bmatrix}} = \cross{\begin{bmatrix} 2 \\ -3 \\ 5 \end{bmatrix}}
Take half the parallelogram's area for the triangleThe third side QRQR cuts the parallelogram diagonally into two identical triangles.
Triangle Area\displaystyle \text{Triangle Area} =12∣PQ×PR∣\displaystyle = \frac{1}{2}|\first{PQ} \times \second{PR}| =1222+(−3)2+52\displaystyle = \frac{1}{2}\sqrt{2^2 + (-3)^2 + 5^2} =382\displaystyle = \frac{\sqrt{38}}{2}
Plug the normal and one point into the plane equationA plane with normal vector n\cross{n} through point PP has the normal form n⋅[xyz]=n⋅P\cross{n} \cdot \begin{bmatrix} x \\ y \\ z \end{bmatrix} = \cross{n} \cdot P, so using n=[2−35]\cross{n} = \cross{\begin{bmatrix} 2 \\ -3 \\ 5 \end{bmatrix}} and P=(1,1,0)P = (1, 1, 0) gives the plane.
[2−35]⋅[xyz]=[2−35]⋅[110]  ⟹  2x−3y+5z=(2×1)+(−3×1)+(5×0)=−1\displaystyle \begin{aligned} & \cross{\begin{bmatrix} 2 \\ -3 \\ 5 \end{bmatrix}} \cdot \begin{bmatrix} x \\ y \\ z \end{bmatrix} = \cross{\begin{bmatrix} 2 \\ -3 \\ 5 \end{bmatrix}} \cdot \begin{bmatrix} 1 \\ 1 \\ 0 \end{bmatrix} \\ & \implies 2x - 3y + 5z \\ &\quad = (2 \times 1) \\ &\quad + (-3 \times 1)+ (5 \times 0) \\ &\quad = -1 \end{aligned}

So the triangle has area 382\frac{\sqrt{38}}{2} and sits in the plane 2x−3y+5z=−12x - 3y + 5z = -1; on a test, you can confirm the plane equation in seconds by checking that P(1,1,0)P(1, 1, 0), Q(3,4,1)Q(3, 4, 1), and R(2,5,2)R(2, 5, 2) all make 2x−3y+5z2x - 3y + 5z equal −1-1.

6

Volume of a Parallelepiped and Coplanar Vectors

Adding a third vector c\third{c} from the same starting corner as a\first{a} and b\second{b} sweeps out a slanted 3D box called a parallelepiped, and we want to find its volume, as well as tell when all three vectors lie flat in the same plane.

Volume of a Parallelepiped and Coplanar Vectors
a\htmlClass{lc-green}{a}
b\htmlClass{lc-pink}{b}
c\htmlClass{lc-violet}{c}
Volume=  ?\text{Volume} = \;?

Because a×b\cross{a \times b} already has length equal to the base area and points straight up at 90∘90^\circ to the base, dotting it with c\third{c} multiplies the base area by the perpendicular height:

Volume\displaystyle \text{Volume} =∣(a×b)⏟length=Base Areadirection ⊥ base⋅c∣\displaystyle = \Big|\underbrace{(\cross{a \times b})}_{\substack{\text{length} = \text{Base Area} \\ \text{direction } \perp \text{ base}}} \cdot \third{c}\Big|

The outer bars are ordinary absolute value bars on a number, keeping the volume positive when c\third{c} points to the opposite side of the base from a×b\cross{a \times b}.

Sliding c\third{c} parallel to the base keeps the perpendicular height along a×b\cross{a \times b} and the box's volume the same. Dropping c\third{c} into the base plane flattens the volume to zero, and pushing c\third{c} to the other side of the base flips the sign of (a×b)⋅c(\cross{a \times b}) \cdot \third{c}.

Only the height of the third vector above the base changes the box's volume, so sliding its tip sideways keeps the volume the same.

Using our base vectors a=[231]\first{a} = \first{\begin{bmatrix} 2 \\ 3 \\ 1 \end{bmatrix}} and b=[142]\second{b} = \second{\begin{bmatrix} 1 \\ 4 \\ 2 \end{bmatrix}} with a third vector c=[312]\third{c} = \third{\begin{bmatrix} 3 \\ 1 \\ 2 \end{bmatrix}}:

Text solution
Cross the two base vectorsThe cross product of a\first{a} and b\second{b} gives the normal vector whose length is the base area.
a×b=[231]×[142]=[2−35]\displaystyle \cross{a \times b} = \first{\begin{bmatrix} 2 \\ 3 \\ 1 \end{bmatrix}} \times \second{\begin{bmatrix} 1 \\ 4 \\ 2 \end{bmatrix}} = \cross{\begin{bmatrix} 2 \\ -3 \\ 5 \end{bmatrix}}
Dot with the third vector and take the absolute valueDotting a×b\cross{a \times b} with c\third{c} multiplies the base area by the perpendicular height.
Volume=∣(a×b)⋅c∣=∣[2−35]⋅[312]∣=∣(2×3)+(−3×1)+(5×2)∣=∣6−3+10∣=13\displaystyle \begin{aligned} & \text{Volume} = |(\cross{a \times b}) \cdot \third{c}| \\ &\quad = \left|\cross{\begin{bmatrix} 2 \\ -3 \\ 5 \end{bmatrix}} \cdot \third{\begin{bmatrix} 3 \\ 1 \\ 2 \end{bmatrix}}\right| \\ &\quad = |(2 \times 3) + (-3 \times 1) \\ &\quad + (5 \times 2)| \\ &\quad = |6 - 3 + 10| = 13 \end{aligned}

So the parallelepiped swept out by a\first{a}, b\second{b}, and c\third{c} has a volume of 1313.

Now replace the third vector with c=[373]\third{c} = \third{\begin{bmatrix} 3 \\ 7 \\ 3 \end{bmatrix}} to test whether all three vectors lie in the same plane:

(a×b)⋅c=[2−35]⋅[373]=(2×3)+(−3×7)+(5×3)=6−21+15=0\displaystyle \begin{aligned} & (\cross{a \times b}) \cdot \third{c} = \cross{\begin{bmatrix} 2 \\ -3 \\ 5 \end{bmatrix}} \cdot \third{\begin{bmatrix} 3 \\ 7 \\ 3 \end{bmatrix}} \\ &\quad = (2 \times 3) + (-3 \times 7) \\ &\quad + (5 \times 3) = 6 - 21 + 15 = 0 \end{aligned}

Because the volume is 00, the parallelepiped has zero height, so a\first{a}, b\second{b}, and c\third{c} all lie flat in the same plane.

Key concepts

Everything comes back to a single picture: two 3D vectors a\first{a} and b\second{b} sweep out a parallelogram, and their cross product a×b\cross{a \times b} is the vector sticking out at 90∘90^\circ to that surface (by the right-hand rule) whose length is the parallelogram's area, ∣a×b∣=∣a∣∣b∣sin⁡θ\cross{|a \times b|} = \first{|a|}\second{|b|\sin\theta}. If a problem only asks whether two given vectors are perpendicular or how much they line up, don't use the cross product; the dot product a⋅b=∣a∣∣b∣cos⁡θ\first{a} \cdot \second{b} = \first{|a|}\second{|b|\cos\theta} answers that in one step. Use a×b\cross{a \times b} when you need a vector perpendicular to two vectors or the area they sweep out.

Computing a×b\cross{a \times b} by covering rows

Cover one row at a time and cross-multiply the remaining two rows, flipping the sign on the middle (yy) component because x→zx \to z goes backward against the x→y→z→xx \to y \to z \to x cycle. For [231]×[142]\first{\begin{bmatrix} 2 \\ 3 \\ 1 \end{bmatrix}} \times \second{\begin{bmatrix} 1 \\ 4 \\ 2 \end{bmatrix}}, covering each row gives [(3×2)−(1×4)−((2×2)−(1×1))(2×4)−(3×1)]=[2−35]\begin{bmatrix} (\first{3} \times \second{2}) - (\first{1} \times \second{4}) \\ -\big((\first{2} \times \second{2}) - (\first{1} \times \second{1})\big) \\ (\first{2} \times \second{4}) - (\first{3} \times \second{1}) \end{bmatrix} = \cross{\begin{bmatrix} 2 \\ -3 \\ 5 \end{bmatrix}}.

Three points to a triangle or plane

When given corner points PP, QQ, and RR instead of vectors, subtract one corner first to build the edge vectors PQ=Q−P\first{PQ} = Q - P and PR=R−P\second{PR} = R - P. Their cross product n=PQ×PR\cross{n} = \first{PQ} \times \second{PR} is the normal vector for the plane n⋅[xyz]=n⋅P\cross{n} \cdot \begin{bmatrix} x \\ y \\ z \end{bmatrix} = \cross{n} \cdot P, and half its length, 12∣PQ×PR∣\frac{1}{2}|\first{PQ} \times \second{PR}|, is the triangle's area.

Three vectors to a 3D volume

Dotting the base cross product with a third vector c\third{c} multiplies base area by perpendicular height to give the parallelepiped volume, Volume=∣(a×b)⋅c∣\text{Volume} = |(\cross{a \times b}) \cdot \third{c}|. When (a×b)⋅c=0(\cross{a \times b}) \cdot \third{c} = 0, the box has zero height and all three vectors lie in the same plane.

7

Practice

1

Given the 2D vectors a=[41]\first{a} = \first{\begin{bmatrix} 4 \\ 1 \end{bmatrix}} and b=[23]\second{b} = \second{\begin{bmatrix} 2 \\ 3 \end{bmatrix}}, find the signed area from a\first{a} to b\second{b}, the area of their parallelogram, and the signed area from b\second{b} to a\first{a}.

Which pairings of horizontal and vertical pieces create area, and what happens to the turn direction when you start at b\second{b} instead of a\first{a}?

Cross-multiplying the horizontal and vertical pieces from a\first{a} to b\second{b} gives (4×3)−(1×2)=10(\first{4} \times \second{3}) - (\first{1} \times \second{2}) = 10 (be careful not to multiply straight across the rows like a dot product, which would give (4×2)+(1×3)=11(4 \times 2) + (1 \times 3) = 11). The parallelogram area is 1010. Swapping the order to go from b\second{b} to a\first{a} gives (2×1)−(3×4)=−10(\second{2} \times \first{1}) - (\second{3} \times \first{4}) = -10.
2

Find the cross product a×b\cross{a \times b} for a=[312]\first{a} = \first{\begin{bmatrix} 3 \\ 1 \\ 2 \end{bmatrix}} and b=[143]\second{b} = \second{\begin{bmatrix} 1 \\ 4 \\ 3 \end{bmatrix}}, and verify with the dot product that your answer is perpendicular to both a\first{a} and b\second{b}.

Cover one row at a time to find the 2D signed area of the other two rows, and watch the cycle direction on the middle row.

Covering each row gives a×b\cross{a \times b} =[(1×3)−(2×4)−((3×3)−(2×1))(3×4)−(1×1)]{}= \begin{bmatrix} (\first{1} \times \second{3}) - (\first{2} \times \second{4}) \\ -\big((\first{3} \times \second{3}) - (\first{2} \times \second{1})\big) \\ (\first{3} \times \second{4}) - (\first{1} \times \second{1}) \end{bmatrix} =[−5−711]{}= \cross{\begin{bmatrix} -5 \\ -7 \\ 11 \end{bmatrix}} (forgetting to flip the middle sign gives +7+7 and [−5711]\begin{bmatrix} -5 \\ 7 \\ 11 \end{bmatrix}, which fails the dot-product check with −15+7+22=14≠0-15 + 7 + 22 = 14 \neq 0). Checking perpendicularity: [−5−711]⋅[312]=−15−7+22\cross{\begin{bmatrix} -5 \\ -7 \\ 11 \end{bmatrix}} \cdot \first{\begin{bmatrix} 3 \\ 1 \\ 2 \end{bmatrix}} = -15 - 7 + 22 =0{}= 0, and [−5−711]⋅[143]=−5−28+33\cross{\begin{bmatrix} -5 \\ -7 \\ 11 \end{bmatrix}} \cdot \second{\begin{bmatrix} 1 \\ 4 \\ 3 \end{bmatrix}} = -5 - 28 + 33 =0{}= 0.
3

Two vectors a\first{a} and b\second{b} have lengths ∣a∣=4\first{|a|} = 4 and ∣b∣=7\second{|b|} = 7, and the angle between them is θ=30∘\theta = 30^\circ. Find the area of the parallelogram they form (the length ∣a×b∣\cross{|a \times b|}).

Does the parallelogram's perpendicular height use sin⁡θ\sin\theta or cos⁡θ\cos\theta?

Using the perpendicular height ∣b∣sin⁡θ\second{|b|\sin\theta} (using cos⁡(30∘)\cos(30^\circ) from the dot product gives the wrong value 14314\sqrt{3}), Area=∣a×b∣=∣a∣∣b∣sin⁡(30∘)\text{Area} = \cross{|a \times b|} = \first{|a|}\second{|b|}\sin(30^\circ) =4×7×12=14{}= \first{4} \times \second{7} \times \frac{1}{2} = 14.
4

Given a=[122]\first{a} = \first{\begin{bmatrix} 1 \\ 2 \\ 2 \end{bmatrix}} and b=[212]\second{b} = \second{\begin{bmatrix} 2 \\ 1 \\ 2 \end{bmatrix}}, use the cross product to find sin⁡θ\sin\theta and the angle θ\theta between them.

Find the parallelogram's area ∣a×b∣\cross{|a \times b|} first, then divide by the product of the lengths ∣a∣\first{|a|} and ∣b∣\second{|b|}.

First, a×b=[22−3]\cross{a \times b} = \cross{\begin{bmatrix} 2 \\ 2 \\ -3 \end{bmatrix}}, so ∣a×b∣=22+22+(−3)2=17\cross{|a \times b|} = \sqrt{2^2 + 2^2 + (-3)^2} = \cross{\sqrt{17}} (make sure (−3)2=+9(-3)^2 = +9, not −9-9, which would give −1\sqrt{-1}). Since ∣a∣=12+22+22=3\first{|a|} = \sqrt{1^2 + 2^2 + 2^2} = \first{3} and ∣b∣=22+12+22=3\second{|b|} = \sqrt{2^2 + 1^2 + 2^2} = \second{3} (remember to take the square roots so you divide by 3×3=93 \times 3 = 9 rather than 9×9=819 \times 9 = 81), sin⁡θ=∣a×b∣∣a∣∣b∣=179≈0.46\sin\theta = \frac{\cross{|a \times b|}}{\first{|a|}\second{|b|}} = \frac{\cross{\sqrt{17}}}{9} \approx 0.46, and since a⋅b=2+2+4=8\first{a} \cdot \second{b} = 2 + 2 + 4 = 8 is positive, the angle is acute, which gives θ≈27∘\theta \approx 27^\circ.
5

Find the area of the triangle with corner points P=(1,0,2)P = (1, 0, 2), Q=(3,1,4)Q = (3, 1, 4), and R=(2,3,4)R = (2, 3, 4).

Points are only locations, so how do you build two edge vectors starting from PP, and how does a triangle's area compare to the parallelogram formed by those two edges?

Subtracting PP first gives the edge vectors PQ=Q−P=[212]\first{PQ} = Q - P = \first{\begin{bmatrix} 2 \\ 1 \\ 2 \end{bmatrix}} and PR=R−P=[132]\second{PR} = R - P = \second{\begin{bmatrix} 1 \\ 3 \\ 2 \end{bmatrix}} (crossing QQ and RR directly without subtracting PP gives [−8−47]\begin{bmatrix} -8 \\ -4 \\ 7 \end{bmatrix} and the wrong area 1292\frac{\sqrt{129}}{2}). Their cross product is PQ×PR=[−4−25]\first{PQ} \times \second{PR} = \cross{\begin{bmatrix} -4 \\ -2 \\ 5 \end{bmatrix}}, so the parallelogram area is ∣PQ×PR∣|\first{PQ} \times \second{PR}| =(−4)2+(−2)2+52{}= \sqrt{(-4)^2 + (-2)^2 + 5^2} =45=35{}= \sqrt{45} = 3\sqrt{5}, and taking half for the triangle (don't stop at the full parallelogram area 353\sqrt{5}) gives 12∣PQ×PR∣=452=352\frac{1}{2}|\first{PQ} \times \second{PR}| = \frac{\sqrt{45}}{2} = \frac{3\sqrt{5}}{2}.
6

Find the equation in normal form of the plane passing through the points P=(2,1,1)P = (2, 1, 1), Q=(3,3,2)Q = (3, 3, 2), and R=(4,2,4)R = (4, 2, 4).

Once you have two edge vectors from PP, how do you get a single vector perpendicular to the entire plane?

The edge vectors are PQ=Q−P=[121]\first{PQ} = Q - P = \first{\begin{bmatrix} 1 \\ 2 \\ 1 \end{bmatrix}} and PR=R−P=[213]\second{PR} = R - P = \second{\begin{bmatrix} 2 \\ 1 \\ 3 \end{bmatrix}}. Crossing them gives the normal vector n=PQ×PR=[5−1−3]\cross{n} = \first{PQ} \times \second{PR} = \cross{\begin{bmatrix} 5 \\ -1 \\ -3 \end{bmatrix}} (forgetting to flip the middle sign gives [51−3]\begin{bmatrix} 5 \\ 1 \\ -3 \end{bmatrix} and 5x+y−3z=85x + y - 3z = 8). Plugging the point P=(2,1,1)P = (2, 1, 1) into n⋅[xyz]=n⋅P\cross{n} \cdot \begin{bmatrix} x \\ y \\ z \end{bmatrix} = \cross{n} \cdot P (make sure to dot n\cross{n} with a point on the plane rather than the edge vector PQ\first{PQ}, which would give 00 on the right-hand side) gives [5−1−3]⋅[xyz]=[5−1−3]⋅[211]\cross{\begin{bmatrix} 5 \\ -1 \\ -3 \end{bmatrix}} \cdot \begin{bmatrix} x \\ y \\ z \end{bmatrix} = \cross{\begin{bmatrix} 5 \\ -1 \\ -3 \end{bmatrix}} \cdot \begin{bmatrix} 2 \\ 1 \\ 1 \end{bmatrix}, or 5x−y−3z=65x - y - 3z = 6.
7

Find the volume of the parallelepiped formed by the vectors a=[121]\first{a} = \first{\begin{bmatrix} 1 \\ 2 \\ 1 \end{bmatrix}}, b=[312]\second{b} = \second{\begin{bmatrix} 3 \\ 1 \\ 2 \end{bmatrix}}, and c=[214]\third{c} = \third{\begin{bmatrix} 2 \\ 1 \\ 4 \end{bmatrix}}.

How do you find the base area and perpendicular direction from a\first{a} and b\second{b}, and then measure how much of c\third{c} goes in that perpendicular direction?

First, a×b=[31−5]\cross{a \times b} = \cross{\begin{bmatrix} 3 \\ 1 \\ -5 \end{bmatrix}}. Then (a×b)⋅c(\cross{a \times b}) \cdot \third{c} =(3×2)+(1×1)+(−5×4){}= (3 \times 2) + (1 \times 1) + (-5 \times 4) =6+1−20=−13{}= 6 + 1 - 20 = -13. Taking the absolute value so the volume is positive (don't leave the volume as −13-13) gives Volume=∣(a×b)⋅c∣=13\text{Volume} = |(\cross{a \times b}) \cdot \third{c}| = 13.
8

For what value of k\third{k} do the three vectors a=[211]\first{a} = \first{\begin{bmatrix} 2 \\ 1 \\ 1 \end{bmatrix}}, b=[132]\second{b} = \second{\begin{bmatrix} 1 \\ 3 \\ 2 \end{bmatrix}}, and c=[55k]\third{c} = \third{\begin{bmatrix} 5 \\ 5 \\ \third{k} \end{bmatrix}} all lie in the same plane?

What happens to the volume of the parallelepiped formed by a\first{a}, b\second{b}, and c\third{c} when all three vectors lie flat in the same plane?

First, a×b=[−1−35]\cross{a \times b} = \cross{\begin{bmatrix} -1 \\ -3 \\ 5 \end{bmatrix}} (forgetting to flip the middle sign gives [−135]\begin{bmatrix} -1 \\ 3 \\ 5 \end{bmatrix}, which leads to 10+5k=010 + 5k = 0 and the wrong answer k=−2k = -2). Setting the parallelepiped volume to zero gives (a×b)⋅c=(−1×5)(\cross{a \times b}) \cdot \third{c} = (-1 \times 5) +(−3×5)+(5×k){}+ (-3 \times 5) + (5 \times \third{k}) =−20+5k=0{}= -20 + 5\third{k} = 0, so k=4\third{k} = 4.