3.7 - Angles and perpendiculars with vectors

3.7 - Angles and perpendiculars with vectors

Coordinates can reveal an angle that is hard to see in a drawing of a solid. In this final part of 3.7, you will use scalar products to find angles and perpendicular directions, then locate the nearest point on a line. Choosing the direction of each vector will matter as much as the calculation.

Two forms of scalar product

How can coordinates tell us whether two directions are perpendicular? Take a=(1,2,2)\mathbf a=(1,2,2) and c=(2,−1,0)\mathbf c=(2,-1,0). Multiplying matching components and adding gives 2−2+0=02-2+0=0. This number detects a right angle.

Scalar product

The scalar product, or dot product, of two vectors is a scalar, written a⋅b\mathbf a\cdot\mathbf b. For nonzero vectors, their angle θ\theta is measured between arrows placed tail to tail, with 0≤θ≤π0\le\theta\le\pi.

The component calculation and the geometrical angle calculation give the same number.

Scalar product

For a=(a1,a2,a3)\mathbf a=(a_1,a_2,a_3) and b=(b1,b2,b3)\mathbf b=(b_1,b_2,b_3),

a⋅b=a1b1+a2b2+a3b3=∣a∣∣b∣cos⁡θ.\mathbf a\cdot\mathbf b=a_1b_1+a_2b_2+a_3b_3 =|\mathbf a||\mathbf b|\cos\theta.

In two dimensions omit the third term. The angle form requires nonzero vectors.
In the formula booklet.

Why does the angle appear? Expanding ∣a−b∣2|\mathbf a-\mathbf b|^2 by components gives ∣a∣2+∣b∣2−2a⋅b|\mathbf a|^2+|\mathbf b|^2-2\mathbf a\cdot\mathbf b. Applying the cosine rule to the triangle formed by the same two arrows gives ∣a∣2+∣b∣2−2∣a∣∣b∣cos⁡θ|\mathbf a|^2+|\mathbf b|^2-2|\mathbf a||\mathbf b|\cos\theta. Equate the expressions.

For nonzero vectors, a positive scalar product gives 0≤θ<90∘0\le\theta<90^\circ, zero gives θ=90∘\theta=90^\circ, and a negative scalar product gives 90∘<θ≤180∘90^\circ<\theta\le180^\circ. The boundary values 0∘0^\circ and 180∘180^\circ occur for vectors in the same and opposite directions respectively. Although 0⋅b=0\mathbf0\cdot\mathbf b=0, the zero vector has no direction and does not define an angle.

Worked example 1: an acute angle between vectors

Question. Find the angle between a=i+2j+2k\mathbf a=\mathbf i+2\mathbf j+2\mathbf k and b=2i−j+2k\mathbf b=2\mathbf i-\mathbf j+2\mathbf k.

Plan. Calculate the scalar product and magnitudes, then use inverse cosine.

a⋅b=1(2)+2(−1)+2(2)=4∣a∣=∣b∣=9=3cos⁡θ=43×3=49\begin{aligned} \mathbf a\cdot\mathbf b&=1(2)+2(-1)+2(2)=4\\ |\mathbf a|&=|\mathbf b|=\sqrt{9}=3\\ \cos\theta&=\frac4{3\times3}=\frac49 \end{aligned}

Answer. θ=cos⁡−1(4/9)=63.6∘\theta=\cos^{-1}(4/9)=63.6^\circ, to one decimal place.

Check. The scalar product is positive, so the angle should be acute. Also ∣a−b∣2=1+9+0=10|\mathbf a-\mathbf b|^2=1+9+0=10, agreeing with the cosine rule 9+9−18(4/9)=109+9-18(4/9)=10.

Reverse just the second vector. Its magnitude stays the same, but the angle between the directed arrows becomes supplementary.

Worked example 2: reversing a direction

Question. Find the angle between a=i+2j+2k\mathbf a=\mathbf i+2\mathbf j+2\mathbf k and −b=−2i+j−2k-\mathbf b=-2\mathbf i+\mathbf j-2\mathbf k.

Plan. Reverse the sign of the scalar product and retain both magnitudes.

a⋅(−b)=−2+2−4=−4,cos⁡ϕ=−49.\mathbf a\cdot(-\mathbf b)=-2+2-4=-4, \qquad \cos\phi=-\frac49.

Answer. ϕ=116.4∘\phi=116.4^\circ, to one decimal place.

Check. 63.6∘+116.4∘=180.0∘63.6^\circ+116.4^\circ=180.0^\circ, consistent with reversing one arrow. The negative scalar product correctly predicts an obtuse angle.

Dot products also give equations for unknown components. For example, (1,2,2)(1,2,2) is perpendicular to (2,−1,k)(2,-1,k) when 2−2+2k=02-2+2k=0, so k=0k=0.

Watch out

a⋅b\mathbf a\cdot\mathbf b is one number, not a vector of component products. For an angle, divide it by the product of both magnitudes before using inverse cosine.

Use the sign of the dot product as a check.

Angles between lines

A line can be followed in either direction, so its direction vector may be replaced by its negative. This produces two supplementary angles. If a question asks for the acute angle between lines, choose the smaller angle; if it names an angle such as FHGFHG, use the rays from the named vertex.

The smaller angle α\alpha between two lines, with 0≤α≤90∘0\le\alpha\le90^\circ, satisfies

cos⁡α=∣d⋅e∣∣d∣∣e∣,\cos\alpha=\frac{|\mathbf d\cdot\mathbf e|}{|\mathbf d||\mathbf e|},

where d\mathbf d and e\mathbf e are their direction vectors. The absolute value selects the smaller angle. Perpendicular lines give 90∘90^\circ; parallel directions give 0∘0^\circ. The same calculation compares the directions of skew lines without pretending they intersect.

Worked example 3: choosing the acute angle

Question. Two lines have direction vectors d=4i+3j+2k\mathbf d=4\mathbf i+3\mathbf j+2\mathbf k and e=−4i+3j+2k\mathbf e=-4\mathbf i+3\mathbf j+2\mathbf k. Calculate the acute angle between the lines.

Plan. Calculate the directed-vector angle, then choose the smaller supplementary angle.

d⋅e=−16+9+4=−3,∣d∣=∣e∣=29.\mathbf d\cdot\mathbf e=-16+9+4=-3, \qquad |\mathbf d|=|\mathbf e|=\sqrt{29}.

The angle between these particular arrows has cosine −3/29-3/29, so it is 95.9∘95.9^\circ. The acute angle has cosine 3/293/29.

Answer. α=cos⁡−1(3/29)=84.1∘\alpha=\cos^{-1}(3/29)=84.1^\circ, to one decimal place.

Check. Replacing e\mathbf e by −e-\mathbf e gives dot product 33, and directly produces the same acute angle.

Now put those directions inside a cuboid. The geometry will specify actual rays, so we must not automatically choose the acute angle.

[DIAGRAM: asset_name: Directed angles in a cuboid; asset_slug: cuboid-vector-angles; caption: The angle FHG follows rays from H, so the directions must point from H towards F and G; description: A perspective drawing of a cuboid has O at 0 comma 0 comma 0, A at 4 comma 0 comma 0, B at 4 comma 3 comma 0, C at 0 comma 3 comma 0, D at 0 comma 0 comma 2, E at 4 comma 0 comma 2, F at 4 comma 3 comma 2 and G at 0 comma 3 comma 2. Body diagonals OF and AG meet at H, the centre 2 comma 1.5 comma 1. The rays HF and HG are highlighted with arrows, and edge lengths 4, 3 and 2 are marked. The drawing is a perspective view, not an angle scale drawing.]
The angle FHG follows rays from H, so the directions must point from H towards F and G

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account