Partitioning a Segment
After this page you can locate a point that divides a segment in a given internal ratio by using the same fractional displacement on both coordinates.
Turn the ratio into a fraction
If P divides segment AB so that AP:PB = p:q, then AP is p/(p + q) of the whole segment. Start at A and add that fraction of each coordinate change from A to B. Both coordinates must use the same fraction.
partition A=(1,2) and B=(7,8) with AP:PB=1:2The ratio has 3 total parts, so P is 1/3 of the way from A to B. Adding 1/3 of the changes 6 and 6 gives the point (3, 4).
Use a ratio greater than one
The ratio numbers describe lengths along the segment, not coordinates. Add p + q to find the total number of parts, even when p is larger than q or the coordinate changes are negative.
partition A=(-4,1) and B=(6,-9) with AP:PB=2:3Here P is 2/5 of the way from A to B. The coordinate changes are 10 and −10, and taking 2/5 of them locates P at (0, −3).
Partition fractional coordinates
Fractional endpoints require the same weighted calculation. For each coordinate, combine q times the starting coordinate with p times the ending coordinate, then divide by p + q.
partition A=(1/2,-1) and B=(4,3) with AP:PB=3:2With AP:PB = 3:2, P is 3/5 of the way from A to B. The exact coordinates are (13/5, 7/5). Check that P lies between the endpoints before accepting a calculated result.
Practice
Practice: problems like this one, made and checked in your browser.
Recap
- For AP:PB = p:q, the point P is p/(p + q) of the way from A to B.
- Apply that fraction to both the horizontal and vertical coordinate changes.
- A positive ratio gives an internal partition, so P must lie between A and B.