Find all functions satisfying
Solution

2. Let be the midpoints of line segments . Let be the centroid of . Quadrilateral is cyclic as . Note that therefore is a diameter of the circumcircle of . Analogously, we see that is a cyclic quadrilateral, with diameter .
We show that also lies on the circumcircles of these cyclic quadrilaterals. The similarity transforming triangle into triangle transforms triangle into , as is mapped to , the centroid is mapped to the centroid , and the midpoint of is mapped to the midpoint of , which is . So , in particular (opposite angles). Therefore lies on the circumcircle of the cyclic quadrilateral . Analogously, we have , from which follows that lies on the circumcircle of the cyclic quadrilateral .
We can now show that lies on . As is a diameter of the circle through , we have . As is a diameter of the circle through , we also have . Hence , and are collinear.