NDA Maths · Lines

Distance, Section & Locus

Distances between points, from a point to a line, and between parallel lines; the section formula for dividing a segment; and locus equations from a geometric condition.

Why this matters

These three formulas underpin half the chapter. The point-to-line distance and the section formula appear constantly, and 'locus' questions are just a geometric condition translated into an equation.

Concept 1 of 3

Distance: point-point, point-line, parallel lines

Intuition

Three distances recur: between two points (Pythagoras), from a point to a line (perpendicular distance using the normalised equation), and between two parallel lines (difference of constants over the same normaliser).

Definition

  • Two points: (x2x1)2+(y2y1)2\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}.
  • Point to line: distance from (x0,y0)(x_0,y_0) to ax+by+c=0ax+by+c=0 is ax0+by0+ca2+b2\dfrac{|ax_0+by_0+c|}{\sqrt{a^2+b^2}}.
  • Parallel lines ax+by+c1=0ax+by+c_1=0, ax+by+c2=0ax+by+c_2=0: c1c2a2+b2\dfrac{|c_1-c_2|}{\sqrt{a^2+b^2}} (make the a,ba,b match first).

Distance formulas

(x2x1)2+(y2y1)2ax0+by0+ca2+b2c1c2a2+b2\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}\qquad \dfrac{|ax_0+by_0+c|}{\sqrt{a^2+b^2}}\qquad \dfrac{|c_1-c_2|}{\sqrt{a^2+b^2}}
P(x₀,y₀)ax+by+c=0dd = |ax₀+by₀+c| / √(a²+b²)

Worked example

Find the distance from (1,2)(1,2) to the line 3x+4y10=03x+4y-10=0.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 1LinesEASY
What is the distance between 3x+4y=93x+4y=9 and 6x+8y=156x+8y=15?

[Q64 · Apr · 2018]

Put the line in ax+by+c=0ax+by+c=0 form first, and divide by a2+b2\sqrt{a^2+b^2} — not by a+ba+b

Two things go wrong with point-to-line distance. (1) The line must be written as ax+by+c=0ax+by+c=0 (everything on one side) before substituting — applying the formula to y=mx+cy=mx+c or ax+by=cax+by=c as-is gives the wrong numerator. (2) The denominator is a2+b2\sqrt{a^2+b^2}, not a2+b2a^2+b^2 or a+ba+b. For parallel lines, the a,ba,b coefficients of both lines must be made identical first, or c1c2|c_1-c_2| is meaningless.

Concept 2 of 3

Section formula and ratios

Intuition

The point dividing a segment in a given ratio is a weighted average of the endpoints. Run it backwards to find the ratio in which a point (or a line) divides a segment, or forwards to find midpoints and divisions.

Definition

Point dividing P(x1,y1)P(x_1,y_1),Q(x2,y2)Q(x_2,y_2) internally in ratio m:nm:n: (mx2+nx1m+n,my2+ny1m+n)\left(\dfrac{mx_2+nx_1}{m+n},\dfrac{my_2+ny_1}{m+n}\right). External division uses m:nm:-n. Midpoint is the 1:11:1 case. Collinearity of (x1,y1),(x2,y2),(x3,y3)(x_1,y_1),(x_2,y_2),(x_3,y_3): area =0=0 (equivalently equal slopes).

Section formula and midpoint

(mx2+nx1m+n,my2+ny1m+n)(x1+x22,y1+y22)\left(\dfrac{mx_2+nx_1}{m+n},\dfrac{my_2+ny_1}{m+n}\right)\qquad \left(\dfrac{x_1+x_2}{2},\dfrac{y_1+y_2}{2}\right)

Worked example

Find the point dividing (1,2)(1,2) and (4,8)(4,8) internally in ratio 2:12:1.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 2LinesMODERATE
What is the ratio in which the point C ⁣(27,207)C\!\left(-\dfrac{2}{7}, -\dfrac{20}{7}\right) divides the line joining the points A(2,2)A(-2, -2) and B(2,4)B(2, -4)?

[Q56 · Apr · 2017]

In m:nm:n the weight mm multiplies the far endpoint x2x_2 — mind the cross-pairing

For a point dividing P1P2P_1P_2 in ratio m:nm:n (with mm the part nearer P2P_2), the x-coordinate is mx2+nx1m+n\dfrac{mx_2+nx_1}{m+n}: the ratio's first number mm pairs with the second point's coordinate x2x_2. Writing mx1+nx2m+n\dfrac{mx_1+nx_2}{m+n} swaps the weights and divides in ratio n:mn:m instead — the point lands on the wrong side. Also remember the m+nm+n in the denominator.

Concept 3 of 3

Locus from a condition

Intuition

A locus is the set of points satisfying a rule. Let the moving point be (x,y)(x,y), write the geometric condition algebraically, and simplify — the equation that survives is the locus. 'Equidistant from two points' always gives the perpendicular bisector.

Definition

Set P=(x,y)P=(x,y), translate the condition (equidistant, fixed ratio, sum/difference of distances), and reduce. **Equidistant from A,BA,B:** PA2=PB2PA^2=PB^2 ⇒ the perpendicular bisector of ABAB (a line). Equidistant from two lines ⇒ the angle bisectors.

Worked example

Find the locus of points equidistant from A(1,2)A(1,2) and B(3,4)B(3,4).
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 3LinesEASY
What is the equation of the locus of the mid-point of the line segment obtained by cutting the line x+y=px+y=p (where pp is a real number) by the coordinate axes?

[Q89 · Apr · 2022]

Equidistant from two points gives a line (perp. bisector); equidistant from two lines gives the angle bisectors

Don't conflate the two 'equidistant' loci. Equidistant from two points A,BA,B is the perpendicular bisector of ABAB — a single straight line. Equidistant from two lines is the pair of angle bisectors between them. Setting up PA2=PB2PA^2=PB^2 (distances to points) when the question means distance-to-lines, or vice versa, produces the wrong locus entirely.

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)

  • Distance: point-point, point-line, parallel lines

    Distance formulas

    (x2x1)2+(y2y1)2ax0+by0+ca2+b2c1c2a2+b2\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}\qquad \dfrac{|ax_0+by_0+c|}{\sqrt{a^2+b^2}}\qquad \dfrac{|c_1-c_2|}{\sqrt{a^2+b^2}}
  • Section formula and ratios

    Section formula and midpoint

    (mx2+nx1m+n,my2+ny1m+n)(x1+x22,y1+y22)\left(\dfrac{mx_2+nx_1}{m+n},\dfrac{my_2+ny_1}{m+n}\right)\qquad \left(\dfrac{x_1+x_2}{2},\dfrac{y_1+y_2}{2}\right)

Watch out for (3)

Drill every past-year question on this subtopic

22 questions from the bank — paginated, with cart and Word-export support.

Related notes