Q. If $\int \frac{\sec ^2 x}{\tan ^{2017} x+\tan x} d x=g(x)+c$, where $g\left(\frac{\pi}{4}\right)=\frac{-\ln 2}{2016}$, then $\underset{x \rightarrow \frac{\pi^{-}}{2}}{\text{Lim}} g(x)$ is equal to (where $c$ is constant of integration)
Integrals
Solution: