Problem
Compute $ \int_0^{\infty} \frac{dx}{x^a(x+2)} $, with $a \in \mathbb{R}$, using the Residue Theorem. Find the values of $a$ for which this procedure is valid.
Attempt at a solution Looking at this integrand and letting $f(z) = \frac{1}{z^a(z+2)}$, it was/is easy to show that the integral does not converge for $a \le 0$ by just using direct integration via Calculus.
For $a>0$, I noticed that there were singularities at $z=0, -2$, both of which lie on the real axis, which means we cannot take the typical approach of the Residue Theorem by considering the upper semicircle $C_R$ and taking $R \to \infty$, etc.
The next thing I attempted to consider the region bounded by the quarter half circle $C_{R'}$ with radius $R$ and the positive $Re(z)$ and $Im(z)$ axis, but also considering a quarter-circle with radius $\epsilon > 0$ about the origin in the same region since I have a singularity there. Contour integral for this region should be zero by Cauchy-Goursat, since the only possible singularity in this region would be at the origin (which I have avoided).
However, the computation becomes very messy, and this problem assumed to have no computational tools available when solving.
Am I on the right path? Or is there an easier approach to solving this question?
I also should note that, based on numerical computations on Mathematica, it seems to be valid for $0 < a < 1$.
UPDATE (10/4/2013) Problem has been resolved!
For those who are curious. Brown/Churchill's Complex Variables (8th edition) text has a discussion on an almost identical problem on p. 283. Definitely a derp moment.