How would you write a polynomial function with rational coefficients so that P(x)=0 has the given roots?

The given roots are -2,-2,3,5

1 answer

p(x) = (x+2)(x+2)(x-3)(x-5)

you can expand that if you want.