Distance of Point from a Line ax + by + c = 0

medium CBSE JEE-MAIN JEE Main 2024 4 min read

Question

Find the distance of the point (3,5)(3, -5) from the line 3x4y+10=03x - 4y + 10 = 0.


Solution — Step by Step

The perpendicular distance from a point (x1,y1)(x_1, y_1) to the line ax+by+c=0ax + by + c = 0 is:

d=ax1+by1+ca2+b2d = \frac{|ax_1 + by_1 + c|}{\sqrt{a^2 + b^2}}

Here a=3a = 3, b=4b = -4, c=10c = 10, and our point is (x1,y1)=(3,5)(x_1, y_1) = (3, -5).

Plug into ax1+by1+cax_1 + by_1 + c:

3(3)+(4)(5)+10=9+20+10=393(3) + (-4)(-5) + 10 = 9 + 20 + 10 = 39

The absolute value gives 39=39|39| = 39.

a2+b2=32+(4)2=9+16=25=5\sqrt{a^2 + b^2} = \sqrt{3^2 + (-4)^2} = \sqrt{9 + 16} = \sqrt{25} = 5

A 3-4-5 Pythagorean triple — recognise it immediately to save time.

d=395=7.8d = \frac{39}{5} = 7.8

Distance = 395\dfrac{39}{5} units (or 7.87.8 units)


Why This Works

The formula gives the perpendicular distance — the shortest possible distance from a point to a line. Any other path from the point to the line would be longer.

The denominator a2+b2\sqrt{a^2 + b^2} is the magnitude of the normal vector (a,b)(a, b) to the line. We’re essentially projecting the vector from any point on the line to (x1,y1)(x_1, y_1) onto this normal direction — that projection gives the perpendicular distance.

The absolute value in the numerator matters because ax1+by1+cax_1 + by_1 + c can be negative depending on which side of the line the point sits. Distance is always positive, so we take the magnitude.


Alternative Method — Using a Perpendicular Line

We can find the foot of the perpendicular from (3,5)(3, -5) to the line and compute the distance directly.

The line through (3,5)(3, -5) perpendicular to 3x4y+10=03x - 4y + 10 = 0 has slope =34=34= -\frac{3}{-4} = \frac{3}{4}… wait, the original line has slope 34\frac{3}{4}, so the perpendicular has slope 43-\frac{4}{3}.

Perpendicular line: y+5=43(x3)y + 5 = -\frac{4}{3}(x - 3), i.e., 4x+3y+3=04x + 3y + 3 = 0.

Solve simultaneously with 3x4y+10=03x - 4y + 10 = 0:

  • 4x+3y=34x + 3y = -3 … (i)
  • 3x4y=103x - 4y = -10 … (ii)

Multiply (i) by 4 and (ii) by 3: 16x+12y=1216x + 12y = -12 and 9x12y=309x - 12y = -30. Adding: 25x=4225x = -42, so x=4225x = -\frac{42}{25}.

Then y=34(42/25)3=3+168/253=93/253=3125y = \frac{-3 - 4(-42/25)}{3} = \frac{-3 + 168/25}{3} = \frac{93/25}{3} = \frac{31}{25}.

Distance from (3,5)(3, -5) to (4225,3125)\left(-\frac{42}{25}, \frac{31}{25}\right) works out to 395\frac{39}{5} — same answer.

The direct formula is always faster in exams. Use the perpendicular-foot method only when the question specifically asks for the foot of the perpendicular or the image of a point in a line.


Common Mistake

Dropping the absolute value sign. When you compute ax1+by1+cax_1 + by_1 + c, the result can be negative — for instance if the point were (3,5)(-3, 5), the numerator would be 3(3)+(4)(5)+10=920+10=193(-3) + (-4)(5) + 10 = -9 - 20 + 10 = -19. A negative distance is meaningless. Always apply |\cdot| before dividing. This exact slip has cost marks in CBSE board exams where method marks require correct formula application.

A second trap: misreading the sign of bb. The line here is 3x4y+10=03x - 4y + 10 = 0, so b=4b = -4, not +4+4. Students who rewrite it as 3x+4y=103x + 4y = -10 and use b=4b = 4 get 9+16=5\sqrt{9 + 16} = 5 by accident (still correct here!) but will get the numerator wrong: 3(3)+4(5)+10=920+10=13(3) + 4(-5) + 10 = 9 - 20 + 10 = -1, giving d=15d = \frac{1}{5} — completely wrong.

Always write out aa, bb, cc explicitly from the standard form ax+by+c=0ax + by + c = 0 before substituting.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next