Free Mathematics Class 11 CBSE notes · practise this chapter with an AI quiz

← All study notes

How Far Is a Point From a Line? One Formula Finds the Shortest Gap

Write equations of lines parallel to the axes and in point-slope, two-point, slope-intercept and intercept forms, convert between forms, find the perpendicular distance of a point from a line, and find the distance between parallel lines.

What are the different ways to write the equation of a line?

Every non-vertical straight line can be written as y=mx+cy = mx + c, and every line of any kind as Ax+By+C=0Ax + By + C = 0. But the most convenient form depends on what you are given — a point and a slope, two points, or the intercepts.

Once a line is in the form Ax+By+C=0Ax + By + C = 0, one formula gives the shortest distance from any point to it.

This part covers the forms of a line, converting between them, point-to-line distance and the distance between parallel lines.

How do you write the equation of a line parallel to an axis, and in point-slope and two-point form?

A line parallel to the x-axis is y=by = b and one parallel to the y-axis is x=ax = a; through (x1,y1)(x_1, y_1) with slope mm, the line is y−y1=m(x−x1)y - y_1 = m(x - x_1); through two points, it is y−y1=y2−y1x2−x1(x−x1)y - y_1 = \frac{y_2 - y_1}{x_2 - x_1}(x - x_1).

Parallel to an axis.
A line parallel to the x-axis and 33 units below it is y=−3y = -3.

Worked example 1 — point-slope. Through (−2,3)(-2, 3) with slope −4-4:

y−3=−4(x+2)4x+y+5=0y - 3 = -4(x + 2) \qquad 4x + y + 5 = 0

Worked example 2 — two-point. Through (1,−1)(1, -1) and (3,5)(3, 5):

y+1=5+13−1(x−1)=3(x−1)3x−y−4=0y + 1 = \frac{5 + 1}{3 - 1}(x - 1) = 3(x - 1) \qquad 3x - y - 4 = 0

Check with (3,5)(3, 5): 9−5−4=09 - 5 - 4 = 0.

An everyday example. A straight metro line drawn on a city grid map through two station positions is written with the two-point form.

The boundary case. If x1=x2x_1 = x_2, the two-point form fails; the line is simply x=x1x = x_1.

How do you use the slope-intercept and intercept forms, and convert between forms?

The slope-intercept form y=mx+cy = mx + c shows the slope and y-intercept, the intercept form xa+yb=1\frac{x}{a} + \frac{y}{b} = 1 shows where the line cuts both axes, and rearranging Ax+By+C=0Ax + By + C = 0 gives either.

Worked example 1 — converting.
For 3x+4y−12=03x + 4y - 12 = 0:

y=−34x+3m=−34,  c=3y = -\frac{3}{4}x + 3 \qquad m = -\frac{3}{4}, \; c = 3
3x+4y=12⇒x4+y3=13x + 4y = 12 \quad \Rightarrow \quad \frac{x}{4} + \frac{y}{3} = 1

Worked example 2 — given intercepts. A line cuts the axes at 33 and −2-2:

x3+y−2=12x−3y=6\frac{x}{3} + \frac{y}{-2} = 1 \qquad 2x - 3y = 6

Worked example 3 — equal intercepts. A line through (2,3)(2, 3) has equal intercepts aa:

2a+3a=1a=5x+y=5\frac{2}{a} + \frac{3}{a} = 1 \qquad a = 5 \qquad x + y = 5

An everyday example. Suppose a taxi fare is ₹40 plus ₹12 per km. The fare line y=12x+40y = 12x + 40 is in slope-intercept form: slope 1212, intercept 4040.

The substance. A line through the origin has no intercept form, since both intercepts are 00.

How do you find the perpendicular distance of a point from a line?

The perpendicular distance from (x1,y1)(x_1, y_1) to the line Ax+By+C=0Ax + By + C = 0 is d=∣Ax1+By1+C∣A2+B2d = \frac{|Ax_1 + By_1 + C|}{\sqrt{A^2 + B^2}}, the shortest distance from the point to the line.

Worked example 1.
Distance of (3,−5)(3, -5) from 3x−4y−26=03x - 4y - 26 = 0:

d=∣9+20−26∣9+16=35d = \frac{|9 + 20 - 26|}{\sqrt{9 + 16}} = \frac{3}{5}

Worked example 2. Distance of the origin from 3x+4y=253x + 4y = 25, written as 3x+4y−25=03x + 4y - 25 = 0:

d=∣−25∣5=5d = \frac{|-25|}{5} = 5

Worked example 3 — find a constant. The point (2,3)(2, 3) is 22 units from 3x+4y+k=03x + 4y + k = 0.

∣6+12+k∣5=2∣18+k∣=10k=−8 or k=−28\frac{|6 + 12 + k|}{5} = 2 \qquad |18 + k| = 10 \qquad k = -8 \text{ or } k = -28

Two parallel lines, one on each side of the point, satisfy the condition.

An everyday example. The shortest walk from a house to a long straight highway is along the perpendicular, and its length is given by this formula on a map grid.

The trap. Write the line in the form Ax+By+C=0Ax + By + C = 0 first; using 3x+4y=253x + 4y = 25 with C=25C = 25 gives the wrong sign inside the modulus.

How do you find the distance between two parallel lines and solve applied problems on straight lines?

For parallel lines Ax+By+C1=0Ax + By + C_1 = 0 and Ax+By+C2=0Ax + By + C_2 = 0 with the same AA and BB, the distance between them is ∣C1−C2∣A2+B2\frac{|C_1 - C_2|}{\sqrt{A^2 + B^2}}.

Worked example 1.


15x+8y−34=0 and 15x+8y+31=0:d=∣−34−31∣225+64=651715x + 8y - 34 = 0 \text{ and } 15x + 8y + 31 = 0: \quad d = \frac{|-34 - 31|}{\sqrt{225 + 64}} = \frac{65}{17}

Worked example 2 — match coefficients first. For 3x−4y+7=03x - 4y + 7 = 0 and 6x−8y+5=06x - 8y + 5 = 0, divide the second by 22 to get 3x−4y+2.5=03x - 4y + 2.5 = 0:

d=∣7−2.5∣5=0.9d = \frac{|7 - 2.5|}{5} = 0.9

Worked example 3 — an application. Fahrenheit and Celsius temperatures lie on a straight line through (0,32)(0, 32) and (100,212)(100, 212).

F−32=212−32100(C−0)F=95C+32F - 32 = \frac{212 - 32}{100}(C - 0) \qquad F = \frac{9}{5}C + 32

At body temperature C=37C = 37: F=66.6+32=98.6F = 66.6 + 32 = 98.6.

An everyday example. A straight canal running beside a parallel road keeps the same gap everywhere, and that gap is the distance between two parallel lines.

The substance. The xx and yy coefficients must be identical before subtracting the constants.
Exam tip

What earns full marks on equations of lines and distances?

Choose the form that matches the given data, simplify to Ax+By+C=0Ax + By + C = 0, and show the modulus and square root clearly in distance formulas.

-
Point-slope
: y−y1=m(x−x1)y - y_1 = m(x - x_1)
- Two-point: find the slope, then use point-slope
- Slope-intercept y=mx+cy = mx + c; intercept xa+yb=1\frac{x}{a} + \frac{y}{b} = 1
- Point-to-line: ∣Ax1+By1+C∣A2+B2\frac{|Ax_1 + By_1 + C|}{\sqrt{A^2 + B^2}}
- Parallel lines: equalise coefficients, then ∣C1−C2∣A2+B2\frac{|C_1 - C_2|}{\sqrt{A^2 + B^2}}
- Check a point on the final line

The trap. Using ∣7−5∣9+16\frac{|7 - 5|}{\sqrt{9 + 16}} for 3x−4y+7=03x - 4y + 7 = 0 and 6x−8y+5=06x - 8y + 5 = 0. The second equation must be halved first.
Did you know

Why is the perpendicular always the shortest path to a line?

Drop a perpendicular from a point PP to a line, meeting it at NN. Now pick any other point QQ on the line.

PNQPNQ is a right-angled triangle with PQPQ as its hypotenuse, and the hypotenuse is always the longest side:

PQ2=PN2+NQ2>PN2PQ^2 = PN^2 + NQ^2 > PN^2

So every slanted path is longer than the perpendicular. That is why the distance formula measures along the perpendicular — and why a pipe laid from a house straight to a main road uses the least material.
Exam relevance

How are distances and forms of lines tested in JEE Main and JEE Advanced?

Straight Lines is a regular chapter for JEE Main and JEE Advanced, and its equations are the starting point for Conic Sections.

What gets asked. Equations of lines under conditions, the perpendicular distance of a point from a line, the distance between parallel lines, the foot of the perpendicular and the image of a point in a line, and families of lines through the intersection of two given lines.

Question types. Multiple-choice and numerical-value questions, often combining several of these ideas in one figure.

The trap that costs marks. Applying the parallel-lines formula before making the coefficients of xx and yy identical.
Key takeaways

What must you be able to do from this part?

- Parallel to axes: y=by = b, x=ax = a
- Point-slope: through (−2,3)(-2, 3) with slope −4-4 gives 4x+y+5=04x + y + 5 = 0
- Two-point: (1,−1)(1, -1) and (3,5)(3, 5) give 3x−y−4=03x - y - 4 = 0
- Slope-intercept and intercept forms: 3x+4y−12=03x + 4y - 12 = 0 is y=−34x+3y = -\frac{3}{4}x + 3 and x4+y3=1\frac{x}{4} + \frac{y}{3} = 1
- Point-to-line distance: (3,−5)(3, -5) from 3x−4y−26=03x - 4y - 26 = 0 is 35\frac{3}{5}
- Parallel lines: equalise coefficients; 3x−4y+7=03x - 4y + 7 = 0 and 6x−8y+5=06x - 8y + 5 = 0 are 0.90.9 apart

Find how far the point (1,1)(1, 1) is from the line 5x−12y+20=05x - 12y + 20 = 0, then check by finding the foot of the perpendicular.

Ready to put this into practice?

Create a personalized quiz on this exact topic — free to start.

Create your own quiz on Straight Lines — Part 2Create a free account
← Back to all articles