Maths · Ch 7 · Topic 4 of 5Section formula
Topic 4 of 5

The section formula

About 60 minutes · 3 things to learn
By the end you can…
  • Derive the section formula for internal division and use it to find the point dividing a segment in a given ratio.
  • Find the mid-point of a segment, the points of trisection, and the points dividing a segment into four equal parts.
  • Find the ratio in which a point divides a segment (including the k : 1 method) and the ratio in which an axis divides a segment.

Engineers building a straight metro line want a ventilation shaft one-third of the way from one station to the next. A town planner wants a bus stop one-quarter of the way along a straight road. A town planner wants a bus stop one-quarter of the way along a straight road. Both need the same thing: the coordinates of a point that cuts a segment in a given ratio. The section formula gives them in one line — as long as the ratio is written the right way round.

What "divides AB in the ratio m₁ : m₂" means

A point P on the segment AB divides it internally in the ratio m1:m2m_1 : m_2 if

APPB=m1m2\dfrac{AP}{PB} = \dfrac{m_1}{m_2}

So m1m_1 is the part next to A and m2m_2 is the part next to B. P lies between A and B. For example, dividing AB in the ratio 1 : 2 puts P one-third of the way from A to B; dividing it in 2 : 1 puts P two-thirds of the way.

Where the formula comes from

Quick reminder (Chapter 6): two triangles with two pairs of equal angles are similar (AA), and then their sides are proportional.

Let A(x1,y1)A(x_1, y_1), B(x2,y2)B(x_2, y_2) and let P(x,y)P(x, y) divide AB in the ratio m1:m2m_1 : m_2. Draw a horizontal line through A and one through P, and vertical lines through P and B, to make two small right triangles: one from A to P and one from P to B. Their hypotenuses AP and PB lie on the same line, so their angles are equal and the triangles are similar (AA). Their sides are therefore in the ratio AP:PB=m1:m2AP : PB = m_1 : m_2:

  • horizontal sides: x−x1x2−x=m1m2\dfrac{x - x_1}{x_2 - x} = \dfrac{m_1}{m_2};
  • vertical sides: y−y1y2−y=m1m2\dfrac{y - y_1}{y_2 - y} = \dfrac{m_1}{m_2}.

Cross-multiplying the first: m2(x−x1)=m1(x2−x)m_2(x - x_1) = m_1(x_2 - x), so m2x−m2x1=m1x2−m1xm_2 x - m_2 x_1 = m_1 x_2 - m_1 x, so (m1+m2)x=m1x2+m2x1(m_1 + m_2)x = m_1 x_2 + m_2 x_1. In the same way for y:

P(x,y)=(m1x2+m2x1m1+m2,m1y2+m2y1m1+m2)P(x, y) = \left( \dfrac{m_1 x_2 + m_2 x_1}{m_1 + m_2}, \dfrac{m_1 y_2 + m_2 y_1}{m_1 + m_2} \right)

This is the section formula.

How to remember the order — "cross over": m1m_1 is written next to A, but it multiplies B's coordinates; m2m_2 is next to B, but multiplies A's coordinates. (The bigger part of the ratio pulls P towards the other end.)

The fixed routine:

  1. Write the ratio next to the segment: A ——m1m_1—— P ——m2m_2—— B.
  2. Cross over: x=m1xB+m2xAm1+m2x = \dfrac{m_1 x_B + m_2 x_A}{m_1 + m_2}, and the same for y.
  3. Check: P must lie between A and B (its x lies between xAx_A and xBx_B, and so does its y).

Special cases

  • Mid-point (ratio 1 : 1): (x1+x22,y1+y22)\left( \dfrac{x_1 + x_2}{2}, \dfrac{y_1 + y_2}{2} \right) — add the coordinates and halve.
  • Points of trisection (three equal parts): divide in 1 : 2 and in 2 : 1.
  • Four equal parts: divide in 1 : 3, find the mid-point (1 : 1), and divide in 3 : 1.
  • The k : 1 form. Dividing every part by m2m_2 gives the ratio k:1k : 1 with k=m1m2k = \dfrac{m_1}{m_2}, and
P=(kx2+x1k+1,ky2+y1k+1)P = \left( \dfrac{k x_2 + x_1}{k + 1}, \dfrac{k y_2 + y_1}{k + 1} \right)

This is the easiest form when the ratio is unknown: there is only one unknown, k.

Finding the ratio

  1. Let the ratio be k:1k : 1 and write P with the k : 1 form.
  2. Set one coordinate equal to the known value of P and solve for k.
  3. Use the other coordinate to check (or to find an unknown in it).
  4. k must be positive. A negative k means the point is not between A and B, so the segment is not divided internally.
  5. Write the ratio as k:1k : 1 and clear any fraction: k=32k = \dfrac{3}{2} gives 3:23 : 2.

An axis dividing a segment (the axis card again): the point where AB meets the x-axis has y=0y = 0, so set the y-coordinate of the k : 1 point equal to 0. For the y-axis, set the x-coordinate equal to 0.

Visuals

Section formula figure A (1, 1), P (3, 2), B (7, 4) on one line, AP : PB = 1 : 2. Dashed perpendiculars AR, PS, BT to the x-axis (R (1, 0), S (3, 0), T (7, 0)); dashed horizontals AQ and PC with Q (3, 1), C (7, 2). Small right triangles AQP (tinted) and PCB (hatched), right angles at Q and C, equal angles at A and P. AQ = x − x₁ = 2, QP = y − y₁ = 1, PC = x₂ − x = 4, CB = y₂ − y = 2. △AQP ∼ △PCB (AA), so m₁/m₂ = (x − x₁)/(x₂ − x) = (y − y₁)/(y₂ − y); cross over: m₁ goes with B. P = ((m₁x₂ + m₂x₁)/(m₁ + m₂), (m₁y₂ + m₂y₁)/(m₁ + m₂)). x y m1 m2 x − x1 = 2 y − y1 = 1 x2 − x = 4 y2 − y = 2 B ( x2 , y2 ) P ( x , y ) A ( x1 , y1 ) R S T Q C 2 4 5 6 8 1 2 3 4 5 O 1 3 7 △ AQP ∼ △ PCB (AA) cross over: m1 goes with B m1 m2 = x − x1 x2 − x = y − y1 y2 − y P = m1x2 + m2x1 m1 + m2 , m1y2 + m2y1 m1 + m2
Section formula figure (similar triangles)Where the section formula comes from, and why m₁ multiplies the coordinates of B.Draw in exam
Trisection and quarter points Trisection: A (−4, 7) to B (5, −2) cut into three equal parts (each 3√2) by P (−1, 4), the 1 : 2 point, and Q (2, 1), the 2 : 1 point. Four equal parts: A (−6, 1) to B (6, 9) cut by P (−3, 3), the 1 : 3 point, M (0, 5), the 1 : 1 point (mid-point), and Q (3, 7), the 3 : 1 point; each part √13. Trisection equal parts x y A ( −4 , 7 ) P ( −1 , 4 ) Q ( 2 , 1 ) B ( 5 , −2 ) 1 : 2 2 : 1 −4 −3 −2 −1 0 1 2 3 4 5 −1 0 1 2 3 4 5 6 7 O Four equal parts equal parts x y A ( −6 , 1 ) P ( −3 , 3 ) M ( 0 , 5 ) Q ( 3 , 7 ) B ( 6 , 9 ) 1 : 3 1 : 1 ( mid-point ) 3 : 1 −6 −5 −4 −3 −2 −1 1 2 3 4 5 6 1 2 3 4 5 6 7 8 9 O
Trisection and quarter pointsWhich ratios give the points of trisection and the points dividing a segment into four equal parts.
Axis card Panel 1, on an axis: E (5, 0) on the x-axis and F (0, −4) on the y-axis, ringed; x-axis: y = 0 → (x, 0); y-axis: x = 0 → (0, y). Panel 2, distance from an axis: P (2, 3) with dashed perpendiculars to (0, 3) of length 2 and to (2, 0) of length 3; distance from the y-axis = |x|, distance from the x-axis = |y|. Panel 3: A (2, −6) and B (−3, 4) joined; the x-axis cuts AB where y = 0, at P (−1, 0), ringed; AP = 3√5, PB = 2√5, AP : PB = 3 : 2; (4k − 6)/(k + 1) = 0 ⇒ k = 3/2. On an axis x y E ( 5 , 0 ) F ( 0 , −4 ) 1 2 3 4 5 6 7 −5 −4 −3 −2 −1 1 O x-axis: y = 0 (x, 0) y-axis: x = 0 (0, y) Distance from an axis x y 2 3 P ( 2 , 3 ) 1 2 3 4 1 2 3 4 O distance from the y-axis = |x| = 2 distance from the x-axis = |y| = 3 An axis cutting a segment x y AP = 3 5 PB = 2 5 A ( 2 , −6 ) B ( −3 , 4 ) P ( −1 , 0 ) −6 −5 −4 −3 −2 −1 0 1 2 3 4 −6 −5 −4 −3 −2 −1 0 1 2 3 4 5 O the x-axis cuts AB where y = 0 AP : PB = 3 : 2 4k − 6 k + 1 = 0 ⇒ k = 3 2
Axis cardThe condition for a point of division to lie on an axis.Draw in exam

The coordinate explorer now has a ratio control: change m and n and watch P move along AB while the section formula updates.

Coordinate explorer Coordinate explorer, start view. 'Distance' mode: a square grid from −8 to 8 with A (−3, 4) and B (5, −2); the right triangle with corner (5, 4), legs x₂ − x₁ = 5 − (−3) = 8 and y₂ − y₁ = −2 − 4 = −6, AB drawn thick; the working AB = √((x₂ − x₁)² + (y₂ − y₁)²) = √((5 − (−3))² + (−2 − 4)²) = √(8² + (−6)²) = √(64 + 36) = √100 = 10. In the interactive version you drag A and B (or type their coordinates) and the working updates. 'Ratio' mode (shown on Topic 4): A (−2, 5), B (8, −5), AP : PB = 2 : 3, P (2, 1): x = (2 × 8 + 3 × (−2))/(2 + 3) = 10/5 = 2, y = (2 × (−5) + 3 × 5)/(2 + 3) = 5/5 = 1; P is between A and B; m (next to A) multiplies B's coordinates. Distance Ratio x y x2 − x1 = 5 − (−3) = 8 y2 − y1 = −2 − 4 = −6 A ( −3 , 4 ) B ( 5 , −2 ) −8 −6 −4 −2 2 4 6 8 −8 −6 −4 −2 2 4 6 8 O drag A drag B AB = (x2 − x1)2 + (y2 − y1)2 = (5 − (−3))2 + (−2 − 4)2 = 82 + (−6)2 = 64 + 36 = 100 = 10 Distance Ratio x y m n A ( −2 , 5 ) B ( 8 , −5 ) P ( 2 , 1 ) −8 −6 −4 −2 2 4 6 8 −8 −6 −4 −2 2 4 6 8 O AP : PB = m : n = 2 : 3 x = m1x2 + m2x1 m1 + m2 = 2 × 8 + 3 × (−2) 2 + 3 = 10 5 = 2 y = 2 × (−5) + 3 × 5 2 + 3 = 5 5 = 1 P is between A and B m (next to A) multiplies B's coordinates
Coordinate explorer (interactive)M next to A pulls P towards B, and that the formula's answer always lies between A and B.

Worked examples

Worked example 1

Dividing a segment in a ratio

Question. Find the coordinates of the point P which divides the segment joining A(−2, 5) and B(8, −5) internally in the ratio 2 : 3.

Given: A(−2, 5), B(8, −5), AP:PB=2:3AP : PB = 2 : 3. Asked: P.

Concept used: the section formula with m1=2m_1 = 2 (next to A) and m2=3m_2 = 3 (next to B). Why it applies: P divides AB internally in a known ratio.

  1. 1

    Write the ratio on the segment: A ——2—— P ——3—— B. So m1=2m_1 = 2, m2=3m_2 = 3; (x1,y1)=(−2,5)(x_1, y_1) = (-2, 5), (x2,y2)=(8,−5)(x_2, y_2) = (8, -5).

  2. 2

    Cross over for x: m1m_1 multiplies B's x.

    x=2×8+3×(−2)2+3=16−65=105=2x = \dfrac{2 \times 8 + 3 \times (-2)}{2 + 3} = \dfrac{16 - 6}{5} = \dfrac{10}{5} = 2
  3. 3

    The same for y.

    y=2×(−5)+3×52+3=−10+155=55=1y = \dfrac{2 \times (-5) + 3 \times 5}{2 + 3} = \dfrac{-10 + 15}{5} = \dfrac{5}{5} = 1
  4. 4

    So P is (2,1)(2, 1).

  5. Check: AP=(2−(−2))2+(1−5)2=16+16=42AP = \sqrt{(2 - (-2))^2 + (1 - 5)^2} = \sqrt{16 + 16} = 4\sqrt{2} and PB=(8−2)2+(−5−1)2=36+36=62PB = \sqrt{(8 - 2)^2 + (-5 - 1)^2} = \sqrt{36 + 36} = 6\sqrt{2}; 42:62=2:34\sqrt{2} : 6\sqrt{2} = 2 : 3 ✔.

  6. Answer P(2, 1)

    Common trap: Multiplying m1m_1 by A's coordinate: 2×(−2)+3×85=4\dfrac{2 \times (-2) + 3 \times 8}{5} = 4 and 2×5+3×(−5)5=−1\dfrac{2 \times 5 + 3 \times (-5)}{5} = -1 give (4,−1)(4, -1) — that is the point dividing AB in the ratio 3 : 2.

Worked example 2

A ratio with the bigger part first

Question. Find the point R which divides the join of P(3, −4) and Q(−9, 8) in the ratio 3 : 1.

Given: PR:RQ=3:1PR : RQ = 3 : 1. Asked: R.

Concept used: the section formula, m1=3m_1 = 3, m2=1m_2 = 1. Why it applies: R divides PQ internally in a known ratio.

  1. 1

    P ——3—— R ——1—— Q: R is three-quarters of the way from P to Q, so it should be close to Q.

  2. 2

    Cross over for x.

    x=3×(−9)+1×33+1=−27+34=−244=−6x = \dfrac{3 \times (-9) + 1 \times 3}{3 + 1} = \dfrac{-27 + 3}{4} = \dfrac{-24}{4} = -6
  3. 3

    For y.

    y=3×8+1×(−4)3+1=24−44=204=5y = \dfrac{3 \times 8 + 1 \times (-4)}{3 + 1} = \dfrac{24 - 4}{4} = \dfrac{20}{4} = 5
  4. 4

    So R is (−6,5)(-6, 5).

  5. Check: R should be close to Q(−9, 8): RQ=9+9=32RQ = \sqrt{9 + 9} = 3\sqrt{2} and PR=81+81=92PR = \sqrt{81 + 81} = 9\sqrt{2}, which are in the ratio 3 : 1 ✔.

  6. Answer R(−6, 5)

    Common trap: Reading the ratio the wrong way round. 1×(−9)+3×34=0\dfrac{1 \times (-9) + 3 \times 3}{4} = 0 and 1×8+3×(−4)4=−1\dfrac{1 \times 8 + 3 \times (-4)}{4} = -1 give (0,−1)(0, -1), which is a quarter of the way from P — the 1 : 3 point.

Worked example 3

The mid-point

Question. Find the mid-point of the segment joining (−7,3)(-7, 3) and (5,−9)(5, -9).

Given: the two ends. Asked: the mid-point M.

Concept used: mid-point formula — add and halve. Why it applies: the mid-point divides the segment in the ratio 1 : 1.

  1. 1

    x=−7+52=−22=−1x = \dfrac{-7 + 5}{2} = \dfrac{-2}{2} = -1.

  2. 2

    y=3+(−9)2=−62=−3y = \dfrac{3 + (-9)}{2} = \dfrac{-6}{2} = -3.

  3. 3

    So M is (−1,−3)(-1, -3).

  4. Check: going from (−7,3)(-7, 3) to M, x goes up 6 and y goes down 6; from M to (5,−9)(5, -9), x again goes up 6 and y goes down 6 — equal steps ✔.

  5. Answer (−1,−3)(-1, -3)

    Common trap: Subtracting instead of adding: 5−(−7)2=6\dfrac{5 - (-7)}{2} = 6 and −9−32=−6\dfrac{-9 - 3}{2} = -6 give (6,−6)(6, -6) — that is half of the change, not the middle point.

Worked example 4

Points of trisection

Question. Find the points of trisection of the segment joining A(−4, 7) and B(5, −2).

Given: A(−4, 7), B(5, −2). Asked: the two points that cut AB into three equal parts.

Concept used: the points of trisection divide AB in 1 : 2 and in 2 : 1. Why it applies: AP = PQ = QB means AP:PB=1:2AP : PB = 1 : 2 and AQ:QB=2:1AQ : QB = 2 : 1.

  1. 1

    P divides AB in 1 : 2.

    x=1×5+2×(−4)1+2=5−83=−1y=1×(−2)+2×71+2=−2+143=4x = \dfrac{1 \times 5 + 2 \times (-4)}{1 + 2} = \dfrac{5 - 8}{3} = -1 \qquad y = \dfrac{1 \times (-2) + 2 \times 7}{1 + 2} = \dfrac{-2 + 14}{3} = 4
  2. 2

    So P is (−1,4)(-1, 4).

  3. 3

    Q divides AB in 2 : 1.

    x=2×5+1×(−4)2+1=10−43=2y=2×(−2)+1×72+1=−4+73=1x = \dfrac{2 \times 5 + 1 \times (-4)}{2 + 1} = \dfrac{10 - 4}{3} = 2 \qquad y = \dfrac{2 \times (-2) + 1 \times 7}{2 + 1} = \dfrac{-4 + 7}{3} = 1
  4. 4

    So Q is (2,1)(2, 1).

  5. Check: Q should be the mid-point of PB: (−1+52,4+(−2)2)=(2,1)\left( \dfrac{-1 + 5}{2}, \dfrac{4 + (-2)}{2} \right) = (2, 1) ✔.

  6. Answer (−1,4)(-1, 4) and (2,1)(2, 1)

    Common trap: Giving only one point. "Points of trisection" are two points.

Worked example 5

Finding the ratio (the k : 1 method)

Question. In what ratio does the point (1,−1)(1, -1) divide the segment joining A(−3, 5) and B(3, −4)?

Given: P(1, −1) on AB. Asked: AP:PBAP : PB.

Concept used: let the ratio be k:1k : 1; P is (kx2+x1k+1,ky2+y1k+1)\left( \dfrac{k x_2 + x_1}{k + 1}, \dfrac{k y_2 + y_1}{k + 1} \right). Why it applies: only one unknown, k.

  1. 1

    Let the ratio be k:1k : 1. The x-coordinate of the dividing point is

    k×3+1×(−3)k+1=3k−3k+1\dfrac{k \times 3 + 1 \times (-3)}{k + 1} = \dfrac{3k - 3}{k + 1}
  2. 2

    This must equal 1, the x-coordinate of P.

    3k−3k+1=1\dfrac{3k - 3}{k + 1} = 1
  3. 3

    Multiply both sides by k+1k + 1.

    3k−3=k+13k - 3 = k + 1
  4. 4

    2k=42k = 4, so k=2k = 2. The ratio is 2:12 : 1.

  5. 5

    Check with y: 2×(−4)+52+1=−8+53=−33=−1\dfrac{2 \times (-4) + 5}{2 + 1} = \dfrac{-8 + 5}{3} = \dfrac{-3}{3} = -1 — this matches P's y-coordinate ✔.

  6. Check: k is positive, so P is between A and B ✔; and from step 5 both coordinates agree.

  7. Answer 2:12 : 1

    Common trap: Skipping step 5. If the y-coordinate does not match, the point is not on AB at all and there is no such ratio.

Worked example 6

The ratio in which the x-axis divides a segment

Question. Find the ratio in which the x-axis divides the segment joining A(2, −6) and B(−3, 4). Also find the point of division.

Given: A(2, −6), B(−3, 4). Asked: the ratio, and the point where AB meets the x-axis.

Concept used: axis card — a point on the x-axis has y=0y = 0; the k : 1 form. Why it applies: the dividing point lies on the x-axis.

  1. 1

    Let the x-axis divide AB in the ratio k:1k : 1 at P.

    P=(−3k+2k+1,4k−6k+1)P = \left( \dfrac{-3k + 2}{k + 1}, \dfrac{4k - 6}{k + 1} \right)
  2. 2

    P lies on the x-axis, so its y-coordinate is 0.

    4k−6k+1=0\dfrac{4k - 6}{k + 1} = 0
  3. 3

    A fraction is 0 when its top is 0: 4k−6=04k - 6 = 0, so k=64=32k = \dfrac{6}{4} = \dfrac{3}{2}.

  4. 4

    Ratio 32:1=3:2\dfrac{3}{2} : 1 = 3 : 2.

  5. 5

    Put k=32k = \dfrac{3}{2} in the x-coordinate.

    x=−3×32+232+1=−92+252=−5252=−1x = \dfrac{-3 \times \dfrac{3}{2} + 2}{\dfrac{3}{2} + 1} = \dfrac{-\dfrac{9}{2} + 2}{\dfrac{5}{2}} = \dfrac{-\dfrac{5}{2}}{\dfrac{5}{2}} = -1
  6. 6

    So the point of division is P(−1,0)P(-1, 0).

  7. Check: with the ratio 3 : 2 directly: (3(−3)+2(2)5,3(4)+2(−6)5)=(−55,05)=(−1,0)\left( \dfrac{3(-3) + 2(2)}{5}, \dfrac{3(4) + 2(-6)}{5} \right) = \left( \dfrac{-5}{5}, \dfrac{0}{5} \right) = (-1, 0) ✔. Also A is below the x-axis and B above it, so the axis really does cut AB between them ✔.

  8. Answer 3:23 : 2; the point of division is (−1,0)(-1, 0).

    Common trap: Setting the x-coordinate equal to 0 because the question says "x-axis". On the x-axis it is yy that is 0.

Worked example 7

When the axis does not cut the segment

Question. Does the y-axis divide the segment joining A(2, 3) and B(5, −1) internally? Explain.

Given: A(2, 3), B(5, −1). Asked: whether the y-axis cuts AB between A and B.

Concept used: on the y-axis x=0x = 0; an internal ratio must be positive. Why it applies: a negative k means the point is outside the segment.

  1. 1

    Let the ratio be k:1k : 1. The x-coordinate of the dividing point is 5k+2k+1\dfrac{5k + 2}{k + 1}.

  2. 2

    On the y-axis, x=0x = 0: 5k+2k+1=0\dfrac{5k + 2}{k + 1} = 0, so 5k+2=05k + 2 = 0 and k=−25k = -\dfrac{2}{5}.

  3. 3

    k is negative, so there is no point of AB on the y-axis between A and B.

  4. Check: both A and B have positive x-coordinates (2 and 5), so both lie to the right of the y-axis — the whole segment is on one side ✔.

  5. Answer No — k comes out negative (−25-\dfrac{2}{5}); the y-axis does not meet the segment AB.

    Common trap: Writing "the ratio is 2 : 5" by dropping the minus sign. A ratio of internal division can never be negative.

7 examples · they get harder as you go

Quick check

Answer without scrolling up
Quick check · 1 of 3MCQ1 mark

The point which divides the segment joining A(1, 2) and B(7, 11) internally in the ratio 1 : 2 is:

Quick check · 2 of 3MCQ1 mark

The mid-point of the segment joining (−6,2)(-6, 2) and (2,−10)(2, -10) is:

Quick check · 3 of 3MCQ1 mark

The y-axis divides the segment joining (−4,1)(-4, 1) and (6,5)(6, 5) in the ratio:

Key points

  • P divides AB in m1:m2m_1 : m_2 means AP:PB=m1:m2AP : PB = m_1 : m_2; P is between A and B.
  • Section formula: (m1x2+m2x1m1+m2,m1y2+m2y1m1+m2)\left( \dfrac{m_1 x_2 + m_2 x_1}{m_1 + m_2}, \dfrac{m_1 y_2 + m_2 y_1}{m_1 + m_2} \right) — cross over: m1m_1 goes with B.
  • Mid-point: add and halve. Trisection: 1 : 2 and 2 : 1. Four equal parts: 1 : 3, 1 : 1, 3 : 1.
  • Unknown ratio: use k:1k : 1, solve from one coordinate, check with the other; k must be positive.
  • x-axis cuts AB where y=0y = 0; y-axis where x=0x = 0.
My notesComing soon