Simplify (2x(x+1)^2-4(x+1))/(2(x^2-1))