The graph of the function g(x) is sketched in the explanations section
Explanations:The given function is:
[tex]g(x)=(x-1)^2(x+2)[/tex]This can be expanded to become:
[tex]\begin{gathered} g(x)=(x^2-2x+1)(x+2) \\ g(x)=x^3+2x^2-2x^2-4x+x+2 \\ g(x)=x^3-3x+2 \end{gathered}[/tex]This is a cubic function
The graph of the function g(x) is plotted below: