- #1
tmt1
- 234
- 0
I have this integral to solve.
$$\int_{}^{} (sinx + cos x)^2 \,dx$$
I first start by simplifying the expression:
$$\int_{}^{} sin^2x + 2sinxcosx + cos^2x \,dx$$
$$2sinxcosx$$ is $$sin2x$$ (a trigonometric identity) and $$ sin^2x + cos^2x = 1 $$ a trigonometric identity.
So, after simplifying, I get:
$$\int_{}^{} 1 \,dx + \int_{}^{} sin(2x) \,dx$$
$\int_{}^{} 1 \,dx$ is equal to $x$
now I have
$$ \int_{}^{} sin(2x) \,dx$$
Using, u-substitution, I can set $u = 2x$ and $du = 2dx$ and $dx = du/2$
so
$$ \frac{1}{2}\int_{}^{} sin(u) \,du$$
which would be
$$ - \frac{1}{2} cos(u) $$
And I can substitute in the value of u, so
$$ - \frac{1}{2} cos(2x) $$
so, if I get the result of the first integral, I get
$$ x - \frac{1}{2} cos2x + C$$
However, the answer is showing:
$$ x + sin^2x + C$$.
Is $sin^2x$ equal to $\frac{1}{2} cos2x$ or did I calculate this incorrectly?
$$\int_{}^{} (sinx + cos x)^2 \,dx$$
I first start by simplifying the expression:
$$\int_{}^{} sin^2x + 2sinxcosx + cos^2x \,dx$$
$$2sinxcosx$$ is $$sin2x$$ (a trigonometric identity) and $$ sin^2x + cos^2x = 1 $$ a trigonometric identity.
So, after simplifying, I get:
$$\int_{}^{} 1 \,dx + \int_{}^{} sin(2x) \,dx$$
$\int_{}^{} 1 \,dx$ is equal to $x$
now I have
$$ \int_{}^{} sin(2x) \,dx$$
Using, u-substitution, I can set $u = 2x$ and $du = 2dx$ and $dx = du/2$
so
$$ \frac{1}{2}\int_{}^{} sin(u) \,du$$
which would be
$$ - \frac{1}{2} cos(u) $$
And I can substitute in the value of u, so
$$ - \frac{1}{2} cos(2x) $$
so, if I get the result of the first integral, I get
$$ x - \frac{1}{2} cos2x + C$$
However, the answer is showing:
$$ x + sin^2x + C$$.
Is $sin^2x$ equal to $\frac{1}{2} cos2x$ or did I calculate this incorrectly?