The integrand is a improper rational function,as the degree of the numerator is greater than the degree of the denominator.So we have to carry out division.
Since the polynomials do not completely divide, we have to continue with the partial fractions on the remainder and factor out the denominator.
Now we create the partial fraction template,
Multiply the above equation with the denominator,
Equating the coefficients of the like terms,
Now we to solve the above linear equations to get the values of A and B,
Multiply equation 1 by 4,
Now add equation 2 and 3,
Plug in the value of A in equation 1 ,
Plug in the values of A and B in the partial fraction template,
Apply the sum rule,
Take the constant out,
Apply the power rule for the first integral and use the common integral `int1/xdx=ln|x|` for the second and third integral:
Simplify and a constant C to the solution,