PYQ Vault

MHT-CET Maths · Straight Line

Distance — From a Point, Between Parallels, Along a Direction and the Foot of the Perpendicular

|ax₀ + by₀ + c|/√(a² + b²) is the distance from a point to a line; |c₁ − c₂|/√(a² + b²) the gap between parallels; the foot of the perpendicular is where the perpendicular through the point meets the line; distance along a direction needs the parallel line through the point.

Why this matters

9 PYQs at 11% HARD. The stems are the nearest of four lines to the origin, points on a line at unit distance from another, the area of a square from two parallel sides (set in 2023 and 2024), the foot of the perpendicular from (−2, 3) to 3x − y = 1 (twice), a distance measured parallel to a third line, and the distance of an intersection point from the origin. One formula per stem, applied once.

Concept 1 of 4

Distance From a Point to a Line

Intuition

Substitute the point into the line's expression and divide by the length of the normal vector (a,b)(a, b). The sign of the numerator tells which side of the line the point is on; the modulus gives the distance.

Definition

  • Distance of the origin from ax+by+c=0ax + by + c = 0 is ∣c∣a2+b2\dfrac{|c|}{\sqrt{a^2 + b^2}}: 3x−4y+4=03x - 4y + 4 = 0 gives 0.80.8, 2x−3y=52x - 3y = 5 gives 513≈1.39\dfrac{5}{\sqrt{13}} \approx 1.39, 4x−3y+12=04x - 3y + 12 = 0 gives 2.42.4, 5x−2y=35x - 2y = 3 gives 329≈0.56\dfrac{3}{\sqrt{29}} \approx 0.56 — the nearest.
  • Points on 2x−y=52x - y = 5 at distance 11 from 3x+4y=53x + 4y = 5: ∣3x+4y−5∣5=1\dfrac{|3x + 4y - 5|}{5} = 1 with y=2x−5y = 2x - 5: ∣11x−25∣=5|11x - 25| = 5, x=3011x = \dfrac{30}{11} or 2011\dfrac{20}{11}: (3011,511)\left(\dfrac{30}{11}, \dfrac{5}{11}\right), (2011,−1511)\left(\dfrac{20}{11}, -\dfrac{15}{11}\right).
  • x+(a−1)y=1x + (a - 1)y = 1 and 2x+a2y=12x + a^2y = 1 perpendicular forces a=−1a = -1; they meet at (35,−15)\left(\dfrac35, -\dfrac15\right), at distance 25\sqrt{\dfrac{2}{5}} from the origin — a plain two-point distance once the point is found.
  • Two answers to '∣⋅∣=d|\cdot| = d' are normal: one point on each side of the line.

Point to line

d=∣ax0+by0+c∣a2+b2d = \frac{|ax_0 + by_0 + c|}{\sqrt{a^2 + b^2}}
P(x₀,y₀)ax+by+c=0dd = |ax₀+by₀+c| / √(a²+b²)

Worked example

Find the distance of (3,−2)(3, -2) from 5x+12y−4=05x + 12y - 4 = 0.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 1Straight LineEASY
From the following options, the nearest line to the origin is ....

[Q105 · 22 April Shift I · 2025]

Comparing |c| without dividing by √(a² + b²)

5x−2y=35x - 2y = 3 has the smallest constant AND the smallest distance, but 3x−4y+4=03x - 4y + 4 = 0 has ∣c∣=4>3|c| = 4 > 3 and distance 0.80.8, less than 513\dfrac{5}{\sqrt{13}} from the line with ∣c∣=5|c| = 5. Always divide.

Concept 2 of 4

Distance Between Parallel Lines, and the Square Between Them

Intuition

Write both lines with the SAME a,ba, b; then the gap is ∣c1−c2∣a2+b2\dfrac{|c_1 - c_2|}{\sqrt{a^2 + b^2}}. Two opposite sides of a square are parallel lines, so the side is that gap and the area its square.

Definition

  • 4x+3y−20=04x + 3y - 20 = 0 and 4x+3y+15=04x + 3y + 15 = 0: gap 355=7\dfrac{35}{5} = 7, square area 4949. 5x−12y+39=05x - 12y + 39 = 0, 5x−12y+78=05x - 12y + 78 = 0: gap 33, area 99.
  • L:x5+yb=1L: \dfrac{x}{5} + \dfrac{y}{b} = 1 through (13,32)(13, 32) gives b=−20b = -20, i.e. 4x−y=204x - y = 20; K:xc+y3=1K: \dfrac{x}{c} + \dfrac{y}{3} = 1 parallel to it is 4x−y=−34x - y = -3; distance 2317\dfrac{23}{\sqrt{17}}.
  • If the coefficients differ by a factor (2x+y=32x + y = 3 and 4x+2y=14x + 2y = 1), scale one line first.
  • The gap is also the distance from ANY point of one line to the other.

Parallel lines

d=∣c1−c2∣a2+b2for ax+by+c1=0, ax+by+c2=0d = \frac{|c_1 - c_2|}{\sqrt{a^2 + b^2}} \quad\text{for } ax + by + c_1 = 0,\ ax + by + c_2 = 0

Worked example

Two sides of a square lie on 3x+4y=73x + 4y = 7 and 3x+4y=273x + 4y = 27. Find its area.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 2Straight LineMODERATE
If two sides of a square are 4x+3y−20=04x+3y-20=0 and 4x+3y+15=04x+3y+15=0, then the area of the square is

[Q135 · 15th May Shift 1 · 2023]

Subtracting constants of differently scaled lines

4x+3y=204x + 3y = 20 and 8x+6y=308x + 6y = 30 are not 1010 apart; rescale to 4x+3y=154x + 3y = 15 first, giving 11.

Concept 3 of 4

Foot of the Perpendicular: Intersect the Perpendicular Through the Point With the Line

Intuition

The foot is on the line and on the perpendicular through the given point. Write the perpendicular (negative reciprocal slope through the point) and solve the two equations — or use the ratio form h−x1a=k−y1b=−ax1+by1+ca2+b2\dfrac{h - x_1}{a} = \dfrac{k - y_1}{b} = -\dfrac{ax_1 + by_1 + c}{a^2 + b^2}.

Definition

  • From (−2,3)(-2, 3) to 3x−y−1=03x - y - 1 = 0: the perpendicular has slope −13-\tfrac13, x+3y=7x + 3y = 7; with 3x−y=13x - y = 1: (1,2)(1, 2).
  • Ratio form: h+23=k−3−1=−−6−3−110=1⇒(h,k)=(1,2)\dfrac{h + 2}{3} = \dfrac{k - 3}{-1} = -\dfrac{-6 - 3 - 1}{10} = 1 \Rightarrow (h, k) = (1, 2).
  • The reflection (image) of the point is twice as far: 2×2 \times foot −- point =(4,1)= (4, 1).
  • A tangent's point of contact on a circle is the foot of the perpendicular from the centre — the same computation in the Circle chapter.

Foot of the perpendicular

h−x1a=k−y1b=−ax1+by1+ca2+b2\frac{h - x_1}{a} = \frac{k - y_1}{b} = -\frac{ax_1 + by_1 + c}{a^2 + b^2}

Worked example

Find the foot of the perpendicular from (4,1)(4, 1) to x+2y=6x + 2y = 6.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 3Straight LineMODERATE
The co-ordinates of the foot of perpendicular, drawn from the point (−2,3)(-2, 3) on the line 3x−y−1=03x - y - 1 = 0 are

[Q140 · Shift 1 · 2023]

Sign slips in the ratio form

The common ratio is MINUS ax1+by1+ca2+b2\dfrac{ax_1 + by_1 + c}{a^2 + b^2}. Dropping the minus sends the foot to the wrong side, (−5,4)(-5, 4)-style, which is never on the line — check the foot satisfies the line's equation.

Concept 4 of 4

Distance From a Point to a Line Measured Parallel to Another Line

Intuition

Draw the line through the point parallel to the given direction, find where it meets the target line, and measure the ordinary distance between the point and that meeting point. It is longer than the perpendicular distance unless the direction is the normal.

Definition

  • From (1,2)(1, 2) to x+y=0x + y = 0 parallel to 3x−y=23x - y = 2: the parallel through (1,2)(1, 2) is 3x−y=13x - y = 1; it meets x+y=0x + y = 0 at (14,−14)\left(\tfrac14, -\tfrac14\right); distance (34)2+(94)2=3104\sqrt{\left(\tfrac34\right)^2 + \left(\tfrac94\right)^2} = \dfrac{3\sqrt{10}}{4}.
  • Formula: if the direction has inclination θ\theta, the distance is ∣ax1+by1+c∣∣acos⁡θ+bsin⁡θ∣\dfrac{|ax_1 + by_1 + c|}{|a\cos\theta + b\sin\theta|}.
  • The perpendicular distance is the special case θ=\theta = direction of the normal, and it is the minimum over all directions.

Along a direction

dθ=∣ax1+by1+c∣∣acos⁡θ+bsin⁡θ∣d_\theta = \frac{|ax_1 + by_1 + c|}{|a\cos\theta + b\sin\theta|}

Worked example

Find the distance of (2,3)(2, 3) from x−y=5x - y = 5 measured parallel to the xx-axis.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 4Straight LineMODERATE
The distance of the point (1,2)(1,2) from the line x+y=0x+y= 0 measured parallel to the line 3x−y=23x-y= 2 is

[Q107 · 23 April Shift I · 2025]

Reporting the perpendicular distance

32\dfrac{3}{\sqrt2} is the perpendicular distance from (1,2)(1, 2) to x+y=0x + y = 0; measured along 3x−y=23x - y = 2 it is 3104\dfrac{3\sqrt{10}}{4}. 'Measured parallel to' changes the answer.

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 (4)

Watch out for (4)

Drill every past-year question on this subtopic

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

Related notes