The polynomial equation is:
We want to find the value of a knowing that the points (-2,0), (1,0), (3, 0) and (0, -18) satisfy the equation.
The three first points are the roots of the polynomial, so we can easily say:
Now we can use this values and the last point to find the value of a: