Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need some help solving this integral, seems nasty to me!

$$ \int e^{-x}\cos4x\cos2x\,\mathrm dx $$

I tried integration by parts, but that seemed to me of no use.

There's also a similar one, maybe it might help solving this one or vice versa.

$$ \int x\sin x\sin 2x\sin 3x\,\mathrm dx $$

Again, please try to give just hints...! (As I always ask :D)

share|cite|improve this question
Are you familiar with Euler's formula? – copper.hat Apr 19 '13 at 14:20
Yes, but so far we've not used complex numbers in solving integrals. Although bring it on - let's see how useful complex numbers can be in solving such integrals! – Parth Thakkar Apr 19 '13 at 14:21
up vote 3 down vote accepted

Use the fact that

$$2 \cos{a x} \cos{b x} = \cos{(a-b) x} + \cos{(a+b) x}$$


$$\int dx\: e^{p x} \cos{q x} = \frac{p \cos{q x} + q \sin{q x}}{p^2+q^2} e^{p x} + C$$

where $C$ is a constant of integration.

share|cite|improve this answer
Quite funny! I almost forgot about the 2nd formula! – Parth Thakkar Apr 19 '13 at 14:35


Another method is to use $$\cos x=\frac{e^{ix}+e^{-ix}}{2}$$

share|cite|improve this answer

HINT: $2\cos{x}*\cos{y}=\cos{(x-y)}+\cos{(x+y)}$
Next, use integration by parts twice.

share|cite|improve this answer
Ok, that seems to be working! Although the answer turns out to be humongous. Never mind, I got the answer at least! – Parth Thakkar Apr 19 '13 at 14:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.