# Thread: trig integrals and maple syntax

1. ## trig integrals and maple syntax

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

2. You do realize that the second of the two is the correct answer?
In the first case the Maple is treating $\sin^2$ as a constant no different from the $\pi$ in $\int {\pi \theta d\theta } = \frac{\pi }{2}\theta ^2 + c$.

3. Okay, I see now.

So I assume it's best not to use sin^2 in Maple? Is there another way I could have entered it? I don't understand why it would treat it as a constant, b/c it is attached to theta.

Thank you.

4. Originally Posted by 2clients
Okay, I see now.

So I assume it's best not to use sin^2 in Maple? Is there another way I could have entered it? I don't understand why it would treat it as a constant, b/c it is attached to theta.
Maple sees $\sin(x)$ as a function.
It does not recognize $\sin\,x$ as a function.
And I agree with that convention.
Any properly written function should include () or [].

If you write $\ln\,2$ instead $\ln(2)$ it will not work.
So you must use $\sin(\theta)$.