I know how to find answers I get them mixed up every time

We are to evaluate for
[tex]\begin{gathered} f(2)=? \\ f(x)=-1,x=? \end{gathered}[/tex]Let us upload the image and evaluate for f(2)
From the image, we can observe that
[tex]f(2)=1[/tex]Let us upload the second image and evaluate for x, when f(x)=-1
From the image above, the value of x for which f(x)=-1 is
[tex]x=0[/tex]Final answers
[tex]\begin{gathered} a)\text{ 1} \\ b)\text{ 0} \end{gathered}[/tex]