If $$f(x) = \int e^x \biggr(\arctan x + \frac {2x}{(1+x^2)^2}\biggr)\,dx$$ and $f(0)=0$ then value of $f(1)$ is?
This is actually a Joint Entrance Examination question so I have to do it in two minutes. Is there a shortcut to finding this result quickly? It seems very complicated. The answer is $e(\pi/4-(1/2)). $
With $g(t) = \arctan(t) = \tan^{-1}(t)$, the function is $$f(x) = \int_0^x e^t (g(t) - g''(t)) \, dt = \int_0^x [e^t g(t)]' - [e^t g'(t)]'\, dt = $$ $$ = \int_0^x [e^t(g(t) - g'(t)]' \, dt = e^x(g(x) - g'(x)) - (g(0) - g'(0))$$
As noted in comments, $f(1)$ is actually $\frac{e\pi}{4} - \frac{e}{2} +1$.