Sub topic 3
Midpoints and the Section Formula
Assume you know fractions, ratios, coordinates, and basic algebra. A section point is a point that divides a line segment in a stated ratio. The midpoint is the simplest section point because it divides a segment into two equal parts.
Midpoint of a line segment
For two points \(A(x1,y1)\) and \(B(x2,y2)\), the midpoint \(M\) is
\[ M=\left(\frac{x1+x2}{2},\frac{y1+y2}{2}\right). \]
Average the two \(x\)-coordinates and average the two \(y\)-coordinates separately.
For \(A(2,5)\) and \(B(8,1)\),
\[ M=\left(\frac{2+8}{2},\frac{5+1}{2}\right)=(5,3). \]
The midpoint formula works because the midpoint is equally far from both endpoints in each coordinate direction.
def midpoint(a, b):
return ((a[0] + b[0]) / 2, (a[1] + b[1]) / 2)
print(midpoint((2, 5), (8, 1)))Internal section formula
Suppose \(P\) lies between \(A(x1,y1)\) and \(B(x2,y2)\), and
\[ AP:PB=m:n. \]
Then the internal section formula is
\[ P=\left(\frac{mx2+nx1}{m+n}, \frac{my2+ny1}{m+n}\right). \]
The coefficient next to a point comes from the distance to the other endpoint. This is a weighted average: a point closer to \(A\) has coordinates influenced more by \(A\).
For \(A(1,2)\), \(B(7,8)\), and \(AP:PB=1:2\),
\[ P=\left(\frac{1(7)+2(1)}{3},\frac{1(8)+2(2)}{3}\right)=(3,4). \]
Since \(P\) is closer to \(A\), its coordinates are closer to \((1,2)\).
| Situation | Formula for \(x\)-coordinate | Formula for \(y\)-coordinate |
|---|---|---|
| Midpoint | \((x_1+x_2)/2\) | \((y_1+y_2)/2\) |
| Internal ratio \(m:n\) | \((mx_2+nx_1)/(m+n)\) | \((my_2+ny_1)/(m+n)\) |
| External ratio \(m:n\) | \((mx_2-nx_1)/(m-n)\) | \((my_2-ny_1)/(m-n)\) |
External section formula
An external section point lies on the line through \(A\) and \(B\), but outside the segment \(AB\). If its directed ratio is \(AP:PB=m:n\), then
\[ P=\left(\frac{mx2-nx1}{m-n}, \frac{my2-ny1}{m-n}\right),\qquad m\ne n. \]
For \(A(1,2)\), \(B(7,8)\), and external ratio \(2:1\),
\[ P=\left(\frac{2(7)-1(1)}{2-1}, \frac{2(8)-1(2)}{2-1}\right)=(13,14). \]
Check the result by placing \(A\), \(B\), and \(P\) on the same line. External division often appears when a question gives a point beyond one endpoint.
CAT method
When a question asks for a missing endpoint, write the section formula and solve the two coordinate equations separately. When it asks whether a point is a midpoint, compare the point with the coordinate averages. Do not use a diagram to estimate a ratio; use the coordinates.
Exercise
The point P(5, 6) divides A(2, 3) and B(8, 9) internally in what ratio AP:PB?
Show answer
Since P is the midpoint of A and B, AP:PB = 1:1.