Solution:
By separating the terms
∫x2−1x−1dx=∫x2−1xdx−∫x2−11dx(1)
Take
∫x2−1xdx
If x2−1=t we get 2xdx=dt
∫x2−1xdx=21∫tdt
It can be written as
=21∫t−21dt
By integration
=21[2t21]
=t
Substituting the value of t
=x2−1
Using equation (1) we get
∫x2−1x−1dx=∫x2−1xdx−∫x2−11dx
From formula
∫x2−a21dx=logx+x2−a2
We get
=x2−1−logx+x2−1+C