Consider the integral I=∫x+x−1dx Substitute these values in the integral and solve I=∫(t2+1)+t2tdt=∫t2+t+1(2t+1)−1dt=∫t2+t+12t+1dt−∫(t2+t+1dt)=loge∣t2+t+1∣−∫(t+21)2+43dt Further simplify the above I=loge∣t2+t+1∣−32tan−1(23t+21)+c=loge∣t2+t+1∣−32tan−1(32t+1)+c Substitute the value of t=x−1I=loge∣x+x−1∣−32tan−1(32x−1+1)+c