Compute the definite integral $$ \int_{0}^{1}\tan^{-1}(1-x+x^2)\,dx $$
Failed Attempt:
Let $1-x+x^2=t$. Then
$$ \begin{align} (2x-1)\,dx &= dt\\ dx &= \frac{1}{(2x-1)}dt \end{align} $$
Changing the limits of integration, we get
$$\int_{1}^{1}\tan^{-1}(t)\cdot \frac{1}{(2x-1)}dt = \int_{1}^{1}\tan^{-1}(t)\cdot f(t)dt = 0 $$
where $f(t)=\frac{1}{(2x-1)}$.
Is it true that $\int_{a}^{a}f(x)dx = 0$? If not, then where have I made a mistake in my attempted solution?