Each dividend was divided by another polynomial, resulting in the given quotient and remainder. Find the divisor

Divided:5x^3+x^2+3 ,quotient:5x^2-14x+42, remainder:-123

1 answer

we know that

5x^3+x^2+3 = p(x)*(5x^2-14x+42) - 123
so,
5x^3 + x^2 + 126 = p(x)*(5x^2 - 14x + 42)

a simple long division yields p(x) = (x+3)