inverse of (x/(2x-1)+1/(2*tanh(1-2x))