∫2/(x+1)(x-1)dx
=∫(1/(x+1)+1/(x-1))dx
=∫1/(x+1)dx+∫1/(x-1)dx
=∫1/(x+1)d(x+1)+∫1/(x-1)d(x-1)
=ln|x+1|+ln|x-1|+C