Let ABC be the triangle where A(x1, y1), B(x2, y2) and C(x3, y3):
Let G be the centroid of triangle ABC.
Let AD be the median of triangle ABC. So, D is the midpoint of BC.
Midpoint of B(x2, y2) and C(x3, y3) is
D=(2x2+x3,2y2+y3)
We know that centroid divides median in the ratio 2:1. So, centroid G divides the median AD in the ratio 2:1.
We know that coordinate of point P(x, y) that divides the line segment joining internally in the ratio m:n is
P(x,y)=(m+nmx2+nx1,m+nmy2+ny1)
Here,
x1=x1 ,
y1=y1 ,
x2=2x2+x3 ,
y2=2y2+y3 ,
m=2 ,
n=1
Coordinate of G are
G(x,y)=2+12(2x2+x3)+1(x1),2+12(2y2+y3)+1(y1)=(3x2+x3+x1,3y2+y3+y1)
Hence Coordinate of centroid are
G(x,y)=(3x1+x2+x3,3y1+y2+y3)
Comments