CONTEXT: Uni homework question made up by lecturer
If, for $n=0$, $1$, $2$, $\ldots$ you're given $f_0(x)=\frac{1}{2-x}$ and $f_{n+1}=f_0(f_n(x))$, how do you prove that your formula for $f_n(x)$ is correct by mathematical induction?
UPDATE
I have computed the first few terms:
$f_1(x)=\frac{2-x}{3-2x}$
$f_2(x)=\frac{3-2x}{4-3x}$
$f_3(x)=\frac{4-3x}{5-4x}$
$f_4(x)=\frac{5-4x}{6-5x}$
Then, from observation of these I developed:
$f_n(x)=\frac{n+1-nx}{n+2-(n+1)x}$
But I don't see how you're supposed to prove this with mathematical induction as it has variable $x$ in it as well as the $n$.
You have already shown the base case for your induction. Suppose that your proposition
$$f_n(x) = \frac{n+1-nx}{n+2-(n+1)x}, $$
holds for $n=N$. We must show that the result also holds for $n=N+1$. Following the formula you were given for computing $f_{N+1}(x)$ we have,
$$ f_{N+1}(x) = f_0(f_N(x)) = f_0 \left( \frac{N+1-Nx}{N+2-(N+1)x} \right),$$
where we have used the inductive assumption to substitute $f_N(x)$. Now we apply $f_0$,
$$ f_{N+1}(x) = \frac{1}{2-\frac{N+1-Nx}{N+2-(N+1)x}}. $$
We now simplify this expression,
$$f_{N+1}(x) = \frac{N+2-(N+1)x}{2(N+2-(N+1)x) - (N+1 - Nx)} $$
and collect together all of the like terms
$$f_{N+1}(x) = \frac{(N+1) + 1 - (N+1)x}{((N+1) + 2) - ((N+1) + 1)x}.$$
This completes the inductive argument.