f(x) = (x + 5)(x - 1)
using the ' factor theorem '
given x = a is the root of a polynomial then (x - a ) is a factor
here roots are x = - 5 and x = 1 hence factors are (x + 5) and (x - 1)
the polynomial is the product of the factors
f(x) = (x + 5)(x - 1)