Sub topic 3
Midpoints and the Section Formula
This chapter assumes you can use the distance formula, work with ratios and fractions, and plot points on the Cartesian plane. It covers the midpoint, internal and external division of a segment, and the mistakes that cost marks in timed tests.
The midpoint
The midpoint of a segment joining A(x₁, y₁) and B(x₂, y₂) is the average of the coordinates:
M = ((x₁ + x₂)/2, (y₁ + y₂)/2)
The x and y coordinates are handled separately. Moving from A to B changes x by x₂ − x₁. Half of that change puts you at x₁ + (x₂ − x₁)/2, which simplifies to (x₁ + x₂)/2. The same argument works for y.
Midpoints are useful in CAT questions in three ways:
- Parallelograms. The diagonals of a parallelogram bisect each other. If ABCD is a parallelogram, the midpoint of AC equals the midpoint of BD. You can find a missing vertex from this alone.
- Medians. A median runs from a vertex to the midpoint of the opposite side.
- Symmetry. If P' is the image of P under a point reflection about M, then M is the midpoint of PP'.
Worked example: a missing vertex
Three vertices of a parallelogram ABCD are A(1, 2), B(5, 3) and C(7, 8). Find D.
The diagonals are AC and BD, so their midpoints coincide.
- Midpoint of AC = (4, 5).
- Let D = (p, q). Midpoint of BD = ((5 + p)/2, (3 + q)/2).
- Set (5 + p)/2 = 4 and (3 + q)/2 = 5. Then p = 3 and q = 7.
D = (3, 7). A shortcut is D = A + C − B, because the sum of the endpoints of one diagonal equals the sum of the endpoints of the other. Check: (1 + 7 − 5, 2 + 8 − 3) = (3, 7).
Internal division
A point P divides AB internally in the ratio m : n when P lies on the segment AB and AP : PB = m : n. The section formula gives:
P = ((m·x₂ + n·x₁)/(m + n), (m·y₂ + n·y₁)/(m + n))
Notice the cross pattern. The weight m, which belongs to the AP part, multiplies the coordinates of B, the far endpoint. The weight n multiplies A. This makes sense. If m is large, P sits close to B, so B should get the larger weight.
The formula is a weighted average. The total weight is m + n, and P sits at the fraction m/(m + n) of the way from A to B. The midpoint is the special case m = n = 1.
def section_point(a, b, m, n):
# point dividing AB internally in the ratio m:n
return ((m * b[0] + n * a[0]) / (m + n),
(m * b[1] + n * a[1]) / (m + n))
print(section_point((1, 2), (7, 8), 1, 2))This prints (3.0, 4.0). The ratio 1 : 2 means P is one third of the way from A to B. The change from A to B is (6, 6), and one third of it is (2, 2), which gives (3, 4).
The fraction method
Many people find it faster to avoid the cross pattern and use the fraction directly:
P = A + (m/(m + n)) · (B − A)
For a ratio 3 : 2, the fraction is 3/5. Start at A and travel 3/5 of the vector AB. This version is harder to get backwards, because the order of the ratio matches the direction from A to B.
Worked example: finding the ratio
In what ratio does the point P(2, y) divide the segment from A(−1, 4) to B(5, −2)? Find y as well.
Let the ratio be k : 1. The x coordinate gives (5k + (−1)(1))/(k + 1) = 2, so 5k − 1 = 2k + 2 and k = 1. The ratio is 1 : 1, so P is the midpoint, and y = (4 − 2)/2 = 1.
The k : 1 trick is standard. When the ratio is unknown, write it as k : 1, use one coordinate to solve for k, and then use k in the other coordinate. A negative k signals external division, covered below.
Finding where a line cuts a segment
A common variant asks where a given line, such as the y-axis, divides a segment. The y-axis is x = 0, so set the x coordinate of the section point to 0.
For A(−2, 3) and B(6, 7), let P divide AB in the ratio k : 1:
(6k − 2)/(k + 1) = 0, so k = 1/3.
The ratio is 1 : 3. Then y = (7k + 3)/(k + 1) = (7/3 + 3)/(4/3) = 4.
The y-axis meets AB at (0, 4), dividing it in the ratio 1 : 3.
External division
A point P divides AB externally in the ratio m : n (with m ≠ n) when P lies on the line AB outside the segment, and AP : PB = m : n. The formula changes one sign:
P = ((m·x₂ − n·x₁)/(m − n), (m·y₂ − n·y₁)/(m − n))
This is the internal formula with n replaced by −n. A negative k in the k : 1 method means the same thing: a negative ratio is an external division.
Where P lands depends on which segment is longer:
- If m > n, then AP > PB, so P lies beyond B.
- If m < n, then AP < PB, so P lies beyond A.
- If m = n, the formula divides by zero. No such point exists, since the point would be at infinity.
Worked example
Find the point that divides A(2, 3) and B(6, 5) externally in the ratio 3 : 1.
x = (3·6 − 1·2)/(3 − 1) = 16/2 = 8 y = (3·5 − 1·3)/(3 − 1) = 12/2 = 6
P = (8, 6). Check: AP = (6, 3) and PB = (−2, −1), which has half the length, so AP : PB = 3 : 1 when measured as lengths. P lies beyond B, as predicted.
Harmonic conjugates
If P divides AB internally in the ratio m : n and Q divides it externally in the same ratio, then P and Q are called harmonic conjugates with respect to A and B. This relationship is symmetric: A and B are in turn harmonic conjugates with respect to P and Q. CAT rarely names this idea, but it appears when a question gives both an internal and an external point with the same ratio, and it helps you check your work.
Section formula applications
Centroid preview
The centroid of a triangle is the point where the three medians meet. It divides each median in the ratio 2 : 1, counted from the vertex. For a median from A(x₁, y₁) to the midpoint M of BC, the section formula with m = 2, n = 1 gives the centroid as the average of the three vertices. The triangle centres chapter develops this in full.
Ratios along a line from one coordinate
Because division is the same along every axis, the ratio in which a point divides AB equals the ratio of the coordinate differences:
AP : PB = (xP − x₁) : (x₂ − xP)
You can use whichever coordinate has the cleaner numbers. This works when A and B differ in that coordinate. If x₁ = x₂ (a vertical segment), use y.
Quadrilateral and parallelogram tests
To show that a quadrilateral is a parallelogram, show that the midpoints of its diagonals coincide. To show it is a rhombus, add that the diagonals are perpendicular, or that all four sides are equal by the distance formula. A rectangle needs equal diagonals as well.
Common errors
| Error | Why it happens | Fix |
|---|---|---|
| Swapping the weights, giving n to B | The cross pattern is misremembered | Check that a larger m moves P toward B |
| Using m : n as AP : AB | Confusing a part-to-part ratio with part-to-whole | Divide by m + n, not by n |
| Using the internal formula for an external point | The wording "externally" is missed | Replace n with −n and divide by m − n |
| Forgetting the point lies outside the segment | Skipping a sanity check | Compare P with A and B on the number line |
| Averaging only one coordinate | Rushing | Compute both x and y |
| Reading "AP : AB = 1 : 3" as a 1 : 3 split | The ratio compares different quantities | Convert to AP : PB = 1 : 2 |
A timed-test method
- Write down A and B with the order of the ratio.
- Choose the fraction method for a known ratio, or the k : 1 method for an unknown one.
- Do x and y in parallel, and keep the arithmetic small.
- Check that internal points lie between A and B and external points lie outside.
For answer options, look first at the x coordinate alone. Often only one option has the right x value, and you can skip the y calculation.
Exercise
A(1, 2) and B(7, 8) are given. (a) Find the point P that divides AB internally in the ratio 2 : 1. (b) Find the point Q that divides AB externally in the ratio 2 : 1. (c) Verify that P and Q are harmonic conjugates by checking that AQ : QB = AP : PB in length.
Show answer
(a) P = ((2·7 + 1·1)/3, (2·8 + 1·2)/3) = (5, 6). (b) Q = ((2·7 − 1·1)/(2 − 1), (2·8 − 1·2)/(2 − 1)) = (13, 14). (c) AP = vector (4, 4), length 4√2. PB = (2, 2), length 2√2. So AP : PB = 2 : 1. AQ = (12, 12), length 12√2. QB = (−6, −6), length 6√2. So AQ : QB = 2 : 1. The two ratios match, so P and Q are harmonic conjugates.
Exercise
Three vertices of a parallelogram are A(−1, 0), B(2, 5) and C(6, 3), with AC as a diagonal. Find the fourth vertex D, and find the ratio in which the y-axis divides the side AB.
Show answer
Diagonals AC and BD share a midpoint, so D = A + C − B = (−1 + 6 − 2, 0 + 3 − 5) = (3, −2). For the y-axis on AB, use the k : 1 method on x: (2k − 1)/(k + 1) = 0, so k = 1/2. The y-axis divides AB in the ratio 1 : 2 (internally), at the point (0, 5/3).
Exercise
Write a Python function external_point(a, b, m, n) that returns the point dividing AB externally in the ratio m : n, and raise a ValueError when m equals n. Use it to find the external point for A(2, 3), B(6, 5), ratio 3 : 1.
Show answer
def externalpoint(a, b, m, n): if m == n: raise ValueError("no external point when m equals n") return ((m b[0] - n a[0]) / (m - n), (m b[1] - n a[1]) / (m - n)) print(externalpoint((2, 3), (6, 5), 3, 1)) The output is (8.0, 6.0), matching the hand calculation.