I need to evaluate and plot the following expression:
$$ f(x,V,m)=\frac{1-\exp(-Vx^m)}{1-(1-x^m)^V}-1 $$
$V$ and $m$ are numbers from $1$ to $\sim30$ and $0\leq x\leq1$.
The issue is that for $x$ close to zero, the exponential, and the power term in the denominator take values very close to 1, making it difficult to evaluate $f$ numerically. I've tried MATLAB symbolic toolbox which, just to give one case, gives $f(10^{-3},1,6)=-1$. Mathematica also runs into similar problems. I know this to be incorrect because:
$$ \lim_{x\to 0} f(x,V,m)=0 $$
Is there a manipulation of the equation (the first term is the problem) that I am missing that would make it more amenable to evaluate numerically or simplify it? I want to know the behavior of the function for small values of $x$ but short of plotting I am struggling to conclude anything, because even though both numerator and denominator are monotonic, I cannot say the same about their ratio.
Using Taylor expansion of $$g(y)= \frac{1-\exp(-Vy)}{(1-(1-y)^V)}-1$$ at order one, you find
$$g(y) = -\frac{1}{2}y + O(y^2)$$ and therefore
$$f(x,V,m)=-\frac{1}{2}x^m + O(x^{2m})$$ around zero. Which provides a practical way to evaluate $f$ for $x$ near zero. Interesting is that this doesn't depend (at order one) on $V$.