For 0<x<1,I=∫[tan−1(1−x+x2)+tan−1(1−x)]dx=∫tan−1[1−(1−x+x2)(1−x)(1−x+x2)+(1−x)]dx=∫tan−1(x(2−2x+x2)2−2x+x2)dx=∫tan−1(x1)dx=∫cot−1(x)dx=∫(2π−tan−1x)dx=∫2πdx−∫tan−1xdx=2πx−[xtan−1x−21ln(1+x2)+C][Using product rule]=2πx−xtan−1x+21ln(1+x2)+Cwhere C= constant of integration=x(2π−tan−1x)+21ln(1+x2)+C=xcot−1x+21ln(1+x2)+C=xcot−1x+log1+x2+C