The integral is
.
.
Apply integration by parts :
.
Let
.
.
Substitute these values in the integration by parts formula.
\
Consider
.
Since the degree of the numerator and denominator are same, perform the long division.
\
.

Let
, then
.


Substitute
in above equation.
.
Thus,
.
Substitute
in equation (1).


.
.