We know that in geometry, a median of a triangle is a line segment joining a vertex to the midpoint<span> of the opposing side. So, in a triangle there are three medians. We will find them.
As shown in the figure below, we have the medians:
P1C P2A P3B
We need to find P1, P2 and P3. The </span>midpoint of the segment (x1, y1) to (x2, y2<span>) is: </span>
Therefore:
For the segment AB:
For the segment BC:
For the segment CA:
We know that the distance d<span> between two points P1(x1,y1) and P2(x2,y2) is given by the formula: </span>