Show solutionHide solution
Use the identity
\[ \tan^2 u=\sec^2 u-1. \]Let \(u=2x-3\), so \(du=2\,dx\) and \(dx=\frac12\,du\). Then
\[ \int \tan^2(2x-3)\,dx = \frac12\int \tan^2 u\,du = \frac12\int(\sec^2u-1)\,du. \]Integrating,
\[ = \frac12(\tan u-u)+C. \]Returning to \(x\),
\[ = \frac12\tan(2x-3)-\frac{2x-3}{2}+C = \frac12\tan(2x-3)-x+C, \]where the extra constant \(\frac32\) has been absorbed into \(C\).
The formula is valid on intervals where the integrand is defined, i.e. \(\cos(2x-3)\ne0\), or equivalently
\[ x\ne \frac32+\frac{\pi}{4}+\frac{k\pi}{2},\quad k\in\mathbb Z. \]Check:
\[ \frac{d}{dx}\left(\frac12\tan(2x-3)-x\right) = \frac12\sec^2(2x-3)\cdot2-1 = \sec^2(2x-3)-1 = \tan^2(2x-3). \]