Hello there,
I know sin^2(x) = (sin(x))^2, but when I integrate each of those Maple is giving me a different answer. A picture is linked. Much thanks.
David
Picasa Web Albums - David - maple
Hello there,
I know sin^2(x) = (sin(x))^2, but when I integrate each of those Maple is giving me a different answer. A picture is linked. Much thanks.
David
Picasa Web Albums - David - maple
You do realize that the second of the two is the correct answer?
In the first case the Maple is treating $\displaystyle \sin^2$ as a constant no different from the $\displaystyle \pi$ in $\displaystyle \int {\pi \theta d\theta } = \frac{\pi }{2}\theta ^2 + c$.
Maple sees $\displaystyle \sin(x)$ as a function.
It does not recognize $\displaystyle \sin\,x$ as a function.
And I agree with that convention.
Any properly written function should include () or [].
If you write $\displaystyle \ln\,2$ instead $\displaystyle \ln(2)$ it will not work.
So you must use $\displaystyle \sin(\theta)$.