Here is a graphical verification that these two functions are not equal. All the other answers are fine, but it is worth clarifying some other ambiguous notation in math.
Trig functions are notorious for the confusion they create when involving exponents. The conventions listed below are not necessarily optimal but being aware of them is helpful for the future:
- $\sin^2(x) = (\sin(x))^2$ "The square of the sine of $x$."
- $\sin(x^2)$ "The sine of $x^2$."
- $\sin^{-1}(x) = \arcsin(x)$ "The inverse sine of x. That is, if $y=\sin^{-1}(x)$, then $\sin(y) = x$."
- $\sin(x^{-1}) = \sin\left(\dfrac{1}{x}\right)$ "The sine of the reciprocal of $x$ (where $x\neq0$)."
- ${(\sin(x))}^{-1} = \dfrac{1}{\sin(x)} = \csc(x)$ "The reciprocal of the sine of $x$. More commonly denoted the cosecant of $x$."
Other functions seem to adopt similar notation:
- $\ln^2(x) = (\ln(x))^2$ "The square of the natural logarithm of $x$."
- $\ln(x^2)$ "The natural logarithm of $x^2$."
But it only goes so far. I hope no one ever uses $-1$ as an exponent of the natural logarithm to indicate "the inverse natural logarithm of $x$"...because you would just denote that $e^x$. That is,
- $\ln^{-1}(x) = \dfrac{1}{\ln(x)} \neq e^x$ "The reciprocal of the natural logarithm of $x$ (where $x\neq 1$)."
The Golden Rule
Whatever notation you are using: if you have any hint of ambiguity, throw in another pair of parentheses in the appropriate places!