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

How can I compute $$\int_{-\pi}^\pi\frac{\sin(13x)}{\sin x}\cdot\frac1{1+2^x}\mathrm dx?$$

share|cite|improve this question

Hint 1: $$ \int\limits_{-a}^a f(x)dx=\int\limits_{-a}^a \frac{f(x)+f(-x)}{2}dx $$ Hint 2: $$ \frac{\sin (n x)}{\sin x}= \frac{(e^{ix})^n-(e^{-ix})^{n}}{e^{ix}-e^{-ix}}= \sum\limits_{k=0}^{n-1} (e^{ix})^{n-k-1}(e^{-ix})^k $$ Hint 3: $$ \int\limits_{-\pi}^{\pi} e^{ikx}dx= \begin{cases} 2\pi&\text{ if }\quad k=0\\ 0 &\text{ if }\quad k\in\mathbb{Z}\setminus\{0\} \end{cases} $$

share|cite|improve this answer
+1. (Write $2\pi$ in Hint 3 instead of $\pi$.) – Did Jul 8 '12 at 22:22
@did Thanks!${}{}$ – Norbert Jul 8 '12 at 22:26
Sorry for the complexity in my previous comment. The sum in Hint 2 should be $$\sum_{k=0}^{n-1}e^{i(n-2k-1)x}$$ – robjohn Jul 8 '12 at 23:10
I was going to suggest the change you just made to Hint 1 :-) – robjohn Jul 8 '12 at 23:15
@robjohn, thanks for your attention. You are always on the alert :) – Norbert Jul 8 '12 at 23:17

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.