Pv9, Pv10 - Lines and the angle between them

Pv9, Pv10 - Lines and the angle between them

Describe a straight line using a point and a direction, convert between vector and Cartesian forms, and calculate the smaller angle between two lines from their direction vectors. You will handle zero direction components without dividing by zero and recognise different equations of the same line.

A point plus a direction

A cable runs through A(1,2,0)A(1, 2, 0) in direction (2−13)\begin{pmatrix}2\\-1\\3\end{pmatrix}. Does it pass through P(5,0,6)P(5, 0, 6), or Q(5,0,5)Q(5, 0, 5)?

From AA, two lots of the direction vector reach (5,0,6)(5, 0, 6). The same two lots cannot reach (5,0,5)(5, 0, 5): its third coordinate fails. One parameter must describe the movement in every coordinate at once.

You already know

The displacement from AA to BB is AB→=b−a\overrightarrow{AB} = \mathbf{b}-\mathbf{a}. Multiplying a non-zero direction vector by any non-zero scalar keeps the same parallel direction, possibly with its sense reversed.

A direction vector gives the line's tilt, while a position vector fixes one point on it. They have different jobs, even though both are written as vectors.

[DIAGRAM: asset_name: A point and a direction define a line; asset_slug: line_point_direction; caption: Changing the parameter moves along the line while its starting point stays fixed; description: Equal two-dimensional axes show a blue line through A=(1,2) and B=(5,4). A grey position arrow runs from the origin to A. A sage arrow from A to (3,3) is labelled d=(2,1), and a further arrow to B shows a second copy of d. The labels distinguish a position vector from a direction vector.]
Changing the parameter moves along the line while its starting point stays fixed

Vector equation of a line

A line through the point with position vector a\mathbf{a}, parallel to a non-zero vector d\mathbf{d}, has equation

r=a+td,t∈R\mathbf{r} = \mathbf{a}+t\mathbf{d},\qquad t\in\mathbb{R}

The same form works in two or three dimensions. The parameter runs over all real values for the whole line.

Not in the formula booklet: learn it.

At t=0t=0, you are at the chosen point. Positive and negative values travel in opposite senses, and a direction vector does not have to be a unit vector.

Worked example 1: a two-dimensional line

Question. Find a vector equation of the line through A(1,2)A(1, 2) parallel to (21)\begin{pmatrix}2\\1\end{pmatrix}, and find the point corresponding to t=2t=2.

Plan. Add a real multiple of the direction vector to the position vector of AA.

r=(12)+t(21)point plus directiont=2  ⟹  r=(1+42+2)=(54)substitute\begin{aligned} \mathbf{r} &= \begin{pmatrix}1\\2\end{pmatrix}+t\begin{pmatrix}2\\1\end{pmatrix} && \text{point plus direction} \\ t=2 &\implies \mathbf{r}=\begin{pmatrix}1+4\\2+2\end{pmatrix}=\begin{pmatrix}5\\4\end{pmatrix} && \text{substitute} \end{aligned}

Why this step? The same parameter multiplies both components, so the movement remains parallel to one fixed vector.

Answer. r=(12)+t(21)\mathbf{r} = \begin{pmatrix}1\\2\end{pmatrix}+t\begin{pmatrix}2\\1\end{pmatrix}, with point (5,4)(5, 4) at t=2t=2.

Check. The displacement (5,4)−(1,2)=(4,2)(5, 4)-(1, 2) = (4, 2) is twice (2,1)(2, 1).

Now add a third coordinate. The structure stays exactly the same; the parameter controls three coordinates rather than two.

Worked example 2: a three-dimensional line

Question. Find a vector equation of the line through A(1,2,−1)A(1, 2, -1) parallel to (213)\begin{pmatrix}2\\1\\3\end{pmatrix}, and find the point at t=2t=2.

Plan. Use the three-dimensional point and direction in the same equation.

r=(12−1)+t(213)vector equationt=2  ⟹  r=(1+42+2−1+6)=(545)all three coordinates\begin{aligned} \mathbf{r} &= \begin{pmatrix}1\\2\\-1\end{pmatrix}+t\begin{pmatrix}2\\1\\3\end{pmatrix} && \text{vector equation} \\ t=2 &\implies \mathbf{r}=\begin{pmatrix}1+4\\2+2\\-1+6\end{pmatrix}=\begin{pmatrix}5\\4\\5\end{pmatrix} && \text{all three coordinates} \end{aligned}

Why this step? A three-dimensional line still needs only one parameter: you have one independent direction of travel.

Answer. The stated equation gives point (5,4,5)(5, 4, 5) at t=2t=2.

Check. AP→=(4,2,6)=2(2,1,3)\overrightarrow{AP} = (4, 2, 6) = 2(2, 1, 3).

A useful surprise is that a line has infinitely many correct vector equations. For the second example, r=(545)+s(426)\mathbf{r} = \begin{pmatrix}5\\4\\5\end{pmatrix}+s\begin{pmatrix}4\\2\\6\end{pmatrix} describes the same line: it starts at another point and uses twice the direction vector. Here t=2+2st=2+2s, so every real value of one parameter corresponds to a real value of the other.

Watch out

Wrong: use a different parameter for each coordinate of a line. Right: x=a1+td1x=a_1+td_1, y=a2+td2y=a_2+td_2, z=a3+td3z=a_3+td_3 all use the same tt. Separate independent parameters would allow extra directions of movement.

Two points supply the direction by subtraction. Check that they are distinct so the resulting direction vector is non-zero.

Cartesian equations and zero components

Eliminating the shared parameter turns a vector equation into Cartesian equations without changing which points belong to the line.

From x=a1+td1x=a_1+td_1, you get t=(x−a1)/d1t=(x-a_1)/d_1 when d1≠0d_1\ne0. Do the same for the other coordinates and equate the expressions for tt.

Cartesian equations of a line

If all three direction components are non-zero,

x−a1d1=y−a2d2=z−a3d3\frac{x-a_1}{d_1} = \frac{y-a_2}{d_2} = \frac{z-a_3}{d_3}

In two dimensions, use just the first two ratios. If a direction component is zero, keep that coordinate fixed instead of forming its ratio.

The three-dimensional Cartesian form is provided.

In the formula booklet.

The numerator is always coordinate minus point coordinate. A negative point coordinate therefore produces a plus sign. In two dimensions, cross-multiplying the two ratios also gives an ordinary Cartesian line equation.

Worked example 3: eliminating the parameter

Question. Convert r=(1−23)+t(23−1)\mathbf{r} = \begin{pmatrix}1\\-2\\3\end{pmatrix}+t\begin{pmatrix}2\\3\\-1\end{pmatrix} to Cartesian form.

Plan. Write the three component equations, rearrange each for tt, then equate.

x=1+2t,y=−2+3t,z=3−tread componentst=x−12=y+23=z−3−1solve for t\begin{aligned} x&=1+2t,\quad y=-2+3t,\quad z=3-t && \text{read components} \\ t&=\frac{x-1}{2}=\frac{y+2}{3}=\frac{z-3}{-1} && \text{solve for }t \end{aligned}

Why this step? Equal ratios ensure that all three coordinates use the same parameter value.

Answer. x−12=y+23=3−z\frac{x-1}{2} = \frac{y+2}{3} = 3-z.

Check. At t=1t=1, the point is (3,1,2)(3, 1, 2), and all three expressions equal 11.

Change only the middle direction component to zero. The line no longer moves in the yy-direction, so that coordinate must be written separately.

Worked example 4: a fixed coordinate

Question. Convert r=(1−23)+t(20−1)\mathbf{r} = \begin{pmatrix}1\\-2\\3\end{pmatrix}+t\begin{pmatrix}2\\0\\-1\end{pmatrix} to Cartesian form.

Plan. Keep the constant yy-coordinate and eliminate tt only from the other two equations.

x=1+2t,y=−2,z=3−tcomponent equationsx−12=3−z,y=−2eliminate t\begin{aligned} x&=1+2t,\quad y=-2,\quad z=3-t && \text{component equations} \\ \frac{x-1}{2}&=3-z,\quad y=-2 && \text{eliminate }t \end{aligned}

Why this step? Writing (y+2)/0(y+2)/0 would divide by zero. The equation y=−2y=-2 expresses the geometry directly.

Answer. x−12=3−z\frac{x-1}{2} = 3-z, together with y=−2y=-2.

Check. At t=−1t=-1, (−1,−2,4)(-1, -2, 4) gives both variable ratios equal to −1-1, and the fixed coordinate is correct.

The reverse conversion simply names the common ratio tt. For example, in two dimensions (x−1)/2=y+1(x-1)/2 = y+1 gives x=1+2tx=1+2t, y=−1+ty=-1+t, or r=(1−1)+t(21)\mathbf{r} = \begin{pmatrix}1\\-1\end{pmatrix}+t\begin{pmatrix}2\\1\end{pmatrix}. Cross-multiplying gives the equivalent equation x−2y=3x-2y=3. These conversion steps follow from the line equation; the two-dimensional ratio form and the zero-component rule are not separately printed in the booklet.

Watch out

Wrong: x−a1d1=y−a2d2=z−a30\frac{x-a_1}{d_1} = \frac{y-a_2}{d_2} = \frac{z-a_3}{0}. Right: replace the last ratio by z=a3z=a_3. Zero movement means a fixed coordinate, not a zero denominator.

Now read the point and direction from a Cartesian line with a different fixed coordinate.

The smaller angle between lines

The angle between lines depends on their directions, so their starting points do not enter the calculation.

For lines in space, move copies of the direction vectors to one point before imagining their angle. This definition works even when the original lines do not meet. Since either sense describes the same line direction, the required angle between non-perpendicular lines is acute.

Angle between lines

For non-zero direction vectors d1\mathbf{d}_1 and d2\mathbf{d}_2, the smaller angle α\alpha, with 0≤α≤π20\le\alpha\le\frac\pi2, satisfies

cos⁡α=∣d1.d2∣∣d1∣ ∣d2∣\cos\alpha = \frac{|\mathbf{d}_1.\mathbf{d}_2|}{|\mathbf{d}_1|\,|\mathbf{d}_2|}

Parallel directions give zero angle; perpendicular directions give a right angle.

Not in the formula booklet: learn it.

An absolute value removes the arbitrary choice of which way the direction arrow points. It is appropriate for lines, but not for the full angle between two specified vectors.

Worked example 5: using direction vectors

Question. Find the acute angle between

r=(102)+t(111),r=(−241)+s(101)\mathbf{r}=\begin{pmatrix}1\\0\\2\end{pmatrix}+t\begin{pmatrix}1\\1\\1\end{pmatrix},\qquad \mathbf{r}=\begin{pmatrix}-2\\4\\1\end{pmatrix}+s\begin{pmatrix}1\\0\\1\end{pmatrix}

Give your answer to one decimal place.

Plan. Use the two direction vectors in the scalar-product formula and ignore the position vectors.

d1.d2=1(1)+1(0)+1(1)=2directions only∣d1∣=3,∣d2∣=2magnitudescos⁡α=26acute ratioα=35.3∘inverse cosine\begin{aligned} \mathbf{d}_1.\mathbf{d}_2 &= 1(1)+1(0)+1(1)=2 && \text{directions only} \\ |\mathbf{d}_1|&=\sqrt3,\quad |\mathbf{d}_2|=\sqrt2 && \text{magnitudes} \\ \cos\alpha &= \frac2{\sqrt6} && \text{acute ratio} \\ \alpha &= 35.3^\circ && \text{inverse cosine} \end{aligned}

Why this step? Translating a line changes its position vector but cannot change its direction or the angle it makes with another line.

Answer. 35.3∘35.3^\circ.

Check. Both directions rise one unit in zz for one unit in xx; the extra yy-movement produces a moderate acute angle.

Reverse only the second direction. The second line is unchanged, so the smaller angle must stay the same.

Worked example 6: opposite direction arrows

Question. Determine the acute angle between lines with direction vectors (111)\begin{pmatrix}1\\1\\1\end{pmatrix} and (−10−1)\begin{pmatrix}-1\\0\\-1\end{pmatrix}, to one decimal place.

Plan. Take the absolute scalar product, or find the obtuse vector angle and take its supplement.

d1.d2=−1+0−1=−2signed productcos⁡α=∣−2∣32=26smaller angleα=35.3∘unchanged line angle\begin{aligned} \mathbf{d}_1.\mathbf{d}_2 &= -1+0-1=-2 && \text{signed product} \\ \cos\alpha &= \frac{|-2|}{\sqrt3\sqrt2}=\frac2{\sqrt6} && \text{smaller angle} \\ \alpha &= 35.3^\circ && \text{unchanged line angle} \end{aligned}

Why this step? The arrows have angle 144.7∘144.7^\circ, but a line has no preferred forward sense. The requested acute angle is its supplement.

Answer. 35.3∘35.3^\circ.

Check. Negating a direction vector gives the same line, so the answer agrees with the previous example.

For a Cartesian line, the denominators supply the direction components; a fixed coordinate contributes a zero component. Do not use the constants in the numerators as a direction vector.

Watch out

Wrong: use the position vectors to find the angle between lines. Right: use their direction vectors. Positions locate lines; directions determine their angle.

For the opening cable, the common parameter t=2t=2 gives P(5,0,6)P(5, 0, 6). The point Q(5,0,5)Q(5, 0, 5) has the right first two coordinates but fails the third, so it is off the cable.

Quick Recap

  • A line is r=a+td\mathbf{r}=\mathbf{a}+t\mathbf{d}, with non-zero d\mathbf{d} and real tt.
  • Two points supply a direction by subtraction; different points and scaled directions can describe the same line.
  • Eliminate one shared parameter for Cartesian form; keep any zero-direction coordinate fixed.
  • Use direction vectors and the absolute scalar product to find the smaller line angle.

The opening cable passes through P(5,0,6)P(5, 0, 6) and misses Q(5,0,5)Q(5, 0, 5).