Evaluate
Factor the denominator to choose the right technique.
Two distinct linear factors means the integrand splits into two simple fractions with constant numerators — no repeated-root or irreducible-quadratic complications. The degree of the numerator () is already below the degree of the denominator (), so no preliminary long division is needed.
Set up the partial-fraction decomposition.
Multiplying through by clears the denominators:
Find A and B by substituting the roots. The fastest route is to plug in the values that kill one bracket at a time. Setting :
Setting :
(Matching coefficients gives the same system , .)
Verify the decomposition before integrating. With and :
Checking here costs one line and catches sign errors before they propagate into the integral.
Integrate each term. Each piece is of the form :
The absolute values matter: the antiderivative is valid on each of the three intervals , , separately.
Differentiate back as a final check.
A numeric spot check at gives from both forms. The answer can also be written as .
Need to solve a different problem like this? Open the solver →