If x+1x=√5, find the values of x2+1x2 and x4+1x4.
If (x−1x)=5, find the values of (i) (x2+1x2) and (ii) (x4+1x4)