Let f(x)=x+1x−1
Thus using first principle,
f′(x)=limh→0f(x+h)−f(x)x
=limh→0(x+h+1x+h−1−x+1x−1)h
=limh→01h[(x−1)(x+h+1)−(x+1)(x+h−1)(x−1)(x+h−1)]
=limh→01h[(x2+hx+x−x−h−1)−(x2+hx−x+x+h−1)(x−1)(x+h−1)]
=limh→01h[−2h(x−1)(x+h−1)]
=limh→0[−2(x−1)(x+h−1)]
=−2(x−1)(x−1)=−2(x−1)2