# Homework Help: Trigonometric Integral

1. Jun 21, 2011

### icesalmon

1. The problem statement, all variables and given/known data
$\int$(cosx)^5sin(x)dx, the question asks me to simply find the integral.

2. Relevant equations
cos^2(x) + sin^2(x) = 1

3. The attempt at a solution
I have an odd power of cosine so I should split that up into [cos^2(x)]^2(sin(x)cos(x)), then I change cos^2(x) to 1-sin^2(x) and let u = sin(x) so I get (1-u^2)^2(u)du factor distribute and then integrate, but this isn't leading me to the correct answer.

Last edited: Jun 21, 2011
2. Jun 21, 2011

### Dick

Just substitute u=cos(x). Where does that take you?

3. Jun 21, 2011

### ehild

Use that sin(x) is the negative derivative of cos(x). Taking y=cos(x), your integral becomes -∫y^5 y' dx.

ehild

4. Jun 21, 2011

### icesalmon

the right answer, but I get a negative out in front. It feels easier to do this the way I have, but is there a reason it's incorrect? What I have done isn't illegal is it? It seems to make this easier to integrate for me, but I get longer answers with different functions. In simplest terms this happens because i'm not doing what you say, but why is your method better suited for this final step? my substitution still cancels the cosine and I have a u to distribute.

5. Jun 22, 2011

### HallsofIvy

As others said, the simplest thing to do is to let u= cos(x) so that du= -sin(x)dx
$$\int cos^5(x) sin(x)dx= \int u^5(-du)= -\int u^5 du$$.
$$= -u^6/6+ c= -cos^6(x)/6+ c$$

If, instead, you write the integral as
$$\int (cos^2(x))^2 (cos(x)sin(x)dx)= \int (1- sin^2(x))^2(sin(x))(cos(x)dx)$$
and let $u= sin(x)$, then $du= cos(x)dx$
$$\int (1- u^2)^2(u)(du)= \int (u^5- 2u^3 + u)du= u^6/6- u^4/2+ u^2/2+ C$$
$$= sin^6(x)/6- sin^4/2+ sin^2/2+ C$$
$$= \frac{1}{6}(sin^6(x)- 3sin^4(x)+ 3sin^2(x))+ C$$
$$= \frac{1}{6}((1- cos^2(x))^3- 3(1- cos^2(x))^2+ 3(1- cos^2(x)))+ C$$

Now, "do the algebra". You will find that the $cos^4(x)$ and $cos^2(x)$ terms cancel leaving $-cos^6(x)/6$ but with a different constant.

6. Jun 22, 2011

### icesalmon

my professor mentioned there being different constants of integration after going back and solving using some initial condition with a similar problem. Which is strange to me because I view these answers as different forms of the same thing. But they aren't the same function at all.

Well I see what dick and ehlid were speaking of now, thanks for going through the trouble of typing all that out. There are guidlines my book points out that I am trying to get used to with these trigonometric integrals.

7. Jun 23, 2011

### icesalmon

well I calculated that they are the same thing, and I have another question.

find $\int$sec3($\pi$x)

I've tried two things so far, both of which involve splitting up my secant into sec2$\pi$xsec$\pi$x and sec$\pi$x(tan2$\pi$x + 1) I have used integration by parts on both,

For the first I obtain sec$\pi$xtan$\pi$x/$\pi$ + (1/$\pi$)2ln|cos$\pi$x| + c

And on the second I obtain 2xsec$\pi$x + (sec$\pi$xtan$\pi$x)/$\pi$ +1/$\pi$2(ln|cos$\pi$x|) - x2 + c

Neither of which are correct.

For the first I set u = sec$\pi$x and dv = sec2$\pi$x so my v = ((tan$\pi$x)/$\pi$) + c

For the second I, again, set u = sec$\pi$x but I let dv = 1+ tan2$\pi$x so that v = 2x + (1/$\pi$)(tan$\pi$x) + c

Not sure where i'm going wrong, apologies for lighting up this homework thread so much

8. Jun 23, 2011

### talk2glenn

Forget about the pi*x. Let U=pi*x, dI=pi dx, so you can factor it out by just putting 1/pi outside the integral and ignoring it going forward. Might help you see your own work better.

You are right about integration by parts. Split the integral into factors of sec, and then apply parts. u=secU, du=secUtanU. dv=sec^2U, v=tanU.

When you expand terms, you'll end up with an integral of sec^3 on the right hand side. Notice that this is the same term you are solving for, and move it to the other side of the equation. Divide both sides by two. Everything remaining on the right hand side is now easily integrable.