# 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 $\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$.

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 $\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)$.