1. ## Integral of (cosx+sinx)^2dx

I did this but not sure if it is correct:
(cosx+sinx)^2dx=
(cos^2x+2cosxsinx+sin^2x)=
∫(2cosxsinx)=
2∫cosxsinx=
2sinx-cosx+C <--------End

2. ## Re: Integral of (cosx+sinx)^2dx

$(\cos{x}+\sin{x})^2 = \cos^2{x}+2\sin{x}\cos{x}+\sin^2{x} = 1+2\sin{x}\cos{x} = 1 + \sin(2x)$

$\displaystyle \int 1 + 2\sin{x}\cos{x} \, dx = x + \sin^2{x} + C$

or ...

$\displaystyle \int 1 + 2\sin{x}\cos{x} \, dx = x - \cos^2{x} + C$

or ...

$\displaystyle \int 1 + \sin(2x) \, dx = x - \dfrac{\cos(2x)}{2} + C$

Now a question for you ...

Why are all three antiderivative forms above valid?

3. ## Re: Integral of (cosx+sinx)^2dx

I think i got the answer:
∫sin(2x)=
(using sustitution where u=2x) ∫sin(u)du/2=
1/2∫sin(u)du=
1/2-cos(u)=
1/2-cos(2x)+C <---End

4. ## Re: Integral of (cosx+sinx)^2dx

Failed in 2cosxsinx because it is sin2x, thanks man!

5. ## Re: Integral of (cosx+sinx)^2dx

Originally Posted by Confrassled
I think i got the answer:
∫sin(2x)=
(using sustitution where u=2x) ∫sin(u)du/2=
1/2∫sin(u)du=
1/2-cos(u)=
1/2-cos(2x)+C <---End
$\displaystyle \int \sin(2x) \, dx = -\dfrac{1}{2}\cos(2x) + C$
not $\dfrac{1}{2}-\cos(2x) + C$