How do you find the polynomial function with roots 1, -2, and 5?
A polynomial function with roots 1, -2, and 5 would be
Note however that there are infinitely many polynomial function with these roots.
Although there are infinitely many polynomials with the specified roots, all such polynomials in x will be multiples of f(x), i.e. they will have f(x) as a factor.