Skip to main content

Lecture 4: Vector Algebra II

Download the original PDF →


4.1 Product (Multiplication of Two Vectors)​

There are two types of product of vectors.

Dot productCross product
- gives a scalar as the dot product of two vectors
- also known as scalar/inner product
- gives a vector as the dot product of two vectors
- also known as vector product

4.1.1 Dot Product​

Definition

The dot product a‾.b‾\underline{a}.\underline{b} (read "a‾\underline{a}" dot "b‾\underline{b}") is defined by:

a‾.b‾=∣a‾∣∣b‾∣cos⁡θ,0≤θ≤π\underline{a}.\underline{b} = |\underline{a}||\underline{b}|\cos\theta, \quad 0 \le \theta \le \pi

Where θ\theta is the angle between a‾\underline{a} and b‾\underline{b}; θ\theta is measured when the vectors have their initial point coinciding.

Proof:

Law of Cosines: ∣a‾−b‾∣2=∣a‾∣2+∣b‾∣2−2∣a‾∣∣b‾∣cos⁡θ|\underline{a} - \underline{b}|^2 = |\underline{a}|^2 + |\underline{b}|^2 - 2|\underline{a}||\underline{b}|\cos\theta ---- (a)

∣a‾−b‾∣2=(a‾−b‾).(a‾−b‾)=∣a‾∣2−2a‾.b‾+∣b‾∣2—- (b)\begin{aligned} |\underline{a} - \underline{b}|^2 &= (\underline{a} - \underline{b}).(\underline{a} - \underline{b}) \\ &= |\underline{a}|^2 - 2\underline{a}.\underline{b} + |\underline{b}|^2 \qquad \text{---- (b)} \end{aligned}

So when Eqn. (a) = Eqn. (b),

∣a‾∣2−2a‾.b‾+∣b‾∣2=∣a‾∣2+∣b‾∣2−2∣a‾∣∣b‾∣cos⁡θ−2a‾.b‾=−2∣a‾∣∣b‾∣cos⁡θa‾.b‾=∣a‾∣∣b‾∣cos⁡θ\begin{aligned} |\underline{a}|^2 - 2\underline{a}.\underline{b} + |\underline{b}|^2 &= |\underline{a}|^2 + |\underline{b}|^2 - 2|\underline{a}||\underline{b}|\cos\theta \\ -2\underline{a}.\underline{b} &= -2|\underline{a}||\underline{b}|\cos\theta \\ \underline{a}.\underline{b} &= |\underline{a}||\underline{b}|\cos\theta \end{aligned}

The triangle formed by the vectors a, b and a minus b, with the angle theta between them

The triangle formed by the vectors a, b and a minus b, with the angle theta between them

Properties of the dot product of vectors

Let a‾\underline{a} and b‾\underline{b} be two vectors and let α\alpha be a scalar. Then

i. a‾.b‾=b‾.a‾\underline{a}.\underline{b} = \underline{b}.\underline{a} (commutative law)

ii. a‾.(b‾+c‾)=a‾.b‾+a‾.c‾\underline{a}.(\underline{b} + \underline{c}) = \underline{a}.\underline{b} + \underline{a}.\underline{c} (distributive law)

iii. α(b‾.c‾)=(αb‾).c‾\alpha(\underline{b}.\underline{c}) = (\alpha\underline{b}).\underline{c} or b‾.(αc‾)\underline{b}.(\alpha\underline{c}) where α\alpha is a scalar

iv. The dot product of two vectors (i.e., a‾.b‾\underline{a}.\underline{b}) is a scalar.

Precaution: The dot product cannot function between scalar and vector (i.e., 3.b‾3.\underline{b} or a‾.b‾.c‾\underline{a}.\underline{b}.\underline{c} or a‾.b‾.c‾..e‾\underline{a}.\underline{b}.\underline{c}..\underline{e})

Orthogonal vector (Also known as perpendicular or normal vector)

We have dot product, a‾.b‾=∣a‾∣∣b‾∣cos⁡θ\underline{a}.\underline{b} = |\underline{a}||\underline{b}|\cos\theta, orthogonal vector has a‾.b‾=0\underline{a}.\underline{b} = 0

To let a‾.b‾=0\underline{a}.\underline{b} = 0, (i) a‾\underline{a} or b‾\underline{b} are zero vectors

(ii) a‾\underline{a} and b‾\underline{b} are orthogonal vectors (a‾⊥b‾\underline{a} \perp \underline{b}), because θ=90∘\theta = 90^\circ; cos⁡θ=0\cos\theta = 0

i.e., in the 3D system, i‾⊥j‾\underline{i} \perp \underline{j}, j‾⊥k‾\underline{j} \perp \underline{k}, i‾⊥k‾\underline{i} \perp \underline{k}, therefore the dot products between them are zero (i.e., i‾.j‾=0\underline{i}.\underline{j} = 0 ; j‾.k‾=0\underline{j}.\underline{k} = 0 and k‾.i‾=0\underline{k}.\underline{i} = 0)

Parallel Vector

We have dot product, a‾.b‾=∣a‾∣∣b‾∣cos⁡θ\underline{a}.\underline{b} = |\underline{a}||\underline{b}|\cos\theta, parallel vector has a‾.b‾=∣a‾∣∣b‾∣\underline{a}.\underline{b} = |\underline{a}||\underline{b}|

To let a‾.b‾=∣a‾∣∣b‾∣\underline{a}.\underline{b} = |\underline{a}||\underline{b}|, we need to have θ=0∘\theta = 0^\circ; cos⁡θ=1\cos\theta = 1

(i) Dot product of two similar vectors a‾.a‾=∣a‾∣2\underline{a}.\underline{a} = |\underline{a}|^2

(ii) Dot product of unit vector a^‾.b^‾=∣a^‾∣2\underline{\hat{a}}.\underline{\hat{b}} = |\underline{\hat{a}}|^2 or ∣b^‾∣2=1|\underline{\hat{b}}|^2 = 1

i.e., in the 3D system, i‾,j‾,k‾\underline{i}, \underline{j}, \underline{k} are unit vectors, therefore the dot products between them are one (i.e., i‾.i‾=1\underline{i}.\underline{i} = 1 ; j‾.j‾=1\underline{j}.\underline{j} = 1 and k‾.k‾=1\underline{k}.\underline{k} = 1)

Dot product in coordinates

Let a‾=a1i‾+a2j‾+a3k‾\underline{a} = a_1\underline{i} + a_2\underline{j} + a_3\underline{k} and b‾=b1i‾+b2j‾+b3k‾\underline{b} = b_1\underline{i} + b_2\underline{j} + b_3\underline{k}

Then, a‾.b‾=a1b1+a2b2+a3b3\underline{a}.\underline{b} = a_1b_1 + a_2b_2 + a_3b_3

Proof:

a‾.b‾=(a1i‾+a2j‾+a3k‾).(b1i‾+b2j‾+b3k‾)=a1b1(i‾.i‾)+a1b2(i‾.j‾)+a1b3(i‾.k‾)+a2b1(j‾.i‾)+a2b2(j‾.j‾)+a2b3(j‾.k‾)+a3b1(k‾.i‾)+a3b2(k‾.j‾)+a3b3(k‾.k‾)=a1b1+a2b2+a3b3\begin{aligned} \underline{a}.\underline{b} &= (a_1\underline{i} + a_2\underline{j} + a_3\underline{k}).(b_1\underline{i} + b_2\underline{j} + b_3\underline{k}) \\ &= a_1b_1(\underline{i}.\underline{i}) + a_1b_2(\underline{i}.\underline{j}) + a_1b_3(\underline{i}.\underline{k}) + \\ &\quad a_2b_1(\underline{j}.\underline{i}) + a_2b_2(\underline{j}.\underline{j}) + a_2b_3(\underline{j}.\underline{k}) + \\ &\quad a_3b_1(\underline{k}.\underline{i}) + a_3b_2(\underline{k}.\underline{j}) + a_3b_3(\underline{k}.\underline{k}) \\ &= a_1b_1 + a_2b_2 + a_3b_3 \end{aligned}

Exercise

(i) Let a‾=a1i‾+a2j‾+a3k‾\underline{a} = a_1\underline{i} + a_2\underline{j} + a_3\underline{k} and b‾=b1i‾+b2j‾+b3k‾\underline{b} = b_1\underline{i} + b_2\underline{j} + b_3\underline{k}, what is the results for the following dot product?

(a) a‾.i‾+b‾.j‾+a‾.b‾+a1b‾+b1a‾\underline{a}.\underline{i} + \underline{b}.\underline{j} + \underline{a}.\underline{b} + a_1\underline{b} + b_1\underline{a}

(b) a1.i‾+b2.j‾+a3.k‾a_1.\underline{i} + b_2.\underline{j} + a_3.\underline{k}

(c) a‾.i‾.a1+b‾.j‾.b2+a‾.b‾.i‾.j‾+a1b‾.k‾+b1a‾.b‾.k‾.k‾\underline{a}.\underline{i}.a_1 + \underline{b}.\underline{j}.b_2 + \underline{a}.\underline{b}.\underline{i}.\underline{j} + a_1\underline{b}.\underline{k} + b_1\underline{a}.\underline{b}.\underline{k}.\underline{k}

(ii) Let a‾=⟨1,2,3⟩\underline{a} = \langle 1,2,3\rangle and b‾=⟨2,0,4⟩\underline{b} = \langle 2,0,4\rangle. Find

(a) a‾.b‾\underline{a}.\underline{b}

(b) the angle between a‾\underline{a} and b‾\underline{b}

(iii) Let a‾=⟨2,−1⟩\underline{a} = \langle 2,-1\rangle and b‾=⟨−1/2,1/4⟩\underline{b} = \langle -1/2,1/4\rangle. Determine if the following vectors are parallel, orthogonal or neither.

Projection of vector

Let a‾\underline{a} and b‾\underline{b} be two nonzero vectors and let a^‾\underline{\hat{a}} be the unit vector in the direction of a‾\underline{a}.

Then the projection of b‾\underline{b} onto a‾\underline{a} is defined as b‾.a^‾=b‾.a‾∣a‾∣\underline{b}.\underline{\hat{a}} = \underline{b}.\dfrac{\underline{a}}{|\underline{a}|}

The component of b‾\underline{b} in the direction of a‾\underline{a} is defined as (b‾.a^‾)a^‾(\underline{b}.\underline{\hat{a}})\underline{\hat{a}}

Geometric Interpretation

Let the angle between the vectors b‾\underline{b} and i‾\underline{i} be θ\theta

The projection of b onto i in a plane

The projection of b onto i

Then, the projection of b‾\underline{b} onto i‾\underline{i} =b‾.i^‾= \underline{b}.\underline{\hat{i}}

=∣b‾∣∣i^‾∣cos⁡θ= |\underline{b}||\underline{\hat{i}}|\cos\theta

=∣b‾∣cos⁡θ∵∣i^‾∣=1= |\underline{b}|\cos\theta \qquad \because |\underline{\hat{i}}| = 1

=ON= ON = the length of the orthogonal projection of b‾\underline{b} on a straight line parallel to i^‾\underline{\hat{i}}

The component of b‾\underline{b} in the direction of i‾\underline{i}, (b‾.i^‾)i^‾(\underline{b}.\underline{\hat{i}})\underline{\hat{i}}

=(∣b‾∣cos⁡θ)i‾∵i^‾=i‾= (|\underline{b}|\cos\theta)\underline{i} \qquad \because \underline{\hat{i}} = \underline{i} (both also unit vector)

=ON→= \overrightarrow{ON}

Note: ON→\overrightarrow{ON} is parallel to i‾\underline{i}. The projection of b‾\underline{b} onto i‾\underline{i} takes the negative sign if ON→\overrightarrow{ON} is in the opposite direction of i‾\underline{i} and vice versa.

The projection of b onto a

The projection of b onto a

The projection of b onto a when the projection points the other way

The projection of b onto a when the projection points the other way

Theorem

If a‾\underline{a} is a given vector, then any vector b‾\underline{b} (i.e., b‾=b‾1+b‾2\underline{b} = \underline{b}_1 + \underline{b}_2) can be expressed as the sum of a vector parallel to a‾\underline{a} (i.e., b‾1∥a‾\underline{b}_1 \parallel \underline{a}) and a vector perpendicular to a‾\underline{a} (i.e., b‾2⊥a‾\underline{b}_2 \perp \underline{a}).

b resolved into a component parallel to a and a component perpendicular to a

b resolved into a component parallel to a and a component perpendicular to a

The triangle OMN used in the proof

The triangle OMN used in the proof

Proof

From the diagram, OM→=ON→+NM→\overrightarrow{OM} = \overrightarrow{ON} + \overrightarrow{NM} ------------------ (a)

Previously we got ON→=(b‾.i^‾)i^‾\overrightarrow{ON} = (\underline{b}.\underline{\hat{i}})\underline{\hat{i}} for projection of vector b‾\underline{b} onto vector i‾\underline{i}

In this case, ON→=(b‾.a^‾)a^‾\overrightarrow{ON} = (\underline{b}.\underline{\hat{a}})\underline{\hat{a}} for projection of vector b‾\underline{b} onto vector a‾\underline{a}

ON→=(b‾.a^‾)a^‾=(b‾.a‾∣a‾∣)a‾∣a‾∣=(b‾.a‾∣a‾∣2)a‾=(b‾.a‾a‾.a‾)a‾;OM→=b‾;—————— (b)\overrightarrow{ON} = (\underline{b}.\underline{\hat{a}})\underline{\hat{a}} = \left(\frac{\underline{b}.\underline{a}}{|\underline{a}|}\right)\frac{\underline{a}}{|\underline{a}|} = \left(\frac{\underline{b}.\underline{a}}{|\underline{a}|^2}\right)\underline{a} = \left(\frac{\underline{b}.\underline{a}}{\underline{a}.\underline{a}}\right)\underline{a}; \qquad \overrightarrow{OM} = \underline{b}; \qquad \text{------------------ (b)}

Thus, NM→=OM→−ON→=b‾−(b‾.a‾a‾.a‾)a‾\overrightarrow{NM} = \overrightarrow{OM} - \overrightarrow{ON} = \underline{b} - \left(\dfrac{\underline{b}.\underline{a}}{\underline{a}.\underline{a}}\right)\underline{a} ------------------ (c)

Subs. Eqns. (b) and (c) into Eqn. (a):

OM→=ON→+MN→\overrightarrow{OM} = \overrightarrow{ON} + \overrightarrow{MN}

b‾=(b‾.a‾a‾.a‾)a‾⏟b‾1∥a‾+{b‾−(b‾.a‾a‾.a‾)a‾}⏟b‾2⊥a‾\underline{b} = \underbrace{\left(\frac{\underline{b}.\underline{a}}{\underline{a}.\underline{a}}\right)\underline{a}}_{\underline{b}_1 \parallel \underline{a}} + \underbrace{\left\{\underline{b} - \left(\frac{\underline{b}.\underline{a}}{\underline{a}.\underline{a}}\right)\underline{a}\right\}}_{\underline{b}_2 \perp \underline{a}}

Exercise

Let a‾=3i‾−j‾\underline{a} = 3\underline{i} - \underline{j} and b‾=2i‾+j‾−3k‾\underline{b} = 2\underline{i} + \underline{j} - 3\underline{k}

(a) Find the projection of b‾\underline{b} onto a‾\underline{a}

(b) Find the projection of a‾\underline{a} onto b‾\underline{b}

(c) Express the b‾\underline{b} as the sum of a vector parallel to a‾\underline{a} and a vector perpendicular to a‾\underline{a} for case (a)

(d) Express the a‾\underline{a} as the sum of a vector parallel to b‾\underline{b} and a vector perpendicular to b‾\underline{b} for case (b)

4.1.2 Applications of dot Product in Geometry​

We can use dot product to find the line equation and extend it to plane equation. Besides, we will use it to find distance between point-line, point-plane, parallel-lines, parallel-planes. Furthermore, we can use it to find angles between intersecting lines and intersection planes.

(a) The equation of line (2D) and plane (3D) perpendicular to a given vector​

(i) Equation of line​

Let LL be a line passing through to the point P0(x0,y0)P_0(x_0,y_0) and perpendicular to the vector n‾=ai‾+bj‾\underline{n} = a\underline{i} + b\underline{j}. Let P(x,y)P(x,y) be any point on the line LL.

The line L through P0 with normal vector n

The line L through P0 with normal vector n

Then the vector P0P→\overrightarrow{P_0P} is along the line LL and hence P0P→⊥n‾\overrightarrow{P_0P} \perp \underline{n}

So, (P0P→).n‾=0>>(OP→−OP0→).n‾=0or(p‾−p‾0).n‾=0>>{(xi‾+yj‾)−(x0i‾+y0j‾)}.(ai‾+bj‾)=0>>a(x−x0)+b(y−y0)=0>>ax+by=ax0+by0>>ax+by=c, where c=ax0+by0 is a scalar.\begin{aligned} \text{So, } (\overrightarrow{P_0P}).\underline{n} &= 0 \\ >> (\overrightarrow{OP} - \overrightarrow{OP_0}).\underline{n} &= 0 \quad \text{or} \quad (\underline{p} - \underline{p}_0).\underline{n} = 0 \\ >> \{(x\underline{i} + y\underline{j}) - (x_0\underline{i} + y_0\underline{j})\}.(a\underline{i} + b\underline{j}) &= 0 \\ >> a(x - x_0) + b(y - y_0) &= 0 \\ >> ax + by &= ax_0 + by_0 \\ >> ax + by &= c, \text{ where } c = ax_0 + by_0 \text{ is a scalar.} \end{aligned}

This is known as Cartesian equation of the line L (for 2D space use only).

Note: The components of n‾\underline{n} are the coefficients of the line equation, aa and bb. From the Cartesian equation, we can know the information of the vector normal to the line, n‾\underline{n}.

Additional remarks: Note that the Cartesian equation of line L is restricted for plotting 2D line only. We need to use Vector or Parametric Eqn. of line L learned in Section 4.1.3 for both 2D and 3D line plotting purpose.

(i) Problems of 2D line in Cartesian form(ii) Problems of 3D plane in Cartesian form
1. Find the Cartesian equation of a line passing through a given point and normal to a given vector.1. Find the Cartesian equation of a plane passing through a given point and normal to a given vector.
2. Find the distance from a point to a line.2. Find the distance from a point to a plane.
3. Find the distance between two parallel lines.3. Find the distance between two parallel planes.
4. Find the angle between two intersecting lines.4. Find the angle between two intersecting planes.
(ii) Equation of Plane​

Let SS be a plane passing through to the point P0(x0,y0,z0)P_0(x_0,y_0,z_0) and normal to the vector n‾=ai‾+bj‾+ck‾\underline{n} = a\underline{i} + b\underline{j} + c\underline{k}. Let P(x,y,z)P(x,y,z) be any point in the plane SS.

Then the vector P0P→\overrightarrow{P_0P} is in the plane SS and hence P0P→⊥n‾\overrightarrow{P_0P} \perp \underline{n}.

The plane S through P0 with normal vector n

The plane S through P0 with normal vector n
So, (P0P→).n‾=0>>(OP→−OP0→).n‾=0or(p‾−p‾0).n‾=0>>{(xi‾+yj‾+zk‾)−(x0i‾+y0j‾+z0k‾)}.(ai‾+bj‾+ck‾)=0>>a(x−x0)+b(y−y0)+c(z−z0)=0>>ax+by+cz=ax0+by0+cz0>>ax+by+cz=d, where d=ax0+by0+cz0 is a scalar.\begin{aligned} \text{So, } (\overrightarrow{P_0P}).\underline{n} &= 0 \\ >> (\overrightarrow{OP} - \overrightarrow{OP_0}).\underline{n} &= 0 \quad \text{or} \quad (\underline{p} - \underline{p}_0).\underline{n} = 0 \\ >> \{(x\underline{i} + y\underline{j} + z\underline{k}) - (x_0\underline{i} + y_0\underline{j} + z_0\underline{k})\}.(a\underline{i} + b\underline{j} + c\underline{k}) &= 0 \\ >> a(x - x_0) + b(y - y_0) + c(z - z_0) &= 0 \\ >> ax + by + cz &= ax_0 + by_0 + cz_0 \\ >> ax + by + cz &= d, \text{ where } d = ax_0 + by_0 + cz_0 \text{ is a scalar.} \end{aligned}

This is known as Cartesian/plane equation of the plane SS.

Note: the components of n‾\underline{n} are the coefficients of the plane equation, aa, bb and cc. From the Cartesian/plane equation, we can know the information of the vector normal to the line, n‾\underline{n}.

Precaution: You might think single equation such as ax + by + cz = d would be the general equation of a line in 3 dimensions. However, such an equation defines a plane in R3\mathbf{R}^3, which geometrically is a flat surface which carries on forever in the space.

Orthogonal vectors in 2D spaceOrthogonal vectors in 3D space
In 2 dimensions the orthogonal vector is unique and forms a unique 2D line.In 3 dimensions, a vector has infinitely many orthogonal vectors, which sweep out around it forming a plane.

Think: So how is a line defined in 3 dimensions? You will learn this after knowing the cross product.

Exercise:

(i) Find the Cartesian equation of the line LL in the plane passing through the point A(2,3)A(2,3) and perpendicular to the vector n‾=i‾−3j‾\underline{n} = \underline{i} - 3\underline{j}

(ii) Find the Cartesian equation of the plane SS passing through the point A(1,1,−1)A(1,1,-1) and normal to the vector n‾=−2i‾+2j‾−5k‾\underline{n} = -2\underline{i} + 2\underline{j} - 5\underline{k}

(b) The Distance from a Point to a Line or to a Plane​

(i) Distance of point-to-line​

Let LL be a line with the Cartesian equation ax+by=cax + by = c and let PP be a point on the line LL. From the Cartesian equation of the line LL, the vector n‾=ai‾+bj‾\underline{n} = a\underline{i} + b\underline{j} is perpendicular to LL.

Distance from the point Q to the line L

Distance from the point Q to the line L

Previously you learnt the projection of b‾\underline{b} onto a‾\underline{a} is defined as b‾.a^‾=b‾.a‾∣a‾∣\underline{b}.\underline{\hat{a}} = \underline{b}.\dfrac{\underline{a}}{|\underline{a}|}

Thus, distance of point QQ to the line LL = projection of the vector PQ→\overrightarrow{PQ} onto the vector n‾\underline{n}

=∣PQ→.n^‾∣=∣PQ→.n‾∣n‾∣∣= \left|\overrightarrow{PQ}.\underline{\hat{n}}\right| = \left|\overrightarrow{PQ}.\frac{\underline{n}}{|\underline{n}|}\right|

(ii) Distance of point-to-plane​

Let SS be a plane with the equation ax+by+cz=dax + by + cz = d and let PP be a point on the plane SS. From the Cartesian equation of the plane SS, the vector n‾=ai‾+bj‾+ck‾\underline{n} = a\underline{i} + b\underline{j} + c\underline{k} is normal to SS.

Then, the distance from the point QQ to the plane SS is the projection of the vector PQ→\overrightarrow{PQ} onto the vector n‾\underline{n}.

Distance point QQ to the plane SS

=∣PQ→.n^‾∣=∣PQ→.n‾∣n‾∣∣= \left|\overrightarrow{PQ}.\underline{\hat{n}}\right| = \left|\overrightarrow{PQ}.\frac{\underline{n}}{|\underline{n}|}\right|

Distance from the point Q to the plane S

Distance from the point Q to the plane S

Exercise:

(i) Find the distance from the point Q(4,4)Q(4,4) to the line L:x+3y=6L: x + 3y = 6

(ii) Find the distance from the point Q(3,2,−1)Q(3,2,-1) to the plane S:−2x+3y−z=2S: -2x + 3y - z = 2

(c) Distance between two parallel lines or two parallel planes​

(i) Distance of two-parallel-lines​

The projection method is also used to find the distance between two parallel lines L1L_1 and L2L_2. Let us choose one point PP from the line L1L_1 and another point QQ from the line L2L_2.

For two parallel lines, the perpendicular vectors, n‾1\underline{n}_1 and n‾2\underline{n}_2 for lines L1L_1 and L2L_2 are equal: n‾1=n‾2=n‾\underline{n}_1 = \underline{n}_2 = \underline{n}.

Distance between parallel lines L1L_1 and L2L_2 =∣PQ→.n‾∣n‾∣∣= \left|\overrightarrow{PQ}.\dfrac{\underline{n}}{|\underline{n}|}\right|

Distance between two parallel lines

Distance between two parallel lines
(ii) Distance of two-parallel-planes​

The projection method is also used to find the distance between two parallel planes S1S_1 and S2S_2. Let us choose one point PP from the plane S1S_1 and another point QQ from the plane S2S_2.

For two parallel planes, the perpendicular vectors, n‾1\underline{n}_1 and n‾2\underline{n}_2 for planes S1S_1 and S2S_2 are equal: n‾1=n‾2=n‾\underline{n}_1 = \underline{n}_2 = \underline{n}.

Distance between parallel planes S1S_1 and S2S_2 =∣PQ→.n‾∣n‾∣∣= \left|\overrightarrow{PQ}.\dfrac{\underline{n}}{|\underline{n}|}\right|

Distance between two parallel planes

Distance between two parallel planes

Exercise:

(i) Find the distance between line L1:x+3y=−2L_1: x + 3y = -2 to the line L2:x+3y=6L_2: x + 3y = 6

(ii) Find the distance between plane S1:−2x+3y−z=2S_1: -2x + 3y - z = 2 to the plane S2:2x−3y+z=−15S_2: 2x - 3y + z = -15

(iii) Find the constant distance between plane S1:−2x−3y−z=2S_1: -2x - 3y - z = 2 to the plane S2:−2x+3y−z=15S_2: -2x + 3y - z = 15 if exist/possible.

(d) Find the angle between two intersecting lines or two intersecting planes​

(i) Angle of two-intersecting-lines​

Let L1L_1 and L2L_2 be two lines with the perpendicular vectors, n‾1\underline{n}_1 and n‾2\underline{n}_2, respectively. If L1L_1 and L2L_2 intersect, then the angle between L1L_1 and L2L_2 is equal to angle between n‾1\underline{n}_1 and n‾2\underline{n}_2.

Therefore, n‾1.n‾2=∣n‾1∣∣n‾2∣cos⁡θ\underline{n}_1.\underline{n}_2 = |\underline{n}_1||\underline{n}_2|\cos\theta

θ=cos⁡−1n‾1.n‾2∣n‾1∣∣n‾2∣\theta = \cos^{-1}\frac{\underline{n}_1.\underline{n}_2}{|\underline{n}_1||\underline{n}_2|}

Angle between two intersecting lines

Angle between two intersecting lines
(ii) Angle of two-intersecting-planes​

Let S1S_1 and S2S_2 be two planes with the perpendicular vectors, n‾1\underline{n}_1 and n‾2\underline{n}_2, respectively. If S1S_1 and S2S_2 intersect, then the angle between S1S_1 and S2S_2 is equal to angle between n‾1\underline{n}_1 and n‾2\underline{n}_2.

Therefore, n‾1.n‾2=∣n‾1∣∣n‾2∣cos⁡θ\underline{n}_1.\underline{n}_2 = |\underline{n}_1||\underline{n}_2|\cos\theta

θ=cos⁡−1n‾1.n‾2∣n‾1∣∣n‾2∣\theta = \cos^{-1}\frac{\underline{n}_1.\underline{n}_2}{|\underline{n}_1||\underline{n}_2|}

Angle between two intersecting planes

Angle between two intersecting planes

Exercise:

(i) Find the angle between the lines L1:3x−6y=15L_1: 3x - 6y = 15 and L2:2x+y=5L_2: 2x + y = 5

(ii) Find the angle between the planes S1:3x−6y−2z=15S_1: 3x - 6y - 2z = 15 and S2:2x+y−2z=5S_2: 2x + y - 2z = 5

4.1.3 Application in geometry: Equations of lines in 2D and 3D spaces​

Problems in space (in 2D and 3D space)

  1. Find the equation of a line passing through a given point and parallel to a given vector (all in 2D & 3D space).
  2. Determine whether two lines intersect in three dimension space and find the point of intersection if they intersect.

(i) Definition (Equation of a line in 2D or 3D space)​

Let LL be a straight line passing through the point AA and is parallel to a given vector v‾\underline{v} (i.e., AR→∥v‾\overrightarrow{AR} \parallel \underline{v}). Suppose that R(x,y)R(x,y) or R(x,y,z)R(x,y,z) is any point on LL. Find the vector equation, parametric equation and Cartesian equation of line LL.

The line L through A parallel to the direction vector v

The line L through A parallel to the direction vector v
(a) Vector equation of line​

(i) Let (OA→)=a‾(\overrightarrow{OA}) = \underline{a} and (OR→)=r‾(\overrightarrow{OR}) = \underline{r} be the position vectors of AA and RR respectively.

(ii) Since (AR→∥v‾)(\overrightarrow{AR} \parallel \underline{v}), then (AR→)=tv‾(\overrightarrow{AR}) = t\underline{v}, where t∈Rt \in \mathbb{R}.

Note: as tt changes, we have all the points on the line LL.

(iii) Now following head-to-tail method, OR→=OA→+AR→\overrightarrow{OR} = \overrightarrow{OA} + \overrightarrow{AR}

Then, we get r‾=a‾+tv‾\underline{r} = \underline{a} + t\underline{v} ----------------------------------------------------------------- (1)

This is called the vector equation of the line LL.

The vector v‾\underline{v} is called a direction vector of the line LL.

Note: The Eqn. (1) can be applied for problem in 2D or 3D space. Since the computation and derivation for 2D and 3D space are similar. We will give the example in 3D one for the demonstration.

(b) Parametric equation of a line in 2D and 3D space​

Now, let position vector of an arbitrary point on line LL, r‾=xi‾+yj‾+zk‾\underline{r} = x\underline{i} + y\underline{j} + z\underline{k}, position vector of a point passing through line LL, a‾=a1i‾+a2j‾+a3k‾\underline{a} = a_1\underline{i} + a_2\underline{j} + a_3\underline{k} and direction vector parallel to line LL, v‾=v1i‾+v2j‾+v3k‾\underline{v} = v_1\underline{i} + v_2\underline{j} + v_3\underline{k}

From Eqn. (1) we have

r‾=a‾+tv‾>>⟨x,y,z⟩=⟨a1,a2,a3⟩+t⟨v1,v2,v3⟩\underline{r} = \underline{a} + t\underline{v} \quad >> \quad \langle x,y,z\rangle = \langle a_1,a_2,a_3\rangle + t\langle v_1,v_2,v_3\rangle

>>(xyz)Point at time t=(a1a2a3)Initial Point+t(v1v2v3)Direction Vector(Matrix form of vector equation of line)>> \quad \underset{\text{Point at time } t}{\begin{pmatrix} x \\ y \\ z \end{pmatrix}} = \underset{\text{Initial Point}}{\begin{pmatrix} a_1 \\ a_2 \\ a_3 \end{pmatrix}} + t\underset{\text{Direction Vector}}{\begin{pmatrix} v_1 \\ v_2 \\ v_3 \end{pmatrix}} \qquad \text{(Matrix form of vector equation of line)}

By comparing the components of i‾\underline{i}, j‾\underline{j}, and k‾\underline{k}, we have

r‾=⟨x,y,z⟩\underline{r} = \langle x,y,z\rangle

x=a1+tv1y=a2+tv2z=a3+tv3},t∈R... (2)\left. \begin{aligned} x &= a_1 + tv_1 \\ y &= a_2 + tv_2 \\ z &= a_3 + tv_3 \end{aligned} \right\}, \quad t \in \mathbb{R} \qquad \text{... (2)}

This system of equations (2) is called the parametric equations of the line LL.

The variable/scalar tt is called the parameter of the system of equations.

Note: The Eqn. (2) can be applied for problem in 2D or 3D space in the same manner.

(c) Cartesian equation of a line in 2D and 3D space​

By equal the parameter tt in the Eq. (2), we have

t=x−a1v1=y−a2v2=z−a3v3... (3)t = \frac{x - a_1}{v_1} = \frac{y - a_2}{v_2} = \frac{z - a_3}{v_3} \qquad \text{... (3)}

The Eqn. (3) is called the Cartesian equation or symmetric form of the line LL.

Precaution Zero denominator leads to zero numerator as shown in Eqn. (3).

Proof: From Eqn. (2), if v1=0v_1 = 0, then x−a1=0x - a_1 = 0. This also apply to v2v_2 and v3v_3.

(ii) Intersection between a line to a plane or between two lines​

(a) Intersection of a line to a plane​

If we know the information of a plane and the line equation are given either in format of Vector Eqn./Parametric Eqn./Cartesian Eqn., for example:

Information of a plane

(i) The line intersects at a specific plane, i.e., yz-plane at coordinate (x,y,z)=(0,y,z)(x,y,z) = (0,y,z)

A line intersecting the yz-plane

A line intersecting the yz-plane

Let say Parametric Eqn. have been derived from a given information of point AA passing through the line, and the vector direction of the line LL, v‾\underline{v} are given as well. Then, we can use Parametric Eqn.

x=a1+tv1y=a2+tv2z=a3+tv3},t∈Rto solve for t,y and z.\left. \begin{aligned} x &= a_1 + tv_1 \\ y &= a_2 + tv_2 \\ z &= a_3 + tv_3 \end{aligned} \right\}, \quad t \in \mathbb{R} \qquad \text{to solve for } t, y \text{ and } z.

Then the point of intersection at yz-plane, (0,y,z)(0,y,z) can be obtained.

(ii) The plane of eqn. of the intersection plane is given, i.e., ax+by+cz=kax + by + cz = k

The step is similar to procedure above. Given the aa, bb, cc and kk, substitute the Parametric Eqn. into the eqn. of intersection to solve for tt. Then, you can get the point of intersection (x,y,z)(x,y,z) by substitute tt into Parametric Eqn.

Precaution: There are three possibilities of the intersection: (i) line intersects the plane in a point; (ii) line is parallel to the plane (no point of intersection); (iii) line is in the plane.

Note: You will know how to derive the equation of plane after you learn about product of vectors.

(b) Intersection between two lines​

Let us have line L1:r‾1=⟨x1,y1,z1⟩=⟨a1,a2,a3⟩+t⟨v1,v2,v3⟩L_1: \underline{r}_1 = \langle x_1,y_1,z_1\rangle = \langle a_1,a_2,a_3\rangle + t\langle v_1,v_2,v_3\rangle and line L2:r‾2=⟨x2,y2,z2⟩=⟨b1,b2,b3⟩+s⟨u1,u2,u3⟩L_2: \underline{r}_2 = \langle x_2,y_2,z_2\rangle = \langle b_1,b_2,b_3\rangle + s\langle u_1,u_2,u_3\rangle where tt and ss are the parameters, a‾=⟨a1,a2,a3⟩\underline{a} = \langle a_1,a_2,a_3\rangle, b‾=⟨b1,b2,b3⟩\underline{b} = \langle b_1,b_2,b_3\rangle are the position vectors specified at line L1L_1 and L2L_2 respectively. v‾=⟨v1,v2,v3⟩\underline{v} = \langle v_1,v_2,v_3\rangle, u‾=⟨u1,u2,u3⟩\underline{u} = \langle u_1,u_2,u_3\rangle are the vectors parallel to line L1L_1 and L2L_2.

If the line L1L_1 and line L2L_2 intersect each other, then:

r‾1=r‾2\underline{r}_1 = \underline{r}_2

x1=x2>>a1+tv1=b1+su1—————— (a)y1=y2>>a2+tv2=b2+su2—————— (b)z1=z2>>a3+tv3=b3+su3—————— (c)\begin{aligned} x_1 = x_2 \quad >> \quad a_1 + tv_1 &= b_1 + su_1 \qquad \text{------------------ (a)} \\ y_1 = y_2 \quad >> \quad a_2 + tv_2 &= b_2 + su_2 \qquad \text{------------------ (b)} \\ z_1 = z_2 \quad >> \quad a_3 + tv_3 &= b_3 + su_3 \qquad \text{------------------ (c)} \end{aligned}

This means that all the three Eqns. (a), (b) and (c) must be satisfied if the two lines L1L_1 and L2L_2 are intersecting with each other. In the other words, if the parameter tt obtained from Eqn. (a) and parameter ss obtained from Eqn. (b) will not satisfy Eqn.(c) if there is no point of intersection.

It intersection exist, the point of intersection is as following:

(x1=x2,y1=y2,z1=z2)(x_1 = x_2, y_1 = y_2, z_1 = z_2) or ((a1+tv1),(a2+tv2),(a3+tv3))((a_1 + tv_1), (a_2 + tv_2), (a_3 + tv_3)) or (b1+su1,b2+su2,b3+su3)(b_1 + su_1, b_2 + su_2, b_3 + su_3).

(iii) Linear combination and linear dependence​

(a) Linear combination​

A linear combination of two or more vectors is the vector obtained by adding two or more vectors (with different directions) which are multiplied by scalar values.

A vector v as a linear combination of a1, a2, a3 up to an

A vector v as a linear combination of a1, a2, a3 up to an

v‾=α1a‾1+α2a‾2+α3a‾3+...+αna‾n\underline{v} = \alpha_1\underline{a}_1 + \alpha_2\underline{a}_2 + \alpha_3\underline{a}_3 + ... + \alpha_n\underline{a}_n

(b) Linear dependent​

Vectors are linearly dependent if there is a linear combination of them that equals the zero vector, without the coefficients of the linear combination being zero.

α1a‾1+α2a‾2+α3a‾3+...+αna‾n=0‾,where scalar α1,α2,α3,...,αn≠0\alpha_1\underline{a}_1 + \alpha_2\underline{a}_2 + \alpha_3\underline{a}_3 + ... + \alpha_n\underline{a}_n = \underline{0}, \quad \text{where scalar } \alpha_1, \alpha_2, \alpha_3, ..., \alpha_n \neq 0

Note: The vectors are linearly dependent if the determinant of the matrix is zero, meaning that the rank of the matrix is less than its full rank.

(Hint: In a matrix system, zero determinant helps to indicate an infinite or no solution system)

∣a‾1+a‾2+a‾3+...+a‾n∣=0∣a‾1+a‾2+a‾3+...+a‾n∣≠0|\underline{a}_1 + \underline{a}_2 + \underline{a}_3 + ... + \underline{a}_n| = 0 \qquad |\underline{a}_1 + \underline{a}_2 + \underline{a}_3 + ... + \underline{a}_n| \neq 0

(c) Linear independent​

Vectors are linearly independent if none of them can be expressed as a combination of others

α1a‾1+α2a‾2+α3a‾3+...+αna‾n=0‾,where scalar α1,α2,α3,...,αn=0\alpha_1\underline{a}_1 + \alpha_2\underline{a}_2 + \alpha_3\underline{a}_3 + ... + \alpha_n\underline{a}_n = \underline{0}, \quad \text{where scalar } \alpha_1, \alpha_2, \alpha_3, ..., \alpha_n = 0

Note: The vectors are linearly independent if the determinant of the matrix is non-zero, meaning that the rank of the matrix is equal to its full rank.

(Hint: In a matrix system, non-zero determinant helps to indicate a unique solution system)

4.1.4 Cross Product​

(a) Definition​

The cross product a‾×b‾\underline{a}\times\underline{b} (read "a" cross "b") of two nonzero vectors a‾\underline{a} and b‾\underline{b} is defined by

a‾×b‾=∣a‾∣∣b‾∣sin⁡θ⏟scalarn‾\underline{a}\times\underline{b} = \underbrace{|\underline{a}||\underline{b}|\sin\theta}_{scalar} \underline{n}

where

(i) the angle θ\theta between a‾\underline{a} and b‾\underline{b}

(ii) vector n‾\underline{n} is parallel to direction of a‾×b‾\underline{a}\times\underline{b} and it is perpendicular to both vectors a‾\underline{a} and b‾\underline{b} (i.e. a‾×b‾⊥a‾\underline{a}\times\underline{b} \perp \underline{a} and a‾×b‾⊥b‾\underline{a}\times\underline{b} \perp \underline{b})

The cross product a cross b is normal to both a and b

The cross product a cross b is normal to both a and b

(b) Properties of the cross product of vectors​

Let a‾\underline{a} and b‾\underline{b} be two vectors and let α\alpha be a scalar. Then

i. a‾×b‾=−b‾×a‾\underline{a}\times\underline{b} = -\underline{b}\times\underline{a} (Anti-commutative Law)

ii. a‾×(b‾+c‾)=(a‾×b‾)+(a‾×c‾)\underline{a}\times(\underline{b} + \underline{c}) = (\underline{a}\times\underline{b}) + (\underline{a}\times\underline{c}) (Distributive Law)

iii. α(a‾×b‾)=(αa‾)×b‾=a‾×(αb‾)\alpha(\underline{a}\times\underline{b}) = (\alpha\underline{a})\times\underline{b} = \underline{a}\times(\alpha\underline{b}) where α\alpha is a scalar

iv. The cross product of two vectors (i.e., a‾×b‾\underline{a}\times\underline{b}) is a vector.

Precaution: The cross product cannot function between scalar and vector (i.e., 3×b‾3 \times \underline{b} or (a‾.b‾)×c‾(\underline{a}.\underline{b}) \times \underline{c} or (a‾.b‾).(c‾.d‾)×(e‾)(\underline{a}.\underline{b}).(\underline{c}.\underline{d}) \times (\underline{e}))

(c) Orthogonal vector (Also known as perpendicular or normal vector)​

We have cross product, a‾×b‾=∣a‾∣∣b‾∣sin⁡θ n‾\underline{a}\times\underline{b} = |\underline{a}||\underline{b}|\sin\theta\,\underline{n}, orthogonal vector has a‾×b‾=∣a‾∣∣b‾∣ n‾\underline{a}\times\underline{b} = |\underline{a}||\underline{b}|\,\underline{n}

To let a‾×b‾=∣a‾∣∣b‾∣n‾\underline{a}\times\underline{b} = |\underline{a}||\underline{b}|\underline{n}, we need to have θ=90∘\theta = 90^\circ; sin⁡θ=1\sin\theta = 1

(i) a‾\underline{a} and b‾\underline{b} are orthogonal vectors (a‾⊥b‾\underline{a} \perp \underline{b})

(ii) Cross product of unit vector a^‾×b^‾=∣a^‾∣∣b^‾∣n‾=n‾\underline{\hat{a}}\times\underline{\hat{b}} = |\underline{\hat{a}}||\underline{\hat{b}}|\underline{n} = \underline{n} (where mag. of unit vector = 1)

i.e., in the 3D system, i‾,j‾,k‾\underline{i}, \underline{j}, \underline{k} are unit vectors where i‾⊥j‾\underline{i} \perp \underline{j}, j‾⊥k‾\underline{j} \perp \underline{k}, i‾⊥k‾\underline{i} \perp \underline{k}, therefore the cross product between them are the vector normal to its plane (i.e., i‾×j‾=k‾\underline{i}\times\underline{j} = \underline{k} ; j‾×k‾=i‾\underline{j}\times\underline{k} = \underline{i} and k‾×i‾=j‾\underline{k}\times\underline{i} = \underline{j}). This follows right hand rule and system as following:

The right hand rule for i cross j equals k

The right hand rule for i cross j equals k

Precaution: The cross product of vectors does not satisfy the commutative law: a‾×b‾≠b‾×a‾\underline{a}\times\underline{b} \neq \underline{b}\times\underline{a}

Proof:

i‾×j‾=k‾\underline{i}\times\underline{j} = \underline{k}

j‾×i‾=−k‾\underline{j}\times\underline{i} = -\underline{k}

Thus, i‾×j‾=−j‾×i‾\underline{i}\times\underline{j} = -\underline{j}\times\underline{i}

The proof that i cross j equals minus j cross i

The proof that i cross j equals minus j cross i

Apply this to other axis we get:

j‾×k‾=i‾or−k‾×j‾\underline{j}\times\underline{k} = \underline{i} \quad or \quad -\underline{k}\times\underline{j}

k‾×i‾=j‾or−i‾×k‾\underline{k}\times\underline{i} = \underline{j} \quad or \quad -\underline{i}\times\underline{k}

Remark:

i. a‾×b‾=−b‾×a‾\underline{a}\times\underline{b} = -\underline{b}\times\underline{a}

ii. (a‾×b‾)×c‾≠a‾×(b‾×c‾)(\underline{a}\times\underline{b})\times\underline{c} \neq \underline{a}\times(\underline{b}\times\underline{c})

(d) Parallel vector​

We have cross product, a‾×b‾=∣a‾∣∣b‾∣sin⁡θ n‾\underline{a}\times\underline{b} = |\underline{a}||\underline{b}|\sin\theta\,\underline{n}, parallel vector has a‾×b‾=0‾\underline{a}\times\underline{b} = \underline{0} where a‾\underline{a} & b‾≠0‾\underline{b} \neq \underline{0}

To let a‾×b‾=0‾\underline{a}\times\underline{b} = \underline{0}, we need to have θ=0∘\theta = 0^\circ or 180∘180^\circ; sin⁡θ=0\sin\theta = 0

(i) Cross product of two similar vectors a‾×a‾=0‾\underline{a}\times\underline{a} = \underline{0} ---- (if a‾=b‾\underline{a} = \underline{b} ∵θ=0\because \theta = 0)

(ii) Cross product of two parallel vectors a‾×b‾=0‾\underline{a}\times\underline{b} = \underline{0} ----- (if a‾∥b‾\underline{a} \parallel \underline{b} ∵θ=0\because \theta = 0 or π\pi)

(iii) Cross product of two parallel unit vectors a^‾×b^‾=0‾\underline{\hat{a}}\times\underline{\hat{b}} = \underline{0} ---- (if a^‾∥b^‾\underline{\hat{a}} \parallel \underline{\hat{b}} ∵θ=0\because \theta = 0 or π\pi)

i.e., in the 3D system, i‾∥i‾\underline{i} \parallel \underline{i} & −i‾-\underline{i}, j‾∥j‾\underline{j} \parallel \underline{j} & −j‾-\underline{j}, k‾∥k‾\underline{k} \parallel \underline{k} & −k‾-\underline{k}, therefore the cross product between them are zero (i.e., i‾×i‾=0\underline{i}\times\underline{i} = 0 ; j‾×j‾=0\underline{j}\times\underline{j} = 0 and k‾×k‾=0\underline{k}\times\underline{k} = 0)

Exercise:

(i) Does (a) What are the reason for (a‾×b‾)=0(\underline{a}\times\underline{b}) = 0?

(b) a‾×b‾=a‾×c‾\underline{a}\times\underline{b} = \underline{a}\times\underline{c}

>> (If vectors a‾≠0,b‾≠c‾,a‾≠(b‾−c‾)\underline{a} \neq 0, \underline{b} \neq \underline{c}, \underline{a} \neq (\underline{b} - \underline{c}) find the relationship between these vectors)

(e) Cross product in coordinates​

Let a‾=(a1i‾+a2j‾+a3k‾)\underline{a} = (a_1\underline{i} + a_2\underline{j} + a_3\underline{k}) and b‾=(b1i‾+b2j‾+b3k‾)\underline{b} = (b_1\underline{i} + b_2\underline{j} + b_3\underline{k})

Then (a‾×b‾)=∣i‾j‾k‾a1a2a3b1b2b3∣=(a2b3−a3b2)i‾−(a1b3−a3b1)j‾+(a1b2−a2b1)k‾(\underline{a}\times\underline{b}) = \begin{vmatrix} \underline{i} & \underline{j} & \underline{k} \\ a_1 & a_2 & a_3 \\ b_1 & b_2 & b_3 \end{vmatrix} = (a_2b_3 - a_3b_2)\underline{i} - (a_1b_3 - a_3b_1)\underline{j} + (a_1b_2 - a_2b_1)\underline{k}

Proof:

(a‾×b‾)=(a1i‾+a2j‾+a3k‾)×(b1i‾+b2j‾+b3k‾)=(a1b1)i‾×i‾+(a1b2)i‾×j‾+(a1b3)i‾×k‾+(a2b1)j‾×i‾+(a2b2)j‾×j‾+(a2b3)j‾×k‾+(a3b1)k‾×i‾+(a3b2)k‾×j‾+(a3b3)k‾×k‾=i‾(a2b3−a3b2)+j‾(a3b1−a1b3)+k‾(a1b2−a2b1)=∣i‾j‾k‾a1a2a3b1b2b3∣\begin{aligned} (\underline{a}\times\underline{b}) &= (a_1\underline{i} + a_2\underline{j} + a_3\underline{k}) \times (b_1\underline{i} + b_2\underline{j} + b_3\underline{k}) \\ &= (a_1b_1)\underline{i}\times\underline{i} + (a_1b_2)\underline{i}\times\underline{j} + (a_1b_3)\underline{i}\times\underline{k} + \\ &\quad (a_2b_1)\underline{j}\times\underline{i} + (a_2b_2)\underline{j}\times\underline{j} + (a_2b_3)\underline{j}\times\underline{k} + \\ &\quad (a_3b_1)\underline{k}\times\underline{i} + (a_3b_2)\underline{k}\times\underline{j} + (a_3b_3)\underline{k}\times\underline{k} \\ &= \underline{i}(a_2b_3 - a_3b_2) + \underline{j}(a_3b_1 - a_1b_3) + \underline{k}(a_1b_2 - a_2b_1) \\ &= \begin{vmatrix} \underline{i} & \underline{j} & \underline{k} \\ a_1 & a_2 & a_3 \\ b_1 & b_2 & b_3 \end{vmatrix} \end{aligned}

(f) Projection of vector​

Previously we learnt that for the projection of vector b‾\underline{b} onto i‾\underline{i} using dot product, b‾.i^‾\underline{b}.\underline{\hat{i}}

=∣b‾∣∣i^‾∣cos⁡θ= |\underline{b}||\underline{\hat{i}}|\cos\theta

=∣b‾∣cos⁡θ∵∣i^‾∣=1= |\underline{b}|\cos\theta \qquad \because |\underline{\hat{i}}| = 1

=ON= ON = the length of the orthogonal projection of b‾\underline{b} on a straight line parallel to i^‾\underline{\hat{i}}

The projection of b onto i and onto j

The projection of b onto i and onto j

Now we extend it for the projection of vector b‾\underline{b} onto j‾\underline{j} where j‾⊥i‾\underline{j} \perp \underline{i}

Then, the projection of b‾\underline{b} onto j‾\underline{j} =b‾.j^‾= \underline{b}.\underline{\hat{j}}

=∣b‾∣∣j^‾∣sin⁡θ= |\underline{b}||\underline{\hat{j}}|\sin\theta

=∣b‾∣sin⁡θ∵∣j^‾∣=1= |\underline{b}|\sin\theta \qquad \because |\underline{\hat{j}}| = 1 ---------------------------------------------------------------------------------- (1)

=NM= NM = the length of the orthogonal projection of b‾\underline{b} on a straight line perpendicular to i^‾\underline{\hat{i}}

The component of b‾\underline{b} in the direction of j‾\underline{j}, (b‾.j^‾)j^‾(\underline{b}.\underline{\hat{j}})\underline{\hat{j}}

=(∣b‾∣sin⁡θ)j‾∵j^‾=j‾= (|\underline{b}|\sin\theta)\underline{j} \qquad \because \underline{\hat{j}} = \underline{j} (both also unit vector) ---------------------------------------------------- (2)

=NM→= \overrightarrow{NM}

Now we look at the cross product of a vector and a unit vector, then we check its magnitude:

Cross product, b‾×i^‾=∣b‾∣∣i^‾∣sin⁡θ⏟scalarn‾\underline{b}\times\underline{\hat{i}} = \underbrace{|\underline{b}||\underline{\hat{i}}|\sin\theta}_{scalar} \underline{n}

Precaution: The normal vector, n‾\underline{n} is not j‾\underline{j}. You will learn the component of b‾\underline{b} in the direction of j‾\underline{j} using cross product after you learn the triple vector product later.

Magnitude, ∣b‾×i^‾∣=∣b‾∣sin⁡θ|\underline{b}\times\underline{\hat{i}}| = |\underline{b}|\sin\theta -----------------------------------------------------------------------------------(3)

∴\therefore Combining Eqns. (1) & (3), we get the magnitude ∣b‾×i^‾∣⏟Cross=∣b‾∣sin⁡θ=∣b‾.j^‾∣⏟Dot\underbrace{|\underline{b}\times\underline{\hat{i}}|}_{Cross} = |\underline{b}|\sin\theta = \underbrace{|\underline{b}.\underline{\hat{j}}|}_{Dot}

As we know the range of angle is 0≤θ≤π0 \le \theta \le \pi, sin⁡θ>0\sin\theta > 0

We can simplify it into:

∣b‾×i^‾∣⏟Cross=∣b‾∣sin⁡θ=b‾.j^‾⏟Dot\underbrace{|\underline{b}\times\underline{\hat{i}}|}_{Cross} = |\underline{b}|\sin\theta = \underbrace{\underline{b}.\underline{\hat{j}}}_{Dot}

It indicates that the length of NMNM (i.e., the distance from point NN to point MM or vice versa) can be found from:

(i) Dot product (i.e., b‾.j^‾\underline{b}.\underline{\hat{j}})

(ii) Cross product (i.e., ∣b‾×i^‾∣|\underline{b}\times\underline{\hat{i}}|)

This is very useful in the geometry application especially to find the shortest distance between point, line, or plane.

Projection of vector – Area of Parallelogram

The projection of vector is useful in finding the area of parallelogram as shown in figure below:

Vector a‾\underline{a} and b‾\underline{b} are represented by two sides of a parallelogram

Area of a parallelogram with sides a and b

Area of a parallelogram with sides a and b

Area of parallelogram

= Height of parallelogram x Length

= (∣b‾∣sin⁡θ)×(∣a‾∣)(|\underline{b}|\sin\theta) \times (|\underline{a}|)

= ∣a‾∣∣b‾∣sin⁡θ|\underline{a}||\underline{b}|\sin\theta -------------------------------------------------------------------------------------------------------(1)

Relationship – Area of Parallelogram & Cross Product

From cross product of vector a‾\underline{a} and b‾\underline{b}, we have

a‾×b‾=∣a‾∣∣b‾∣sin⁡θ⏟scalarn‾\underline{a}\times\underline{b} = \underbrace{|\underline{a}||\underline{b}|\sin\theta}_{scalar} \underline{n}

The magnitude of the cross product is

∣a‾×b‾∣=∣a‾∣∣b‾∣sin⁡θ————————————————– (2)|\underline{a}\times\underline{b}| = |\underline{a}||\underline{b}|\sin\theta \qquad \text{-------------------------------------------------- (2)}

The magnitude of the cross product equals the area of the parallelogram

The magnitude of the cross product equals the area of the parallelogram

Note: Eqn. (1) = Eqn. (2) denotes that the magnitude of cross product is equal to the area of its area of parallelogram.

Area of parallelogram = Height of parallelogram x Length = ∣a‾∣∣b‾∣sin⁡θ=∣a‾×b‾∣|\underline{a}||\underline{b}|\sin\theta = |\underline{a}\times\underline{b}| ----------------- (3)

Area of triangle = 12×\frac{1}{2} \times Height of parallelogram x Length = 12∣a‾×b‾∣\frac{1}{2}|\underline{a}\times\underline{b}| --------------------------------- (4)

Exercise:

(ii) Let P(1,−1,0)P(1,-1,0), Q(2,1,−1)Q(2,1,-1), and R(−1,1,2)R(-1,1,2) be three points.

Find (a) a vector normal the plane containing PP, QQ and RR

(b) the area of the triangle PP, QQ and RR.

4.1.5 Application of Cross Product in Geometry (given Parallel Vector)​

Previous dot product applications are used mainly when the normal vector is given. When the parallel vector is given, we can use the cross product to find the 3D-line equation between intersecting planes, distance between point-to-3D-line, distance between two 3D-parallel-lines, and distance between two 3D-skew-lines.

(i) Previous Problems of 2D line in general Cartesian form(ii) Current Problems of 3D line in Parametric form
1. Find the general Cartesian equation of a line passing through a given point and normal to a given vector.1. Find the parametric equation of a 3D line form by two intersecting planes.
2. Find the distance from a point to a line.2. Find the distance from a point to 3D line.
3. Find the distance between two parallel lines.3. Find the distance between two 3D parallel lines.
4. Find constant distance between two skew lines – NOT EXIST!4. Find the distance between two 3D skew lines.

Recall & Motivation: Previously we learned to define a line of equation of a 2D line using general Cartesian Eqn (involve dot product). Now, we have learned the cross product operation, and this enable you to define a line of equation of a 3D line using Parametric Eqn.

Idea: 3D line if formed where two planes intersect.

(a) Parametric equation of 3D line​

Let S1S_1 and S2S_2 be two planes with normal vectors n‾1\underline{n}_1 and n‾2\underline{n}_2 respectively. If S1S_1 and S2S_2 intersect, then the intersection is a line LL. Since LL is in both S1S_1 and S2S_2, LL is parallel to both S1S_1 and S2S_2, LL is normal to both n‾1\underline{n}_1 and n‾2\underline{n}_2.

Therefore, L∥(n‾1×n‾2)L \parallel (\underline{n}_1 \times \underline{n}_2)

Let PP be a point on a line LL (i.e. PP is in both S1S_1 and S2S_2)

Then the vector equation of L is given by

L:r‾=OP+t(n‾1×n‾2)L: \underline{r} = OP + t(\underline{n}_1 \times \underline{n}_2)

The intersecting line of two planes

The intersecting line of two planes

Exercise:

(i) Find the parametric equations of the intersecting line LL of the planes

S1:3x−6y−2z=15S_1: 3x - 6y - 2z = 15 ---------------------------------------------------------------------------------- (a)

S2:2x+y−2z=5S_2: 2x + y - 2z = 5 ---------------------------------------------------------------------------------- (b)

(ii) Describe the procedure to plot the 3D line LL by using the parametric equations obtained in Ans (i) . Can we know the direction of the line LL from the plotting by using the parametric equation?

(iii) Generated the general Cartesian eqn. from the Parametric eqn. of 3D line LL . What are the major advantage of having general Cartesian line eqn. Can we know the direction of the line LL from the plotting by using the general Cartesian equation?

(b) Distance of point-to-3D-line​

Let L be a line in a space passing through the point P with the vector equation r‾=p‾+tv‾\underline{r} = \underline{p} + t\underline{v}, t∈Rt \in \mathbb{R}

By using projection method and cross method as shown in Section 4.1.4 (f), we know the distance from the point Q to the line L

=∣PQ→∣sin⁡θ= |\overrightarrow{PQ}|\sin\theta where θ\theta is angle between ∣PQ→∣|\overrightarrow{PQ}| and v‾\underline{v}.

=∣PQ→×v‾∣v‾∣∣∵∣PQ→×v‾∣∣v‾∣=∣PQ→∣∣v‾∣sin⁡θ∣v‾∣=∣PQ→∣sin⁡θ= \left|\overrightarrow{PQ} \times \frac{\underline{v}}{|\underline{v}|}\right| \qquad \because \frac{|\overrightarrow{PQ}\times\underline{v}|}{|\underline{v}|} = \frac{|\overrightarrow{PQ}||\underline{v}|\sin\theta}{|\underline{v}|} = |\overrightarrow{PQ}|\sin\theta

Distance from a point to a 3D line

Distance from a point to a 3D line

Exercise

Find the distance from the point Q (1,1,5) to the line L with the parametric equations x=1+tx = 1 + t, y=3−ty = 3 - t, z=2tz = 2t.

(c) Distance of two-parallel-3D-lines​

The above method is also used to find the distance between two parallel lines L1L_1 and L2L_2 in space (They have the same direction vector v‾=u‾\underline{v} = \underline{u}). In this case, we choose one point P from L1L_1 and another point Q from L2L_2.

Distance between two parallel 3D lines

Distance between two parallel 3D lines

By using projection method and cross method as shown in Section 4.1.4(f), we know the distance from the point Q to the line L.

∣∣PQ→∣sin⁡θ∣=∣PQ→×v‾∣v‾∣∣or∣PQ→×u‾∣u‾∣∣\left||\overrightarrow{PQ}|\sin\theta\right| = \left|\overrightarrow{PQ} \times \frac{\underline{v}}{|\underline{v}|}\right| \quad or \quad \left|\overrightarrow{PQ} \times \frac{\underline{u}}{|\underline{u}|}\right|

Exercise

Find the distance from the two line L1L_1 with the parametric equations: x=1+tx = 1 + t, y=3−ty = 3 - t, z=2tz = 2t; and with the vector equation r‾=⟨5,2,−1⟩+t⟨1,−1,2⟩\underline{r} = \langle 5,2,-1\rangle + t\langle 1,-1,2\rangle

(d) Distance between two 3D skew lines​

Let L1L_1 and L2L_2 be two skew lines in a 3D space with the vector equations L1:a‾+tu‾L_1: \underline{a} + t\underline{u} and L2:b‾+sv‾L_2: \underline{b} + s\underline{v}, s,t∈Rs, t \in \mathbb{R}, respectively.

Let P and Q be the points on L1L_1 and L2L_2, respectively, such that the length of PQ is the shortest distance between the two lines.

From the vector equations, we know that L1∥u‾L_1 \parallel \underline{u} and L2∥v‾L_2 \parallel \underline{v}. Then, n‾=u‾×v‾\underline{n} = \underline{u} \times \underline{v} is normal to both L1L_1 and L2L_2. Hence, PQ→∥n‾=u‾×v‾\overrightarrow{PQ} \parallel \underline{n} = \underline{u} \times \underline{v}.

Distance between two 3D skew lines

Distance between two 3D skew lines

Let S1S_1 and S2S_2 be the planes that containing L1L_1 and L2L_2, respectively, such that PQ→\overrightarrow{PQ} is normal to both planes. Then S1S_1 and S2S_2 are parallel planes. Hence the distance between P and Q is the distance between the two parallel planes S1S_1 and S2S_2.

Therefore, the shortest distance between L1L_1 and L2L_2

=∣AB→.n‾∣n‾∣∣= \left|\overrightarrow{AB}.\dfrac{\underline{n}}{|\underline{n}|}\right| where A and B are the points on L1L_1 and L2L_2, respectively, and, n‾=u‾×v‾\underline{n} = \underline{u} \times \underline{v} is a vector normal to L1L_1 and L2L_2.

Exercise

Find the shortest distance between the two lines.

L1:r‾1=a‾+tu‾=⟨0,9,2⟩+⟨3,−1,1⟩tL_1: \underline{r}_1 = \underline{a} + t\underline{u} = \langle 0,9,2\rangle + \langle 3,-1,1\rangle t ---------------------------------------------------------------(a)

L2:r‾2=b‾+sv‾=⟨−6,−5,10⟩+⟨−3,2,4⟩sL_2: \underline{r}_2 = \underline{b} + s\underline{v} = \langle -6,-5,10\rangle + \langle -3,2,4\rangle s ---------------------------------------------------------------(b)

4.1.6 Uses of Scalar Triple Products​

(a) Parallelepiped​

The parallelepiped formed by A, B and C

The parallelepiped formed by A, B and C

∣A×B.C∣=Volume of the parallelepiped|A \times B.C| = \text{Volume of the parallelepiped}

Area of Base Parallelogram=∣A×B∣\text{Area of Base Parallelogram} = |A \times B|

A×B.C=∣A×B∣∣C∣cos⁡θ=BaseArea∗height=VolumeA \times B.C = |A \times B||C|\cos\theta = BaseArea * height = Volume

You can show that A×B.C=B×C.A=C×A.B=A.B×C=∣a1a2a3b1b2b3c1c2c3∣A \times B.C = B \times C.A = C \times A.B = A.B \times C = \begin{vmatrix} a_1 & a_2 & a_3 \\ b_1 & b_2 & b_3 \\ c_1 & c_2 & c_3 \end{vmatrix}

(b) Projecting area​

∣A×B.n∣=Orthogonal projection of parallelogram with sides A and B onto a plane with unit normal n.|A \times B.n| = \text{Orthogonal projection of parallelogram with sides } A \text{ and } B \text{ onto a plane with unit normal } n.

The projection of triangle PAB onto the yz-plane

The projection of triangle PAB onto the yz-plane

Find the Area of the projection of triangle PAB onto the yz plane. To do this we use the formula for the area of a projected parallelogram and half the answer to get triangular area instead.

Solution

PA×PB=i‾+j‾PA \times PB = \underline{i} + \underline{j}

Answer =.5∗i‾= .5 * \underline{i} (dot) (i‾+j‾)=.5(\underline{i} + \underline{j}) = .5