In my homework I need to solve the integral: (Homework, so I would like a hint more than a full solution)
$$ \int_{-\pi/4}^{\pi/4}\frac{x^7- x + 1}{\cos^2x}~\mathrm dx $$
What I tried:
We can use integration by parts, knowing that:
$$ (\tan x)' = \frac{1}{\cos^2x} $$
Therefore it seems fit to take:
$$ u = (x^7 - x + 1), v' = \frac{1}{cos^2x} $$
Now doing the integration I get:
$$ \int_{-\pi/4}^{\pi/4}\frac{x^7- x + 1}{\cos^2x}~\mathrm dx = (x^7-x+1)\tan^2x - \int_{-\pi/4}^{\pi/4}(7x^6 - 1)\tan^2x~\mathrm dx $$
Now I need to solve the new right term I get:
$$ \int_{-\pi/4}^{\pi/4}(7x^6 -1)\tan^2x~\mathrm dx $$
And again, it seems that it goes the way of integration by parts, but, because of the $x^6$ I will need again and again to do the integration by parts...
So, whats wrong?