Problem

Source: Moldova TST 2019

Tags: polynomial, algebra



Find all polynomials $P(X)$ with real coefficients such that if real numbers $x,y$ and $z$ satisfy $x+y+z=0,$ then the points $\left(x,P(x)\right), \left(y,P(y)\right), \left(z,P(z)\right)$ are all colinear.