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

We know the followings : $$\int_{0}^{\infty}\frac{{\sin}x}{x}dx=\int_{0}^{\infty}\frac{{\sin}^2x}{x^2}dx=\frac{\pi}{2},\int_{0}^{\infty}\frac{{\sin}^3x}{x^3}dx=\frac{3\pi}{8}.$$ Also, we can get $$\int_{0}^{\infty}\frac{{\sin}^3x}{x^2}dx=\frac{3\log 3}{4},\int_{0}^{\infty}\frac{{\sin}^4x}{x^3}dx=\log 2.$$ Then, I got interested in their generalization.

Question : Letting $p,q\in\mathbb N$, can we simplify the following? $$\int_{0}^{\infty}\frac{{\sin}^px}{x^q}dx$$

I don't have any good idea. Could you show me how to simplify this?

Update : I crossposted to MO.

share|cite|improve this question
Clearly $p\geq q$, otherwise the integral diverges. – Norbert Nov 9 '13 at 15:36
A conjecture - let the integral be denoted $I(p,q)$, then $$ I(2n+1,1) = \frac{\pi}{2}a(n), \quad n =1,2,\ldots $$ where $a(n)$ is the $n$th term in the series expansion of $$ \frac{1}{\sqrt{1-x}}. $$ Anyone care to confirm? – Bennett Gardiner Nov 10 '13 at 23:49 You can extend the same technique to evaluate $$\int_{\mathbb{R}} \dfrac{\sin^m(x)}{x^n}dx$$ – user17762 Dec 2 '13 at 20:44
@BennettGardiner: see this:… – Ron Gordon Dec 3 '13 at 5:01
Nice one @RonGordon – Bennett Gardiner Dec 3 '13 at 5:49
up vote 9 down vote accepted

The formulas you seek are \begin{align*} \int_0^\infty {\sin^p x\over x^q}\,dx & = \left\{\begin{array}{ll} \displaystyle{(-1)^{(p+q)/2}\pi\over 2^{p+1}(q-1)!}\sum_{k = 0}^p(-1)^k{p\choose k} |p - 2k|^{q-1} & \text{$p,q$ even,} \\[2em] \displaystyle {(-1)^{(p+q)/2-1}\pi\over 2^{p+1}(q-1)!}\sum_{k = 0}^p (-1)^k{p\choose k} \operatorname{sign}(p-2k) |p-2k|^{q-1} & \text{$p,q$ odd,} \\[2em] \displaystyle {(-1)^{(p+q+1)/2} \over 2^p (q-1)!} \sum_{k = 0\atop k\not = p/2}^p (-1)^k {p\choose k} |p-2k|^{q-1}\log{|p - 2k|} & \text{$p$ even, $q$ odd,} \\[2em] \displaystyle {(-1)^{(p+q-1)/2} \over 2^p (q-1)!} \sum_{k = 0\atop k\not = (p\pm1)/2}^p (-1)^k {p\choose k} \operatorname{sign}(p-2k) |p-2k|^{q-1}\log{|p - 2k|} & \text{$p$ odd, $q$ even,} \end{array}\right. \end{align*}

Here's the basic idea behind my proof (the idea grew out of this old answer): Find the Fourier transform of the function $\mathbb 1_{(0,\infty)}(x) \sin^q{x}/x^p$ and evaluate it at zero. Finding that Fourier transform is of course the hard part. The basic idea is to look at the Fourier transform of the generalized function $\mathbb 1_{(0,\infty)} |x|^{-s}$, where $s$ is a continuous variable.

When $s\notin\mathbb N$, the function $u_s(x) = \mathbb 1_{(0,\infty)}(x)|x|^{-s}$ can be made into a tempered distribution on the real line in a rigorous way (see Chapter 3 of Gelfand & Shilov's Generalized Functions for instance, or this Wikipedia page). Here $\mathbb 1_{(0,\infty)}$ is the characteristic function of the interval $(0,\infty)$. The Fourier transform of $u_s$ is \begin{align*} \hat{u}_s(t) & = \Gamma(1-s)\sin{\left({\pi s\over 2}\right)} |t|^{s-1} - i \Gamma(1-s) \cos{\left({\pi s\over 2}\right)} \operatorname{sign}(t) |t|^{s-1} \\ & = {\pi\over 2\Gamma(s)\cos{\left({\pi s\over 2}\right)}} |t|^{s-1} - { i\pi\over 2\Gamma(s)\sin{\left({\pi s\over 2}\right)}} \operatorname{sign}(t) |t|^{s-1}; \end{align*} See here, on the entry for $|x|^\alpha$, for instance. I used the reflection formula to pass from the first line to the second (because the second form is more convenient for us but the first follows more easily from this Wikipedia entry). It follows that for $s\notin \mathbb N$ the Fourier transform of $\sin^p{(x)} u_s(x) = \mathbb 1_{(0,\infty)}(x)|x|^{-s}\sin^p{(x)}$ is \begin{align*} \mathcal F(\sin^p{(x)} u_s(x))(t) & = {1\over (2i)^p}\sum_{k = 0}^p (-1)^k{p\choose k} \mathcal F(e^{i(p-2k)x}u_s(x)) \\ & = {\pi\over 2^{p+1}i^p\Gamma(s)\cos{\left({\pi s\over 2}\right)}}\sum_{k = 0}^p(-1)^k{p\choose k} |t - p + 2k|^{s-1} \\ & \quad -{\pi\over 2^{p+1}i^{p-1}\Gamma(s)\sin{\left({\pi s\over 2}\right)}}\sum_{k = 0}^p (-1)^k{p\choose k} \operatorname{sign}(t-p+2k) |t-p+2k|^{s-1}. \end{align*} Thus for $0 < s \leq p$ and $s\notin \mathbb N$, we get \begin{align*} \int_0^\infty{\sin^p x\over x^s}\,dx & = \mathcal F(\sin^p{(x)} u_s(x))(0) \\ & = {\pi\over 2^{p+1}i^p\Gamma(s)\cos{\left({\pi s\over 2}\right)}}\sum_{k = 0}^p(-1)^k{p\choose k} |p - 2k|^{s-1} \\ & \quad + {\pi\over 2^{p+1}i^{p-1}\Gamma(s)\sin{\left({\pi s\over 2}\right)}}\sum_{k = 0}^p (-1)^k{p\choose k} \operatorname{sign}(p-2k) |p-2k|^{s-1}. \end{align*} Actually, when $p$ is even only the first sum on the right-hand side will survive, and when $p$ is odd only the second sum will survive. This is true because if one breaks $u_s$ up into even and odd components ($u_s(x) = |x|^{-s}/2 + \operatorname{sign}(x)|x|^{-s}/2$), then the first sum is the integral over the real line of the even part multiplied by $\sin^p{x}$ while the second sum is the integral of the odd part multiplied by $\sin^p{x}$. So what we really have is \begin{align*} \int_0^\infty{\sin^p x\over x^s}\,dx &= \left\{ \begin{array}{ll} \displaystyle{\pi\over 2^{p+1}i^p\Gamma(s)\cos{\left({\pi s\over 2}\right)}}\sum_{k = 0}^p(-1)^k{p\choose k} |p - 2k|^{s-1} & \text{$p$ even,} \\[2em] \displaystyle {\pi\over 2^{p+1}i^{p-1}\Gamma(s)\sin{\left({\pi s\over 2}\right)}}\sum_{k = 0}^p (-1)^k{p\choose k} \operatorname{sign}(p-2k) |p-2k|^{s-1} & \text{$p$ odd}. \end{array}\right. \tag{1} \end{align*}

The above formulas clearly give the desired result when $s \in \mathbb N$ has the same parity as $p$ (and of course is no greater than $p$), and then they simplify to the formulas I gave at the beginning of this answer. So it remains only to think about what happens when either $p$ is even and $s$ is odd or $p$ is odd and $s$ is even. Both cases are similar; we simply take a limit. As it turns out, $\sum (-1)^k {p\choose k} |p - 2k|^{s-1}$ vanishes when $p$ is even and $s$ odd, and likewise $\sum (-1)^k{m\choose k} \operatorname{sign}(p-2k) |p-2k|^{s-1}$ vanishes when $p$ is odd and $s$ even (provided in both cases that $0<s< p$). The zeros of these sums cancel against the zeros of the sine and cosine terms that appear in the denominators. This assertions must be true, because both sides of the formula $(1)$ are continuous functions of the variable $s$ and the left hand side is finite when $s\leq p$ is a positive integer with parity opposite that of $p$. Finally, to arrive at the formulas given in the beginning, simply apply l'Hopital's rule. Thus, for instance, when $p$ is even and $q$ is odd, \begin{align*} \lim_{s\to q} {1\over \cos{\left({\pi s\over 2}\right)}}&\sum_{k = 0}^p(-1)^k{p\choose k} |p - 2k|^{s-1} \\ & = (-1)^{(q+1)/2}{2\over \pi} \sum_{k = 0\atop k\not = p/2}^p (-1)^k{p\choose k} |p - 2k|^{q-1} \log{|p-2k|}, \end{align*} and the rest follows easily.

share|cite|improve this answer
The formatting is coming in a little off on my screen; if anyone wants to step in and fix it, be my guest. Otherwise I'll try to get to it later. – Nick Strehlke Dec 3 '13 at 11:36
Thank you very much for this great answer! Your formulas are what I really wanted. By the way, your formulas can be simplified a bit as the followings which might be easier to calculate : $$\frac{(-1)^{(p+q+1)/2}}{2^{p-q}(q-1)!}\sum_{k=0}^{(p-4)/2}(-1)^k\binom{p}{k}((‌​p/2)-k)^{q-1}\log{((p/2)-k)}$$ for $p$ even and $q$ odd such that $3\le q\le p-1$.$$\frac{(-1)^{(p+q-1)/2}}{2^{p-1}(q-1)!}\sum_{k=0}^{(p-3)/2}(-1)^k\binom pk(p-2k)^{q-1}\log{(p-2k)}$$for $p$ odd and $q$ even such that $2\le q\le p-1$. – mathlove Dec 3 '13 at 15:20
@mathlove My pleasure! And nice simplification—that's much cleaner. I'll edit it into my answer a little later when I have time. – Nick Strehlke Dec 3 '13 at 17:26

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.