Skip to content

Mathematics · Ch 6 — Line and Plane

Passing through two points

6.1.2

Passing through two points

Theorem 6.3 (vector form, two points). Suppose a line LL passes through two distinct points AA and BB, with position vectors aˉ\bar{a} and bˉ\bar{b}. Let PP, with position vector rˉ\bar{r}, be any other point on LL. Since AA, PP and BB are all on the same straight line, the vectors AP‾\overline{AP} and AB‾\overline{AB} are collinear (parallel), so AP‾=λAB‾\overline{AP} = \lambda \overline{AB} for some scalar λ\lambda. Now AB‾=bˉ−aˉ\overline{AB} = \bar{b} - \bar{a} and AP‾=rˉ−aˉ\overline{AP} = \bar{r} - \bar{a}, so substituting gives rˉ−aˉ=λ(bˉ−aˉ)\bar{r} - \bar{a} = \lambda(\bar{b} - \bar{a}), i.e. rˉ=aˉ+λ(bˉ−aˉ).\bar{r} = \bar{a} + \lambda(\bar{b} - \bar{a}). Notice this is really Theorem 6.1 in disguise: once we know two points, the vector bˉ−aˉ\bar{b} - \bar{a} plays exactly the role that the given direction vector bˉ\bar{b} played there — it is simply the direction we compute by subtracting the two known position vectors. As before, this can also be written without a parameter as (rˉ−aˉ)×(bˉ−aˉ)=0ˉ(\bar{r} - \bar{a}) \times (\bar{b} - \bar{a}) = \bar{0}.

Theorem 6.4 (Cartesian form, two points). In coordinates, if LL passes through A(x1,y1,z1)A(x_1,y_1,z_1) and B(x2,y2,z2)B(x_2,y_2,z_2), and P(x,y,z)P(x,y,z) is any other point of LL, then the direction ratios of APAP are x−x1, y−y1, z−z1x-x_1,\ y-y_1,\ z-z_1, while the direction ratios of the line itself (found from its two known points) are x2−x1, y2−y1, z2−z1x_2-x_1,\ y_2-y_1,\ z_2-z_1. Since these two sets of direction ratios represent the same direction, they are proportional, giving x−x1x2−x1=y−y1y2−y1=z−z1z2−z1.\frac{x-x_1}{x_2-x_1} = \frac{y-y_1}{y_2-y_1} = \frac{z-z_1}{z_2-z_1}. Exactly as in Theorem 6.2, this is Theorem 6.2 with the direction ratios a,b,ca,b,c replaced by the differences x2−x1, y2−y1, z2−z1x_2-x_1,\ y_2-y_1,\ z_2-z_1 computed from the two given points.

Worked examples.

Ex.(5). Find the vector equation of the line through A(1,2,3)A(1,2,3) and B(2,3,4)B(2,3,4). Writing the position vectors as aˉ=i^+2j^+3k^\bar{a} = \hat{i}+2\hat{j}+3\hat{k} and bˉ=2i^+3j^+4k^\bar{b} = 2\hat{i}+3\hat{j}+4\hat{k}, we first compute bˉ−aˉ=(2i^+3j^+4k^)−(i^+2j^+3k^)=i^+j^+k^\bar{b}-\bar{a} = (2\hat{i}+3\hat{j}+4\hat{k}) - (\hat{i}+2\hat{j}+3\hat{k}) = \hat{i}+\hat{j}+\hat{k}. By Theorem 6.3, the equation of the required line is rˉ=(i^+2j^+3k^)+λ(i^+j^+k^).\bar{r} = (\hat{i}+2\hat{j}+3\hat{k}) + \lambda(\hat{i}+\hat{j}+\hat{k}). As a check, substituting λ=1\lambda = 1 should reproduce B's position vector: (i^+2j^+3k^)+(i^+j^+k^)=2i^+3j^+4k^(\hat{i}+2\hat{j}+3\hat{k}) + (\hat{i}+\hat{j}+\hat{k}) = 2\hat{i}+3\hat{j}+4\hat{k}, which is exactly bˉ\bar{b}, confirming the equation is correct.

Ex.(7). Find the Cartesian equations of the line through A(1,2,3)A(1,2,3) and B(2,3,4)B(2,3,4) — the Cartesian counterpart of Ex.(5). Here (x1,y1,z1)=(1,2,3)(x_1,y_1,z_1) = (1,2,3) and (x2,y2,z2)=(2,3,4)(x_2,y_2,z_2) = (2,3,4), so by Theorem 6.4: x−12−1=y−23−2=z−34−3,i.e.x−11=y−21=z−31,\frac{x-1}{2-1} = \frac{y-2}{3-2} = \frac{z-3}{4-3},\quad\text{i.e.}\quad \frac{x-1}{1} = \frac{y-2}{1} = \frac{z-3}{1}, which simplifies to the neat form x−1=y−2=z−3x - 1 = y - 2 = z - 3 (since dividing by 11 changes nothing). One can again check that B's own coordinates (2,3,4)(2,3,4) satisfy this: 2−1=12-1=1, 3−2=13-2=1, 4−3=14-3=1 — all equal, so B indeed lies on the line.

Ex.(9) — angle between two lines. Find the angle between the lines rˉ=(i^+2j^+3k^)+λ(2i^−2j^+k^)\bar{r} = (\hat{i}+2\hat{j}+3\hat{k}) + \lambda(2\hat{i}-2\hat{j}+\hat{k}) and rˉ=(i^+2j^+3k^)+λ(i^+2j^+2k^)\bar{r} = (\hat{i}+2\hat{j}+3\hat{k}) + \lambda(\hat{i}+2\hat{j}+2\hat{k}). The angle between two lines is defined as the angle between any pair of vectors along each line, regardless of where the lines actually sit in space — so only the two direction vectors bˉ=2i^−2j^+k^\bar{b} = 2\hat{i}-2\hat{j}+\hat{k} and cˉ=i^+2j^+2k^\bar{c} = \hat{i}+2\hat{j}+2\hat{k} matter here (the fact that both lines happen to pass through the same point in this particular example is incidental to the method). Using the standard dot-product formula for the angle between two vectors, cos⁡θ=bˉ⋅cˉ∣bˉ∣∣cˉ∣.\cos\theta = \frac{\bar{b}\cdot\bar{c}}{|\bar{b}||\bar{c}|}. The dot product is bˉ⋅cˉ=(2)(1)+(−2)(2)+(1)(2)=2−4+2=0\bar{b}\cdot\bar{c} = (2)(1) + (-2)(2) + (1)(2) = 2 - 4 + 2 = 0. Since the dot product is already zero, the magnitudes do not even need to be computed to know the answer: cos⁡θ=0\cos\theta = 0, so θ=90∘\theta = 90^\circ, meaning the two given lines are perpendicular to each other. (Carrying the magnitudes through for completeness: ∣bˉ∣=4+4+1=3|\bar{b}| = \sqrt{4+4+1} = 3 and ∣cˉ∣=1+4+4=3|\bar{c}| = \sqrt{1+4+4} = 3, so cos⁡θ=0/(3×3)=0\cos\theta = 0/(3\times3) = 0, the same conclusion.)

Ex.(10) — showing two lines intersect. Show that the lines rˉ=(−i^−3j^+4k^)+λ(−10i^−j^+k^)\bar{r} = (-\hat{i}-3\hat{j}+4\hat{k}) + \lambda(-10\hat{i}-\hat{j}+\hat{k}) and rˉ=(−10i^−j^+k^)+μ(−i^−3j^+4k^)\bar{r} = (-10\hat{i}-\hat{j}+\hat{k}) + \mu(-\hat{i}-3\hat{j}+4\hat{k}) intersect, and find their point of intersection. Two lines given in this general vector/parametric form intersect exactly when there is some choice of the two independent parameters, λ\lambda on the first line and μ\mu on the second, that makes the corresponding points coincide. Writing out the general point of each line in components: on the first line it is (−1−10λ)i^+(−3−λ)j^+(4+λ)k^(-1-10\lambda)\hat{i} + (-3-\lambda)\hat{j} + (4+\lambda)\hat{k}, and on the second it is (−10−μ)i^+(−1−3μ)j^+(1+4μ)k^(-10-\mu)\hat{i} + (-1-3\mu)\hat{j} + (1+4\mu)\hat{k}. Matching the three components gives three equations: −1−10λ=−10−μ-1-10\lambda = -10-\mu, −3−λ=−1−3μ-3-\lambda = -1-3\mu, and 4+λ=1+4μ4+\lambda = 1+4\mu, which simplify to 10λ−μ=9,λ−3μ=−2,λ−4μ=−3.10\lambda - \mu = 9,\qquad \lambda - 3\mu = -2,\qquad \lambda - 4\mu = -3. This is three equations in only two unknowns, so in general there is no solution at all — the lines intersect only if this particular system happens to be consistent, which can be checked by testing whether the coefficient determinant of the three equations (treating them as a 3×33\times3 system, using the third column as constants) is zero: ∣10−191−3−21−4−3∣=10(9−8)+1(−3+2)+9(−4+3)=10−1−9=0.\begin{vmatrix}10&-1&9\\1&-3&-2\\1&-4&-3\end{vmatrix} = 10(9-8) + 1(-3+2) + 9(-4+3) = 10 - 1 - 9 = 0. Since this determinant is zero, the system is consistent and the lines do intersect. Solving any two of the three equations (say the first two) gives λ=1, μ=1\lambda = 1,\ \mu = 1; the third equation can then be used purely as a check, and it is indeed satisfied. Substituting λ=1\lambda = 1 back into the first line's general point (−1−10λ)i^+(−3−λ)j^+(4+λ)k^(-1-10\lambda)\hat{i}+(-3-\lambda)\hat{j}+(4+\lambda)\hat{k} gives −11i^−4j^+5k^-11\hat{i} - 4\hat{j} + 5\hat{k}, which is the position vector of the point of intersection. …

Figure 1Fig. 6.2 — A line L through two given points A(ā) and B(b̄); a variable point P(r̄) on L
Fig. 1 — Fig. 6.2 — A line L through two given points A(ā) and B(b̄); a variable point P(r̄) on L

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

What this figure shows. Fig. 6.2 (printed page 196) shows the two-point construction behind Theorem 6.3. The same X, Y, Z axes and origin O are drawn as in Fig. 6.1, but now the line L is fixed by two of its own points, A and B, instead of by a point and a separate direction vector. A variable point P again sits on L, between A and B. Three position vectors start at O: aˉ\bar{a} to A, bˉ\bar{b} to B, and rˉ\bar{r} to P. Because A, P and B all lie on the same straight line, the vector AP‾\overline{AP} is always a scalar multiple of AB‾=bˉ−aˉ\overline{AB} = \bar{b} - \bar{a}, which is exactly the relationship the …