I'm trying to show that $f(x) = \frac{x^p}{1+x^q}$ is integrable on $(0,\infty)$ if and only if $p > -1$ and $q-p > 1$.
So on $[1,\infty)$ we can compare with $g(x) = x^{p-q}$ which is integrable when $q-p>1$.
Now I am having difficulty with the region $(0,1)$. As well as that, I'm not sure how to prove $f$ is not integrable on $[1,\infty)$ if $q-p \le 1$.
Thanks for any help
Generally, for $\alpha,\beta\in \mathbb{R}$ and $x\in (0,\infty)$, we have
$$\max \{x^\alpha,x^\beta\} < x^\alpha + x^\beta \leqslant 2 \max \{x^\alpha,x^\beta\},$$
and therefore
$$\frac{1}{2} \min \left\{\frac{1}{x^\alpha},\frac{1}{x^\beta}\right\} \leqslant \frac{1}{x^\alpha+x^\beta} < \min \left\{\frac{1}{x^\alpha},\frac{1}{x^\beta}\right\}.$$