The section formula answers a simple coordinate-geometry question: given two points, what is the coordinate of the point that splits the segment between them in a chosen ratio? It generalizes the midpoint formula to any ratio, and comes in two flavors — internal and external division.
How the section formula works
For a segment from A(x₁, y₁) to B(x₂, y₂), the point P dividing AB internally in the ratio m:n (measured from A toward B) is P = ((mx₂+nx₁)/(m+n), (my₂+ny₁)/(m+n)). This is a weighted average of the two endpoints — larger n pulls the point toward A, larger m pulls it toward B. Setting m = n = 1 gives equal weights and reduces exactly to the midpoint formula, ((x₁+x₂)/2, (y₁+y₂)/2).
Internal vs. external division
Internal division places the point somewhere between A and B. External division places it outside the segment, on the line extended past one of the endpoints, and uses a subtraction instead of an addition in the formula: P = ((mx₂−nx₁)/(m−n), (my₂−ny₁)/(m−n)). External division is undefined whenever m equals n, since the denominator becomes zero — geometrically, an equal external ratio would place the point infinitely far away.
Where the section formula is used
The section formula shows up throughout geometry and physics: finding a triangle's centroid (which divides each median 2:1), locating a point at a given fraction along a road or cable on a map, computing weighted centers of mass, and in computer graphics for interpolating a point along a line. It is one of the foundational formulas built on top of the distance and midpoint formulas in coordinate geometry.