i need help on this one

Answer:
Is g(x)
Step-by-step explanation:
We search the roots of the function on this way
(x-1)^2 (x+2) =0
(x-1)^2 =0
x-1=[tex]\sqrt{0}[/tex]
x=1 ////
(x+2)=0
x=-2 ////
So (1,0) and (-2,0) are the roots of the function (as the image)