The integral is
.
Since the degree of the numerator is equal to the degree of the denominator, use long division torewrite the polynomial.
\
Therefore
.
Rewrite the integral.
\
.
Consider the first integral:
.

Consider the second integral:
.

Consider the third integral :
.
Let
then
.
Basic integral formula:
.
.
Substiute
.
.
Substiute the each integral result in the integral.
\

.

.