| 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 \int \tan ^{4}(x)dx=\int \tan ^{2}(x)(\sec ^{2}(x)-1)dx=\int \tan ^{2}(x)\sec ^{2}(x)dx-\int \tan ^{2}(x)dx=\int \tan ^{2}(x)\sec ^{2}(x)dx-\int (\sec ^{2}x-1)dx}
|
| using the identity again on the last equality
|