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 , and every line of any kind as . 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 , 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.
Once a line is in the form , 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 and one parallel to the y-axis is ; through with slope , the line is ; through two points, it is .
Parallel to an axis. A line parallel to the x-axis and units below it is .
Worked example 1 — point-slope. Through with slope :
Worked example 2 — two-point. Through and :
Check with : .
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 , the two-point form fails; the line is simply .
Parallel to an axis. A line parallel to the x-axis and units below it is .
Worked example 1 — point-slope. Through with slope :
Worked example 2 — two-point. Through and :
Check with : .
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 , the two-point form fails; the line is simply .
How do you use the slope-intercept and intercept forms, and convert between forms?
The slope-intercept form shows the slope and y-intercept, the intercept form shows where the line cuts both axes, and rearranging gives either.
Worked example 1 — converting. For :
Worked example 2 — given intercepts. A line cuts the axes at and :
Worked example 3 — equal intercepts. A line through has equal intercepts :
An everyday example. Suppose a taxi fare is ₹40 plus ₹12 per km. The fare line is in slope-intercept form: slope , intercept .
The substance. A line through the origin has no intercept form, since both intercepts are .
Worked example 1 — converting. For :
Worked example 2 — given intercepts. A line cuts the axes at and :
Worked example 3 — equal intercepts. A line through has equal intercepts :
An everyday example. Suppose a taxi fare is ₹40 plus ₹12 per km. The fare line is in slope-intercept form: slope , intercept .
The substance. A line through the origin has no intercept form, since both intercepts are .
How do you find the perpendicular distance of a point from a line?
The perpendicular distance from to the line is , the shortest distance from the point to the line.
Worked example 1. Distance of from :
Worked example 2. Distance of the origin from , written as :
Worked example 3 — find a constant. The point is units from .
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 first; using with gives the wrong sign inside the modulus.
Worked example 1. Distance of from :
Worked example 2. Distance of the origin from , written as :
Worked example 3 — find a constant. The point is units from .
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 first; using with 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 and with the same and , the distance between them is .
Worked example 1.
Worked example 2 — match coefficients first. For and , divide the second by to get :
Worked example 3 — an application. Fahrenheit and Celsius temperatures lie on a straight line through and .
At body temperature : .
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 and coefficients must be identical before subtracting the constants.
Worked example 1.
Worked example 2 — match coefficients first. For and , divide the second by to get :
Worked example 3 — an application. Fahrenheit and Celsius temperatures lie on a straight line through and .
At body temperature : .
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 and 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 , and show the modulus and square root clearly in distance formulas.
- Point-slope:
- Two-point: find the slope, then use point-slope
- Slope-intercept ; intercept
- Point-to-line:
- Parallel lines: equalise coefficients, then
- Check a point on the final line
The trap. Using for and . The second equation must be halved first.
- Point-slope:
- Two-point: find the slope, then use point-slope
- Slope-intercept ; intercept
- Point-to-line:
- Parallel lines: equalise coefficients, then
- Check a point on the final line
The trap. Using for and . 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 to a line, meeting it at . Now pick any other point on the line.
is a right-angled triangle with as its hypotenuse, and the hypotenuse is always the longest side:
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.
is a right-angled triangle with as its hypotenuse, and the hypotenuse is always the longest side:
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 and identical.
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 and identical.
Key takeaways
What must you be able to do from this part?
- Parallel to axes: ,
- Point-slope: through with slope gives
- Two-point: and give
- Slope-intercept and intercept forms: is and
- Point-to-line distance: from is
- Parallel lines: equalise coefficients; and are apart
Find how far the point is from the line , then check by finding the foot of the perpendicular.
- Point-slope: through with slope gives
- Two-point: and give
- Slope-intercept and intercept forms: is and
- Point-to-line distance: from is
- Parallel lines: equalise coefficients; and are apart
Find how far the point is from the line , then check by finding the foot of the perpendicular.