The median of a triangle is a line segment that joins one of the vertices with the midpoint of the opposite line.
If line segment MQ is the median of the triangle, the point Q is the midpoint of the opposite side RP.
To calculate the coordinates of Q, you have to use the coordinates of the endpoints of side RP.
R(0,2b)
P(2a,0)
x-coordinate of Q
Calculate the difference between the x-coordinates of points R and P:
Divide the distance between both coordinates by 2 to determine the distance over the x-axis between the endpoints and the midpoint
Add this distance to the x-coordinate of R to determine the x-coordinate of Q
y-coordinate of Q
Calculate the difference between the y-coordinates of points R and P
Divide the result by 2
Add it to the y-coordinate of point R to determine the y-coordinate of Q
The coordinates of Q are (a,b)
To determine that the length of the median MQ is half the length of the hypothenuse RP, you have to apply the following formula to calculate the distance between two points:
Length MQ
Consider M(0,0) as (x₁,y₁) and Q(a,b) as (x₂,y₂)
The half of the hypothenuse RP is represented by the segments RQ and QP, using the formula of the distance between two points, you can calculate the length on either one of the line segments, for example, the length of RQ.
Consider R(0,2b) as (x₁,y₁) and Q(a,b) as (x₂,y₂)
As you can see the median MQ is equal to half the hypothenuse.