What Is the Correct Method to Integrate Cos^2(x)?

  • Context: Undergrad 
  • Thread starter Thread starter sony
  • Start date Start date
  • Tags Tags
    Integration
Click For Summary

Discussion Overview

The discussion revolves around the integration of the function cos²(x), exploring various methods such as integration by parts and trigonometric identities. Participants share their experiences, challenges, and proposed approaches to solving the integral, highlighting both theoretical and practical aspects of integration techniques.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant expresses confusion over their integration attempts, leading to a discussion about the expected outcomes of integration by parts.
  • Another participant suggests using the identity cos(2x) = 2cos²(x) - 1 to simplify the integration process.
  • Some participants discuss the effectiveness of integration by parts, noting that it can lead to circular reasoning if not applied carefully.
  • There is a mention of the power-reducing formula as a simpler alternative to integration by parts for integrating cos²(x).
  • Several participants debate whether it is acceptable to use trigonometric identities in conjunction with integration by parts, with differing opinions on the necessity of such substitutions.
  • A participant presents a detailed derivation of the integral using integration by parts, while others question whether it can be solved without identities.
  • Some participants highlight that the integration process can yield the same result regardless of the method used, emphasizing the interconnectedness of different approaches.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best method to integrate cos²(x). There are multiple competing views on the use of integration by parts versus trigonometric identities, and whether one method is superior or necessary over the other remains unresolved.

Contextual Notes

Some participants note that their approaches lead to circular results (0 = 0), indicating potential misunderstandings in applying integration techniques. The discussion reflects a range of assumptions about the use of identities and the expectations of integration methods.

sony
Messages
102
Reaction score
0
Hi, I just don't get this. I'm to lazy to type inn what I've done, so I just took
a picture of my textbook:
http://home.no.net/erfr1/images/1.jpg
http://home.no.net/erfr1/images/2.jpg
You're supposed to end up with the starting point, right? So you can divide the rest by two?

Whatever I try, I get zero... I got the solution from mathematica, but don't understand a thing of it.


Thanks!
 
Last edited by a moderator:
Physics news on Phys.org
I'm not exactly clear on what it is you have done, but I'm guessing that you tried to integrate cos^2(x) using partial integration, and the equation you got reduced to 0 = 0? I suppose you expected to get back your original integral after a few iterations, so that you could solve for it. I wouldn't say that's what's "supposed" to happen (but it does happen, but not always, as you've demonstrated).

Instead of partial integration, use the identity cos(2x) = 2cos^2(x) - 1 <=> cos^2(x) = cos(2x)/2 + 1/2.
 
Last edited:
Yes, I tried partial integration. And thank you for the help!

Cheers
 
integration by parts does work of course but only if in the second step, you refrain from undoing the work of the first step. this can be confusing and is actually easier to do by guesswork.

i.e. the derivative of sincos is cos^2 - sin^2. but sin^2 + cos^2 = 1 is also easy to get as a derivative, namely it is the derivative of x. so the derivative of x + sincos is 2cos^2. now you are done after dividing by 2.

of course you notice here that cos^2 - sin^2 = cos(2x) is also coming in as in the trick suggested above, but here you do not have to know that trick.
 
Check post number 7 (mine :-p ) from this thread:sine&cosine squared
I think it sould be pretty clear... :smile: U have both the primitives/antiderivatives and the definite integrals of the 2 functions wrt to the limits -\pi/2 and +\pi/2.

Daniel.
 
Make sure you read what Muzza said at the end. Just using the identity [tex]\text{cos}^2(x) = \frac{1}{2}(1+\text{cos}(2x))[/tex] makes this a very simple integral.
 
but the point is not everyone has this identity at their disposal.
 
Really! I thought it was one of the basic identities in trigonometry usually referred to as the double angle formulae.

-- AI
 
hi,

i must integrate sin^2(x) by partial integration.

i I've done this by taking the 2nd partial ingeral and substituting it with the original integral of sin^2(x); and calculate 0 =0. what is it that I'm doing wrong?

what does mathwonk mean by : "integration by parts does work of course but only if in the second step, you refrain from undoing the work of the first step" ?
 
  • #10
why must you use integration by parts? When it's very easy to integrate using the power reducing formula.
 
  • #11
Geekchick said:
why must you use integration by parts? When it's very easy to integrate using the power reducing formula.

as far as i know, the power reduction formula is acquired by integration by parts. I must integrate by parts, because it can be done, and that is what the exercise says i must do: integrate using partial integration.
 
  • #12
got it : http://www.nevada.edu/~cwebster/Teaching/Notes/Calculus/Integration/intparts.html

i guess mathwork meant that one shouldn't substitute the original integral into the second partial integral...?
 
Last edited by a moderator:
  • #13
Doh!.. that's exactly the same method i was using, i still get 0=0 thus :(
 
Last edited:
  • #14
So, it takes more than 4 years for Physics Forums to compute this integral? :rolleyes:
 
  • #15
Count Iblis said:
So, it takes more than 4 years for Physics Forums to compute this integral? :rolleyes:

hahahah :-p

i'm wondering how seriously i should take the "integrate by parts" bit, if i do a substitution in the second partial integral with a trigonometric identity, would that be considered cheating?
 
  • #16
you can integrate by parts as long as you use the Pythagorean identity. I don't see how that would be cheating.
 
  • #17
Geekchick said:
you can integrate by parts as long as you use the Pythagorean identity. I don't see how that would be cheating.

well my logic says that i might just as well then substitute sin^2(x) with an identity in the begining. So my question is now, is this integral solvable with integration by parts alone, or MUST i do a substitution somewhere along the line to beable to solve it?
 
  • #18
Yes, never mind my earlier post I just made the process longer. You can absolutely do it by parts alone. Scratch that I messed up...Give me a minute
 
Last edited:
  • #19
Nope, I cannot see how it can be done without using any identities. As I said though your still using integration by parts.
 
  • #20
Geekchick said:
Nope, I cannot see how it can be done without using any identities. As I said though your still using integration by parts.

so any hints in how i would do it with integration by parts alone? :-p
 
  • #21
itchy8me said:
well my logic says that i might just as well then substitute sin^2(x) with an identity in the begining. So my question is now, is this integral solvable with integration by parts alone, or MUST i do a substitution somewhere along the line to beable to solve it?


Partial integration alone will do. Consider the more general integral of cos^n(x). Let's abbreviate cos(x) by c, sin(x) by s and the integral of cos^n(x) by I_n. We can write:

c^n = c^(n-2) c^2 = c^(n-2)[1-s^2] = c^(n-2) - c^(n-2)s^2

Integrating both sides gives:

I_n = I_{n-2} - Integral of c^(n-2)s^2 dx

We can write:

c^(n-2)s^2 dx = -c^(n-2)sdc

So, we have:

I_n = I_{n-2} + Integral of c^(n-2) s dc (1)


We can write:

c^(n-2) s dc = 1/(n-1)sd[c^(n-1)] =

1/(n-1) {d[sc^(n-1)] - c^(n-1)ds}

The integral can thus be written as:

Integral of c^(n-2) s dc =

1/(n-1) s c^(n-1) - 1/(n-1) Integral of c^(n-1)ds

In the last term we can write ds = cdx, so we have:


Integral of c^(n-2) s dc = 1/(n-1) s c^(n-1) - 1/(n-1) I_{n}

Substituting in Eq. (1) gives:


I_n = I_{n-2} + 1/(n-1) s c^(n-1) - 1/(n-1) I_{n} -------->

n/(n-1) I_n = I_{n-2} + 1/(n-1) s c^(n-1) ---------->

I_{n} = (n-1)/n I_{n-2} + 1/n s c^(n-1)


I_0 is the integral of 1 which is x. So, we have:

I_2 = 1/2 I_0 + 1/2 s c = 1/2 x + 1/2 sin(x)cos(x)
 
  • #22
Count Iblis, You didn't ingrate by parts alone you used the Pythagorean identity in the first part.
 
  • #23
Barring any mistakes from my side you can do it without using any trigonometric identities:

[tex] \begin{align*}<br /> \int \cos^2 x\,dx &= \int 1*\cos^2 x\,dx <br /> \\<br /> &= x \x cos^2 x + \int 2x \cos x \sin x\,dx <br /> \\<br /> &= x \cos^2 x+(x \sin^2 x- \int \sin^2 x\,dx) <br /> \\<br /> &= x \cos^2x + x \sin^2 x - (-\sin x \cos x- \int -\cos^2 x\,dx) <br /> \\<br /> &= x (\cos^2x + \sin^2 x) +\sin x \cos x- \int \cos^2 x\,dx<br /> \end{align*}[/tex]

It follows that:

[tex] 2\int \cos^2 x\,dx=\x x(cos^2x + \sin^2 x) +\sin x \cos x \Rightarrow[/tex]

[tex] \begin{align*}<br /> \int \cos^2 x\,dx &= \frac{1}{2} (\x x(cos^2x + \sin^2 x) +\sin x \cos x)<br /> \\<br /> &= \frac{1}{2} (\x x +\frac{1}{2} \sin {2x})<br /> \\<br /> &= \frac{x}{2}+\frac{1}{4} \sin {2x}<br /> \end{align}[/tex]

This is the same result you get by using the double angle identity from the start, as it should be.
 
Last edited:
  • #24
Cyosis said:
Barring any mistakes from my side you can do it without using any trigonometric identities:

[tex] \begin{align*}<br /> \int \cos^2 x\,dx &= \int 1*\cos^2 x\,dx <br /> \\<br /> &= x \x cos^2 x + \int 2x \cos x \sin x\,dx <br /> \\<br /> &= x \cos^2 x+(x \sin^2 x- \int \sin^2 x\,dx) <br /> \\<br /> &= x \cos^2x + x \sin^2 x - (-\sin x \cos x- \int -\cos^2 x\,dx) <br /> \\<br /> &= x (\cos^2x + \sin^2 x) +\sin x \cos x- \int \cos^2 x\,dx<br /> \end{align*}[/tex]

It follows that:

[tex] 2\int \cos^2 x\,dx=\x x(cos^2x + \sin^2 x) +\sin x \cos x \Rightarrow[/tex]

[tex] \begin{align*}<br /> \int \cos^2 x\,dx &= \frac{1}{2} (\x x(cos^2x + \sin^2 x) +\sin x \cos x)<br /> \\<br /> &= \frac{1}{2} (\x x +\frac{1}{2} \sin {2x})<br /> \\<br /> &= \frac{x}{2}+\frac{1}{4} \sin {2x}<br /> \end{align}[/tex]

This is the same result you get by using the double angle identity from the start, as it should be.

brilliant! using the coefficient 1. damn that's a sneaky one. thanks guys and girls ;) ! :-D
 
  • #25
Just use substitution. This makes it all so much easier.

First you set u to be cos x[tex]\int(cos x)[/tex]2 dx

then substitute cos x with u x[tex]\int(u)[/tex]2 dx

Then you take the derivative of both sides of u = cos x to get dx = ?

and dx would be [tex]\stackrel{}{}du/(cos x)[/tex]
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K