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?


**Remark** : This question has been [asked previously on math.SE](https://math.stackexchange.com/questions/558014/can-we-simplify-int-0-infty-frac-sinpxxqdx) without receiving any answers.



Can we simplify $\int_{0}^{\infty}\frac{{\sin}^px}{x^q}dx$?
I'm posting an answer just to inform that the question has received an answer by Nick Strehlke on [MSE](https://math.stackexchange.com/questions/558014/can-we-simplify-int-0-infty-frac-sinpxxqdx/590849#590849).


\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\*}


By the way, I noticed that these 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 pk\left(\frac p2−k\right)^{ q−1} \log\left(\frac p2−k\right) $$
 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\left(p−2k\right)^{ q−1} \log\left(p−2k\right) $$
 for $p$ odd and $q$ even such that $2\le q\le p−1$ .


