What is the midpoint of the line segment from (X1, Y1) to (X2, Y2)?
\Large{(}XM, YM\Large{)}
integers, like 6
simplified proper fractions, like 3/5
simplified improper fractions, like 7/4
a mixed number, like 1\ 3/4
and/or exact decimals, like 0.75
The x coordinate of the midpoint is the average of the x coordinates X1 and X2.
x = \dfrac{1}{2}(X1 + X2)
x = \dfrac{1}{2}(X1 + X2)
x = XM
The y coordinate of the midpoint is the average of the y coordinates Y1 and Y2.
y = \dfrac{1}{2}(Y1 + Y2)
y = \dfrac{1}{2}(Y1 + Y2)
y = YM
The midpoint is (XM, YM).
The point (XM, YM) is the midpoint of (X1, Y1) and what point?
integers, like 6
simplified proper fractions, like 3/5
simplified improper fractions, like 7/4
a mixed number, like 1\ 3/4
and/or exact decimals, like 0.75
The average of the desired x coordinate and X1 should be XM.
\dfrac{1}{2}(x + X1) = XM
Solving for x:
x + X1 = (2 * XM)
x = X2
The average of the desired y coordinate and Y1 should be YM.
\dfrac{1}{2}(y + Y1) = YM
Solving for y:
y + Y1 = (2 * YM)
y = Y2
The point (XM, YM) is the midpoint of (X1, Y1) and (X2, Y2).
path([ [ X1, Y1 ], [ X2, Y2 ] ], {stroke:"#000000"});
circle( [ X2, Y2 ], 0.15 );
label( [ X2, Y2 ], "(" + X2 + ", " + Y2 + ")",
getPos( [ X2, Y2 ], [ XM, YM ]) );
graph.first.toFront();
graph.midpoint.toFront();