I am working on a math problem as part of my Physics project, and I need to numerically evaluate the integral
$\int_0^{\infty}\frac{f(x)}{(1+ax)^n}dx$
where $a$ is some positive constant and $1 < n < 2$, also $f(x)$ can be assumed to be slowly varying.
The problem is that I don't actually have an analytical expression for $f(x)$, I only have samples of $f(x)$ for a finite range of $x$. And assuming that $f(x)$ is slowly varying, the fractional error in stopping the integration at some limit $x'$ is $\sim (1+ax')^{1-n}$. This implies that for a given allowed tolerance, $x'$ becomes really large as $n$ approaches 1. This is a problem as sampling $f(x)$ for large $x$ costs a lot of computation time.
What are some ways I can reduce the computation time needed without losing accuracy?