Integrating cos(x)cos(nx): Zero or Non-Zero?

  • Thread starter Thread starter swarog46
  • Start date Start date
  • Tags Tags
    Integrate
Click For Summary

Homework Help Overview

The discussion revolves around the integral of the product of cosine functions, specifically \(\int^{2\pi}_0{cos(x)cos(nx)dx}\) for integer values of \(n\). Participants are exploring whether the result of this integral is zero or non-zero, with a focus on the implications of different values of \(n\).

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the application of trigonometric identities to simplify the integral and question the correctness of specific steps in the original poster's reasoning. There is mention of substitution methods and the implications of even and odd functions on the integral's value.

Discussion Status

The conversation is ongoing, with participants providing guidance on re-evaluating steps in the original calculation. There is an exploration of different interpretations regarding the integral's value based on the properties of the cosine functions involved.

Contextual Notes

There is a noted discrepancy between the original poster's assertion of the integral being zero for certain values of \(n\) and the teacher's correction. The discussion includes varying interpretations of the integral's behavior based on the parity of \(n\) and the characteristics of the cosine functions.

swarog46
Messages
2
Reaction score
0

Homework Statement


[itex]\int^{2\pi}_0{cos(x)cos(nx)dx}=?,n\in Z[/itex]


Homework Equations





The Attempt at a Solution


I think that this eq has zero solve. However my teacher says that its incorrect.

[itex]cos(x) cos(nx) = 1/2 (cos (x-nx) + cos (x+nx))[/itex]
[itex]\int^{2\pi}_0{cos(x)cos(nx)dx}=\frac{1}{2n}(sin(2 \pi (1-n))+sin(2 \pi (1+n)))[/itex] which gives 0 for n=1, but when i give n=1 before start integrating, then I've got non zero solve.
 
Physics news on Phys.org
Hi swarog46, welcome to PF! :biggrin:

swarog46 said:
[itex]\int^{2\pi}_0{cos(x)cos(nx)dx}=\frac{1}{2n}(sin(2 \pi (1-n))+sin(2 \pi (1+n)))[/itex]

The step in the quote is wrong. How did you do this? Try substitution of cos(1-n)x = t? and similarly for the other term? This will give you a (n-1) and (n+1) in the denominator. Recheck that step :smile:PS : I believe by 'zero solve' you mean zero as the solution...
 
of course i mean that=)

Whatever in the result for n=1 i get \int=0.
and for [itex]\int^{2\pi}_0{cos(x)cos(1*x)dx}=\int^{2\pi}_0{cos^{2}(x)}=\pi[/itex]
 
Did you read this?

Infinitum said:
The step in the quote is wrong. How did you do this? Try substitution of cos(1-n)x = t? and similarly for the other term? This will give you a (n-1) and (n+1) in the denominator. Recheck that step :smile:

Your integral itself is incorrect.
 
One way to believe this, is that for n>1, cos(nx) is "even" about the midpoint ∏, while cos(x) is "odd" about the midpoint ∏, so it integrates to zero.

Also [itex]\int \sin^2x+\cos^2x=\int 1[/itex], which is a quick way to rememeber your integral of [itex]\cos^2 x[/itex] is ∏.
 

Similar threads

Replies
1
Views
1K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 11 ·
Replies
11
Views
1K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
6
Views
2K
  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
3
Views
2K
Replies
3
Views
2K