Let $y=\tan (x) $ for $0\leq x\leq \dfrac{\pi}{2} $ and a tangent be drawn at $x=\dfrac {\pi}{4} $ then area of eegion bounded above $x$-axis is?
Attempts
Let the equation of tangents be $y-1=m\left( x-\frac{\pi}{4} \right)$ then slope is $\dfrac{dy}{dx}=\sec^2 (x)=2$ at given point.
Thus equation becomes $y=2x-\dfrac{\pi}{2}+1$. Now its typical $f_1(x)-f_2(x) $.
After integrating and subtraction I get answer as $$-\dfrac{\pi^2}{16}+\dfrac{\pi}{4}-\frac{1}{2}\log (2)$$
but the answer given is $$\frac{1}{2}\left( \log (2)-\frac{1}{2} \right)$$
Where is my fault? Thanks!