Distance Formula and Section Formula
Quantitative Aptitude › Coordinate Geometry · Topic 21.1
The distance formula gives the length of the line segment between two points as the square root of the sum of the squares of the differences of their coordinates. The section formula gives the point that divides the segment joining two points in a given ratio, internally or externally.
7 min read · Quantitative Aptitude · Coordinate Geometry
Quick Answer
The distance formula gives the length of the line segment between two points as the square root of the sum of the squares of the differences of their coordinates. The section formula gives the point that divides the segment joining two points in a given ratio, internally or externally.
At a Glance
- Distance √[(x₂ – x₁)² + (y₂ – y₁)²]
- Distance from origin √(x² + y²)
- Internal division m:n ((mx₂ + nx₁)/(m + n), (my₂ + ny₁)/(m + n))
- External division m:n ((mx₂ – nx₁)/(m – n), (my₂ – ny₁)/(m – n))
- Midpoint Section formula with m = n = 1
Where Does It Fit?
This is the first topic of the Coordinate Geometry macro and supplies the two tools used by almost every later topic. The next topic, Slope of a Line and Different Forms of the Equation of a Line, adds the idea of slope, while Midpoint Formula and Centroid of a Triangle Using Coordinates and Area of a Triangle Using Coordinates of Its Vertices reuse the distance and section ideas for triangles.
What Is the Distance Formula?
In short: the distance between the points (x₁, y₁) and (x₂, y₂) is found by applying Pythagoras theorem to the horizontal and vertical gaps between them.
Distance formula
- d = √[(x₂ – x₁)² + (y₂ – y₁)²]
- Distance of (x, y) from the origin = √(x² + y²)
- The order of the points does not matter, because the differences are squared.
| Points | Horizontal gap | Vertical gap | Distance |
|---|---|---|---|
| (0, 0) and (6, 8) | 6 | 8 | 10 |
| (3, 4) and (7, 1) | 4 | 3 | 5 |
| (-2, 3) and (2, 0) | 4 | 3 | 5 |
| (1, 1) and (4, 5) | 3 | 4 | 5 |
- Right-angled triangle test: compute the three side lengths and check whether the squares of the two shorter sides add up to the square of the longest.
- Equidistant point: to find a point equidistant from two points, set the squared distances equal. The x² and y² terms cancel and a linear equation remains.
- Collinear points: three points are collinear if the largest distance equals the sum of the other two.
How Does the Section Formula Divide a Line Segment?
In short: if a point P divides the segment AB in the ratio m:n, then P is a weighted average of A and B, where each end gets the weight of the opposite part of the ratio.
| Type | Meaning | Coordinates of P |
|---|---|---|
| Internal division m:n | P lies between A and B | ((mx₂ + nx₁)/(m + n), (my₂ + ny₁)/(m + n)) |
| External division m:n | P lies on the line AB outside the segment | ((mx₂ – nx₁)/(m – n), (my₂ – ny₁)/(m – n)) |
| Midpoint | m = n = 1 | ((x₁ + x₂)/2, (y₁ + y₂)/2) |
- Which end is which: A is (x₁, y₁), B is (x₂, y₂), and the ratio is AP:PB = m:n.
- Axis crossing: to find where a line segment crosses the x-axis, put the y-coordinate of the section point equal to 0 and solve for the ratio. A negative ratio means external division.
- Trisection points: the points dividing a segment in the ratios 1:2 and 2:1 are its two trisection points.
The midpoint case and its use for the centroid are developed in Midpoint Formula and Centroid of a Triangle Using Coordinates.
Solved Examples
Example 1
Question: Find the distance between (3, 4) and (7, 1).
- Horizontal gap = 7 – 3 = 4 and vertical gap = 1 – 4 = -3.
- Squares: 16 + 9 = 25.
- Distance = √25 = 5.
Answer: 5 units.
Example 2
Question: Find the point that divides (2, 3) and (8, 9) internally in the ratio 1:2.
- Here m = 1, n = 2, (x₁, y₁) = (2, 3) and (x₂, y₂) = (8, 9).
- x = (1 × 8 + 2 × 2)/3 = 12/3 = 4.
- y = (1 × 9 + 2 × 3)/3 = 15/3 = 5.
Answer: (4, 5).
Example 3
Question: In what ratio does the x-axis divide the segment joining (2, -3) and (5, 6)?
- Let the ratio be k:1. The y-coordinate of the dividing point is (6k – 3)/(k + 1).
- On the x-axis, y = 0, so 6k – 3 = 0 and k = 1/2.
- The ratio 1/2 : 1 is the same as 1:2.
Answer: 1:2 (the point is (3, 0)).
Example 4
Question: Show that the points (0, 0), (3, 0) and (3, 4) form a right-angled triangle.
- The sides are 3 (from (0, 0) to (3, 0)), 4 (from (3, 0) to (3, 4)) and 5 (from (0, 0) to (3, 4)).
- Check 3² + 4² = 9 + 16 = 25 = 5².
Answer: Yes, it is right-angled at (3, 0).
Example 5
Question: Find the point dividing (1, 2) and (4, 8) externally in the ratio 2:1.
- Use the external formula with m = 2 and n = 1.
- x = (2 × 4 – 1 × 1)/(2 – 1) = 7.
- y = (2 × 8 – 1 × 2)/(2 – 1) = 14.
Answer: (7, 14).
Shortcuts and Tricks
- Memorise the Pythagorean triples 3-4-5, 5-12-13, 8-15-17 and 7-24-25. Many distances in exams are one of these.
- For the section formula, remember the cross rule: each endpoint is multiplied by the part of the ratio on the opposite side.
- To find a ratio in which an axis cuts a segment, divide the two coordinates: the ratio equals the (negative) ratio of the y-coordinates (or x-coordinates) of the end points. For (2, -3) and (5, 6) this gives 3:6 = 1:2.
- When the answer must be a point on an axis, write that coordinate as 0 first and solve for the unknown.
- Do not take square roots until the end. Compare squared distances when checking equal sides.
Common Mistakes
- Subtracting in different orders for x and y. Keep the same point first in both differences, or square them.
- Forgetting to square the differences, or forgetting the square root at the end.
- Swapping the ratio. In m:n, the point near A has the smaller part, so m multiplies the coordinates of B.
- Using the internal formula for an external division and ignoring the minus signs.
- Taking a negative ratio as impossible. A negative ratio only means the division is external.
Practice Questions
- Find the distance between (-2, 3) and (2, 0).
- Find the midpoint of (4, 6) and (8, 2).
- In what ratio does the y-axis divide the segment joining (-2, 4) and (6, -2)?
- Find the distance of the point (5, 12) from the origin.
- Find the point on the x-axis equidistant from (2, 3) and (4, -5).
- Find the trisection points of the segment joining (0, 0) and (9, 6).
Answers: 1) 5; 2) (6, 4); 3) 1:3; 4) 13; 5) (7, 0); 6) (3, 2) and (6, 4).
Why Is This Topic Important?
- Foundation Every coordinate geometry problem uses distance or division at some stage.
- Shapes The formulas prove that a triangle is right-angled, isosceles or equilateral.
- Speed Pythagorean triples make many distance questions solvable in seconds.
- Link to geometry The same ideas appear in Pythagoras Theorem and Its Applications through the theorem of Pythagoras.
What Comes Next?
The next topic is Slope of a Line and Different Forms of the Equation of a Line. It studies the direction of a line through its slope and shows how to write the equation of a line.
Key Terms and Formulas
- Ordinate The y-coordinate of a point
- Abscissa The x-coordinate of a point
- Internal division Division of a segment at a point between its ends
- External division Division at a point on the line, outside the segment
- Trisection points The two points that divide a segment into three equal parts
- Collinear points Points that lie on one straight line
Related Topics
- Slope of a Line and Different Forms of the Equation of a Line
- Area of a Triangle Using Coordinates of Its Vertices
- Midpoint Formula and Centroid of a Triangle Using Coordinates
- Equation of a Circle in Standard Form
Related Topics in Maarg Manthan
Study this topic together with these linked topics from other subjects.
Exam Corner
Points to Remember
- Distance = square root of the sum of squared coordinate differences.
- The midpoint is the section point with ratio 1:1.
- Internal division uses a plus sign and external division a minus sign.
- A point on the x-axis has y = 0, and a point on the y-axis has x = 0.
- Equidistance means equal squared distances.
Do Not Confuse With
- Distance vs midpoint Distance is a length, and the midpoint is a point.
- Internal vs external Internal division lies on the segment, and external division lies beyond it.
- m:n vs n:m The ratio AP:PB = m:n is not the same as PB:AP.
- Abscissa vs ordinate Abscissa is x, and ordinate is y.
Memory Hook
Gaps squared, then rooted: that is distance. Opposite parts multiply the ends: that is section.
GS Relevance
Frequently Asked Questions
What is the distance formula in coordinate geometry?
The distance formula states that the distance between points (x1, y1) and (x2, y2) equals the square root of (x2 minus x1) squared plus (y2 minus y1) squared. It applies the theorem of Pythagoras to the horizontal and vertical gaps, and the distance from the origin is the square root of x squared plus y squared.
What is the section formula for internal division?
The section formula for internal division in the ratio m to n gives the point with x-coordinate (m times x2 plus n times x1) divided by (m plus n), and the y-coordinate found the same way. The point lies on the segment, and the midpoint is the special case where m equals n.
How do you find the ratio in which an axis divides a segment?
To find the ratio in which an axis divides a segment, take the ratio as k to 1, write the coordinate of the section point, and set it equal to zero for that axis. Solving for k gives the ratio, and a negative value of k means the division is external.
How does the external section formula differ from the internal one?
The external section formula uses a minus sign in the numerator and in the denominator, giving (m times x2 minus n times x1) divided by (m minus n). The external point lies on the extended line outside the segment, and it is nearer the end that has the smaller part of the ratio.
How can the distance formula show that a triangle is right-angled?
The distance formula gives the three side lengths of a triangle from its vertices. If the square of the longest side equals the sum of the squares of the other two sides, the triangle is right-angled, as in the triangle with vertices (0, 0), (3, 0) and (3, 4).
PYQ Practice — Statement Analysis
1 The distance between (0, 0) and (6, 8) is 10 units.
The squares are 36 and 64, which add up to 100, and the square root is 10.
2 The distance between (1, 1) and (4, 5) is 7 units.
The gaps are 3 and 4, so the distance is 5.
3 The midpoint of a segment divides it in the ratio 1:1.
It is the section formula with m = n = 1.
4 A negative value of the ratio in the section formula means external division.
The point then lies on the line beyond the segment.
Related Topics
Browse the full Quantitative Aptitude index