I am getting very strange results when working with trigonometric functions and derivatives. I'm not sure if the problem is with my notation or what. Here are a couple examples:
- derivative of (sin(x))^2 = 2*(sin(x))^2; should be 2*sin(x)*cos(x)
- f[x_]=(sin(x))^2 evaluates to (sin(x^2))^2; it does this even if input f[x_]=(sin(x))(sin(x))
Wolfram|Alpha outputs these correctly so I'm completely baffled.
Thanks for any insights.