does anyone have an idea or a guess how to prove the following equation:
$$\int\limits_{0}^{\infty}\frac{1-\text{e}^{-x}\cos(ax)}{x^{r+1}}\operatorname d\!x = \dfrac{\Gamma(1-r)}{r}(1-a^2)^{\frac{r}{2}} \cos(r \arctan(a))$$
for a fixed real-valued $a$ and $r \in (0,1)$.
I cannot come up with a way to solve the integral. Thanks!
I think your expression is off. Begin by writing
$$\int_0^{\infty} dx \frac{1-e^{-x} \cos{(a x)}}{x^{r+1}} = \Re{\left [\int_0^{\infty} dx \frac{1-e^{-(1-i a) x}}{x^{r+1}} \right ]}$$
Then recognize that
$$\frac{1-e^{-(1-i a) x}}{x} = (1-i a) \int_0^1 du \, e^{-(1-i a) x u}$$
Assume that we may change the order of integration; this is justified because the integrals absolutely converge. Then the integral is
$$(1-i a) \int_0^1 du \, \int_0^{\infty} dx \, x^{-r} e^{-(1-i a) x u}$$
The inner integral may be evaluated by subbing $y=(1-i a) x u$; note that we end up with an expression for the gamma function:
$$(1-i a) (1-i a)^{r-1} \Gamma(1-r) \int_0^1 du \, u^{r-1} = (1-i a)^{r} \frac{\Gamma(1-r)}{r}$$
Write
$$1-i a = \sqrt{1+a^2} e^{-i \arctan{a}}$$
and the integral may be written as the real part of the above expression:
$$\frac{\Gamma(1-r)}{r} (1+a^2)^{r/2} \cos{(r \arctan{a})}$$
Note that the pythagorean piece has a plus and not a minus.
EDIT
I will add some more detail to the gamma function integral, which is
$$\int_0^{\infty} dx \, x^{-r} \, e^{-(1-i a) x u}$$
We want to prove that the result is equal to $(1-i a)^{r-1} u^{r-1} \Gamma(1-r)$ as asserted above. One way to do this is, as pointed out, to deform the integration contour in the complex plane and apply Cauchy's theorem. Recall that the substitution $y=(1-i a) x u$ placed the integration contour along a ray of angle $\arctan{a}$ in the complex plane. So we complete a closed circuit by forming a wedge of radius $R$ and angle $\arctan{a}$ with the positive real axis.
We then consider the integral
$$\oint_C dz \, z^{-r} \, e^{-(1-i a) u z}$$
where $C$ is the above-mentioned wedge. The contour integral is then equal to
$$ \int_0^{R} dx \, x^{-r} e^{-(1-i a) x u} + (1-i a)^{r-1} u^{r-1} \int_R^0 dy \, y^{-r} \, e^{-y} \\ + i R^{1-r} \int_0^{\arctan{a}} d\phi \, e^{i (1-r) \phi} \, e^{-(1-i a) u R e^{i \phi}}$$
We simply need to show that the third integral vanishes as $R \to \infty$ because the contour integral is zero by Cauchy's theorem. (Rigorously, we should introduce a small arc around the origin, but the integral around that small arc must vanish because $r \in (0,1)$.)
The magnitude of that third integral is bounded by the quantity
$$R^{1-r} \int_0^{\arctan{a}} d\phi \, e^{-(\cos{\phi}+a \sin{\phi}) u R} = R^{1-r} \int_0^{\arctan{a}} d\phi \, e^{-u R\sqrt{a^2+1} \cos{(\phi-\arctan{a})}}$$
The exponent is never zeros within the integration region, so the integral is merely bounded by the ML lemma, or
$$ R^{1-r} e^{-u R} \arctan{a}$$
which clearly vanishes as $R \to \infty$. Thus, the substitution made in the derivation is justified.