Answer:
[tex]y=x^2-x-2[/tex]
Step-by-step explanation:
we know that
The quadratic equation in factored form is equal to
[tex]y=a(x-x_1)(x-x_2)[/tex]
where
a is the leading coefficient
x_1 and x_2 are the roots of the equation
we have
[tex]a=1\\x_1=-1\\x_2=2[/tex]
substitute
[tex]y=(1)(x-(-1))(x-2)[/tex]
[tex]y=(x+1)(x-2)[/tex]
Apply distributive property
[tex]y=x^2-2x+x-2[/tex]
combine like terms
[tex]y=x^2-x-2[/tex]