You can put this solution on YOUR website! Since f is a polynomial, the domain is usually assumed to be the set of all real numbers (unless otherwise indicated by some other constraint).
Also, for consistency, please use all lowercase x's or all uppercase x's since x and X could represent different variables.