For the integrand , do long division:
Integrate the sum term by term and factor out constants:
Expanding the integrand gives
:
Integrate the sum term by term and factor out constants:
For the integrand }, substitute and :
The integral of is :
The integral of is :
The integral of is :
Substitute back for :