prove that in a triangle, if the centroid and the circumcenter coincide, then the triangle is equilateral.

this can be done using geometry,but i want to know the trig solution.