# Evaluating the integral $\int_0^1\arctan(1-x+x^2)dx$

I need to evaluate
$$\int_0^1\arctan(1-x+x^2)dx$$ What I did: First I assume $$I=\int_0^1\arctan(1-x+x^2)dx=\int_0^1\arctan((x-\frac{1}{2})^2+\frac{3}{4})dx$$ Since the function is symmetric about $\frac{1}{2}$, as $f(\frac{1}{2}+t)=f(\frac{1}{2}-t)$, $$I=2\int_0^{\frac{1}{2}}\arctan((x-\frac{1}{2})^2+\frac{3}{4})dx$$ Since $\int_a^bf(x)dx=\int_a^bf(a+b-x)dx$, I get $I$ as $$I=2\int_0^{\frac{1}{2}}\arctan(x^2+\frac{3}{4})dx$$ The integration by parts method, here seems hectic. Does anyone know how to evaluate this integral, in a different way, or ahead of whatever point I've reached?

$\int_0^1\tan^{-1}(1-x+x^2)dx=\frac{\pi}{2}-\int_{0}^{1}\tan^{-1}\frac1{1-x+x^2}dx=\frac{\pi}{2}-\int_0^1 \tan^{-1}(x)-\tan^{-1}(x-1)dx$ That should simplify everything.