# Thread: Anyone want to check this solution on WolframAlpha

1. ## Anyone want to check this solution on WolframAlpha

Well this is part of a larger problem I'm doing. The thing is that I'm checking my answer on WolframAlpha gives me a different solution. I've gone over the integral several times, but I'm unable to find my error (If there's any).

integral [pi*[(2-sinx)^2 - (2-cosx)^2]] from 0 to pi/4 - Wolfram|Alpha

Thanks. (bow)

2. Originally Posted by Arturo_026
Well this is part of a larger problem I'm doing. The thing is that I'm checking my answer on WolframAlpha gives me a different solution. I've gone over the integral several times, but I'm unable to find my error (If there's any).

integral [pi*[(2-sinx)^2 - (2-cosx)^2]] from 0 to pi/4 - Wolfram|Alpha

Thanks. (bow)
Well, I stuck in 45 instead of pi/4 (to compute it in degrees, and wolfram alpha gave me the correct answer, which is indeed $\frac{1}{2}(-9+8\sqrt{2}) \pi$
To get this you expand the integral out:
$\pi \int{(4-4sinx+sin^2x)-(4-4cosx+cos^2(x)}=$ $\int{4-4-4sinx+4cosx +sin^2x -cos^x}$ $=\int{4(cosx-sinx)-cos(2x)}$
having left out the dxs and the bounds. Integrate, stick in your boundaries and you should get the same as wolfram alpha.
Note:This is also the same as $4.5+\frac{8}{\sqrt{2}}$

3. I finally caught my mistake. I forgot to calculate for sin(0) and cos(0) because I got used to neglecting those when solving polynomials since almost always they give you zero.

Thanks.