I want to approximately compute integral $$I =\int_0^1 dx \frac{x(2-x)(1-x)}{(1-x)^2+\mu x}$$ assuming that $\mu$ is small. I tried
Integrate [(2 - x) (1 - x) x/((1 - x)^2 + A x), {x, 0, 1}]
My Mathematica for some reason fails to do this integral explicitly (which is strange, since it is an integral of a rational function; I guess Mathematica obtains divergent answer after decomposing the fraction, but can see that the integral is convergent in fact), so that I could just approximate the exact result.
On the other hand, the point of $\mu x$ term is to "regulate" divergence of this integral (i.e. integral without it, $\int_0^1 dx \frac{x(2-x)(1-x)}{(1-x)^2}$, is logarithmically divergent on the upper limit). Therefore, the whole effect of this term can be accounted by shifting the upper limit:
$$I \approx \int_0^{1-\mu} dx \frac{x(2-x)(1-x)}{(1-x)^2}$$
Now Mathematica can compute this integral easily
Integrate [(2 - x) (1 - x) x/(1 - x)^2, {x, 0, 1 - A}, Assumptions -> A > 0]
giving $I = -\frac{1}{2}(1+\ln(\mu^2)-\mu^2)$, which can be approximated as $I \approx -\frac{1}{2}(1+\ln(\mu^2))$
I wonder if there is any function, smth like ApproximateIntegral[f[x,s],{x,a,b},{s,0}]
, which could do this whole manipulation for me.