My question concerns the following recurrence relation:
$u_n= \frac{u_{n-1}}{2}+\frac{1}{u_{n-1}} $
and how to find an explicit formula for this expression using generating functions (GF). I so far have only had experience with linear recurrence relations and GFs and can't see how to start on this problem. Any help would be appreciated!
Well, you can't start with the initial condition $u_0=0$ because you get a singularity in the second term. Other initial conditions, however, are valid and approach to the steady state $u_{\infty}=\sqrt{2}$. To see this, the trick is to rewrite the equation as:
$$ \frac{u_n-\sqrt{2}}{u_n+\sqrt{2}}= \bigg(\frac{u_{n-1}-\sqrt{2}}{u_{n-1}+\sqrt{2}}\bigg)^2 $$
(Check that this is in fact true) Therefore you can easily see that as we iterate:
$$ \frac{u_n-\sqrt{2}}{u_n+\sqrt{2}}= \bigg(\frac{u_{n-2}-\sqrt{2}}{u_{n-2}+\sqrt{2}}\bigg)^4 = \bigg(\frac{u_{n-3}-\sqrt{2}}{u_{n-3}+\sqrt{2}}\bigg)^8 = \dots = \bigg(\frac{u_{0}-\sqrt{2}}{u_{0}+\sqrt{2}}\bigg)^{2^{n}}$$
Solving for $u_n$ gives:
$$u_n = \sqrt{2}\bigg(\frac{1+\big(\frac{u_0-\sqrt{2}}{u_0+\sqrt{2}}\big)^{2^n}}{1-\big(\frac{u_0-\sqrt{2}}{u_0+\sqrt{2}}\big)^{2^n}}\bigg) \longrightarrow \sqrt{2} \text{ as } n\to\infty \text{ for }u_{0}\neq 0 $$
From the closed form solution we see that if $u_0=0$ the recurrence diverges. In fact, for an arbitrary number $k$, the recurrence relation:
$$u_{n}=\frac{1}{2}\bigg(u_{n-1}+\frac{k}{u_{n-1}}\bigg)$$ gives as an asymptotic solution the square root $\sqrt{k}$, and the closed form solution can be found in the same way as I did for $\sqrt{2}$.