Section Formula (2D)
The Section Formula is one of the most powerful tools in coordinate geometry. Given two points in the plane, it tells you the exact coordinates of any point that divides the line segment joining them in a given ratio. Whether you are splitting a segment into equal halves, finding a point one-third of the way along a road, or locating where an external lever arm sits, the section formula gives a precise algebraic answer to what is otherwise a geometric question. Division of a segment comes in two varieties. Internal division occurs when the dividing point P lies between the two endpoints A and B — the point is 'inside' the segment. External division occurs when P lies on the line through A and B but outside the segment itself, closer to one end than the other. Both cases are handled by elegant formulas that emerge naturally from the concept of similar triangles applied to a coordinate grid. Mastering the section formula unlocks several related ideas: the midpoint formula (a special case of internal division in ratio 1:1), centroid of a triangle, and even the equations of lines in parametric form. In competitive mathematics and real-world applications like computer graphics, GPS interpolation, and structural engineering, the section formula appears constantly as the backbone of any calculation involving ratios along straight paths.
- Set Up the Two Points
- Internal Division — Geometric Argument
- Internal Section Formula
- External Division
- Special Case: Midpoint Formula
- Checking the Ratio Direction
Set Up the Two Points
Let A = (x₁, y₁) and B = (x₂, y₂) be two distinct points in the Cartesian plane. We want to find the coordinates of a point P = (x, y) that divides segment AB in the ratio m : n.
Internal Division — Geometric Argument
For internal division, P lies between A and B so that AP : PB = m : n. Drop perpendiculars from A, P, and B to the x-axis, meeting it at points A', P', and B'. The triangles formed are similar (AA'P' ~ BB'P' scaled), giving A'P' / P'B' = m / n. Since A'P' = x − x₁ and P'B' = x₂ − x, we get (x − x₁)/(x₂ − x) = m/n, which solves to x = (mx₂ + nx₁)/(m + n). The same argument on the y-axis gives y = (my₂ + ny₁)/(m + n).
Internal Section Formula
The coordinates of the point dividing A(x₁, y₁) to B(x₂, y₂) internally in ratio m : n are: P = ( (mx₂ + nx₁)/(m+n) , (my₂ + ny₁)/(m+n) ). Notice the numerator weights x₂ by m (the ratio part near B) and x₁ by n (the ratio part near A). This weighted average interpretation is key: P is literally a weighted mean of A and B.
External Division
For external division, P lies outside segment AB such that AP : PB = m : n but P is not between A and B. The algebraic trick is simply to replace n with −n in the internal formula (because the directed ratio is negative for external division). This gives P = ( (mx₂ − nx₁)/(m−n) , (my₂ − ny₁)/(m−n) ), valid when m ≠ n. If m = n for external division, the point is at infinity (the lines are parallel), which is why that case is excluded.
Special Case: Midpoint Formula
Setting m = n = 1 in the internal formula gives the midpoint M = ( (x₁+x₂)/2 , (y₁+y₂)/2 ). This is the familiar midpoint formula, confirming it is just a special case of the section formula. It is a useful check: whenever m = n, P should be exactly halfway between A and B.
Checking the Ratio Direction
A common error is reversing which ratio belongs to which endpoint. Remember: in the formula (mx₂ + nx₁)/(m+n), the multiplier m is paired with B's coordinates (x₂, y₂) and n is paired with A's coordinates (x₁, y₁). The ratio m:n means AP:PB = m:n, so P is m parts from A and n parts from B — hence B's coordinates get weight m. Always label your endpoints clearly before substituting.
The Key Equation
- (x_1, y_1) — Point A (dimensionless): Coordinates of the first endpoint of the segment.
- (x_2, y_2) — Point B (dimensionless): Coordinates of the second endpoint of the segment.
- m — First ratio part (dimensionless): The part of the ratio AP : PB equal to m; this weights point B's coordinates.
- n — Second ratio part (dimensionless): The part of the ratio AP : PB equal to n; this weights point A's coordinates.
- P — Division point (dimensionless): The point that divides AB internally such that AP : PB = m : n.
Worked Example
Problem. Point P divides the segment joining A(1, 3) and B(7, −3) internally in the ratio 2 : 1. Find the coordinates of P. Also find Q, the point that divides AB externally in the ratio 2 : 1.
Answer. P = (5, −1) for internal division; Q = (13, −9) for external division.
Origins · 1 minRené Descartes and how this was discovered
Descartes invented the Cartesian coordinate system — the numbered grid that makes the section formula possible. By assigning numerical coordinates to every point in the plane (published in his 1637 work La Géométrie), he fused algebra and geometry into a single discipline. Without his coordinate system, expressions like (mx₂ + nx₁)/(m+n) would have no meaning, and geometric ratios could only be described verbally or by compass-and-straightedge construction. Descartes is said to have conceived the idea of coordinates while lying in bed watching a fly on his ceiling — he realized he could describe its exact position using two numbers measuring its distance from two perpendicular walls.
Related Concepts
- Distance Formula in 2D — The distance formula is used to verify the ratio AP:PB after applying the section formula, confirming the division point is correct.
- Midpoint Formula — The midpoint formula is the special case of the internal section formula when m = n = 1, giving equal weighting to both endpoints.
- Centroid of a Triangle — The centroid divides each median in ratio 2:1 from vertex to midpoint — found directly using the section formula applied to medians.
- Equation of a Straight Line — The section formula confirms that division points lie on the line AB, linking ratio-based coordinate geometry to the algebraic equation of lines.
- Similar Triangles — The proof of the section formula relies on the proportionality of corresponding sides in similar triangles formed by perpendicular projections onto the axes.