There is a formula for finding division points on a live segment.
If you divide a line segment into a ratio m:n ...
To find a point of division between (x1,y1) and (x2,y2) in ration m:n
The point of division is: [(mx2 + nx1)/(m+n), (my2+ny1)/(m+n)]
In this case we want to divide the segment into 5 equal parts so
there will be 4 points of division.
For the first division point, we will take as being the closest to the
bottom point of our segment at (-5,-3) ...
Since we are dividing into 5 equal lengths the ratio from (-5,-3)
to the 1st division point will cause the line to be divided in a ratio
of 1:4 so m=1, n=4 (x1,y1) = (-5,-3), (x2,y2) = (3,4)
The x coord for 1st point of division is (1(3)+4(-5))/(1+4) = -17/5 = -3 2/5
The y coord for 1st point of division is (1(4)+4(-3))/(1+4) = -8/5 = -1 3/5
The first point of division is (-3 2/5, -1 3/5)
Still using (x1,y1) = (-5,-3) and (x2,y2) = (3,4) for the 2nd point of
division our new ratio will now be 2:3 so m = 2, n = 3
The x coord for 2nd division point is (2(3)+3(-5))/(2+3) = -9/5 = -1 4/5
The y coord for 2nd division point is (2(4)+3(-3))/(2+3) = -1/5
The 2nd point of division will be (-1 4/5, -1/5)
Continuing in this vein the ration for the 3rd point of division is 3:2
Still using the formula [(mx2 + nx1)/(m+n), (my2+ny1)/(m+n)]
If we continue using (-5,-3) as (x1,y1) and ((3,4) as (x2,y2) with m =3, n=2
For the fourth point of division the ratio m:n would become 4:1
I leave the finding of the other 2 points of division to you. Good luck and
I hope this helps.
Andrew
BTW: Let's verify that our 2nd point of division (-1 4/5 , -1/5) is actually
on our original line segment:
We have points (-5,-3), (3,4)
The slope is rise/run = (4-(-3))/(3-(-5)) = 7/8
our line segment looks like y = (7/8)x + b
Plugging in (3,4) for (x,y) we can find b
4 = (7/8)(3) + b
4 = 21/8 + b
b = 4-(21/8) = 11/8
The line segment equation is y = (7/8)x + 11/8
We need to verify that (-1 4/5, -1/5) is on that line
or (-9/5, -1/5)
-1/5 = (7/8)(-9/5) + 11/8
-1/5 = -63/40 + 11/8
-1/5 = -63/40 + 55/40
-1/5 = -8/40
-1/5 = -1/5
The point verifies as being on the line segment so our answer
appears to be correct.
Michael J.
10/19/15