Vector Line
A vector line (r r r ) in parametric form takes a scalar parameter (γ \gamma γ ) to produce each point on
the line. The line (r ( γ ) \bm{r}(\gamma) r ( γ ) ) is a sum of a point on a line (a \bm{a} a or r 0 \bm{r_0} r 0 ) and a
direction vector (b \bm{b} b ) scaled by the parameter γ \gamma γ :
\begin`\{aligned}`
\bm{r}(\gamma) = \bm{r_0} + \gamma\bm{b}
\end`\{aligned}`
Vectors in cartesian form define a vector by the definition of each coordinate of the unit vector:
\begin`\{aligned}`
\frac{x-x_0}{l} = \frac{y-y_0}{m} = \frac{z-z_0}{n}
\end`\{aligned}`
\begin`\{aligned}`
\bm{r}(\gamma) = \bm{r_0} + \gamma\bm{b}\\
\begin`\{pmatrix}`
x \\ y \\ z
\end`\{pmatrix}`
=
\begin`\{pmatrix}`
x_0 \\ y_0 \\ z_0
\end`\{pmatrix}`
+
\gamma
\begin`\{pmatrix}`
l \\ m \\ n
\end`\{pmatrix}`\\
x = x_0 + \gamma l, \quad y = y_0 + \gamma m, \quad z = z_0 + \gamma n\\
\gamma = \frac{x-x_0}{l} = \frac{y-y_0}{m} = \frac{z-z_0}{n}
\end`\{aligned}`
Vector Plane
A vector plane (r \bm{r} r ) given in parametric form is defined with the sum of a point (a \bm{a} a or
r 0 \bm{r_0} r 0 ) on the plane and two direction vector (b \bm{b} b and c \bm{c} c ) scaled by scalar parameter
(γ \gamma γ and μ \mu μ ):
\begin`\{aligned}`
\bm{r}(\gamma, \mu) = \bm{r_0} + \gamma \bm{b} + \mu \bm{c}
\end`\{aligned}`
A vector plane (r \bm{r} r ) defined in point-normal form is defined by the dot product between the
normal (n ^ \hat{n} n ^ ) and the direction vectors (r − r 0 \bm{r}-\bm{r_0} r − r 0 or γ b + μ c \gamma \bm{b} + \mu \bm{c} γ b + μ c ):
\begin`\{aligned}`
\left(\bm{r}-\bm{r_0}\right) \cdot \hat{n} = |\bm{r}-\bm{r_0}||\hat{n}|\sin \frac{\pi}{2} = 0\\
\bm{r} \cdot \hat{n} = \bm{r_0} \cdot \hat{n}
\end`\{aligned}`
A vector plane (r \bm{r} r ) defined in cartesian form is extended from the point-normal form by
expressing normal vector as its individual axis (x , y , z x,y,z x , y , z ):
\begin`\{aligned}`
\hat{n} =
\begin`\{pmatrix}`
a \\ b \\ c
\end`\{pmatrix}`, \quad
\bm{r} =
\begin`\{pmatrix}`
x \\ y \\ z
\end`\{pmatrix}`, \quad
\bm{r_0} =
\begin`\{pmatrix}`
x_0 \\ y_0 \\ z_0
\end`\{pmatrix}`\\
a(x-x_0) + b(y-y_0) + c(z-z_0) = 0\\
ax + by + cz = ax_0 + by_0 + cz_0
\end`\{aligned}`
Since a x 0 + b y 0 + c z 0 ax_0 + by_0 + cz_0 a x 0 + b y 0 + c z 0 produce a constant, the formula booklet uses a single constant d d d to
represent it:
\begin`\{aligned}`
ax + by + cz = d
\end`\{aligned}`
Vector Fundamentals
Vector Representation
A vector v \bm{v} v in 3D space is represented as a column vector:
\bm{v} =
\begin`\{pmatrix}`
v_x \\ v_y \\ v_z
\end`\{pmatrix}`
where v x v_x v x , v y v_y v y , v z v_z v z are the components along the x x x , y y y , and z z z axes respectively.
Magnitude (Modulus)
The magnitude of a vector is its length:
∣ ‘ v ‘ ∣ = v x 2 + v y 2 + v z 2 |`\bm{v}`| = \sqrt{v_x^2 + v_y^2 + v_z^2} ∣‘ v ‘∣ = v x 2 + v y 2 + v z 2
Unit Vector
A unit vector has magnitude 1 1 1 . The unit vector in the direction of v \bm{v} v is:
v ^ = v ∣ v ∣ \hat{v} = \frac{\bm{v}}{|\bm{v}|} v ^ = ∣ v ∣ v
Position Vector
A position vector describes the position of a point relative to the origin O O O :
\overrightarrow`\{OP}` =
\begin`\{pmatrix}`
x \\ y \\ z
\end`\{pmatrix}`
Vector Addition and Subtraction
\bm{a} + \bm{b} =
\begin`\{pmatrix}`
a_x + b_x \\ a_y + b_y \\ a_z + b_z
\end`\{pmatrix}`, \quad
\bm{a} - \bm{b} =
\begin`\{pmatrix}`
a_x - b_x \\ a_y - b_y \\ a_z - b_z
\end`\{pmatrix}`
Scalar Multiplication
k\bm{v} =
\begin`\{pmatrix}`
kv_x \\ kv_y \\ kv_z
\end`\{pmatrix}`
Dot Product (Scalar Product)
Definition
The dot product of two vectors produces a scalar:
a ⋅ b = ∣ a ∣ ∣ b ∣ cos θ \bm{a} \cdot \bm{b} = |\bm{a}||\bm{b}|\cos\theta a ⋅ b = ∣ a ∣∣ b ∣ cos θ
where θ \theta θ is the angle between the vectors (0 ≤ θ ≤ π 0 \le \theta \le \pi 0 ≤ θ ≤ π ).
a ⋅ b = a x b x + a y b y + a z b z \bm{a} \cdot \bm{b} = a_x b_x + a_y b_y + a_z b_z a ⋅ b = a x b x + a y b y + a z b z
Finding the Angle Between Vectors
cos θ = a ⋅ b ∣ a ∣ ∣ b ∣ \cos\theta = \frac{\bm{a} \cdot \bm{b}}{|\bm{a}||\bm{b}|} cos θ = ∣ a ∣∣ b ∣ a ⋅ b
Properties of the Dot Product
a ⋅ a = ∣ a ∣ 2 \bm{a} \cdot \bm{a} = |\bm{a}|^2 a ⋅ a = ∣ a ∣ 2
a ⋅ b = 0 \bm{a} \cdot \bm{b} = 0 a ⋅ b = 0 if and only if a ⊥ b \bm{a} \perp \bm{b} a ⊥ b (vectors are perpendicular)
a ⋅ b = b ⋅ a \bm{a} \cdot \bm{b} = \bm{b} \cdot \bm{a} a ⋅ b = b ⋅ a (commutative)
a ⋅ ( b + c ) = a ⋅ b + a ⋅ c \bm{a} \cdot (\bm{b} + \bm{c}) = \bm{a} \cdot \bm{b} + \bm{a} \cdot \bm{c} a ⋅ ( b + c ) = a ⋅ b + a ⋅ c (distributive)
Worked Example 1: Dot Product
Problem: Find the angle between a = ( 2 1 − 1 ) \bm{a} = \begin{pmatrix} 2 \\ 1 \\ -1 \end{pmatrix} a = 2 1 − 1 and
b = ( 3 0 4 ) \bm{b} = \begin{pmatrix} 3 \\ 0 \\ 4 \end{pmatrix} b = 3 0 4 .
Solution:
a ⋅ b = ( 2 ) ( 3 ) + ( 1 ) ( 0 ) + ( − 1 ) ( 4 ) = 6 + 0 − 4 = 2 \bm{a} \cdot \bm{b} = (2)(3) + (1)(0) + (-1)(4) = 6 + 0 - 4 = 2 a ⋅ b = ( 2 ) ( 3 ) + ( 1 ) ( 0 ) + ( − 1 ) ( 4 ) = 6 + 0 − 4 = 2
∣ ‘ a ‘ ∣ ‘ = 4 + 1 + 1 = 6 , ‘ ∣ ‘ b ‘ ∣ = 9 + 0 + 16 = 5 |`\bm{a}`| `= \sqrt{4 + 1 + 1} = \sqrt{6}, \quad` |`\bm{b}`| = \sqrt{9 + 0 + 16} = 5 ∣‘ a ‘∣‘ = 4 + 1 + 1 = 6 , ‘∣‘ b ‘∣ = 9 + 0 + 16 = 5
cos θ = 2 5 6 = 2 5 6 , θ = arccos ( 2 5 6 ) ≈ 80.7 ∘ \cos\theta = \frac{2}{5\sqrt{6}} = \frac{2}{5\sqrt{6}}, \quad \theta = \arccos\left(\frac{2}{5\sqrt{6}}\right) \approx 80.7^{\circ} cos θ = 5 6 2 = 5 6 2 , θ = arccos ( 5 6 2 ) ≈ 80. 7 ∘
Cross Product (Vector Product)
Definition
The cross product of two vectors produces a vector perpendicular to both:
∣ ‘ a × b ‘ ∣ = ∣ ‘ a ‘ ∣ ∣ ‘ b ‘ ∣ sin θ |`\bm{a} \times \bm{b}`| = |`\bm{a}`||`\bm{b}`|\sin\theta ∣‘ a × b ‘∣ = ∣‘ a ‘∣∣‘ b ‘∣ sin θ
The direction is given by the right-hand rule.
\bm{a} \times \bm{b} =
\begin`\{pmatrix}`
a_y b_z - a_z b_y \\ a_z b_x - a_x b_z \\ a_x b_y - a_y b_x
\end`\{pmatrix}`
This can be written as a determinant:
\bm{a} \times \bm{b} =
\begin`\{vmatrix}`
\hat{i} & \hat{j} & \hat{k}\\
a_x & a_y & a_z\\
b_x & b_y & b_z
\end`\{vmatrix}`
Properties of the Cross Product
a × b = − ( b × a ) \bm{a} \times \bm{b} = -(\bm{b} \times \bm{a}) a × b = − ( b × a ) (anti-commutative)
a × a = 0 \bm{a} \times \bm{a} = \bm{0} a × a = 0
a × b = 0 \bm{a} \times \bm{b} = \bm{0} a × b = 0 if and only if a \bm{a} a is parallel to b \bm{b} b
∣ a × b ∣ |\bm{a} \times \bm{b}| ∣ a × b ∣ gives the area of the parallelogram formed by a \bm{a} a and b \bm{b} b
Geometric Interpretations
Area of a parallelogram: A = ∣ a × b ∣ A = |\bm{a} \times \bm{b}| A = ∣ a × b ∣
Area of a triangle: A = 1 2 ∣ a × b ∣ A = \frac{1}{2}|\bm{a} \times \bm{b}| A = 2 1 ∣ a × b ∣
Volume of a parallelepiped: V = ∣ a ⋅ ( b × c ) ∣ V = |\bm{a} \cdot (\bm{b} \times \bm{c})| V = ∣ a ⋅ ( b × c ) ∣ (scalar triple
product)
Worked Example 2: Cross Product
Problem: Find a × b \bm{a} \times \bm{b} a × b where a = ( 1 2 3 ) \bm{a} = \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix} a = 1 2 3
and b = ( 4 5 6 ) \bm{b} = \begin{pmatrix} 4 \\ 5 \\ 6 \end{pmatrix} b = 4 5 6 .
Solution:
\bm{a} \times \bm{b} =
\begin`\{pmatrix}`
(2)(6) - (3)(5) \\ (3)(4) - (1)(6) \\ (1)(5) - (2)(4)
\end`\{pmatrix}`
=
\begin`\{pmatrix}`
12 - 15 \\ 12 - 6 \\ 5 - 8
\end`\{pmatrix}`
=
\begin`\{pmatrix}`
-3 \\ 6 \\ -3
\end`\{pmatrix}`
Intersections
Line-Line Intersection
To find the intersection of two lines r 1 = a 1 + t b 1 \bm{r}_1 = \bm{a}_1 + t\bm{b}_1 r 1 = a 1 + t b 1 and
r 2 = a 2 + s b 2 \bm{r}_2 = \bm{a}_2 + s\bm{b}_2 r 2 = a 2 + s b 2 :
Set the parametric equations equal and solve for t t t and s s s
If a solution exists, substitute back to find the intersection point
If the direction vectors are parallel (b 1 × b 2 = 0 \bm{b}_1 \times \bm{b}_2 = \bm{0} b 1 × b 2 = 0 ), the lines are either
parallel or coincident
Line-Plane Intersection
To find where line r = a + t b \bm{r} = \bm{a} + t\bm{b} r = a + t b intersects plane r ⋅ n ^ = d \bm{r} \cdot \hat{n} = d r ⋅ n ^ = d :
Substitute r = a + t b \bm{r} = \bm{a} + t\bm{b} r = a + t b into the plane equation:
( a + t b ) ⋅ n ^ = d (\bm{a} + t\bm{b}) \cdot \hat{n} = d ( a + t b ) ⋅ n ^ = d
Solve for t t t :
t = d − a ⋅ n ^ b ⋅ n ^ t = \frac{d - \bm{a} \cdot \hat{n}}{\bm{b} \cdot \hat{n}} t = b ⋅ n ^ d − a ⋅ n ^
If b ⋅ n ^ = 0 \bm{b} \cdot \hat{n} = 0 b ⋅ n ^ = 0 , the line is parallel to the plane (no intersection or lies in the
plane)
Worked Example 3: Line-Plane Intersection
Problem: Find the intersection of line
r = ( 1 0 2 ) + t ( 2 1 − 1 ) \bm{r} = \begin{pmatrix} 1 \\ 0 \\ 2 \end{pmatrix} + t\begin{pmatrix} 2 \\ 1 \\ -1 \end{pmatrix} r = 1 0 2 + t 2 1 − 1
with plane 2 x − y + z = 5 2x - y + z = 5 2 x − y + z = 5 .
Solution:
Normal vector n ^ = ( 2 − 1 1 ) \hat{n} = \begin{pmatrix} 2 \\ -1 \\ 1 \end{pmatrix} n ^ = 2 − 1 1 , d = 5 d = 5 d = 5 .
Point on line: a = ( 1 0 2 ) \bm{a} = \begin{pmatrix} 1 \\ 0 \\ 2 \end{pmatrix} a = 1 0 2 , direction:
b = ( 2 1 − 1 ) \bm{b} = \begin{pmatrix} 2 \\ 1 \\ -1 \end{pmatrix} b = 2 1 − 1 .
a ⋅ n ^ = ( 1 ) ( 2 ) + ( 0 ) ( − 1 ) + ( 2 ) ( 1 ) = 4 \bm{a} \cdot \hat{n} = (1)(2) + (0)(-1) + (2)(1) = 4 a ⋅ n ^ = ( 1 ) ( 2 ) + ( 0 ) ( − 1 ) + ( 2 ) ( 1 ) = 4
b ⋅ n ^ = ( 2 ) ( 2 ) + ( 1 ) ( − 1 ) + ( − 1 ) ( 1 ) = 2 \bm{b} \cdot \hat{n} = (2)(2) + (1)(-1) + (-1)(1) = 2 b ⋅ n ^ = ( 2 ) ( 2 ) + ( 1 ) ( − 1 ) + ( − 1 ) ( 1 ) = 2
t = 5 − 4 2 = 1 2 t = \frac{5 - 4}{2} = \frac{1}{2} t = 2 5 − 4 = 2 1
\bm{r} = \begin`\{pmatrix}` 1 \\ 0 \\ 2 \end`\{pmatrix}` + \frac{1}{2}\begin`\{pmatrix}` 2 \\ 1 \\ -1 \end`\{pmatrix}` = \begin`\{pmatrix}` 2 \\ 0.5 \\ 1.5 \end`\{pmatrix}`
Intersection point: ( 2 , 0.5 , 1.5 ) (2, 0.5, 1.5) ( 2 , 0.5 , 1.5 ) .
Angle Between Line and Plane
The angle α \alpha α between a line with direction b \bm{b} b and a plane with normal n ^ \hat{n} n ^ :
sin α = ∣ b ⋅ n ^ ∣ ∣ b ∣ ∣ n ^ ∣ \sin\alpha = \frac{|\bm{b} \cdot \hat{n}|}{|\bm{b}||\hat{n}|} sin α = ∣ b ∣∣ n ^ ∣ ∣ b ⋅ n ^ ∣
Angle Between Two Planes
The angle θ \theta θ between two planes with normals n ^ 1 \hat{n}_1 n ^ 1 and n ^ 2 \hat{n}_2 n ^ 2 :
cos θ = ∣ n ^ 1 ⋅ n ^ 2 ∣ ∣ n ^ 1 ∣ ∣ n ^ 2 ∣ \cos\theta = \frac{|\hat{n}_1 \cdot \hat{n}_2|}{|\hat{n}_1||\hat{n}_2|} cos θ = ∣ n ^ 1 ∣∣ n ^ 2 ∣ ∣ n ^ 1 ⋅ n ^ 2 ∣
Distance from Point to Plane
The perpendicular distance from point P P P with position vector p \bm{p} p to plane
r ⋅ n ^ = d \bm{r} \cdot \hat{n} = d r ⋅ n ^ = d :
D = ∣ p ⋅ n ^ − d ∣ ∣ n ^ ∣ D = \frac{|\bm{p} \cdot \hat{n} - d|}{|\hat{n}|} D = ∣ n ^ ∣ ∣ p ⋅ n ^ − d ∣
If n ^ \hat{n} n ^ is already a unit vector:
D = ∣ p ⋅ n ^ − d ∣ D = |\bm{p} \cdot \hat{n} - d| D = ∣ p ⋅ n ^ − d ∣
Distance Between Two Skew Lines
The shortest distance between two skew lines r 1 = a 1 + t b 1 \bm{r}_1 = \bm{a}_1 + t\bm{b}_1 r 1 = a 1 + t b 1 and
r 2 = a 2 + s b 2 \bm{r}_2 = \bm{a}_2 + s\bm{b}_2 r 2 = a 2 + s b 2 :
D = ∣ ( a 2 − a 1 ) ⋅ ( b 1 × b 2 ) ∣ ∣ b 1 × b 2 ∣ D = \frac{|(\bm{a}_2 - \bm{a}_1) \cdot (\bm{b}_1 \times \bm{b}_2)|}{|\bm{b}_1 \times \bm{b}_2|} D = ∣ b 1 × b 2 ∣ ∣ ( a 2 − a 1 ) ⋅ ( b 1 × b 2 ) ∣
Worked Example 4: Distance from Point to Plane
Problem: Find the distance from P ( 1 , 2 , 3 ) P(1, 2, 3) P ( 1 , 2 , 3 ) to the plane 2 x − y + 2 z = 4 2x - y + 2z = 4 2 x − y + 2 z = 4 .
Solution:
Normal vector n ^ = ( 2 − 1 2 ) \hat{n} = \begin{pmatrix} 2 \\ -1 \\ 2 \end{pmatrix} n ^ = 2 − 1 2 ,
∣ n ^ ∣ = 4 + 1 + 4 = 3 |\hat{n}| = \sqrt{4 + 1 + 4} = 3 ∣ n ^ ∣ = 4 + 1 + 4 = 3 .
p ⋅ n ^ = ( 1 ) ( 2 ) + ( 2 ) ( − 1 ) + ( 3 ) ( 2 ) = 2 − 2 + 6 = 6 \bm{p} \cdot \hat{n} = (1)(2) + (2)(-1) + (3)(2) = 2 - 2 + 6 = 6 p ⋅ n ^ = ( 1 ) ( 2 ) + ( 2 ) ( − 1 ) + ( 3 ) ( 2 ) = 2 − 2 + 6 = 6
D = ∣ 6 − 4 ∣ 3 = 2 3 D = \frac{|6 - 4|}{3} = \frac{2}{3} D = 3 ∣6 − 4∣ = 3 2
Applications to Geometry
Proving Three Points Are Collinear
Points A A A , B B B , C C C are collinear if and only if A B → = k A C → \overrightarrow{AB} = k\overrightarrow{AC} A B = k A C for
some scalar k k k .
To find the foot of the perpendicular from point P P P to line r = a + t b \bm{r} = \bm{a} + t\bm{b} r = a + t b :
The foot F F F satisfies:
\overrightarrow`\{PF}` \cdot \bm{b} = 0
Substitute F = a + t b \bm{F} = \bm{a} + t\bm{b} F = a + t b and solve for t t t :
( a + t b − p ) ⋅ b = 0 ⟹ t = ( p − a ) ⋅ b ∣ b ∣ 2 (\bm{a} + t\bm{b} - \bm{p}) \cdot \bm{b} = 0 \implies t = \frac{(\bm{p} - \bm{a}) \cdot \bm{b}}{|\bm{b}|^2} ( a + t b − p ) ⋅ b = 0 ⟹ t = ∣ b ∣ 2 ( p − a ) ⋅ b
Exam Tip For vector problems, always draw a diagram first. When finding intersections, check
your answer by substituting the point back into both equations. Common errors include sign mistakes
in the cross product and forgetting to take the absolute value in distance formulas.
Worked Example 5: Finding the Equation of a Plane
Problem: Find the Cartesian equation of the plane passing through the points A ( 1 , 2 , − 1 ) A(1, 2, -1) A ( 1 , 2 , − 1 ) ,
B ( 3 , 0 , 1 ) B(3, 0, 1) B ( 3 , 0 , 1 ) , and C ( 0 , 1 , 3 ) C(0, 1, 3) C ( 0 , 1 , 3 ) .
Solution:
Find two direction vectors in the plane:
\overrightarrow`\{AB}` = \begin`\{pmatrix}` 2 \\ -2 \\ 2 \end`\{pmatrix}`, \quad \overrightarrow`\{AC}` = \begin`\{pmatrix}` -1 \\ -1 \\ 4 \end`\{pmatrix}`
Find the normal vector using the cross product:
\hat{n} = \overrightarrow`\{AB}` \times \overrightarrow`\{AC}` = \begin`\{pmatrix}` (-2)(4) - (2)(-1) \\ (2)(-1) - (2)(4) \\ (2)(-1) - (-2)(-1) \end`\{pmatrix}` = \begin`\{pmatrix}` -8 + 2 \\ -2 - 8 \\ -2 - 2 \end`\{pmatrix}` = \begin`\{pmatrix}` -6 \\ -10 \\ -4 \end`\{pmatrix}`
Simplify by dividing by − 2 -2 − 2 : n ^ = ( 3 5 2 ) \hat{n} = \begin{pmatrix} 3 \\ 5 \\ 2 \end{pmatrix} n ^ = 3 5 2 .
Using point A ( 1 , 2 , − 1 ) A(1, 2, -1) A ( 1 , 2 , − 1 ) and n ^ ⋅ r = d \hat{n} \cdot \bm{r} = d n ^ ⋅ r = d :
d = ( 3 ) ( 1 ) + ( 5 ) ( 2 ) + ( 2 ) ( − 1 ) = 3 + 10 − 2 = 11 d = (3)(1) + (5)(2) + (2)(-1) = 3 + 10 - 2 = 11 d = ( 3 ) ( 1 ) + ( 5 ) ( 2 ) + ( 2 ) ( − 1 ) = 3 + 10 − 2 = 11
The plane equation is: 3 x + 5 y + 2 z = 11 3x + 5y + 2z = 11 3 x + 5 y + 2 z = 11 .
Verification: Check point B B B : 3 ( 3 ) + 5 ( 0 ) + 2 ( 1 ) = 9 + 0 + 2 = 11 3(3) + 5(0) + 2(1) = 9 + 0 + 2 = 11 3 ( 3 ) + 5 ( 0 ) + 2 ( 1 ) = 9 + 0 + 2 = 11 . Check point C C C :
3 ( 0 ) + 5 ( 1 ) + 2 ( 3 ) = 0 + 5 + 6 = 11 3(0) + 5(1) + 2(3) = 0 + 5 + 6 = 11 3 ( 0 ) + 5 ( 1 ) + 2 ( 3 ) = 0 + 5 + 6 = 11 .
Worked Example 6: Angle Between Two Planes
Problem: Find the acute angle between the planes Π 1 : 2 x − y + 3 z = 7 \Pi_1: 2x - y + 3z = 7 Π 1 : 2 x − y + 3 z = 7 and
Π 2 : x + 4 y − z = 3 \Pi_2: x + 4y - z = 3 Π 2 : x + 4 y − z = 3 .
Solution:
Extract the normal vectors:
\hat{n}_1 = \begin`\{pmatrix}` 2 \\ -1 \\ 3 \end`\{pmatrix}`, \quad \hat{n}_2 = \begin`\{pmatrix}` 1 \\ 4 \\ -1 \end`\{pmatrix}`
n ^ 1 ⋅ n ^ 2 = ( 2 ) ( 1 ) + ( − 1 ) ( 4 ) + ( 3 ) ( − 1 ) = 2 − 4 − 3 = − 5 \hat{n}_1 \cdot \hat{n}_2 = (2)(1) + (-1)(4) + (3)(-1) = 2 - 4 - 3 = -5 n ^ 1 ⋅ n ^ 2 = ( 2 ) ( 1 ) + ( − 1 ) ( 4 ) + ( 3 ) ( − 1 ) = 2 − 4 − 3 = − 5
∣ ‘ n ^ 1 ‘ ∣ ‘ = 4 + 1 + 9 = 14 , ‘ ∣ ‘ n ^ 2 ‘ ∣ = 1 + 16 + 1 = 18 = 3 2 |`\hat{n}_1`| `= \sqrt{4 + 1 + 9} = \sqrt{14}, \quad` |`\hat{n}_2`| = \sqrt{1 + 16 + 1} = \sqrt{18} = 3\sqrt{2} ∣‘ n ^ 1 ‘∣‘ = 4 + 1 + 9 = 14 , ‘∣‘ n ^ 2 ‘∣ = 1 + 16 + 1 = 18 = 3 2
cos θ = ∣ n ^ 1 ⋅ n ^ 2 ∣ ∣ n ^ 1 ∣ ∣ n ^ 2 ∣ = 5 14 ⋅ 3 2 = 5 3 28 = 5 3 × 5.292 = 0.315 \cos\theta = \frac{|\hat{n}_1 \cdot \hat{n}_2|}{|\hat{n}_1||\hat{n}_2|} = \frac{5}{\sqrt{14} \cdot 3\sqrt{2}} = \frac{5}{3\sqrt{28}} = \frac{5}{3 \times 5.292} = 0.315 cos θ = ∣ n ^ 1 ∣∣ n ^ 2 ∣ ∣ n ^ 1 ⋅ n ^ 2 ∣ = 14 ⋅ 3 2 5 = 3 28 5 = 3 × 5.292 5 = 0.315
θ = arccos ( 0.315 ) ≈ 71.6 ∘ \theta = \arccos(0.315) \approx 71.6^{\circ} θ = arccos ( 0.315 ) ≈ 71. 6 ∘
Worked Example 7: Shortest Distance from Point to Plane
Problem: Find the shortest distance from the point P ( 3 , − 1 , 2 ) P(3, -1, 2) P ( 3 , − 1 , 2 ) to the plane x − 2 y + 2 z = 5 x - 2y + 2z = 5 x − 2 y + 2 z = 5 .
Solution:
Normal vector n ^ = ( 1 − 2 2 ) \hat{n} = \begin{pmatrix} 1 \\ -2 \\ 2 \end{pmatrix} n ^ = 1 − 2 2 ,
∣ n ^ ∣ = 1 + 4 + 4 = 3 |\hat{n}| = \sqrt{1 + 4 + 4} = 3 ∣ n ^ ∣ = 1 + 4 + 4 = 3 .
p ⋅ n ^ = ( 3 ) ( 1 ) + ( − 1 ) ( − 2 ) + ( 2 ) ( 2 ) = 3 + 2 + 4 = 9 \bm{p} \cdot \hat{n} = (3)(1) + (-1)(-2) + (2)(2) = 3 + 2 + 4 = 9 p ⋅ n ^ = ( 3 ) ( 1 ) + ( − 1 ) ( − 2 ) + ( 2 ) ( 2 ) = 3 + 2 + 4 = 9
D = ∣ p ⋅ n ^ − d ∣ ∣ n ^ ∣ = ∣ 9 − 5 ∣ 3 = 4 3 D = \frac{|\bm{p} \cdot \hat{n} - d|}{|\hat{n}|} = \frac{|9 - 5|}{3} = \frac{4}{3} D = ∣ n ^ ∣ ∣ p ⋅ n ^ − d ∣ = 3 ∣9 − 5∣ = 3 4
Worked Example 8: Line of Intersection of Two Planes
Problem: Find the vector equation of the line of intersection of the planes
Π 1 : x + y − z = 4 \Pi_1: x + y - z = 4 Π 1 : x + y − z = 4 and Π 2 : 2 x − y + z = 1 \Pi_2: 2x - y + z = 1 Π 2 : 2 x − y + z = 1 .
Solution:
The direction vector of the line is perpendicular to both normals:
\bm{d} = \hat{n}_1 \times \hat{n}_2 = \begin`\{pmatrix}` 1 \\ 1 \\ -1 \end`\{pmatrix}` \times \begin`\{pmatrix}` 2 \\ -1 \\ 1 \end`\{pmatrix}` = \begin`\{pmatrix}` (1)(1) - (-1)(-1) \\ (-1)(2) - (1)(1) \\ (1)(-1) - (1)(2) \end`\{pmatrix}` = \begin`\{pmatrix}` 0 \\ -3 \\ -3 \end`\{pmatrix}`
Simplify: d = ( 0 1 1 ) \bm{d} = \begin{pmatrix} 0 \\ 1 \\ 1 \end{pmatrix} d = 0 1 1 .
Find a point on the line by setting z = 0 z = 0 z = 0 and solving:
x + y = 4 x + y = 4 x + y = 4 and 2 x − y = 1 2x - y = 1 2 x − y = 1 . Adding: 3 x = 5 ⟹ x = 5 3 3x = 5 \implies x = \frac{5}{3} 3 x = 5 ⟹ x = 3 5 . Then
y = 4 − 5 3 = 7 3 y = 4 - \frac{5}{3} = \frac{7}{3} y = 4 − 3 5 = 3 7 .
A point on the line is ( 5 3 , 7 3 , 0 ) \left(\frac{5}{3}, \frac{7}{3}, 0\right) ( 3 5 , 3 7 , 0 ) .
The line of intersection is:
\bm{r} = \begin`\{pmatrix}` 5/3 \\ 7/3 \\ 0 \end`\{pmatrix}` + t\begin`\{pmatrix}` 0 \\ 1 \\ 1 \end`\{pmatrix}`
Common Pitfalls
Confusing parametric and Cartesian forms. In Cartesian form, each component is equated to a
parameter expression. Forgetting to set the ratios equal is a common error.
Sign errors in the cross product. The cross product is anti-commutative:
a × b = − ( b × a ) \bm{a} \times \bm{b} = -(\bm{b} \times \bm{a}) a × b = − ( b × a ) . Always double-check the order of vectors.
Forgetting the absolute value in distance formulas. The distance from a point to a plane is
always non-negative: use ∣ p ⋅ n ^ − d ∣ |\bm{p} \cdot \hat{n} - d| ∣ p ⋅ n ^ − d ∣ .
Assuming a line intersects a plane. Always check that b ⋅ n ^ ≠ 0 \bm{b} \cdot \hat{n} \neq 0 b ⋅ n ^ = 0 before
solving. If b ⋅ n ^ = 0 \bm{b} \cdot \hat{n} = 0 b ⋅ n ^ = 0 and a ⋅ n ^ = d \bm{a} \cdot \hat{n} = d a ⋅ n ^ = d , the line lies in the
plane. If b ⋅ n ^ = 0 \bm{b} \cdot \hat{n} = 0 b ⋅ n ^ = 0 and a ⋅ n ^ ≠ d \bm{a} \cdot \hat{n} \neq d a ⋅ n ^ = d , the line is parallel to
the plane.
Angle between line and plane vs angle between line and normal. The angle α \alpha α between a
line and a plane satisfies sin α = ∣ b ⋅ n ^ ∣ ∣ b ∣ ∣ n ^ ∣ \sin\alpha = \frac{|\bm{b} \cdot \hat{n}|}{|\bm{b}||\hat{n}|} sin α = ∣ b ∣∣ n ^ ∣ ∣ b ⋅ n ^ ∣ . The
angle between the line and the normal satisfies
cos ϕ = ∣ b ⋅ n ^ ∣ ∣ b ∣ ∣ n ^ ∣ \cos\phi = \frac{|\bm{b} \cdot \hat{n}|}{|\bm{b}||\hat{n}|} cos ϕ = ∣ b ∣∣ n ^ ∣ ∣ b ⋅ n ^ ∣ . Note that
α + ϕ = 90 ∘ \alpha + \phi = 90^\circ α + ϕ = 9 0 ∘ .
Assuming skew lines intersect. Two lines in 3D are generally skew (neither parallel nor
intersecting). Always verify that a common solution exists for the parameters.
Problem Set
Question 1 Find the angle between the vectors a = ( 1 3 − 2 ) \bm{a} = \begin{pmatrix} 1 \\ 3 \\ -2 \end{pmatrix} a = 1 3 − 2 and
b = ( 4 − 1 1 ) \bm{b} = \begin{pmatrix} 4 \\ -1 \\ 1 \end{pmatrix} b = 4 − 1 1 .
Answer 1 a ⋅ b = ( 1 ) ( 4 ) + ( 3 ) ( − 1 ) + ( − 2 ) ( 1 ) = 4 − 3 − 2 = − 1 \bm{a} \cdot \bm{b} = (1)(4) + (3)(-1) + (-2)(1) = 4 - 3 - 2 = -1 a ⋅ b = ( 1 ) ( 4 ) + ( 3 ) ( − 1 ) + ( − 2 ) ( 1 ) = 4 − 3 − 2 = − 1 .
∣ a ∣ = 1 + 9 + 4 = 14 |\bm{a}| = \sqrt{1 + 9 + 4} = \sqrt{14} ∣ a ∣ = 1 + 9 + 4 = 14 , ∣ b ∣ = 16 + 1 + 1 = 18 = 3 2 |\bm{b}| = \sqrt{16 + 1 + 1} = \sqrt{18} = 3\sqrt{2} ∣ b ∣ = 16 + 1 + 1 = 18 = 3 2 .
cos θ = − 1 3 28 = − 1 3 × 5.292 = − 0.0630 \cos\theta = \frac{-1}{3\sqrt{28}} = \frac{-1}{3 \times 5.292} = -0.0630 cos θ = 3 28 − 1 = 3 × 5.292 − 1 = − 0.0630 .
θ = arccos ( − 0.0630 ) ≈ 93.6 ∘ \theta = \arccos(-0.0630) \approx 93.6^\circ θ = arccos ( − 0.0630 ) ≈ 93. 6 ∘ .
Question 2 Find the Cartesian equation of the plane containing the points P ( 2 , 1 , 0 ) P(2, 1, 0) P ( 2 , 1 , 0 ) , Q ( 1 , − 1 , 3 ) Q(1, -1, 3) Q ( 1 , − 1 , 3 ) , and
R ( 4 , 0 , − 1 ) R(4, 0, -1) R ( 4 , 0 , − 1 ) .
Answer 2 P Q → = ( − 1 − 2 3 ) \overrightarrow{PQ} = \begin{pmatrix} -1 \\ -2 \\ 3 \end{pmatrix} P Q = − 1 − 2 3 ,
P R → = ( 2 − 1 − 1 ) \overrightarrow{PR} = \begin{pmatrix} 2 \\ -1 \\ -1 \end{pmatrix} P R = 2 − 1 − 1 .
n ^ = P Q → × P R → = ( ( − 2 ) ( − 1 ) − ( 3 ) ( − 1 ) ( 3 ) ( 2 ) − ( − 1 ) ( − 1 ) ( − 1 ) ( − 1 ) − ( − 2 ) ( 2 ) ) = ( 5 5 5 ) \hat{n} = \overrightarrow{PQ} \times \overrightarrow{PR} = \begin{pmatrix} (-2)(-1) - (3)(-1) \\ (3)(2) - (-1)(-1) \\ (-1)(-1) - (-2)(2) \end{pmatrix} = \begin{pmatrix} 5 \\ 5 \\ 5 \end{pmatrix} n ^ = P Q × P R = ( − 2 ) ( − 1 ) − ( 3 ) ( − 1 ) ( 3 ) ( 2 ) − ( − 1 ) ( − 1 ) ( − 1 ) ( − 1 ) − ( − 2 ) ( 2 ) = 5 5 5 .
Simplified normal: n ^ = ( 1 1 1 ) \hat{n} = \begin{pmatrix} 1 \\ 1 \\ 1 \end{pmatrix} n ^ = 1 1 1 .
d = ( 1 ) ( 2 ) + ( 1 ) ( 1 ) + ( 1 ) ( 0 ) = 3 d = (1)(2) + (1)(1) + (1)(0) = 3 d = ( 1 ) ( 2 ) + ( 1 ) ( 1 ) + ( 1 ) ( 0 ) = 3 . Plane equation: x + y + z = 3 x + y + z = 3 x + y + z = 3 .
Question 3 Find the point of intersection of the line
r = ( 1 − 1 2 ) + t ( 3 2 − 1 ) \bm{r} = \begin{pmatrix} 1 \\ -1 \\ 2 \end{pmatrix} + t\begin{pmatrix} 3 \\ 2 \\ -1 \end{pmatrix} r = 1 − 1 2 + t 3 2 − 1
with the plane 2 x − y + 2 z = 8 2x - y + 2z = 8 2 x − y + 2 z = 8 .
Answer 3 Substitute into the plane equation: 2 ( 1 + 3 t ) − ( − 1 + 2 t ) + 2 ( 2 − t ) = 8 2(1 + 3t) - (-1 + 2t) + 2(2 - t) = 8 2 ( 1 + 3 t ) − ( − 1 + 2 t ) + 2 ( 2 − t ) = 8 .
2 + 6 t + 1 − 2 t + 4 − 2 t = 8 2 + 6t + 1 - 2t + 4 - 2t = 8 2 + 6 t + 1 − 2 t + 4 − 2 t = 8 . 7 + 2 t = 8 ⟹ t = 0.5 7 + 2t = 8 \implies t = 0.5 7 + 2 t = 8 ⟹ t = 0.5 . Point:
( 1 + 1.5 − 1 + 1 2 − 0.5 ) = ( 2.5 0 1.5 ) \begin{pmatrix} 1 + 1.5 \\ -1 + 1 \\ 2 - 0.5 \end{pmatrix} = \begin{pmatrix} 2.5 \\ 0 \\ 1.5 \end{pmatrix} 1 + 1.5 − 1 + 1 2 − 0.5 = 2.5 0 1.5 .
Intersection: ( 2.5 , 0 , 1.5 ) (2.5, 0, 1.5) ( 2.5 , 0 , 1.5 ) .
Question 4 Find the acute angle between the planes x + 2 y − 2 z = 1 x + 2y - 2z = 1 x + 2 y − 2 z = 1 and 3 x − y + z = 4 3x - y + z = 4 3 x − y + z = 4 .
Answer 4 n ^ 1 = ( 1 2 − 2 ) \hat{n}_1 = \begin{pmatrix} 1 \\ 2 \\ -2 \end{pmatrix} n ^ 1 = 1 2 − 2 ,
n ^ 2 = ( 3 − 1 1 ) \hat{n}_2 = \begin{pmatrix} 3 \\ -1 \\ 1 \end{pmatrix} n ^ 2 = 3 − 1 1 .
n ^ 1 ⋅ n ^ 2 = 3 − 2 − 2 = − 1 \hat{n}_1 \cdot \hat{n}_2 = 3 - 2 - 2 = -1 n ^ 1 ⋅ n ^ 2 = 3 − 2 − 2 = − 1 . ∣ n ^ 1 ∣ = 1 + 4 + 4 = 3 |\hat{n}_1| = \sqrt{1 + 4 + 4} = 3 ∣ n ^ 1 ∣ = 1 + 4 + 4 = 3 ,
∣ n ^ 2 ∣ = 9 + 1 + 1 = 11 |\hat{n}_2| = \sqrt{9 + 1 + 1} = \sqrt{11} ∣ n ^ 2 ∣ = 9 + 1 + 1 = 11 .
cos θ = ∣ − 1 ∣ 3 11 = 1 9.95 = 0.1005 \cos\theta = \frac{|-1|}{3\sqrt{11}} = \frac{1}{9.95} = 0.1005 cos θ = 3 11 ∣ − 1∣ = 9.95 1 = 0.1005 .
θ = arccos ( 0.1005 ) ≈ 84.2 ∘ \theta = \arccos(0.1005) \approx 84.2^\circ θ = arccos ( 0.1005 ) ≈ 84. 2 ∘ .
Question 5 Find the shortest distance from the point A ( 2 , − 3 , 1 ) A(2, -3, 1) A ( 2 , − 3 , 1 ) to the plane 2 x + y − 2 z = 6 2x + y - 2z = 6 2 x + y − 2 z = 6 .
Answer 5 n ^ = ( 2 1 − 2 ) \hat{n} = \begin{pmatrix} 2 \\ 1 \\ -2 \end{pmatrix} n ^ = 2 1 − 2 , ∣ n ^ ∣ = 4 + 1 + 4 = 3 |\hat{n}| = \sqrt{4 + 1 + 4} = 3 ∣ n ^ ∣ = 4 + 1 + 4 = 3 .
p ⋅ n ^ = ( 2 ) ( 2 ) + ( − 3 ) ( 1 ) + ( 1 ) ( − 2 ) = 4 − 3 − 2 = − 1 \bm{p} \cdot \hat{n} = (2)(2) + (-3)(1) + (1)(-2) = 4 - 3 - 2 = -1 p ⋅ n ^ = ( 2 ) ( 2 ) + ( − 3 ) ( 1 ) + ( 1 ) ( − 2 ) = 4 − 3 − 2 = − 1 .
D = ∣ − 1 − 6 ∣ 3 = 7 3 D = \frac{|-1 - 6|}{3} = \frac{7}{3} D = 3 ∣ − 1 − 6∣ = 3 7 .
Question 6 Find the shortest distance between the skew lines:
L 1 : r = ( 0 1 0 ) + s ( 1 0 1 ) L_1: \bm{r} = \begin{pmatrix} 0 \\ 1 \\ 0 \end{pmatrix} + s\begin{pmatrix} 1 \\ 0 \\ 1 \end{pmatrix} L 1 : r = 0 1 0 + s 1 0 1
and
L 2 : r = ( 0 0 1 ) + t ( 0 1 0 ) L_2: \bm{r} = \begin{pmatrix} 0 \\ 0 \\ 1 \end{pmatrix} + t\begin{pmatrix} 0 \\ 1 \\ 0 \end{pmatrix} L 2 : r = 0 0 1 + t 0 1 0 .
Answer 6 a 2 − a 1 = ( 0 − 1 1 ) \bm{a}_2 - \bm{a}_1 = \begin{pmatrix} 0 \\ -1 \\ 1 \end{pmatrix} a 2 − a 1 = 0 − 1 1 .
b 1 × b 2 = ( 1 0 1 ) × ( 0 1 0 ) = ( ( 0 ) ( 0 ) − ( 1 ) ( 1 ) ( 1 ) ( 0 ) − ( 1 ) ( 0 ) ( 1 ) ( 1 ) − ( 0 ) ( 0 ) ) = ( − 1 0 1 ) \bm{b}_1 \times \bm{b}_2 = \begin{pmatrix} 1 \\ 0 \\ 1 \end{pmatrix} \times \begin{pmatrix} 0 \\ 1 \\ 0 \end{pmatrix} = \begin{pmatrix} (0)(0) - (1)(1) \\ (1)(0) - (1)(0) \\ (1)(1) - (0)(0) \end{pmatrix} = \begin{pmatrix} -1 \\ 0 \\ 1 \end{pmatrix} b 1 × b 2 = 1 0 1 × 0 1 0 = ( 0 ) ( 0 ) − ( 1 ) ( 1 ) ( 1 ) ( 0 ) − ( 1 ) ( 0 ) ( 1 ) ( 1 ) − ( 0 ) ( 0 ) = − 1 0 1 .
∣ b 1 × b 2 ∣ = 1 + 0 + 1 = 2 |\bm{b}_1 \times \bm{b}_2| = \sqrt{1 + 0 + 1} = \sqrt{2} ∣ b 1 × b 2 ∣ = 1 + 0 + 1 = 2 .
( a 2 − a 1 ) ⋅ ( b 1 × b 2 ) = ( 0 ) ( − 1 ) + ( − 1 ) ( 0 ) + ( 1 ) ( 1 ) = 1 (\bm{a}_2 - \bm{a}_1) \cdot (\bm{b}_1 \times \bm{b}_2) = (0)(-1) + (-1)(0) + (1)(1) = 1 ( a 2 − a 1 ) ⋅ ( b 1 × b 2 ) = ( 0 ) ( − 1 ) + ( − 1 ) ( 0 ) + ( 1 ) ( 1 ) = 1 .
D = ∣ 1 ∣ 2 = 1 2 = 2 2 D = \frac{|1|}{\sqrt{2}} = \frac{1}{\sqrt{2}} = \frac{\sqrt{2}}{2} D = 2 ∣1∣ = 2 1 = 2 2 .
Question 7 Find the foot of the perpendicular from the point P ( 4 , 1 , 3 ) P(4, 1, 3) P ( 4 , 1 , 3 ) to the line
r = ( 1 2 − 1 ) + t ( 2 − 1 3 ) \bm{r} = \begin{pmatrix} 1 \\ 2 \\ -1 \end{pmatrix} + t\begin{pmatrix} 2 \\ -1 \\ 3 \end{pmatrix} r = 1 2 − 1 + t 2 − 1 3 .
Answer 7 a = ( 1 2 − 1 ) \bm{a} = \begin{pmatrix} 1 \\ 2 \\ -1 \end{pmatrix} a = 1 2 − 1 ,
b = ( 2 − 1 3 ) \bm{b} = \begin{pmatrix} 2 \\ -1 \\ 3 \end{pmatrix} b = 2 − 1 3 ,
p = ( 4 1 3 ) \bm{p} = \begin{pmatrix} 4 \\ 1 \\ 3 \end{pmatrix} p = 4 1 3 .
p − a = ( 3 − 1 4 ) \bm{p} - \bm{a} = \begin{pmatrix} 3 \\ -1 \\ 4 \end{pmatrix} p − a = 3 − 1 4 .
( p − a ) ⋅ b = 6 + 1 + 12 = 19 (\bm{p} - \bm{a}) \cdot \bm{b} = 6 + 1 + 12 = 19 ( p − a ) ⋅ b = 6 + 1 + 12 = 19 . ∣ b ∣ 2 = 4 + 1 + 9 = 14 |\bm{b}|^2 = 4 + 1 + 9 = 14 ∣ b ∣ 2 = 4 + 1 + 9 = 14 .
t = 19 14 t = \frac{19}{14} t = 14 19 . Foot:
F = ( 1 2 − 1 ) + 19 14 ( 2 − 1 3 ) = ( 1 + 19 / 7 2 − 19 / 14 − 1 + 57 / 14 ) = ( 26 / 7 9 / 14 43 / 14 ) \bm{F} = \begin{pmatrix} 1 \\ 2 \\ -1 \end{pmatrix} + \frac{19}{14}\begin{pmatrix} 2 \\ -1 \\ 3 \end{pmatrix} = \begin{pmatrix} 1 + 19/7 \\ 2 - 19/14 \\ -1 + 57/14 \end{pmatrix} = \begin{pmatrix} 26/7 \\ 9/14 \\ 43/14 \end{pmatrix} F = 1 2 − 1 + 14 19 2 − 1 3 = 1 + 19/7 2 − 19/14 − 1 + 57/14 = 26/7 9/14 43/14 .
Question 8 Show that the points A ( 1 , 2 , 3 ) A(1, 2, 3) A ( 1 , 2 , 3 ) , B ( 3 , 5 , 7 ) B(3, 5, 7) B ( 3 , 5 , 7 ) , and C ( 5 , 8 , 11 ) C(5, 8, 11) C ( 5 , 8 , 11 ) are collinear.
Answer 8 A B → = ( 2 3 4 ) \overrightarrow{AB} = \begin{pmatrix} 2 \\ 3 \\ 4 \end{pmatrix} A B = 2 3 4 ,
A C → = ( 4 6 8 ) \overrightarrow{AC} = \begin{pmatrix} 4 \\ 6 \\ 8 \end{pmatrix} A C = 4 6 8 .
A C → = 2 A B → \overrightarrow{AC} = 2\overrightarrow{AB} A C = 2 A B , so A C → = k A B → \overrightarrow{AC} = k\overrightarrow{AB} A C = k A B with
k = 2 k = 2 k = 2 . Since one vector is a scalar multiple of the other, the points are collinear.