While reading a paper on game theory, I´ve found myself stuck with the following problem:
Given the function $$ f(x,a,p)\left\{ \begin{array}{ll} \frac{1-\left(\frac{1-p}{p}\right)^x}{1-\left(\frac{1-p}{p}\right)^a}&\;\;\; \hbox{if }p\neq\frac{1}{2} \\ \frac{x}{a}&\;\;\;\hbox{if }p=\frac{1}{2} \end{array} \right. $$ where $a\in\mathbb{N}$, $x\in\{0,1,\ldots,a\}$, and $p\in(0,1)$,
show that for fixed $x$ and $a$, $f(x,a,p)$ increases from 0 to 1 as $p$ increases from 0 to 1.
I have tried, at least, a couple of ways: first, directly consider $p_1, p_2\in(0,1)$ with $p_1<p_2$ with the object of trying to prove that $f(x,a,p_1)<f(x,a,p_2)$. The second try was to consider the derivative with respect to $p$ and try to prove that it is positive all through the interval $(0,1)$. Neither one nor the other did I get the desired result.
I just wanted to provide another way of deriving that $$ \phi(u) = \frac{u^x-1}{u^a-1},\quad u>0,\ 0< x\leq a $$ is a decreasing function of $u$, without the expansion as in the answer of @jwhite.
We know $$ \phi'(u) = \frac{xu^{x-1}(u^a-1) - au^{a-1}(u^x -1)}{(u^a-1)^2}, $$ and we want to show the top $\leq 0$.
Use the generalized mean value theorem, we have $$ \frac{u^a-1}{u^x-1} = \frac{a\zeta^{a-1}}{x\zeta^{x-1}}=\frac{a}{x}\zeta^{a-x} $$ for some $\zeta$ between 1 and $u$. (This is even true when $u=1$ in the limit sense.) There are two cases.
If $u\in (0, 1)$, then $\zeta>u$, $u^x-1\leq 0$, and we have $$ \text{top} = {(u^x-1)}( a\zeta^{a-x} u^{x-1} - au^{a-1})\leq 0. $$
Similarly for $u\in (1, \infty)$. We are done.