Integrating cos^6 (x) dx from 0 to pi/2

In summary, Vanhees71 attempted to solve a complicated integral using the binomial theorem but missed a term and ended up with incorrect results.
  • #1
s3a
818
8

Homework Statement


This ( http://www.wolframalpha.com/input/?i=integrate+cos^6+(x)+dx+from+0+to+pi/2 ) is the integral I am trying to evaluate.:
int cos^6 (x) dx from 0 to pi/2

Homework Equations


(1 + cos(2x))/2 = cos^2 (x)
(1 – cos(2x))/2 = sin^2 (x)
sin^2 (x) + cos^2 (x) = 1
Variable substitution

The Attempt at a Solution


My (typed-up) work is attached as MyWork.jpg.

I would greatly appreciate it if someone could tell me where I went wrong in my work!
 

Attachments

  • MyWork.jpg
    MyWork.jpg
    38.8 KB · Views: 17,355
Physics news on Phys.org
  • #2
That's a pretty complicated calculation. I'd rather use the binomial theorem for
[tex]\cos x=\frac{\exp(\mathrm{i} x)+\exp(-\mathrm{i} x)}{2}[/tex]
to evaluate [itex]\cos^6 x[/itex] and then integrate the simple constant and exponential functions!
 
  • #3
First off:
ALL the antiderivatives that becomes sine will disappear at the limits given (they wil yield integer multiples as arguments within the sine functions.

Thus, the total contributions to the integral is only given by integration of the CONSTANTS, and those, you have not provided.
 
  • #4
You missed a term ##\int dx## in the second row and remember that your final answer should be multiplied by 1/8 since you took this out as a factor in line 1.
 
  • #5
You lost your 1/8 from the first line and the integral of 1 from the second line.

Edit: Damn. Sniped.
 
  • #6
Isn't it easier to do this:
[tex]\int cos^{6}x dx=\int (cos^{2}x)(1-sin^{2}x)(1-sin^{2}x)dx[/tex]
Then set u=sin2x
 
  • #7
Not really, iRaid, since we then have:
du=2sin(x)cos(x)dx
This does not neatly eliminate the remaining cos^2(x) factor.
 
  • #8
vanhees71 said:
That's a pretty complicated calculation. I'd rather use the binomial theorem for
[tex]\cos x=\frac{\exp(\mathrm{i} x)+\exp(-\mathrm{i} x)}{2}[/tex]
to evaluate [itex]\cos^6 x[/itex] and then integrate the simple constant and exponential functions!
I love complex exponentiation substitutions as much as the next guy, but I think I see an easier substitution.

Remember that ##(\cos x)^2=\frac{1+\cos(2x)}{2}## and ##(\sin x)^2=\frac{1-\cos(2x)}{2}##. A bit of algebra leads us to a fairly simple integral, methinks.
 
  • #9
Edit: Sorry, I double-posted.
 
  • #10
Vanhees71, I would rather use real numbers (plus, I am expected to)! :D

Also, I took the input the rest of you guys gave and introduced the addition of the integral dx term, in addition to fixing the 1/8 multiplication however, I now get 19π/112 ≠ 5π/32 ... does anyone see what I did wrong now?
 
  • #11
s3a said:
... does anyone see what I did wrong now?
Not if you don't show us your work! :-p
 
  • #12
Mandelbroth said:
Not if you don't show us your work! :-p
Lol :D, I realized shortly after my post. Here is the attachment!
 

Attachments

  • MyWork.jpg
    MyWork.jpg
    41.1 KB · Views: 9,289
  • #13
16*2=28??
 
  • #14
s3a said:
Vanhees71, I would rather use real numbers (plus, I am expected to)! :D

Also, I took the input the rest of you guys gave and introduced the addition of the integral dx term, in addition to fixing the 1/8 multiplication however, I now get 19π/112 ≠ 5π/32 ... does anyone see what I did wrong now?
Hint: Try using Mandelbroth's identities to expand ##cos^6(x)## as ##a_0 + a_1\cos(2x) + a_2\cos(4x) + a_6\cos(6x)##. This is trivial with vanhees71's identity. It is a whole lot more work with Mandelbroth's identities, but it possible.
 
  • #15
Thanks, arildno, that was my last mistake and, I, now, get it perfectly (doing it the way I wanted to do it)!

D H, I don't feel like exploring that too deeply because, I am satisfied with the answer I got but, why would I need to replace the cosines with e bases raised to complex numbers when integrating the cosines from the identity you just gave will simply give me sines that I know will all cancel to 0 and, also, without getting too deep into this and assuming I am correct in my upcoming assumption about ##a_0##, how can I find that ##a_0 = \frac 5 {16}## (such that ##\frac 5 {16} \frac{\pi}2 = 5 \frac{\pi}{32}##)?
 
  • #16
Here's an alternative approach.
Let
$$I=\int_0^{\pi/2} \cos^6x \, dx$$
This is equivalent to
$$I=\int_0^{\pi/2} \sin^6x \, dx$$
Add the two to get
$$2I=\int_0^{\pi/2} ((\cos^2x)^3+(\sin^2x)^3) \, dx$$
Use the fact that ##a^3+b^3=(a+b)(a^2-ab+b^2)## and ##\sin^2x+\cos^2x=1## to get
$$2I=\int_0^{\pi/2} (\sin^4x+\cos^4x-\sin^2x \cos^2x)dx$$
Now rewrite ##\sin^4x+\cos^4x=(\sin^2x+\cos^2x)^2-2\sin^2x\cos^2x## to get
$$2I=\int_0^{\pi/2} (1-3\sin^2x\cos^2x) \, dx$$
Rewrite ##\sin^2x\cos^2x=(1/4)\sin^2(2x)##. Now its a very easy integral to solve.
 
Last edited:
  • #17
Pranav-Arora said:
Here's an alternative approach.
Let
$$I=\int_0^{\pi/2} \cos^6x \, dx$$
This is equivalent to
$$I=\int_0^{\pi/2} \sin^6x \, dx$$
Add the two to get
$$2I=\int_0^{\pi/2} ((\cos^2x)^3+(\sin^2x)^3) \, dx$$
Use the fact that ##a^3+b^3=(a+b)(a^2-ab+b^2)## and ##\sin^2x+\cos^2x=1## to get
$$2I=\int_0^{\pi/2} (\sin^4x+\cos^4x-\sin^2x \cos^2x)dx$$
Now rewrite ##\sin^4x+\cos^4x=(\sin^2x+\cos^2x)^2-2\sin^2x\cos^2x## to get
$$2I=\int_0^{\pi/2} (1-3\sin^2x\cos^2x) \, dx$$
Rewrite ##\sin^2x\cos^2x=(1/4)\sin^2(2x)##. Now its a very easy integral to solve.
That's fantastic! I wouldn't have thought of doing that! :approve:

D H said:
Hint: Try using Mandelbroth's identities...
I get my own identities? I feel like Gauss! :smile:
 
  • #18
Mandelbroth said:
That's fantastic! I wouldn't have thought of doing that! :approve:

Thanks! :blushing:

But honestly, that isn't really fantastic. Its a very standard approach to such kind of problems. :)
 
  • #19
s3a said:
D H, I don't feel like exploring that too deeply because, I am satisfied with the answer I got but, why would I need to replace the cosines with e bases raised to complex numbers when integrating the cosines from the identity you just gave will simply give me sines that I know will all cancel to 0 and, also, without getting too deep into this and assuming I am correct in my upcoming assumption about ##a_0##, how can I find that ##a_0 = \frac 5 {16}## (such that ##\frac 5 {16} \frac{\pi}2 = 5 \frac{\pi}{32}##)?
The reason is simple. It's rather tedious and extremely easy to make a mistake when using Mandelbroth's identities. When you use vanhees71's identity it is downright trivial. Try integrating cos(x)^1000 from 0 to pi/2 using Mandelbroth's identities. It's *easy* using vanhees71's identity. Read off the constant term as a binomial coefficient and scale appropriately: The answer is ##{1000 \choose 500} \frac{\pi}{2^{1001}}##.
 
Last edited:
  • #20
D H said:
The reason is simple. It's rather tedious and extremely easy to make a mistake when using Mandelbroth's identities. When you use vanhees71's identity it is downright trivial. Try integrating cos(x)^1000 from 0 to pi/2 using Mandelbroth's identities. It's *easy* using vanhees71's identity. Read off the constant term as a binomial coefficient and scale appropriately: The answer is ##{1000 \choose 500} \frac{\pi}{2^{1001}}##.

I have two approach:

1) cos6x=(cos3x)2 = (cos3x+3cosx)2/16 = ...

Keep applying formulas of cos2θ = (1+cos2θ)/2 and 2cosAcosB= cos(A+B)+cos(A-B) and you'll get easily integrable integrand.

2) Make use of the property of definite integration.

If F(x) is the integrand then F(x)=F(a+b-x) where a and b are upper and lower limit of integration.
Now add to get two times integral I and solve for it.
 

Related to Integrating cos^6 (x) dx from 0 to pi/2

What is the formula for integrating cos^6 (x) dx?

The formula for integrating cos^6 (x) dx is ∫cos^6 (x) dx = (1/32)(16x + 12sin(2x) + sin(4x)) + C.

What is the purpose of integrating cos^6 (x) dx?

The purpose of integrating cos^6 (x) dx is to find the area under the curve of the function cos^6 (x) within a given interval. This can be useful in various applications, such as calculating work done by a varying force or determining the probability of an event occurring in statistics.

How do you solve the integral of cos^6 (x) dx from 0 to pi/2?

To solve the integral of cos^6 (x) dx from 0 to pi/2, you can use the formula ∫cos^6 (x) dx = (1/32)(16x + 12sin(2x) + sin(4x)) + C. First, plug in pi/2 for x and evaluate the expression. Then, plug in 0 for x and subtract the result from the previous value. The final answer will be the area under the curve from 0 to pi/2.

What is the relationship between cos^6 (x) and cos^4 (x)?

The relationship between cos^6 (x) and cos^4 (x) is that cos^6 (x) can be rewritten as (cos^4 (x))^2. This means that integrating cos^6 (x) dx is equivalent to integrating (cos^4 (x))^2 dx, which can be solved using integration by parts.

What are some real-world applications of integrating cos^6 (x) dx?

Integrating cos^6 (x) dx can be used in physics to calculate the work done by a varying force or in engineering to determine the energy dissipation in a mechanical system. It can also be used in statistics to find the probability of an event occurring within a given range of values. Additionally, the integration of trigonometric functions is often used in signal processing and electrical engineering.

Similar threads

  • Calculus and Beyond Homework Help
Replies
3
Views
384
  • Calculus and Beyond Homework Help
Replies
15
Views
812
  • Calculus and Beyond Homework Help
Replies
5
Views
741
  • Calculus and Beyond Homework Help
Replies
1
Views
309
  • Calculus and Beyond Homework Help
Replies
9
Views
339
  • Calculus and Beyond Homework Help
Replies
1
Views
529
  • Calculus and Beyond Homework Help
Replies
11
Views
725
  • Calculus and Beyond Homework Help
Replies
7
Views
759
  • Calculus and Beyond Homework Help
Replies
4
Views
286
  • Calculus and Beyond Homework Help
Replies
2
Views
863
Back
Top