A function \(f\) is defined by \(f:x\rightarrow \dfrac{1}{x+1}\). Write down in similar form expressions for \(f^{-1}\) and \(ff\).

It is required to find the values of \(x\) for which \((i)\) \(f=f^{-1}\), \((ii)\) \(f=ff\). Show that, in each case, the values of \(x\) are given by the equation \[ x^2+x-1=0.\]