1 / | | 1 | ------- dy | 2 | -1 + y | / 0
Integral(1/(-1 + y^2), (y, 0, 1))
PiecewiseRule(subfunctions=[(ArctanRule(a=1, b=1, c=-1, context=1/(y**2 - 1), symbol=y), False), (ArccothRule(a=1, b=1, c=-1, context=1/(y**2 - 1), symbol=y), y**2 > 1), (ArctanhRule(a=1, b=1, c=-1, context=1/(y**2 - 1), symbol=y), y**2 < 1)], context=1/(y**2 - 1), symbol=y)
Add the constant of integration:
The answer is:
/ | // 2 \ | 1 ||-acoth(y) for y > 1| | ------- dy = C + |< | | 2 || 2 | | -1 + y \\-atanh(y) for y < 1/ | /
pi*I
-oo - ----
2
=
pi*I
-oo - ----
2
-oo - pi*i/2
Use the examples entering the upper and lower limits of integration.