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

  • Thread starter Thread starter swarog46
  • Start date Start date
  • Tags Tags
    Integrate
swarog46
Messages
2
Reaction score
0

Homework Statement


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


Homework Equations





The Attempt at a Solution


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

cos(x) cos(nx) = 1/2 (cos (x-nx) + cos (x+nx))
\int^{2\pi}_0{cos(x)cos(nx)dx}=\frac{1}{2n}(sin(2 \pi (1-n))+sin(2 \pi (1+n))) 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:
\int^{2\pi}_0{cos(x)cos(nx)dx}=\frac{1}{2n}(sin(2 \pi (1-n))+sin(2 \pi (1+n)))

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 \int^{2\pi}_0{cos(x)cos(1*x)dx}=\int^{2\pi}_0{cos^{2}(x)}=\pi
 
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 \int \sin^2x+\cos^2x=\int 1, which is a quick way to rememeber your integral of \cos^2 x is ∏.
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top