2. $\sin^2(x)=[\sin(x)]^2$ and that second way is how many calculators and computer algebra systems require it be done.
3. $\sin^2(x) = \sin(x) \sin(x) = [\sin(x)]^2$