Integration homework

Homework Statement

Find an expression for

$$\cos 2\theta + \cos 4\theta + \cos 6\theta + \dots + \cos (2n\theta)$$

Hence prove that
$$\int_0^{\pi/2} \frac{\sin(2n+1)x}{\sin x} \ dx = \frac{\pi}{2}$$

Homework Equations

$$\cos 2\theta + \cos 4\theta + \cos 6\theta + \dots + \cos (2n\theta)$$
and
$$\int_0^{\pi/2} \frac{\sin(2n+1)x}{\sin x} \ dx = \frac{\pi}{2}$$

The Attempt at a Solution

I found an expression for $$\cos 2\theta + \cos 4\theta + \cos 6\theta + \dots + \cos (2n\theta)$$ which was $$\sum_{k=1}^{n}1-2sin^{2}k\theta$$ but couldn't continue because it doesn't look like the appropriate expression.

Last edited:

SammyS
Staff Emeritus
Homework Helper
Gold Member

Homework Statement

Find an expression for

$$\cos 2\theta + \cos 4\theta + \cos 6\theta + \dots + \cos (2n\theta)$$

Hence prove that
$$\int_0^{\pi/2} \frac{\sin(2n+1)x}{\sin x} \ dx = \frac{\pi}{2}$$

Homework Equations

$$\cos 2\theta + \cos 4\theta + \cos 6\theta + \dots + \cos (2n\theta)$$
and
$$\int_0^{\pi/2} \frac{\sin(2n+1)x}{\sin x} \ dx = \frac{\pi}{2}$$

The Attempt at a Solution

I found an expression for $$\cos 2\theta + \cos 4\theta + \cos 6\theta + \dots + \cos (2n\theta)$$ which was $$\sum_{k=1}^{n}1-sin^{2}k\theta$$ but couldn't continue because it doesn't look like the appropriate expression.
What is 1 - sin2(u) ?

oh it should have been 1-2sin^2u
edited*

SammyS
Staff Emeritus
Homework Helper
Gold Member
oh it should have been 1-2sin^2u
edited*
cos(2u) = ?

cos(2u) = ?

Yes, that is how I go 1-2sin^2(u) in the first place (because the integral had sin) but I don't see how it can help me evaluate the integral :(

Do you know the identity that $cos θ= \frac{e^{iθ} + e^{-iθ}}{2}$?

It seems helpful to use this identity to reduce the question to geometric progression, then what it takes is some computation.

vela
Staff Emeritus
Homework Helper
Along the same lines as raopeng's hint, but a little bit less tedious:

##\cos 2x + \cos 4x + \cdots + \cos (2nx)## is equal to the real part of ##e^{2ix} + e^{4ix} + \cdots + e^{2nix}##

How does that help me do the integral though?

vela
Staff Emeritus
Homework Helper
If you calculate the sum correctly, it'll become clear.

I have never learnt how to express cis in terms of e so can you please give me a hint on how to do it?
Thank you!

vela
Staff Emeritus
Homework Helper
Not really sure what kind of hint you're looking for.

How do I find the real part of e^2ix...

vela
Staff Emeritus
Homework Helper
Use Euler's formula, keeping in mind that ##x## is real.

I get
e^2ix=cos2x+ison2x
e^4ix=cos4x+ison4x
.
.
.
e^nix=cosnx+isonnx

I still don't see how this can help with the integral :(

vela
Staff Emeritus
Homework Helper
Hint: ##e^{2ix} + e^{4ix} + \cdots + e^{2nix} = (e^{2ix})^1 + (e^{2ix})^2 + \cdots + (e^{2ix})^n##. You have a geometric progression on your hands, as raopeng noted earlier.

Ok, so I get $$\frac{e^{ix}+e^{-ix}}{2} =cosx$$
$$\frac{e^{ix}-e^{-ix}}{2} =sinx$$

How can I make use of these identities now?

vela
Staff Emeritus
Homework Helper
We're not here to spoon-feed you the solution. You need to show some initiative at solving the problem yourself.

I know this is dumb but this is what I did :(
$$\int_{0}^{\frac{\pi }{2}}\frac{e^{i(2n+1)x}-e^{-i(2n+1)x}}{e^{ix}-e^{-ix}}dx$$

I know, you are not allowed to solve the question form me but if the student is stuck shouldn't you give some hints? :(

It is already very close! Remember we have the identity that $sinθ=\frac{e^iθ-e^{-iθ}}{2i}$, how does this relate to the integration you wrote?

BTW if you find such problems difficult, given that you haven't learned about Euler's Equation, it is perhaps more productive to have a better grasp of the material. It is indeed better than asking as it will improve your understanding on the topic a lot more. And all the joy of revelation after solving a problem will be the greatest when you figure it out completely on your own :)

The denominator is equal to 2isinx and the numerator =2isin(2n+1)x?
How can I integrate the integral I have in post 20 though, it looks very hard :(

yes and it would equal integrating a sum of cos because you just prove that these two expressions are equivalent. And integrating separately the cos in the series is an easy job.

But why is
$$\int_{0}^{\frac{\pi }{2}}\frac{e^{i(2n+1)x}-e^{-i(2n+1)x}}{e^{ix}-e^{-ix}}dx$$
equal to the cos2x series? Isn't this the imaginary part of e^2ix+e^4ix+...+e^2nix and the cos2x series the real part?

Last edited: