Distance, Section Formula and Locus: JEE Main Notes
Reviewed Last updated 2026-11-20. Syllabus topic: Coordinates, distance, section formula and locus.
In short. Distance, section formula, slope and intercepts are the working tools of coordinate geometry, and a locus is found by turning a geometric condition on a moving point (x, y) into an equation. Remember: internal division m : n gives (m x2 + n x1)/(m + n), and always square both sides carefully when two distances are compared.
- Distance formula: d = sqrt((x2 - x1)² + (y2 - y1)²); the distance of (x, y) from the origin is sqrt(x² + y²).
- Section formula: for AP : PB = m : n the point is ((m x2 + n x1)/(m + n), (m y2 + n y1)/(m + n)); the ratio m goes with the far end B. External division replaces n by -n.
- Slope m = (y2 - y1)/(x2 - x1) = tan(theta); parallel lines have equal slopes and perpendicular lines have m1 m2 = -1.
- Area of a triangle = (1/2)|x1(y2 - y3) + x2(y3 - y1) + x3(y1 - y2)|; three points are collinear when this is zero.
- Locus method: take a general point P(x, y), write the given condition, eliminate parameters and simplify to a relation between x and y.
Syllabus line: CO-ORDINATE GEOMETRY : Cartesian system of rectangular coordinates in a plane, distance formula, sections formula, locus and its equation, the slope of a line, parallel and perpendicular lines, intercepts of a line on the co-ordinate axis. Straight line: Various forms of equations of a line, intersection of lines, angles between two lines, conditions for concurrence of three lines, the distance of a point form a line, co-ordinate of the centroid, orthocentre and circumcentre of a triangle. Circle, conic sections: A standard form of equations of a circle, the general form of the equation of a circle, its radius and centre, equation of a circle when the endpoints of a diameter are given, points of intersection of a line and a circle with the centre at the origin and sections of conics, equations of conic sections (parabola, ellipse and hyperbola) in standard forms. (NTA JEE (Main) 2026 syllabus, Mathematics, Unit 10 (https://jeemain.nta.nic.in/document/syllabus-2026/))
Before you start
Prerequisites
- Complex numbers and quadratic equations (lesson planned): Locus problems end in squaring and completing squares, and area problems end in a modulus equation. Read this first if solving |a - k| = c is not automatic.
- Trigonometry: ratios and the tangent (lesson planned): Slope is tan of the inclination, and angles between lines use tan of a difference. Read this first if tan(A - B) is unfamiliar.
Related topics
- Coordinate Geometry (lesson planned)
- Straight line: forms, angles, distance and triangle centres
- Circle
The concept step by step
Coordinates and the distance formula
A point in the plane is fixed by an ordered pair (x, y), its signed distances from the two perpendicular axes. The distance between A(x1, y1) and B(x2, y2) follows from Pythagoras in the right triangle whose legs are the horizontal and vertical gaps: AB = sqrt((x2 - x1)² + (y2 - y1)²). It does not matter which point is subtracted from which, because both gaps are squared. Distance from the origin is sqrt(x² + y²).
Section formula: internal and external division
If P lies on line AB with AP : PB = m : n, then P = ((m x2 + n x1)/(m + n), (m y2 + n y1)/(m + n)). The weight m multiplies the coordinates of B, the far end, because a larger m pulls P towards B. For external division the point lies outside the segment and n is replaced by -n, so P = ((m x2 - n x1)/(m - n), (m y2 - n y1)/(m - n)). The midpoint is the case m = n = 1. A line meets the x-axis where y = 0, so the ratio in which the x-axis cuts AB is -y1/y2; a negative value signals external division.
Slope, parallel and perpendicular lines, intercepts
The slope of the line through two points is m = (y2 - y1)/(x2 - x1) = tan(theta), where theta is the angle the line makes with the positive x-axis. Two lines are parallel when their slopes are equal and perpendicular when m1 m2 = -1 (or one is vertical and the other horizontal). Intercepts are where the line cuts the axes: the x-intercept has y = 0 and the y-intercept has x = 0. Three points are collinear when the slopes of any two pairs match, or equivalently when the triangle they form has zero area.
Area of a triangle and collinearity
For vertices (x1, y1), (x2, y2), (x3, y3) the area is (1/2)|x1(y2 - y3) + x2(y3 - y1) + x3(y1 - y2)|. The modulus matters: the determinant is positive for anticlockwise order and negative for clockwise order, so an area given as a number leads to two equations when a vertex has an unknown coordinate. Setting the determinant to zero gives the collinearity condition, which is often the fastest way to find an unknown coordinate on a line through two known points.
Locus: turning a condition into an equation
A locus is the set of all points satisfying a stated condition. Take a general point P(x, y), express the condition (a distance equal to another, a fixed sum or ratio, a midpoint or division of a moving segment) in x and y, remove any parameters and simplify. Equal distances from two points give a perpendicular bisector (a line). A fixed ratio of distances other than 1 gives a circle. A fixed sum of squares of distances to two points gives a circle centred on their midpoint. A point dividing a moving segment with ends on the axes in a fixed ratio gives an ellipse.
Worked examples
Each solution shows the marks every step would earn. The sanity check tests units and size of the answer.
Example 1 (easy)
Find the distance between the points (3, -2) and (-1, 1).
| Step | Marks |
|---|---|
| Horizontal gap = 3 - (-1) = 4 units, vertical gap = -2 - 1 = -3 units. | 1 |
| d = sqrt(4² + (-3)²) = sqrt(16 + 9) = sqrt(25). | 1 |
| d = 5 units. | 1 |
| Total: 3 marks | 3 |
Answer: 5 units
Fast method: The gaps 4 and 3 form a 3-4-5 right triangle, so the distance is 5 units without any calculation.
Sanity check: Units: length. The distance 5 exceeds each gap (4 and 3) but is below their sum 7, as the hypotenuse of a right triangle must be.
Example 2 (easy)
In what ratio does the x-axis divide the segment joining (2, -3) and (5, 6)? Give the ratio of the part nearer the first point to the part nearer the second, as a decimal.
| Step | Marks |
|---|---|
| On the x-axis y = 0. Let the ratio be k : 1, so y = (k x 6 + 1 x (-3))/(k + 1) = 0. | 1 |
| 6k - 3 = 0, so k = 1/2. | 1 |
| The ratio is 1 : 2, that is k = 0.5. It is positive, so the division is internal. | 1 |
| Total: 3 marks | 3 |
Answer: 1 : 2 (internally), k = 0.5
Fast method: Ratio = -y1/y2 = -(-3)/6 = 0.5. The points lie on opposite sides of the x-axis, so the division is internal.
Sanity check: Dimensionless ratio. The point is at x = (0.5 x 5 + 2)/1.5 = 3, between 2 and 5, which agrees with an internal division one third of the way from the first point.
Example 3 (medium)
The points (1, 2), (4, k) and (7, 10) are collinear. Find k.
| Step | Marks |
|---|---|
| Collinear points have equal slopes: slope from (1, 2) to (4, k) equals slope from (1, 2) to (7, 10). | 1 |
| (k - 2)/3 = (10 - 2)/6 = 4/3. | 1 |
| k - 2 = 4, so k = 6. | 1 |
| Total: 3 marks | 3 |
Answer: k = 6
Fast method: The x-values 1, 4, 7 are equally spaced, so (4, k) is the midpoint of the other two: k = (2 + 10)/2 = 6.
Sanity check: The area determinant (1/2)|1(6 - 10) + 4(10 - 2) + 7(2 - 6)| = (1/2)|-4 + 32 - 28| = 0, so the three points are collinear.
Example 4 (medium)
Find the x-coordinate of the point that divides the join of (2, 3) and (8, 9) externally in the ratio 5 : 2.
| Step | Marks |
|---|---|
| External division replaces n by -n: x = (m x2 - n x1)/(m - n) with m = 5, n = 2. | 1 |
| x = (5 x 8 - 2 x 2)/(5 - 2) = (40 - 4)/3. | 1 |
| x = 36/3 = 12. | 1 |
| Total: 3 marks | 3 |
Answer: 12
Fast method: Since m > n the point lies beyond B, at n/(m - n) = 2/3 of AB past B, so x = 8 + (2/3)(8 - 2) = 12.
Sanity check: x = 12 is outside the segment [2, 8], as an external point must be. The internal formula would give (40 + 4)/7 = 6.29, between the ends, which is the wrong region.
Example 5 (medium)
A point P(x, y) is equidistant from A(0, 2) and B(4, 0). Find the y-intercept of the locus of P.
| Step | Marks |
|---|---|
| PA² = PB²: x² + (y - 2)² = (x - 4)² + y². | 1 |
| Expand: x² + y² - 4y + 4 = x² - 8x + 16 + y², so 8x - 4y = 12, that is 2x - y = 3. | 2 |
| Put x = 0: y = -3. The y-intercept is -3. | 1 |
| Total: 4 marks | 4 |
Answer: -3
Fast method: The locus is the perpendicular bisector of AB: 2(bx - ax)x + 2(by - ay)y = |B|² - |A|², which gives 8x - 4y = 12.
Sanity check: The midpoint (2, 1) of AB satisfies 2x - y = 4 - 1 = 3, and the slope 2 is the negative reciprocal of the slope of AB (-1/2), as a perpendicular bisector requires.
Example 6 (hard, multi-step)
A point P moves so that PA² + PB² = 58, where A = (-3, 0) and B = (3, 0). Show that the locus is a circle and find its radius.
| Step | Marks |
|---|---|
| PA² + PB² = [(x + 3)² + y²] + [(x - 3)² + y²] = 2x² + 2y² + 18. | 2 |
| Set equal to 58: 2x² + 2y² = 40, so x² + y² = 20. | 1 |
| This is a circle with centre (0, 0), the midpoint of AB, and radius sqrt(20). | 1 |
| Radius = sqrt(20) = 4.47 units. | 1 |
| Total: 5 marks | 5 |
Answer: radius = sqrt(20), about 4.47 units
Fast method: For a fixed sum k the radius squared is k/2 - AB²/4 = 29 - 36/4 = 20, centre at the midpoint of AB.
Sanity check: Limiting case: the smallest possible sum is when P is the midpoint, 9 + 9 = 18, so the locus exists only for k >= 18. Here 58 > 18 and the radius is real; for k = 18 the formula gives radius 0.
Formulas and units
| Result | Formula | Valid when | Units or note | Worked example |
|---|---|---|---|---|
| Distance between two points | d = sqrt((x2 - x1)² + (y2 - y1)²) | Cartesian coordinates with the same unit on both axes | length | Example 1 |
| Internal division AP : PB = m : n | ((m x2 + n x1)/(m + n), (m y2 + n y1)/(m + n)) | P divides AP : PB = m : n internally, P between A and B | length | Example 2 |
| External division AP : PB = m : n | ((m x2 - n x1)/(m - n), (m y2 - n y1)/(m - n)) | P divides AP : PB = m : n externally, m not equal to n | length | Example 4 |
| Midpoint | ((x1 + x2)/2, (y1 + y2)/2) | midpoint of the segment (internal ratio 1 : 1) | length | none |
| Slope through two points | m = (y2 - y1)/(x2 - x1) = tan(theta) | x1 not equal to x2 (non-vertical line) | dimensionless | Example 3 |
| Parallel and perpendicular lines | m1 = m2 and m1 m2 = -1 | both lines non-vertical with slopes m1, m2 | dimensionless | none |
| Area of triangle | (1/2)|x1(y2 - y3) + x2(y3 - y1) + x3(y1 - y2)| | vertices in order; zero area means collinear points | length squared | none |
| Ratio in which the x-axis cuts AB | -y1/y2 | A and B on opposite sides of the x-axis, y2 not 0 | dimensionless | Example 2 |
| Locus PA² + PB² = k | circle, centre at midpoint of AB, radius² = k/2 - AB²/4 | A, B fixed points; needs k >= AB²/2 for a real circle | length squared | Example 6 |
Common mistakes and speed
- Swapping m and n in the section formula, so that the ratio is applied from the wrong end. Why it tempts: The ratio is written AP : PB but the formula multiplies m with the coordinates of B; the 'natural' reading pairs m with A, and the swapped answer is usually among the options.
- Using the internal formula for external division, or forgetting that a negative ratio means external. Why it tempts: The internal formula is the one remembered, and the result is a believable point between the ends, so no alarm goes off.
- Dropping the modulus in an area equation and finding only one value of k. Why it tempts: A single linear equation is quicker, and one value often appears as an option; the second value from the opposite sign is the missed one.
- Taking the locus of PA = k PB as a straight line. Why it tempts: PA = PB gives a line, so the same expectation is carried to k not equal to 1, where the x² + y² terms do not cancel and a circle results.
- Using the diameter as the radius, or the radius squared as the radius, when reading a circle from a locus. Why it tempts: After simplifying, a constant such as 16 or 20 sits on the right side and is read directly; it is r², not r.
Time per question and fast method
Target: about 90 seconds per question.
For a division point write the target as 'start + fraction x (end - start)' on each coordinate. For a locus, square the distances and cancel the x² + y² terms before expanding anything else. For an area with an unknown k, expect |linear in k| and write the two cases at once.
Recall quiz
Pick an option for each question. Your answers stay on this page and are not sent anywhere.
Score: 0 of 5 correct. Pick an option for each question.
Practice
- The points A(2, -3) and B(8, 5) are given. The point P lies on the segment AB and divides it internally in… Verified (T1)
- The points A(5, 0) and B(-1, 0) are given. A point P moves in the plane so that PA = 2 PB. The locus of P is… Verified (T1)
- The vertices of a triangle are (1, 1), (5, 3) and (k, 7). Its area is 10 square units. The sum of all… Verified (T1)
- A segment AB of length 10 units moves with end A on the x-axis and end B on the y-axis. A point P on AB… Verified (T1)
Previous-year questions
Previous-year questions are not imported yet. Previous-year questions are not imported yet; see the official papers on the NTA site. Official NTA papers page.
Going deeper and revision
Distance and section formula: edge cases
The ratio m : n is read as AP : PB, so swapping the ratio reflects P about the midpoint. A ratio with m and n of opposite signs gives an external point; the case m = n is impossible for external division because the denominator m - n is zero (the point is at infinity). To test whether a point lies on the segment, check that the parameter t = m/(m + n) is between 0 and 1. Distances are never negative and the formula is invariant under translation and rotation of the axes. Units: all coordinates share one length unit, and areas come out in the square of that unit.
Slope, inclination and special cases
Slope m = tan(theta) for 0 <= theta < 180 degrees, theta not equal to 90 degrees. A vertical line has no slope (undefined, not zero) and a horizontal line has slope 0. Perpendicularity m1 m2 = -1 fails for the vertical-horizontal pair, which is handled separately. Intercept form assumes both intercepts exist and are non-zero: a line through the origin or parallel to an axis has no valid intercept form. Collinearity by slopes needs a common point, so test with two segments from the same point.
Area of triangle and polygon: sign and order
The determinant formula uses vertices in order; the sign flips if the order is reversed, so the area uses the modulus. For a quadrilateral or polygon, split into triangles or use the shoelace sum with vertices listed around the boundary in order. If one vertex has an unknown parameter k, the area is typically |linear in k|, giving two values of k symmetric about the root of the linear expression; a question that asks for the sum or product of all possible k is testing exactly this. A zero area means the points are collinear, a degenerate triangle.
Locus problems: standard outcomes and checks
Standard outcomes: PA = PB gives the perpendicular bisector of AB; PA = k PB (k not 1) gives the Apollonius circle, whose diameter lies on AB between the internal and external points dividing AB in ratio k : 1; PA² + PB² = c gives a circle with centre at the midpoint of AB and radius squared c/2 - AB²/4; a segment of fixed length L sliding with ends on the axes has midpoint on the circle x² + y² = L²/4, while a point dividing it in ratio m : n traces an ellipse. Always check that the final equation is satisfied by one point you can construct by hand, and that squaring has not introduced extra points (it does not here, since both sides are non-negative distances).
Memory hook
Suppose two friends stand at two lamp posts on a straight lane, 12 m apart, and a third friend wants to stand exactly where she is twice as far from one lamp post as from the other, on the lane between them.
- She must be 8 m from one post and 4 m from the other, so she stands one third of the way from the nearer post. That is the internal section point in ratio 2 : 1.
- If she is also allowed to stand beyond the nearer post, she can be 24 m from the far post and 12 m from the near one. That is the external section point for the same ratio.
- If she walks in an open field keeping the same two-to-one rule, the set of all her positions is a circle whose diameter runs between those two lane points.
A fixed ratio of distances is the locus PA = k PB; its two points on the line AB are the internal and external section points, and they are the ends of a diameter of the circle.
Internal and external section points are the two ends of the Apollonius diameter.
Revision card
Try to answer each without looking above.
- Write the distance formula and the internal and external section formulas, and say which end the weight m goes with.
- State the slope conditions for parallel and perpendicular lines and the case where the slope is undefined.
- Write the area of a triangle from three vertices and say what a zero value means.
- Give the ratio in which the x-axis divides the join of two points, and what a negative ratio signals.
- State the loci for PA = PB, PA = k PB (k not 1) and PA² + PB² = constant.
- Describe how to find a locus equation from a condition on a general point (x, y).
Sources and review
Reviewed Reviewed on 2026-11-20: every number recomputed by code and independently reviewed; textbook section references pending.
- Method: Every number in worked examples, recall checks and notes recomputed by code; claims recomputed independently by a separate verifier run using other numerical methods; textbook section references not yet attached; wording defects found were fixed afterwards and re-linted (code checks re-run) but not re-reviewed by a second run; syllabus scope compared with the NTA JEE Main 2026 syllabus text (by the verifier; see the report)
- Reviewer: independent verifier agent run (not the author)
- Date: 2026-11-20
- Defects found: 1; fixed: 1
- Report: content/reviews/learn4-cog-2026-11-20.md
Textbook references
- NCERT Mathematics, Class 11 (reprint 2026-27), Chapter 9: Straight Lines, 9.1 Introduction (read 2026-11-22)
- NCERT Mathematics, Class 11 (reprint 2026-27), Chapter 9: Straight Lines, Summary Summary (read 2026-11-22)
- NCERT Mathematics, Class 11 (reprint 2026-27), Chapter 9: Straight Lines, 9.2.2 Conditions for parallelism and perpendicularity of lines in terms of their slopes (read 2026-11-22)
Sources used
- NTA JEE (Main) 2026 syllabus, Mathematics, Unit 10 (https://jeemain.nta.nic.in/document/syllabus-2026/), read for scope
- Standard results of school-level coordinate geometry; no textbook section reference attached yet (to be sourced at verification). Content written fresh for this site.
How labels work: see how answers and lessons are verified. Found a mistake? Use Report an error on any question page.