A few months ago I learned that Euler's gamma function: $$\int_0^{\infty} e^{-t}t^{x-1}dt$$ converges when $x \gt 0$. Then few weeks ago I find out from theory on power series that convergence for harmonic series $\sum {1 \over n^\alpha}$ can be found for $\alpha \in \mathbb{R}$ by using a integral criteria which says that series converges if and only if improper integral $\int_{1}^\infty {dx \over x^\alpha}$ converges, and that is right for $\alpha \gt 1$.
What I am trying to do here, is to implement integral criteria from power series to gamma function, but for ${1 \over t^{1 - x} }$ it doesn't seem to work since for $1-x \gt 1$ or $x \lt 0$, gamma function diverges, and i expect from integral criteria to converge. What am I doing wrong?