Skip to content
spmaddmath.com.my
Tuition

Study

SyllabusFormulasMethodsExam & PapersTools
LocationsPricingBlogOur TeachersContact
EN

Method · Coordinate Geometry

Dividing a line segment in a given ratio

For AP:PB=m:nAP:PB = m:n, the dividing point is P=(nx1+mx2m+n,ny1+my2m+n)P = \left(\frac{n x_1 + m x_2}{m + n}, \frac{n y_1 + m y_2}{m + n}\right), weight AA by nn and BB by mm, then divide by m+nm + n.

What this method is for

This method finds the coordinates of the point PP that divides a line segment ABAB in a given ratio m:nm:n. It uses the section formula, which is a weighted average of the two endpoints.

It answers questions such as 'point PP divides ABAB in the ratio 2:12:1; find its coordinates', or 'the point (5,4)(5, 4) divides ABAB in the ratio 2:12:1, find BB'. The midpoint formula is just the special case where the ratio is 1:11:1, so this one method covers midpoints too.

It is a small, high-frequency skill that appears both on its own and inside longer Coordinate Geometry problems about parallelograms, medians and points of trisection.

section formula, for AP:PB = m:n
P=(nx1+mx2m+n,  ny1+my2m+n)P = \left( \frac{n x_1 + m x_2}{m + n}, \; \frac{n y_1 + m y_2}{m + n} \right)

When to reach for it

Reach for this method whenever a question mentions a point dividing a segment 'in the ratio m:nm:n', or uses phrases like 'internal point of division', 'trisects ABAB', or 'divides ABAB such that AP:PB=2:3AP:PB = 2:3'. If the ratio is 1:11:1, the point is the midpoint and the same formula applies.

You can also run the formula backwards. If the dividing point and one endpoint are given along with the ratio, substitute what you know and solve for the missing endpoint's coordinates.

The key first move is always to read the ratio in the correct order, AP:PBAP:PB, measured from the first named point AA, because getting mm and nn the wrong way round moves PP to the wrong place.

The steps

  1. 1

    Label the endpoints

    Set A(x1,y1)A(x_1, y_1) as the first point and B(x2,y2)B(x_2, y_2) as the second, in the order the ratio is measured.

  2. 2

    Read the ratio as m : n

    For AP:PB=m:nAP:PB = m:n, mm is the part next to AA and nn is the part next to BB.

  3. 3

    Write the section formula

    P=(nx1+mx2m+n,ny1+my2m+n)P = \left(\frac{n x_1 + m x_2}{m + n}, \frac{n y_1 + m y_2}{m + n}\right): the first point is weighted by nn, the second by mm.

  4. 4

    Substitute the numbers

    Put in the coordinates and the ratio values, keeping the denominator m+nm + n.

  5. 5

    Simplify each coordinate

    Work out the xx-coordinate and the yy-coordinate separately and state PP.

  6. 6

    Sanity-check the position

    Confirm PP lies between AA and BB and is nearer the endpoint the ratio says it should be.

Worked example

Q1[3 marks]

The point PP divides the line segment joining A(1,2)A(1, 2) and B(7,5)B(7, 5) in the ratio AP:PB=2:1AP:PB = 2:1. Find the coordinates of PP.

Show worked solution

Label A(x1,y1)=(1,2)A(x_1, y_1) = (1, 2) and B(x2,y2)=(7,5)B(x_2, y_2) = (7, 5). The ratio AP:PB=2:1AP:PB = 2:1 gives m=2m = 2 and n=1n = 1, so m+n=3m + n = 3.

P=(nx1+mx2m+n,  ny1+my2m+n)P = \left( \frac{n x_1 + m x_2}{m + n}, \; \frac{n y_1 + m y_2}{m + n} \right)

Substitute the xx-values: the first point is weighted by n=1n = 1 and the second by m=2m = 2.

x=(1)(1)+(2)(7)3=1+143=153=5x = \frac{(1)(1) + (2)(7)}{3} = \frac{1 + 14}{3} = \frac{15}{3} = 5

Now the yy-values, in the same way.

y=(1)(2)+(2)(5)3=2+103=123=4y = \frac{(1)(2) + (2)(5)}{3} = \frac{2 + 10}{3} = \frac{12}{3} = 4

So P=(5,4)P = (5, 4). Sanity check: because AP:PB=2:1AP:PB = 2:1, PP should be 23\frac{2}{3} of the way from AA to BB.

Moving 23\frac{2}{3} of (71,52)=(6,3)(7-1,\,5-2) = (6, 3) gives (4,2)(4, 2), and (1,2)+(4,2)=(5,4)(1, 2) + (4, 2) = (5, 4), the same point, so the answer is confirmed.

Common pitfalls

  • Swapping mm and nn in the formula, remember the first point AA is weighted by nn, and the second point BB by mm.
  • Reading the ratio the wrong way round: AP:PB=2:1AP:PB = 2:1 is not the same as PB:AP=2:1PB:AP = 2:1.
  • Writing the denominator as mm or nn alone instead of m+nm + n.
  • Forgetting that the midpoint is simply the ratio 1:11:1, then using a different (wrong) formula for it.
  • Sign slips when an endpoint has a negative coordinate, especially in the numerator.

How a teacher helps

Almost every lost mark here comes from one place: pairing the ratio numbers with the wrong points. Students instinctively multiply AA by mm because mm is written first, when the formula actually weights AA by nn.

In one-to-one lessons our teachers give you a reliable habit, write A(x1,y1)A(x_1, y_1), B(x2,y2)B(x_2, y_2) and AP:PB=m:nAP:PB = m:n in a fixed layout every time, then read the weights straight off. We also make you do the quick 'fraction of the way' sanity check you saw above, which catches a swapped ratio in seconds.

Because SPM Add Math uses analytic marking, a correctly substituted formula earns method marks even if the final arithmetic slips. Every teacher on spmaddmath.com.my is experienced.

Lessons are online and taught in English, at your own pace.

Get 1-to-1 help.

Book a Trial Class

Frequently asked questions

How is this related to the midpoint formula?

The midpoint is the special case of the ratio 1:11:1. Putting m=n=1m = n = 1 into the section formula gives (x1+x22,y1+y22)\left(\frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2}\right), the familiar midpoint.

So one formula handles both.

What does AP : PB = 2 : 1 actually mean?

It means PP is twice as far from AA as it is from BB, so PP sits 23\frac{2}{3} of the way along the segment from AA towards BB. It is closer to BB.

Reading this correctly is what fixes mm and nn.

Which coordinates get multiplied by m and which by n?

For AP:PB=m:nAP:PB = m:n, the first point A(x1,y1)A(x_1, y_1) is multiplied by nn and the second point B(x2,y2)B(x_2, y_2) by mm; the denominator is m+nm + n. The weights sit 'opposite' to the point they belong to, which is the step to double-check.

Do I earn marks if I compute one coordinate wrongly?

Yes. SPM Add Math uses analytic marking, so writing the section formula and substituting correctly earns method marks, even if a numerical slip changes one coordinate of PP.

Source:SRC-DSKP-EN

Written by the spmaddmath.com.my editorial team.· Last updated 5 September 2026

Ready to get started?

Book a Trial Classfrom RM50/hr · One-hour paid trial · Same-day reply
Book a Trial ClassOne-hour paid trial · Same-day reply