Integrate the rational functions.
Dividing (x3 + x + 1) by x2 -1, we get,
Let
Now, 2x + 1 = A(x – 1) + B(x + 1) …(1)
Substituting x = 1 and -1 in equation (1), we get,
A = and B =
Thus,