Using Roots to Generate an Equation

A parabola crosses the x-axis at x = 2 and x = -1.
Find an equation of the parabola.

Find an equation of a parabola that crosses the x-axis at x = a and x = b.