If three points (x1,y1),(x2,y2),(x3,y3) lie on the same line, prove that y2−y3x2x3+y3−y1x3x1+y1−y2x1x2=0.
Find the centroid of the triangle with vertices A(x1,y1), B(x2,y2) and C(x3,y3).