Simplify (3x)/(x+1)-5/x