I've been trying for a while to find $\int{( 2x^2 \sec^2{x} \tan{x} )} dx$, using integration by parts.
I always end up getting a more complicated integral in the second part of the equation.
For example: $$ \int{( 2x^2 \sec^2{x} \tan{x} )} dx = \\ 2x^2 \tan^2x - \int{\tan{x} \cdot \frac{d}{dx}(2x^2 \tan{x})} \\ \frac{d}{dx}(2x^2 \tan{x})=4x\tan{x} + 2x\sec^2{x} \rightarrow \\ 2x^2 \tan^2x - \int{4x \tan^2{x}+2x\tan{x}\sec^2{x}} $$
I've tried integrating with different value for $u$ and $v$, such as:
$$ 1:( 2x^2 \sec^2{x} \tan{x} ), \\ \tan{x} : 2x^2 \sec^2{x}, \\ 2x^2: \sec^2{x} \tan{x}, \\ \sin{x}: 2x^2 \sec^3{x} $$ etc, however, haven't succeeded.
You can proceed from where you ended up by integrating $4x\tan^2 x$ using the trigonometric identity $\sec^2x = 1 + \tan^2x$ to express it as $4x(\sec^2x - 1)$ first.
Always remember that $\tan^2 x$ is easy to integrate after applying that identity.