| Step 1:
|
| First, we write
|

|
Using the trig identity we have
|

|
Plugging in the last identity into one of the we get
|
- Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle {\begin{array}{rcl}\displaystyle {\int \tan ^{4}(x)~dx}&=&\displaystyle {\int \tan ^{2}(x)(\sec ^{2}(x)-1)~dx}\\&&\\&=&\displaystyle {\int \tan ^{2}(x)\sec ^{2}(x)~dx-\int \tan ^{2}(x)~dx}\\&&\\&=&\displaystyle {\int \tan ^{2}(x)\sec ^{2}(x)~dx-\int (\sec ^{2}x-1)~dx.}\\\end{array}}}
|
| using the identity again on the last equality.
|