I am trying to derive a general result on moments generating functions and need to prove that, for any $K \ge 1$, the following function:
$$f_K(x) = \frac{\log(1 + x) - \sum_{i = 1}^K \frac{(-1)^{i + 1}}{i} x^i}{(-1)^{K} x^{K + 1}}$$
is decreasing in $\mathbb{R}^+$. Simulations show that this function is indeed decreasing but manipulating its derivative is a mess.. any ideas on how to show this result?
Thank you for your help!
Consider the numerator $$ g(x) = \log(1 + x) - \sum_{i = 1}^K \frac{(-1)^{i + 1}}{i} x^i $$ first. We have $$ g'(x) = \frac{1}{1+x} - \sum_{i = 0}^{k-1} (-x)^i = \frac{1}{1+x} - \frac{1-(-x)^K}{1+x} = \frac{(-1)^K x^K}{1+x} $$ and therefore $$ \tag{*} f_K(x) = \frac{1}{x^{K+1}} \int_0^x \frac{t^K}{1+t} \, dt \, . $$
Inspired by Oliver Díaz' answer we now can substitute $t = x u$ and get $$ \boxed{f_K(x) = \int_0^1 \frac{u^K}{1+xu} \, du} $$ which is clearly decreasing in $x$.
Alternatively we can compute the derivative of $f_K$ in $(*)$: $$ f_K'(x) = \frac{1}{x(1+x)} - \frac{K+1}{x^{K+2}} \int_0^x \frac{t^K}{1+t} \, dt \, . $$ The right-hand side becomes larger if $t$ in the denominator of the integral is replaced by $x$, so that $$ f_K'(x) < \frac{1}{x(1+x)} - \frac{K+1}{x^{K+2}} \int_0^x \frac{t^K}{1+x} \, dt = 0 \, . $$ This proves that $f_K$ is strictly decreasing on $(0, \infty)$.