• Foundation
  • About 15 min
  • 5 practice questions

Section formula, midpoint and centroid

Find the point dividing a segment internally or externally in a given ratio, the midpoint and the centroid of a triangle, and the ratio in which a coordinate plane divides a segment.

If something looks wrong, please tell us.

Many problems need a point between two given points: the midpoint of a side, the point that cuts a rod in the ratio 2 : 1, or the centre of a triangle. The section formula gives such points straight from the coordinates. It is the formula you met in the plane, with a third coordinate added.

Internal division

A point P on the segment AB divides it internally in the ratio m : n when AP : PB = m : n. If A = (x₁, y₁, z₁) and B = (x₂, y₂, z₂), then P = ((mx₂ + nx₁)/(m + n), (my₂ + ny₁)/(m + n), (mz₂ + nz₁)/(m + n)). The reason is that the feet of the perpendiculars from A, P and B on each axis divide the projected segment in the same ratio, so every coordinate is worked out separately. Notice the cross pattern: m, the part next to A, multiplies the coordinates of B.

External division

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. Replace n by −n in the internal formula: P = ((mx₂ − nx₁)/(m − n), (my₂ − ny₁)/(m − n), (mz₂ − nz₁)/(m − n)).

Midpoint and centroid

The midpoint is the case m = n = 1: ((x₁ + x₂)/2, (y₁ + y₂)/2, (z₁ + z₂)/2). The centroid G of a triangle, where its three medians meet, divides each median in the ratio 2 : 1 and is the average of the three vertices: G = ((x₁ + x₂ + x₃)/3, (y₁ + y₂ + y₃)/3, (z₁ + z₂ + z₃)/3).

Internal m : n gives ((mx₂ + nx₁)/(m + n), (my₂ + ny₁)/(m + n), (mz₂ + nz₁)/(m + n)). External m : n: change + n to − n everywhere. Midpoint = average of the two ends; centroid = average of the three vertices.

Worked example 1: internal division

Find the point dividing the join of A(1, −2, 4) and B(7, 4, −2) internally in the ratio 2 : 1. P = ((2·7 + 1·1)/3, (2·4 + 1·(−2))/3, (2·(−2) + 1·4)/3) = (15/3, 6/3, 0/3) = (5, 2, 0).

Worked example 2: external division

Now divide the same segment externally in the ratio 2 : 1. P = ((2·7 − 1·1)/1, (2·4 − 1·(−2))/1, (2·(−2) − 1·4)/1) = (13, 10, −8). Check: AP : PB = 2 : 1 means B is the midpoint of AP, and indeed ((1 + 13)/2, (−2 + 10)/2, (4 − 8)/2) = (7, 4, −2) = B.

Worked example 3: the centroid

The centroid of the triangle with vertices (2, −1, 3), (4, 5, −2) and (−3, 2, 5) is ((2 + 4 − 3)/3, (−1 + 5 + 2)/3, (3 − 2 + 5)/3) = (3/3, 6/3, 6/3) = (1, 2, 2).

Worked example 4: where a coordinate plane cuts a segment

In what ratio does the xy-plane divide the segment joining A(2, 1, −3) and B(4, −2, 6)? Take the ratio as k : 1. The dividing point is ((4k + 2)/(k + 1), (−2k + 1)/(k + 1), (6k − 3)/(k + 1)). It lies in the xy-plane, so its z-coordinate is 0: 6k − 3 = 0 and k = 1/2. The ratio is 1 : 2, and because k is positive the division is internal. Putting k = 1/2 back gives the point (8/3, 0, 0). If k had come out negative, the division would be external.

Key takeaways. In the section formula the ratio part next to A multiplies B's coordinates. For external division change the plus signs before n to minus signs. To find an unknown ratio, take it as k : 1, apply the condition to one coordinate and read the sign of k: positive means internal, negative means external.

Check your understanding

  1. 1. What is the midpoint of the segment joining (3, −4, 7) and (−5, 2, 1)?

    1. (4, −3, 3)
    2. (−2, −2, 8)
    3. (1, 1, −4)
    4. (−1, −1, 4)
    Show answer

    Answer: D. Average the coordinates: ((3 − 5)/2, (−4 + 2)/2, (7 + 1)/2) = (−1, −1, 4). (−2, −2, 8) forgets to halve, and (4, −3, 3) halves the differences instead of the sums.

  2. 2. Which point divides the join of A(1, 2, 3) and B(4, −1, 9) internally in the ratio 1 : 2?

    1. (3, 0, 7)
    2. (2, 1, 5)
    3. (5/2, 1/2, 6)
    4. (7, −4, 15)
    Show answer

    Answer: B. P = ((1·4 + 2·1)/3, (1·(−1) + 2·2)/3, (1·9 + 2·3)/3) = (6/3, 3/3, 15/3) = (2, 1, 5). (3, 0, 7) uses the ratio the wrong way round (2 : 1), and (5/2, 1/2, 6) is the midpoint.

  3. 3. Which point divides the join of P(−1, 2, 0) and Q(1, 4, 2) externally in the ratio 3 : 1?

    1. (1/2, 7/2, 3/2)
    2. (−2, 1, −1)
    3. (0, 3, 1)
    4. (2, 5, 3)
    Show answer

    Answer: D. R = ((3·1 − 1·(−1))/(3 − 1), (3·4 − 1·2)/2, (3·2 − 1·0)/2) = (4/2, 10/2, 6/2) = (2, 5, 3). Check: PR = (3, 3, 3) and QR = (1, 1, 1), so PR : QR = 3 : 1. (1/2, 7/2, 3/2) is the internal point for 3 : 1.

  4. 4. A triangle has vertices (2, −1, 3), (a, 4, −2) and (0, b, 2), and its centroid is (1, 1, 1). What are a and b?

    1. a = 1, b = 0
    2. a = 3, b = 3
    3. a = −1, b = −2
    4. a = 1, b = 2
    Show answer

    Answer: A. The x-coordinates: (2 + a + 0)/3 = 1, so a = 1. The y-coordinates: (−1 + 4 + b)/3 = 1, so b = 0. The z-coordinates check: (3 − 2 + 2)/3 = 1. Forgetting to multiply by 3 gives a = −1, b = −2.

  5. 5. In what ratio does the yz-plane divide the segment joining (−2, 4, 7) and (3, −5, 8)?

    1. 3 : 2 internally
    2. 2 : 3 internally
    3. 2 : 3 externally
    4. 1 : 1 internally
    Show answer

    Answer: B. Take the ratio k : 1. The x-coordinate of the dividing point is (3k − 2)/(k + 1), and on the yz-plane it is 0, so k = 2/3. The ratio is 2 : 3, and since k is positive the division is internal.

Sign in to keep track of the lessons you finish.

Next lesson → Direction cosines and direction ratios

Privacy · Terms · Refunds · Delivery