PYQ Vault

HSC Maths · Line and Planes

Distance of a Point from a Line

The perpendicular distance from a point to a line in space, found by a formula built from a projection, or by first finding the foot of the perpendicular.

Why this matters

9 questions, one of them from a board paper: the length of the perpendicular from the point (3, 2, 1) to a line, set in 2023, which is the textbook's own Solved Example 12 word for word. The textbook rows are Exercise 6.2 Questions 1, 2, 5 and 6, Solved Examples 12 and 13, one question of Miscellaneous Exercise 6 A and one MCQ of Miscellaneous Exercise 6 B.

Concept 1 of 2: Length of the perpendicular from a point to a line

Drop the perpendicular PM from the point P to the line, and take a known point A of the line. Triangle AMP has its right angle at M, and AM is the projection of AP on the line. Pythagoras then gives PM without finding M at all.

Definition

  • Theorem 6.5: the line rˉ=aˉ+λbˉ\bar{r} = \bar{a} + \lambda\bar{b} passes through A(aˉ)A(\bar{a}). Let P(αˉ)P(\bar{\alpha}) be the point and MM the foot of the perpendicular from PP.
  • AMAM = the projection of AP‾\overline{AP} on bˉ\bar{b} = (αˉ−aˉ)⋅bˉ∣bˉ∣\dfrac{(\bar{\alpha} - \bar{a}) \cdot \bar{b}}{|\bar{b}|}.
  • Triangle AMPAMP is right angled at MM, so PM2=AP2−AM2PM^2 = AP^2 - AM^2.
  • ∴PM=∣αˉ−aˉ∣2−[(αˉ−aˉ)⋅bˉ∣bˉ∣]2\therefore PM = \sqrt{|\bar{\alpha} - \bar{a}|^2 - \left[\dfrac{(\bar{\alpha} - \bar{a}) \cdot \bar{b}}{|\bar{b}|}\right]^2}.

Distance of a point from a line

PM=∣αˉ−aˉ∣2−[(αˉ−aˉ)⋅bˉ∣bˉ∣]2PM = \sqrt{|\bar{\alpha} - \bar{a}|^2 - \left[\frac{(\bar{\alpha} - \bar{a}) \cdot \bar{b}}{|\bar{b}|}\right]^2}
  • αˉ\bar{\alpha}position vector of the point P
  • aˉ\bar{a}position vector of a point A of the line
  • bˉ\bar{b}a vector along the line

Worked example

Find the length of the perpendicular from P(1,2,3)P(1, 2, 3) to the line rˉ=(3i^+j^+k^)+λ(2i^−j^+2k^)\bar{r} = (3\hat{i} + \hat{j} + \hat{k}) + \lambda(2\hat{i} - \hat{j} + 2\hat{k}).
Practise this conceptself-check · 2 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2023 · Q. 30Moderate

Example 1 · Line and Planes · Distance of a Point from a Line

Find the length of the perpendicular drawn from the point P(3,2,1)P(3,2,1) to the line r→=(7i^+7j^+6k^)+λ(−2i^+2j^+3k^)\overrightarrow{r} = \left( 7\widehat{i} + 7\widehat{j} + 6\widehat{k} \right) + \lambda\left( - 2\widehat{i} + 2\widehat{j} + 3\widehat{k} \right).

Not squaring the whole projection

The projection is (αˉ−aˉ)⋅bˉ∣bˉ∣\dfrac{(\bar{\alpha} - \bar{a}) \cdot \bar{b}}{|\bar{b}|}. Square the whole of it, which divides the square of the dot product by ∣bˉ∣2|\bar{b}|^2. Dividing by ∣bˉ∣|\bar{b}| only once gives a wrong answer.

Stopping at the square of the distance

The bracket under the root is PM2PM^2. Take the square root and write the unit; giving the value under the root as the answer loses the last mark.

Concept 2 of 2: Foot of the perpendicular, and points at a given distance

Every point of the line can be written with one parameter: (x₁ + λa, y₁ + λb, z₁ + λc). The foot M is the one point where PM is perpendicular to the line, and that gives one equation in λ. The same general point answers questions about points of the line at a given distance from its base point.

Definition

  • Write the general point M(x1+λa, y1+λb, z1+λc)M(x_1 + \lambda a,\ y_1 + \lambda b,\ z_1 + \lambda c) of the line.
  • Direction ratios of PMPM are the coordinates of MM minus those of PP.
  • PMPM is perpendicular to the line, so a(xM−xP)+b(yM−yP)+c(zM−zP)=0a(x_M - x_P) + b(y_M - y_P) + c(z_M - z_P) = 0. Solve for λ\lambda.
  • Put λ\lambda back to get MM; then PMPM by the distance formula, if it is asked.
  • A point of the line at distance dd from the base point A(x1,y1,z1)A(x_1, y_1, z_1): AM=∣λ∣a2+b2+c2=dAM = |\lambda|\sqrt{a^2 + b^2 + c^2} = d, which gives two points, one on each side of AA.

General point of a line

M(x1+λa, y1+λb, z1+λc),PM‾⋅(ai^+bj^+ck^)=0M(x_1 + \lambda a,\ y_1 + \lambda b,\ z_1 + \lambda c), \qquad \overline{PM} \cdot (a\hat{i} + b\hat{j} + c\hat{k}) = 0

Worked example

Find the co-ordinates of the foot of the perpendicular from P(5,0,3)P(5, 0, 3) to the line x−21=y+12=z−4−1\dfrac{x - 2}{1} = \dfrac{y + 1}{2} = \dfrac{z - 4}{-1}, and the length of the perpendicular.
Practise this conceptself-check · 2 quick reps

The same idea in a textbook question:

Balbharati textbook · Ex 6.2 Q.5Moderate

Example 2 · Line and Planes · Distance of a Point from a Line

Find the perpendicular distance of the point (1,0,0)(1,0,0) from the line x−12=y+1−3=z+108\dfrac{x-1}{2}=\dfrac{y+1}{-3}=\dfrac{z+10}{8}. Also find the co-ordinates of the foot of the perpendicular.

Dotting PM with the wrong vector

The perpendicular condition dots the direction ratios of PMPM with the direction ratios of the line, a,b,ca, b, c. Dotting with the base point of the line gives a meaningless λ\lambda.

Giving λ as the answer

λ\lambda only locates the foot. Substitute it back to write MM as a point, and find PMPM when the length is also asked.

Treating the parameter as the distance

With direction ratios that are not direction cosines, the distance from the base point is ∣λ∣a2+b2+c2|\lambda|\sqrt{a^2 + b^2 + c^2}, not ∣λ∣|\lambda|. The parameter equals the distance only when a,b,ca, b, c are direction cosines.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (2)

  • Length of the perpendicular from a point to a line

    Distance of a point from a line

    PM=∣αˉ−aˉ∣2−[(αˉ−aˉ)⋅bˉ∣bˉ∣]2PM = \sqrt{|\bar{\alpha} - \bar{a}|^2 - \left[\frac{(\bar{\alpha} - \bar{a}) \cdot \bar{b}}{|\bar{b}|}\right]^2}
  • Foot of the perpendicular, and points at a given distance

    General point of a line

    M(x1+λa, y1+λb, z1+λc),PM‾⋅(ai^+bj^+ck^)=0M(x_1 + \lambda a,\ y_1 + \lambda b,\ z_1 + \lambda c), \qquad \overline{PM} \cdot (a\hat{i} + b\hat{j} + c\hat{k}) = 0

Watch out for (5)

Test yourself on Line and Planes

15 past MH HSC 12 questions from this chapter, timed at 23 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.