I have found the following problem.
If $x = -1$ and $x=2$ then $f(x) = 0$. If $g(x)= 2x-1$, then find the value of $x$ for which $f\circ g(x) = 0$.
I have solved the above problem in the following way.
$f(x) = (x+1)(x-2)$
$f\circ g(x) = f(g(x)) = (2x)(2x-3)$
So $2x(2x-3) = 0 \implies x= 0$ or $x= 3/2$
So if $x = 0$ or $x=3/2$ then $f\circ g(x) = 0$
Is the above procedure right? I have solved the above problem with a bit of confusion. That's why I am asking this question here. Please, remove my confusion with a proper explanation.