Calculus3Integration Techniques4 of 5
Integration Techniques · 4

Partial Fractions

1

Splitting a fraction into simpler pieces

Let's find the integral of 3x2+x−2\frac{3}{x^2+x-2}. If the numerator were 2x+12x + 1, the derivative of the denominator, u-substitution would work. But the numerator is 33, so letting u=x2+x−2u = x^2 + x - 2 leaves an xx in the integral, and u-substitution doesn't finish the problem.

∫2x+1x2+x−2 dx\displaystyle \int \frac{2x+1}{x^2+x-2}\,dx
u=x2+x−2du=(2x+1) dx\displaystyle \begin{aligned} u &= x^2+x-2 \\ du &= (2x+1)\,dx \end{aligned}
∫duu\displaystyle \int \frac{du}{u} =ln⁡∣x2+x−2∣+C\displaystyle = \ln|x^2+x-2| + C
∫3x2+x−2 dx\displaystyle \int \frac{3}{x^2+x-2}\,dx
u=x2+x−2du=(2x+1) dx\displaystyle \begin{aligned} u &= x^2+x-2 \\ du &= (2x+1)\,dx \end{aligned}
∫3u⋅du2x+1\displaystyle \int \frac{3}{u}\cdot\frac{du}{2x+1}

Instead, notice that the denominator factors into (x−1)(x+2)(\fa{x-1})(\fb{x+2}), which is the common denominator of 1x−1\fa{\frac{1}{x-1}} and 1x+2\fb{\frac{1}{x+2}}. When we subtract those two fractions, we get exactly the fraction we started with.

x2+x−2\displaystyle x^2 + x - 2 =(x−1)(x+2)\displaystyle = (\fa{x-1})(\fb{x+2})
1x−1−1x+2\displaystyle \fa{\frac{1}{x-1}} - \fb{\frac{1}{x+2}} =3(x−1)(x+2)\displaystyle = \frac{3}{(\fa{x-1})(\fb{x+2})}
Find ∫3x2+x−2 dx\int \frac{3}{x^2+x-2}\,dx
∫3x2+x−2 dx\displaystyle \int \frac{3}{x^2+x-2}\,dx =  ?\displaystyle = \;?
Text solution
Subtract over the common denominatorThe xx terms in the numerator cancel, and 2−(−1)2 - (-1) leaves 33.
(x+2)−(x−1)(x−1)(x+2)\displaystyle \frac{(\fb{x+2})-(\fa{x-1})}{(\fa{x-1})(\fb{x+2})} =3(x−1)(x+2)\displaystyle = \frac{3}{(\fa{x-1})(\fb{x+2})}
Integrate each pieceSo our integral splits into two simpler integrals, and each one integrates to a natural log.
∫3x2+x−2 dx\displaystyle \int \frac{3}{x^2+x-2}\,dx =∫(1x−1−1x+2)dx\displaystyle = \int \Big(\fa{\frac{1}{x-1}} - \fb{\frac{1}{x+2}}\Big)dx
=ln⁡∣x−1∣−ln⁡∣x+2∣+C\displaystyle = \fa{\ln|x-1|} - \fb{\ln|x+2|} + C

Writing a fraction as a sum of simpler fractions over the factors of its denominator is called partial fraction decomposition.

2

Finding the numerators

In that example, we knew the two pieces before we combined them. Usually we start with the single fraction instead. We know the factors in the denominator, and we need to find the numerators. Let's call them A\fa{A} and B\fb{B}, and multiply both sides by (x−1)(x+2)(\fa{x-1})(\fb{x+2}) to clear the fractions.

3(x−1)(x+2)\displaystyle \frac{3}{(\fa{x-1})(\fb{x+2})} =Ax−1+Bx+2\displaystyle = \fa{\frac{A}{x-1}} + \fb{\frac{B}{x+2}}
3\displaystyle 3 =A(x+2)+B(x−1)\displaystyle = \fa{A}(\fb{x+2}) + \fb{B}(\fa{x-1})

If we combine the two fractions on the right, the numerator is A(x+2)+B(x−1)\fa{A}(\fb{x+2}) + \fb{B}(\fa{x-1}), so it has to be the exact same polynomial as 33. That means the equation holds for every xx, even x=1x = 1 and x=−2x = -2, where the fraction we started with isn't defined. And those are the values to pick. At x=1x = 1 the factor x−1\fa{x-1} is 0\fa{0}, so the B\fb{B} term is 00 and only A\fa{A} is left. At x=−2x = -2, the A\fa{A} term is 00 instead.

x=1\displaystyle {x = 1}
3\displaystyle 3 =A(3)+B(0)\displaystyle = \fa{A}(\fb{3}) + \fb{B}(\fa{0})
A=1\displaystyle \fa{A = 1}
x=−2\displaystyle {x = -2}
3\displaystyle 3 =A(0)+B(−3)\displaystyle = \fa{A}(\fb{0}) + \fb{B}(\fa{-3})
B=−1\displaystyle \fb{B = -1}

That gives back the two numerators we started with. Other values of xx work too, but they keep both unknowns. At x=0x = 0 we get 3=2A−B3 = 2\fa{A} - \fb{B}. Once we know A=1\fa{A = 1}, though, that same equation gives B=−1\fb{B = -1} again.

Now let's use this to evaluate an integral from scratch.

Find AA and BB, then evaluate ∫3x−1x2−2x−3 dx\int \frac{3x-1}{x^2-2x-3}\,dx
∫3x−1x2−2x−3 dx\displaystyle \int \frac{3x-1}{x^2-2x-3}\,dx =  ?\displaystyle = \;?
Text solution
Factor and clear the fractionsThe pieces are Ax−3\fa{\frac{A}{x-3}} and Bx+1\fb{\frac{B}{x+1}}. Multiplying through by the denominator clears the fractions.
x2−2x−3\displaystyle x^2 - 2x - 3 =(x−3)(x+1)\displaystyle = (\fa{x-3})(\fb{x+1})
3x−1\displaystyle 3x - 1 =A(x+1)+B(x−3)\displaystyle = \fa{A}(\fb{x+1}) + \fb{B}(\fa{x-3})
Plug in the rootsx=3x = 3 makes the B\fb{B} term 00, and x=−1x = -1 makes the A\fa{A} term 00.
x=3:8=4A  →  A=2\displaystyle {x = 3:\quad 8 = \fb{4}\fa{A} \;\to\; \fa{A = 2}}
x=−1:−4=−4B  →  B=1\displaystyle {x = -1:\quad -4 = \fa{-4}\fb{B} \;\to\; \fb{B = 1}}
Integrate each piece
∫3x−1x2−2x−3 dx\displaystyle \int \frac{3x-1}{x^2-2x-3}\,dx =∫(2x−3+1x+1)dx\displaystyle = \int \Big(\fa{\frac{2}{x-3}} + \fb{\frac{1}{x+1}}\Big)dx
=2ln⁡∣x−3∣+ln⁡∣x+1∣+C\displaystyle = \fa{2\ln|x-3|} + \fb{\ln|x+1|} + C

With three linear factors, we can still use the roots to find the unknowns. For 2x2+5x−4x(x−1)(x+2)\frac{2x^2+5x-4}{x(x-1)(x+2)}, drag xx and see which values leave just one unknown.

Make two terms zero
3

Repeated factors in the denominator

Now let's look at what happens when a factor in the denominator repeats, like the (x−1)2\fb{(x-1)^2} in ∫x+1x(x−1)2 dx\int \frac{x+1}{x(x-1)^2}\,dx. If we give x\fa{x} and (x−1)2\fb{(x-1)^2} one piece each, Ax+C(x−1)2\fa{\frac{A}{x}} + \fb{\frac{C}{(x-1)^2}}, the roots give us numbers, but the equation fails at x=2x = 2. That's because there aren't enough unknowns. The denominator has degree 33, so when we add fractions over it, the numerator can have an x2x^2 term, an xx term and a constant. Two unknowns aren't enough to match three coefficients.

We missed a piece. Multiplying the top and bottom of Bx−1\fb{\frac{B}{x-1}} by x−1\fb{x-1} gives a denominator of (x−1)2\fb{(x-1)^2}, so a piece over x−1\fb{x-1} can be part of the sum too. With it, we have three unknowns for a denominator of degree 33.

Bx−1\displaystyle \fb{\frac{B}{x-1}} =B(x−1)(x−1)2\displaystyle = \fb{\frac{B(x-1)}{(x-1)^2}}
x+1x(x−1)2\displaystyle \frac{x+1}{\fa{x}\fb{(x-1)^2}} =Ax+Bx−1+C(x−1)2\displaystyle = \fa{\frac{A}{x}} + \fb{\frac{B}{x-1}} + \fb{\frac{C}{(x-1)^2}}

In the same way, (x−1)3(x-1)^3 would need pieces over x−1x - 1, (x−1)2(x-1)^2 and (x−1)3(x-1)^3. And x2x^2 is x⋅xx \cdot x, so it's a repeated factor too and needs Ax+Bx2\frac{A}{x} + \frac{B}{x^2}, just as x+3x2\frac{x+3}{x^2} splits into 1x+3x2\frac{1}{x} + \frac{3}{x^2}.

Evaluate ∫x+1x(x−1)2 dx\displaystyle\int \frac{x+1}{x(x-1)^2}\,dx
∫x+1x(x−1)2 dx\displaystyle \int \frac{x+1}{x(x-1)^2}\,dx =  ?\displaystyle = \;?
Text solution
One piece each failsWith only A\fa{A} and C\fb{C}, the roots give A=1\fa{A = 1} and C=2\fb{C = 2}, but at x=2x = 2 the two sides don't match.
x+1\displaystyle x + 1 =A(x−1)2+Cx\displaystyle = \fa{A}\fb{(x-1)^2} + \fb{C}\fa{x}
x=2:3≠1⋅(2−1)2+2⋅2=5\displaystyle {x = 2:\quad 3 \ne \fa{1}\cdot\fb{(2-1)^2} + \fb{2}\cdot\fa{2} = 5}
Find A\fa{A}, B\fb{B} and C\fb{C}The roots still give A\fa{A} and C\fb{C}. The B\fb{B} term has both x\fa{x} and x−1\fb{x-1} as factors, so it's 00 at both roots, and we use x=2x = 2 for it.
x+1\displaystyle x + 1 =A(x−1)2+Bx(x−1)+Cx\displaystyle = \fa{A}\fb{(x-1)^2} + \fb{B}\fa{x}(\fb{x-1}) + \fb{C}\fa{x}
x=0:A=1\displaystyle {x = 0:\quad \fa{A = 1}}
x=1:C=2\displaystyle {x = 1:\quad \fb{C = 2}}
x=2:  3=1+2B+4→B=−1\displaystyle {x = 2:\ \ 3 = 1 + 2\fb{B} + 4 \to \fb{B = -1}}
Integrate, with the power rule for the last pieceThe first two pieces give natural logs. In 2(x−1)−2\fb{2(x-1)^{-2}} the exponent isn't −1-1, so the last piece isn't a log.
∫2(x−1)2 dx\displaystyle \int \fb{\frac{2}{(x-1)^2}}\,dx =∫2(x−1)−2 dx\displaystyle = \int \fb{2(x-1)^{-2}}\,dx =−2x−1\displaystyle = \fb{-\frac{2}{x-1}}
∫x+1x(x−1)2 dx\displaystyle \int \frac{x+1}{x(x-1)^2}\,dx =ln⁡∣x∣−ln⁡∣x−1∣−2x−1+C\displaystyle = \fa{\ln|x|} - \fb{\ln|x-1|} - \fb{\frac{2}{x-1}} + C
4

When a quadratic factor doesn't factor

Let's find the integral of 2x2+2x+4x3+4x\frac{2x^2+2x+4}{x^3+4x}. Factoring the denominator gives x(x2+4)\fa{x}(\fb{x^2+4}). But x2x^2 is never negative, so x2+4\fb{x^2+4} is always at least 44. It's never 00, so it has no real roots, and we can't factor it down into linear factors.

x3+4x=x(x2+4)\displaystyle {x^3 + 4x = \fa{x}(\fb{x^2+4})}
x2+4≥4\displaystyle {\fb{x^2+4} \ge 4}

As with the repeated factor, a denominator of degree 33 needs three unknowns. The piece Ax\fa{\frac{A}{x}} gives us one unknown. A constant over x2+4\fb{x^2+4} would give only two unknowns, too few to match the three coefficients of 2x2+2x+42x^2 + 2x + 4, so the piece over x2+4\fb{x^2+4} gets Bx+C\fb{Bx+C} on top.

2x2+2x+4x(x2+4)\displaystyle \frac{2x^2+2x+4}{\fa{x}(\fb{x^2+4})} =Ax+Bx+Cx2+4\displaystyle = \fa{\frac{A}{x}} + \fb{\frac{Bx+C}{x^2+4}}
Evaluate ∫2x2+2x+4x3+4x dx\displaystyle\int \frac{2x^2+2x+4}{x^3+4x}\,dx
∫2x2+2x+4x3+4x dx\displaystyle \int \frac{2x^2+2x+4}{x^3+4x}\,dx =  ?\displaystyle = \;?
Text solution
Find A\fa{A} at x=0x = 0After clearing the fractions, the (Bx+C)x(\fb{Bx+C})\fa{x} term is 00 at x=0x = 0.
2x2+2x+4\displaystyle 2x^2 + 2x + 4 =A(x2+4)+(Bx+C)x\displaystyle = \fa{A}(\fb{x^2+4}) + (\fb{Bx+C})\fa{x}
x=0:4=4A  →  A=1\displaystyle {x = 0:\quad 4 = \fb{4}\fa{A} \;\to\; \fa{A = 1}}
Match coefficients for B\fb{B} and C\fb{C}The quadratic factor has no real root to plug in. Both sides are the same polynomial, so we expand the right side and match each power of xx.
A(x2+4)+(Bx+C)x\displaystyle \fa{A}(\fb{x^2+4}) + (\fb{Bx+C})\fa{x} =(A+B)x2+Cx+4A\displaystyle = (\fa{A}+\fb{B})x^2 + \fb{C}x + 4\fa{A}
x2:2=A+B  →  B=1\displaystyle {x^2:\quad 2 = \fa{A} + \fb{B} \;\to\; \fb{B = 1}}
x:2=C\displaystyle {x:\quad 2 = \fb{C}}
Split the top of x+2x2+4\fb{\frac{x+2}{x^2+4}}The xx part integrates to a natural log with u=x2+4u = x^2 + 4. The number part integrates to an arctan, from x=2tan⁡θx = 2\tan\theta.
∫xx2+4 dx\displaystyle \int \frac{x}{x^2+4}\,dx =12ln⁡(x2+4)\displaystyle = \frac12\ln(x^2+4)
∫2x2+4 dx\displaystyle \int \frac{2}{x^2+4}\,dx =arctan⁡x2\displaystyle = \arctan\frac{x}{2}
∫2x2+2x+4x3+4x dx\displaystyle \int \frac{2x^2+2x+4}{x^3+4x}\,dx =ln⁡∣x∣+12ln⁡(x2+4)+arctan⁡x2+C\displaystyle = \fa{\ln|x|} + \fb{\frac12\ln(x^2+4) + \arctan\frac{x}{2}} + C
5

When the degree of the numerator is at least the degree of the denominator

Let's find the integral of x3−3x+1x2−x−2\frac{x^3-3x+1}{x^2-x-2}. The denominator factors into (x−2)(x+1)(\fa{x-2})(\fb{x+1}), so we might try splitting the fraction directly into pieces over x−2\fa{x-2} and x+1\fb{x+1}. But when we add those two fractions, the numerator has degree at most 11. It can never equal x3−3x+1x^3 - 3x + 1, which has degree 33.

x2−x−2\displaystyle x^2 - x - 2 =(x−2)(x+1)\displaystyle = (\fa{x-2})(\fb{x+1})
Ax−2+Bx+1\displaystyle \fa{\frac{A}{x-2}} + \fb{\frac{B}{x+1}} =A(x+1)+B(x−2)(x−2)(x+1)\displaystyle = \frac{\fa{A}(\fb{x+1}) + \fb{B}(\fa{x-2})}{(\fa{x-2})(\fb{x+1})}

Just as we write 73\frac73 as 2+132 + \frac13, we can use polynomial long division to pull out the polynomial part first. Divide the numerator's highest-power term by x2x^2 to get the next term of the quotient. Multiply that term by x2−x−2x^2 - x - 2, subtract the result from the numerator, and repeat with what's left.

x3÷x2=x\displaystyle {x^3 \div x^2 = x}
x2÷x2=1\displaystyle {x^2 \div x^2 = 1}
x3−3x+1\displaystyle x^3 - 3x + 1 =(x+1)(x2−x−2)+3\displaystyle = (x+1)(x^2-x-2) + 3

The remainder 33 has degree 00, smaller than the denominator's degree of 22, so the remainder fraction is the part we split into pieces.

Evaluate ∫x3−3x+1x2−x−2 dx\int \frac{x^3-3x+1}{x^2-x-2}\,dx
∫x3−3x+1x2−x−2 dx\displaystyle \int \frac{x^3-3x+1}{x^2-x-2}\,dx =  ?\displaystyle = \;?
Text solution
Split the remainder fractionClear the fractions and plug in the roots, as before.
x3−3x+1x2−x−2\displaystyle \frac{x^3-3x+1}{x^2-x-2} =x+1+3(x−2)(x+1)\displaystyle = x + 1 + \frac{3}{(\fa{x-2})(\fb{x+1})}
3\displaystyle 3 =A(x+1)+B(x−2)\displaystyle = \fa{A}(\fb{x+1}) + \fb{B}(\fa{x-2})
x=2  →  A=1\displaystyle {x = 2 \;\to\; \fa{A = 1}}
x=−1  →  B=−1\displaystyle {x = -1 \;\to\; \fb{B = -1}}
Integrate each pieceThe polynomial part uses the power rule, and each fraction gives a natural log.
∫x3−3x+1x2−x−2 dx\displaystyle \int \frac{x^3-3x+1}{x^2-x-2}\,dx =∫(x+1+1x−2−1x+1)dx\displaystyle = \int \Big(x + 1 + \fa{\frac{1}{x-2}} - \fb{\frac{1}{x+1}}\Big)dx
=x22+x+ln⁡∣x−2∣−ln⁡∣x+1∣+C\displaystyle = \frac{x^2}{2} + x + \fa{\ln|x-2|} - \fb{\ln|x+1|} + C

Summary

Check for u-substitution first
u=x2+x−2du=(2x+1) dx\displaystyle \begin{aligned} u &= x^2+x-2 \\ du &= (2x+1)\,dx \end{aligned}
∫2x+1x2+x−2 dx\displaystyle \int \frac{2x+1}{x^2+x-2}\,dx =∫duu\displaystyle = \int \frac{du}{u} =ln⁡∣x2+x−2∣+C\displaystyle = \ln|x^2+x-2| + C

Before using partial fractions, check whether a substitution works. If the numerator is a constant multiple of the denominator's derivative, let uu be the denominator, so the numerator times dxdx is a constant times dudu, and the integral is a natural log.

When the degree of the numerator is at least the degree of the denominator
x3−3x+1x2−x−2\displaystyle \frac{x^3-3x+1}{x^2-x-2} =x+1+3x2−x−2\displaystyle = x + 1 + \frac{3}{x^2-x-2}

If the degree of the numerator is greater than or equal to the degree of the denominator, divide first. Long division gives a polynomial plus a remainder fraction whose numerator has a smaller degree than the denominator, and you can split that fraction into partial fractions.

Setting up the pieces
FactorPieces
x−ax - aAx−a\dfrac{A}{x-a}
x2x^2Ax+Bx2\dfrac{A}{x} + \dfrac{B}{x^2}
(x−a)2(x-a)^2Ax−a+B(x−a)2\dfrac{A}{x-a} + \dfrac{B}{(x-a)^2}
x2+4x^2 + 4Bx+Cx2+4\dfrac{Bx+C}{x^2+4}
x2−9=(x−3)(x+3)\displaystyle {x^2 - 9 = (x-3)(x+3)}
x2+4≥4\displaystyle {x^2 + 4 \ge 4}

Each linear factor x−ax - a gets a constant numerator, Ax−a\frac{A}{x-a}. When a linear factor is squared, like (x−a)2(x-a)^2, give it two terms, one for the first power and one for the second, giving Ax−a+B(x−a)2\frac{A}{x-a} + \frac{B}{(x-a)^2}. A factor like x2x^2 works the exact same way, giving Ax+Bx2\frac{A}{x} + \frac{B}{x^2}. A quadratic factor with no real roots gets a linear numerator, Bx+Cx2+4\frac{Bx+C}{x^2+4}. The total number of unknown constants always matches the degree of the denominator. If a quadratic factors, like x2−9=(x−3)(x+3)x^2 - 9 = (x-3)(x+3), split it into linear pieces rather than keeping it together.

Finding the numerators
3=A(x+2)+B(x−1)\displaystyle {3 = \fa{A}(\fb{x+2}) + \fb{B}(\fa{x-1})}
x=1  →  A=1\displaystyle {x = 1 \;\to\; \fa{A = 1}}
x=−2  →  B=−1\displaystyle {x = -2 \;\to\; \fb{B = -1}}

Multiply both sides by the factored denominator to clear the fractions. The equation that's left holds for every xx, so plug in the root of each linear factor to make the other terms zero and find that factor's numerator. To find any constants that roots do not give, plug in other values of xx, or expand and match the coefficients of each power of xx on both sides.

Integrating each piece
∫Ax−a dx=Aln⁡∣x−a∣\displaystyle {\int \frac{A}{x-a}\,dx = A\ln|x-a|}
∫B(x−a)2 dx=−Bx−a\displaystyle {\int \frac{B}{(x-a)^2}\,dx = -\frac{B}{x-a}}
∫x+2x2+4 dx=12ln⁡(x2+4)+arctan⁡x2\displaystyle {\int \frac{x+2}{x^2+4}\,dx = \frac12\ln(x^2+4) + \arctan\frac{x}{2}}
∫x+2x2+4 dx=12ln⁡(x2+4)+arctan⁡x2\displaystyle \begin{aligned} &\int \frac{x+2}{x^2+4}\,dx \\ &= \frac12\ln(x^2+4) + \arctan\frac{x}{2} \end{aligned}
∫dxx2+a2=1aarctan⁡xa\displaystyle {\int \frac{dx}{x^2+a^2} = \frac1a\arctan\frac{x}{a}}
x2+2x+5=(x+1)2+4\displaystyle {x^2 + 2x + 5 = (x+1)^2 + 4}

Pieces over a linear factor integrate to natural logs, and pieces over a squared factor integrate with the power rule, not logs. For a quadratic factor with no real roots, split the numerator into an xx part that integrates to a natural log with u-substitution, and a number part that integrates to an arctan. If the quadratic has an xx term, like x2+2x+5x^2 + 2x + 5, complete the square first. Then split the numerator into a multiple of the derivative, 2x+22x + 2, plus a constant.

6

Practice

Enter exact values. You can write logarithms in any equivalent form.

1
Evaluate ∫5x−4x2−x−2 dx\displaystyle\int \frac{5x-4}{x^2-x-2}\,dx.

How does x2−x−2x^2 - x - 2 factor?

After multiplying through by the denominator, which xx makes every term but one 00?

If you got 2ln⁡∣x+1∣+3ln⁡∣x−2∣+C2\ln|x+1| + 3\ln|x-2| + C Check which number goes over which factor. Plugging in x=2x = 2 isolates AA, so A=2A = 2 goes over x−2x - 2.

Set up the partial fractionsThe top isn't a constant multiple of 2x−12x - 1, the derivative of the bottom, so we factor the denominator and set up partial fractions.
x2−x−2=(x−2)(x+1)\displaystyle {x^2 - x - 2 = (\fa{x-2})(\fb{x+1})}
5x−4=A(x+1)+B(x−2)\displaystyle {5x - 4 = \fa{A}(\fb{x+1}) + \fb{B}(\fa{x-2})}
Find the constantsPlug in the roots x=2x = 2 and x=−1x = -1 to isolate A\fa{A} and B\fb{B}.
x=2:6=3A  →  A=2\displaystyle {x = 2:\quad 6 = \fb{3}\fa{A} \;\to\; \fa{A = 2}}
x=−1:−9=−3B  →  B=3\displaystyle {x = -1:\quad -9 = \fa{-3}\fb{B} \;\to\; \fb{B = 3}}
Integrate each piece to get natural logs.
∫[2x−2+3x+1] dx\displaystyle \int \Big[\fa{\frac{2}{x-2}} + \fb{\frac{3}{x+1}}\Big]\,dx =2ln⁡∣x−2∣+3ln⁡∣x+1∣+C\displaystyle = \fa{2\ln|x-2|} + \fb{3\ln|x+1|} + C
2
Evaluate ∫3x+2x3+x2 dx\displaystyle\int \frac{3x+2}{x^3+x^2}\,dx.

Factor x3+x2x^3 + x^2. Its degree is 33, so how many unknown constants do you need?

If you got −2x−ln⁡∣x+1∣+C-\dfrac{2}{x} - \ln|x+1| + C The denominator has degree 33, so we need three unknowns. A repeated factor like x2x^2 needs both an Ax\frac{A}{x} piece and a Bx2\frac{B}{x^2} piece.

Set up the partial fractionsSince x2\fa{x^2} is a squared factor, it needs a piece for x\fa{x} and a piece for x2\fa{x^2}.
x3+x2\displaystyle x^3 + x^2 =x2(x+1)\displaystyle = \fa{x^2}(\fb{x+1})
3x+2x2(x+1)\displaystyle \frac{3x+2}{\fa{x^2}(\fb{x+1})} =Ax+Bx2+Cx+1\displaystyle = \fa{\frac{A}{x}} + \fa{\frac{B}{x^2}} + \fb{\frac{C}{x+1}}
Find the constantsPlug in the roots x=0x = 0 and x=−1x = -1 first, then use any other easy value for xx to find A\fa{A}.
3x+2\displaystyle 3x + 2 =Ax(x+1)+B(x+1)+Cx2\displaystyle = \fa{A}\fa{x}(\fb{x+1}) + \fa{B}(\fb{x+1}) + \fb{C}\fa{x^2}
x=0:B=2\displaystyle {x = 0:\quad \fa{B = 2}}
x=−1:C=−1\displaystyle {x = -1:\quad \fb{C = -1}}
x=1:5=2A+4−1  →  A=1\displaystyle {x = 1:\quad 5 = 2\fa{A} + 4 - 1 \;\to\; \fa{A = 1}}
Use the power rule on 2x2=2x−2\fa{\frac{2}{x^2} = 2x^{-2}}, and integrate the other two terms to natural logs.
∫[1x+2x2−1x+1] dx\displaystyle \int \Big[\fa{\frac{1}{x}} + \fa{\frac{2}{x^2}} - \fb{\frac{1}{x+1}}\Big]\,dx =ln⁡∣x∣−2x−ln⁡∣x+1∣+C\displaystyle = \fa{\ln|x|} - \fa{\frac{2}{x}} - \fb{\ln|x+1|} + C
3
Evaluate ∫x2+3x+6(x−1)(x2+9) dx\displaystyle\int \frac{x^2+3x+6}{(x-1)(x^2+9)}\,dx.

Since x2+9x^2 + 9 has no real roots, what goes on top of it?

For ∫dxx2+9\int \frac{dx}{x^2+9}, let x=3tan⁡θx = 3\tan\theta. What are dxdx and x2+9x^2 + 9?

If you got ln⁡∣x−1∣+3arctan⁡x3+C\ln|x-1| + 3\arctan\frac{x}{3} + C Check the constant in front of the arctangent. Integrating 1x2+9\frac{1}{x^2+9} brings in a factor of 13\frac13, and multiplying that by the 33 on top gives 11, not 33.

Set up the partial fractionsThe denominator has degree 33, so we need three unknowns. Ax−1\fa{\frac{A}{x-1}} has one unknown, so use Bx+C\fb{Bx+C} over x2+9\fb{x^2+9} for the other two.
x2+3x+6(x−1)(x2+9)\displaystyle \frac{x^2+3x+6}{(\fa{x-1})(\fb{x^2+9})} =Ax−1+Bx+Cx2+9\displaystyle = \fa{\frac{A}{x-1}} + \fb{\frac{Bx+C}{x^2+9}}
x2+3x+6\displaystyle x^2 + 3x + 6 =A(x2+9)+(Bx+C)(x−1)\displaystyle = \fa{A}(\fb{x^2+9}) + (\fb{Bx+C})(\fa{x-1})
Find the constantsPlug in x=1x = 1 to find A\fa{A}, then match the x2x^2 coefficients to find B\fb{B}, and plug in x=0x = 0 to find C\fb{C}.
x=1:10=10A  →  A=1\displaystyle {x = 1:\quad 10 = \fb{10}\fa{A} \;\to\; \fa{A = 1}}
x2 terms:1=A+B  →  B=0\displaystyle {x^2\text{ terms}:\quad 1 = \fa{A} + \fb{B} \;\to\; \fb{B = 0}}
x=0:6=9A−C  →  C=3\displaystyle {x = 0:\quad 6 = 9\fa{A} - \fb{C} \;\to\; \fb{C = 3}}
Integrate each pieceThe quadratic piece gives an arctangent with an extra factor of 13\frac13, which cancels with the 33 on top.
x=3tan⁡θ:∫dxx2+9\displaystyle {x = 3\tan\theta:}\quad \int \frac{dx}{x^2+9} =∫3sec⁡2θ dθ9sec⁡2θ\displaystyle = \int \frac{3\sec^2\theta\,d\theta}{9\sec^2\theta} =13θ\displaystyle = \frac13\theta =13arctan⁡x3\displaystyle = \frac13\arctan\frac{x}{3}
∫[1x−1+3x2+9] dx\displaystyle \int \Big[\fa{\frac{1}{x-1}} + \fb{\frac{3}{x^2+9}}\Big]\,dx =ln⁡∣x−1∣+arctan⁡x3+C\displaystyle = \fa{\ln|x-1|} + \fb{\arctan\frac{x}{3}} + C
4
Evaluate ∫x2+x+1x2+x−2 dx\displaystyle\int \frac{x^2+x+1}{x^2+x-2}\,dx.

What are the degrees of x2+x+1x^2 + x + 1 and x2+x−2x^2 + x - 2?

If you got ln⁡∣x−1∣−ln⁡∣x+2∣+C\ln|x-1| - \ln|x+2| + C Check the degrees before splitting into pieces. The top and bottom both have degree 22, so divide first.

Divide firstThe numerator and denominator have the same degree, so we divide before setting up partial fractions. Here the division takes one step, since the top is the bottom plus 33.
x2+x+1\displaystyle x^2 + x + 1 =(x2+x−2)+3\displaystyle = (x^2 + x - 2) + 3
x2+x+1x2+x−2\displaystyle \frac{x^2+x+1}{x^2+x-2} =1+3x2+x−2\displaystyle = 1 + \frac{3}{x^2+x-2}
Factor the denominator as (x−1)(x+2)(\fa{x-1})(\fb{x+2}) to split 3x2+x−2\frac{3}{x^2+x-2} into linear pieces.
3x2+x−2\displaystyle \frac{3}{x^2+x-2} =1x−1−1x+2\displaystyle = \fa{\frac{1}{x-1}} - \fb{\frac{1}{x+2}}
Integrate all three terms, remembering the 11 from dividing.
∫[1+1x−1−1x+2] dx\displaystyle \int \Big[1 + \fa{\frac{1}{x-1}} - \fb{\frac{1}{x+2}}\Big]\,dx =x+ln⁡∣x−1∣−ln⁡∣x+2∣+C\displaystyle = x + \fa{\ln|x-1|} - \fb{\ln|x+2|} + C
5
Evaluate ∫2x+3x2+3x−4 dx\displaystyle\int \frac{2x+3}{x^2+3x-4}\,dx.

What is the derivative of x2+3x−4x^2 + 3x - 4? Compare it with the numerator.

The top is the derivative of the bottom, so a direct substitution gives the integral in one step.
u=x2+3x−4\displaystyle {u = x^2 + 3x - 4}
du=(2x+3) dx\displaystyle {du = (2x+3)\,dx}
∫2x+3x2+3x−4 dx\displaystyle \int \frac{2x+3}{x^2+3x-4}\,dx =∫duu\displaystyle = \int \frac{du}{u} =ln⁡∣x2+3x−4∣+C\displaystyle = \ln|x^2+3x-4| + C
6
Which is the form of the partial fraction decomposition of x2+1(x−2)2(x2+4)\dfrac{x^2+1}{(x-2)^2(x^2+4)}?

The denominator (x−2)2(x2+4)(x - 2)^2(x^2 + 4) has degree 44. How many unknown constants do you need?

If you got A(x−2)2+Cx+Dx2+4\dfrac{A}{(x-2)^2} + \dfrac{Cx+D}{x^2+4} Check the repeated factor (x−2)2(x - 2)^2. It needs a piece for x−2x - 2 as well as (x−2)2(x - 2)^2.

If you got Ax−2+B(x−2)2+Cx2+4\dfrac{A}{x-2} + \dfrac{B}{(x-2)^2} + \dfrac{C}{x^2+4} Check the numerator over x2+4x^2 + 4. Because x2+4x^2 + 4 has no real roots, we need a numerator of the form Cx+DCx + D. With only CC, you have 33 unknowns for a degree 44 denominator.

If you got Ax−2+Bx+2+Cx+Dx2+4\dfrac{A}{x-2} + \dfrac{B}{x+2} + \dfrac{Cx+D}{x^2+4} Check the factor (x−2)2(x - 2)^2. It's (x−2)(x−2)(x - 2)(x - 2), not (x−2)(x+2)(x - 2)(x + 2).

The repeated factor (x−2)2\fa{(x-2)^2} gets a term for each power, and the quadratic x2+4\fb{x^2+4} gets a linear numerator.
(x−2)2:Ax−2+B(x−2)2\displaystyle {\fa{(x-2)^2}:\quad \fa{\frac{A}{x-2}} + \fa{\frac{B}{(x-2)^2}}}
x2+4:Cx+Dx2+4\displaystyle {\fb{x^2+4}:\quad \fb{\frac{Cx+D}{x^2+4}}}
The denominator has degree 44, which matches the 44 unknown constants A\fa{A}, B\fa{B}, C\fb{C}, and D\fb{D}.
(x−2)2(x2+4): degree 4  →  A, B, C, D\displaystyle {\fa{(x-2)^2}(\fb{x^2+4}):\ \text{degree } 4 \;\to\; \fa{A},\ \fa{B},\ \fb{C},\ \fb{D}}
7
Evaluate ∫exe2x+3ex+2 dx\displaystyle\int \frac{e^x}{e^{2x}+3e^x+2}\,dx.

Write e2xe^{2x} as (ex)2(e^x)^2. What substitution turns the denominator into a quadratic?

If you got ln⁡∣u+1∣−ln⁡∣u+2∣+C\ln|u+1| - \ln|u+2| + C The original integral was in terms of xx, so substitute u=exu = e^x back into your answer.

Substitute u=exu = e^xLetting uu be the whole denominator doesn't work, since du=ex(2ex+3) dxdu = e^x(2e^x + 3)\,dx and the integral has no 2ex+32e^x + 3. But we have ex dxe^x\,dx in the integral and the bottom is a quadratic in exe^x, so let u=exu = e^x.
u=ex\displaystyle {u = e^x}
du=ex dx\displaystyle {du = e^x\,dx}
e2x=u2\displaystyle {e^{2x} = u^2}
∫exe2x+3ex+2 dx\displaystyle \int \frac{e^x}{e^{2x}+3e^x+2}\,dx =∫duu2+3u+2\displaystyle = \int \frac{du}{u^2+3u+2} =∫du(u+1)(u+2)\displaystyle = \int \frac{du}{(\fa{u+1})(\fb{u+2})}
Clear denominators and plug in the roots u=−1u = -1 and u=−2u = -2 to find A\fa{A} and B\fb{B}.
1\displaystyle 1 =A(u+2)+B(u+1)\displaystyle = \fa{A}(\fb{u+2}) + \fb{B}(\fa{u+1})
u=−1  →  A=1\displaystyle {u = -1 \;\to\; \fa{A = 1}}
u=−2  →  B=−1\displaystyle {u = -2 \;\to\; \fb{B = -1}}
Integrate in uu, then substitute back u=exu = e^x. Because ex+1e^x + 1 and ex+2e^x + 2 are always positive, we don't need absolute value bars.
∫[1u+1−1u+2] du\displaystyle \int \Big[\fa{\frac{1}{u+1}} - \fb{\frac{1}{u+2}}\Big]\,du =ln⁡∣u+1∣−ln⁡∣u+2∣+C\displaystyle = \fa{\ln|u+1|} - \fb{\ln|u+2|} + C =ln⁡(ex+1)−ln⁡(ex+2)+C\displaystyle = \fa{\ln(e^x+1)} - \fb{\ln(e^x+2)} + C
8
The region under y=1x2+3x+2y = \dfrac{1}{\sqrt{x^2+3x+2}} from x=0x = 0 to x=1x = 1 is rotated about the xx-axis. Find the volume of the solid. (Challenge)

By the disk method, V=π∫abr2 dxV = \pi\int_a^b r^2\,dx. What is r2r^2 when r=1x2+3x+2r = \frac{1}{\sqrt{x^2+3x+2}}?

Set up the volume integralRotating about the xx-axis gives disks with area πr2\pi r^2, and squaring rr removes the square root.
r\displaystyle r =1x2+3x+2  →  r2\displaystyle = \frac{1}{\sqrt{x^2+3x+2}} \;\to\; r^2 =1x2+3x+2\displaystyle = \frac{1}{x^2+3x+2} =1(x+1)(x+2)\displaystyle = \frac{1}{(\fa{x+1})(\fb{x+2})}
V\displaystyle V =π∫01dx(x+1)(x+2)\displaystyle = \pi\int_0^1 \frac{dx}{(\fa{x+1})(\fb{x+2})}
Split into partial fractionsClear denominators and plug in x=−1x = -1 and x=−2x = -2 to solve for A\fa{A} and B\fb{B}.
1\displaystyle 1 =A(x+2)+B(x+1)\displaystyle = \fa{A}(\fb{x+2}) + \fb{B}(\fa{x+1})
x=−1  →  A=1\displaystyle {x = -1 \;\to\; \fa{A = 1}}
x=−2  →  B=−1\displaystyle {x = -2 \;\to\; \fb{B = -1}}
Integrate and evaluateAt the lower bound x=0x = 0, the antiderivative gives −ln⁡2-\ln 2, and subtracting it adds ln⁡2\ln 2.
V\displaystyle V =π[ln⁡(x+1)−ln⁡(x+2)]01\displaystyle = \pi\Big[\fa{\ln(x+1)} - \fb{\ln(x+2)}\Big]_0^1 =π[(ln⁡2−ln⁡3)−(ln⁡1−ln⁡2)]\displaystyle = \pi\big[(\ln 2 - \ln 3) - (\ln 1 - \ln 2)\big] =π(2ln⁡2−ln⁡3)\displaystyle = \pi(2\ln 2 - \ln 3) =πln⁡43\displaystyle = \pi\ln\frac43
9
Evaluate ∫x+5x2+2x+5 dx\displaystyle\int \frac{x+5}{x^2+2x+5}\,dx. (Challenge)

The derivative of x2+2x+5x^2 + 2x + 5 is 2x+22x + 2. How can you split x+5x + 5 to match that?

Complete the square on x2+2x+5x^2 + 2x + 5.

If you got 12ln⁡(x2+2x+5)+4arctan⁡x+12+C\frac12\ln(x^2+2x+5) + 4\arctan\dfrac{x+1}{2} + C Check the integral of 1(x+1)2+4\frac{1}{(x+1)^2+4}. It's like 1x2+4\frac{1}{x^2+4} with x+1x + 1 in place of xx, so it brings in a factor of 12\frac12.

Split the topCompleting the square gives x2+2x+5=(x+1)2+4x^2 + 2x + 5 = (x + 1)^2 + 4. This is always at least 44, so it has no real roots. Like x2+4x^2 + 4, it stays as one factor. The derivative of the bottom is 2x+22x + 2, which is 2(x+1)2(x + 1), so we split x+5x + 5 into (x+1)+4(x + 1) + 4. The x+1x + 1 part gives a log, and the 44 gives an arctangent.
(x2+2x+5)′\displaystyle (x^2+2x+5)' =2x+2,x+5\displaystyle = 2x + 2, \qquad x + 5 =(x+1)+4\displaystyle = (x+1) + 4
Integrate the log partThe x+1x + 1 part integrates to a natural log using u=x2+2x+5u = x^2 + 2x + 5.
u\displaystyle u =x2+2x+5, du\displaystyle = x^2+2x+5,\ du =(2x+2) dx:∫x+1x2+2x+5 dx\displaystyle = (2x+2)\,dx:\quad \int \frac{x+1}{x^2+2x+5}\,dx =12∫duu\displaystyle = \frac12\int \frac{du}{u} =12ln⁡(x2+2x+5)\displaystyle = \frac12\ln(x^2+2x+5)
Integrate the arctangent partWith the denominator written as (x+1)2+4(x + 1)^2 + 4, the integral is like ∫dxx2+4\int \frac{dx}{x^2+4} with x+1x + 1 in place of xx, so it brings in a factor of 12\frac12.
x2+2x+5\displaystyle x^2 + 2x + 5 =(x+1)2+4,∫4(x+1)2+4 dx\displaystyle = (x+1)^2 + 4, \qquad \int \frac{4}{(x+1)^2+4}\,dx =4⋅12arctan⁡x+12\displaystyle = 4\cdot\frac12\arctan\frac{x+1}{2} =2arctan⁡x+12\displaystyle = 2\arctan\frac{x+1}{2}
Now combine the log part and the arctangent part.
∫x+5x2+2x+5 dx\displaystyle \int \frac{x+5}{x^2+2x+5}\,dx =12ln⁡(x2+2x+5)+2arctan⁡x+12+C\displaystyle = \frac12\ln(x^2+2x+5) + 2\arctan\frac{x+1}{2} + C
10
Evaluate ∫x1+x dx\displaystyle\int \frac{\sqrt{x}}{1+x}\,dx.

What substitution turns x\sqrt{x} into a single letter? Integration by Parts used the same one.

Once the integral is a fraction of polynomials, compare the degree of the top with the degree of the bottom.

Substitute w=xw = \sqrt{x}The square root is what keeps this from being a fraction of polynomials, so let w=xw = \sqrt{x}. Then x=w2x = w^2 and dx=2w dwdx = 2w\,dw.
w=x\displaystyle {w = \sqrt{x}}
x=w2\displaystyle {x = w^2}
dx=2w dw\displaystyle {dx = 2w\,dw}
∫x1+x dx\displaystyle \int \frac{\sqrt{x}}{1+x}\,dx =∫w⋅2w1+w2 dw\displaystyle = \int \frac{w\cdot 2w}{1+w^2}\,dw =2∫w21+w2 dw\displaystyle = 2\int \frac{w^2}{1+w^2}\,dw
Divide firstThe top and bottom both have degree 22, so we divide first. Writing w2w^2 as (1+w2)−1(1 + w^2) - 1 does it in one step. The 11 integrates to ww, and 11+w2\frac{1}{1+w^2} integrates to arctan⁡w\arctan w.
w21+w2\displaystyle \frac{w^2}{1+w^2} =(1+w2)−11+w2\displaystyle = \frac{(1+w^2) - 1}{1+w^2} =1−11+w2\displaystyle = 1 - \frac{1}{1+w^2}
2∫(1−11+w2)dw\displaystyle 2\int \Big(1 - \frac{1}{1+w^2}\Big)dw =2w−2arctan⁡w+C\displaystyle = 2w - 2\arctan w + C =2x−2arctan⁡x+C\displaystyle = 2\sqrt{x} - 2\arctan\sqrt{x} + C
11
For each integral, would you use u-substitution, integration by parts, a trigonometric integral, trigonometric substitution or partial fractions? (a) ∫xcos⁡x dx\int x\cos x\,dx, (b) ∫sin⁡3x dx\int \sin^3 x\,dx, (c) ∫dxx21−x2\displaystyle\int \frac{dx}{x^2\sqrt{1-x^2}}, (d) ∫x+5x2+x−2 dx\displaystyle\int \frac{x+5}{x^2+x-2}\,dx.
(a)    ∫xcos⁡x dx\text{(a)}\;\; \int x\cos x\,dx

Check each one for a u-substitution first. Is one part of the fraction or product a constant times the derivative of another part?

Which part of each integral suggests a method to use? In (c), look at the square root. In (d), notice that the denominator factors.

(b)    ∫sin⁡3x dx\text{(b)}\;\; \int \sin^3 x\,dx
(c)    ∫dxx21−x2\text{(c)}\;\; \displaystyle\int \frac{dx}{x^2\sqrt{1-x^2}}
(d)    ∫x+5x2+x−2 dx\text{(d)}\;\; \displaystyle\int \frac{x+5}{x^2+x-2}\,dx
U-substitution doesn't work directly on any of these integrals as written. In (d), for example, the derivative of x2+x−2x^2 + x - 2 is 2x+12x + 1, and x+5x + 5 isn't a multiple of it. So we need to choose another method for each integral.
(a) Integration by partsxcos⁡xx\cos x is a product, and differentiating xx turns it into 11, while cos⁡x\cos x is easy to integrate.
∫xcos⁡x dx\displaystyle \int x\cos x\,dx =xsin⁡x−∫sin⁡x dx\displaystyle = x\sin x - \int \sin x\,dx =xsin⁡x+cos⁡x+C\displaystyle = x\sin x + \cos x + C
(b) A trigonometric integralThe power of sine is odd, so we keep one sin⁡x\sin x for dudu, write sin⁡2x\sin^2 x as 1−cos⁡2x1 - \cos^2 x, and let u=cos⁡xu = \cos x.
∫sin⁡3x dx\displaystyle \int \sin^3 x\,dx =∫(1−cos⁡2x)sin⁡x dx\displaystyle = \int (1-\cos^2 x)\sin x\,dx =−∫(1−u2) du\displaystyle = -\int (1-u^2)\,du =−cos⁡x+cos⁡3x3+C\displaystyle = -\cos x + \frac{\cos^3 x}{3} + C
(c) Trigonometric substitutionThe square root of 1−x21 - x^2 is what's in the way, and x=sin⁡θx = \sin\theta turns it into cos⁡θ\cos\theta, with dx=cos⁡θ dθdx = \cos\theta\,d\theta.
∫dxx21−x2\displaystyle \int \frac{dx}{x^2\sqrt{1-x^2}} =∫cos⁡θ dθsin⁡2θcos⁡θ\displaystyle = \int \frac{\cos\theta\,d\theta}{\sin^2\theta\cos\theta} =∫csc⁡2θ dθ\displaystyle = \int \csc^2\theta\,d\theta =−cot⁡θ+C\displaystyle = -\cot\theta + C =−1−x2x+C\displaystyle = -\frac{\sqrt{1-x^2}}{x} + C
(d) Partial fractionsThe denominator factors into (x−1)(x+2)(\fa{x-1})(\fb{x+2}), so we split the fraction into pieces over each factor.
x+5\displaystyle x + 5 =A(x+2)+B(x−1)\displaystyle = \fa{A}(\fb{x+2}) + \fb{B}(\fa{x-1})
x=1  →  A=2\displaystyle {x = 1 \;\to\; \fa{A = 2}}
x=−2  →  B=−1\displaystyle {x = -2 \;\to\; \fb{B = -1}}
∫x+5x2+x−2 dx\displaystyle \int \frac{x+5}{x^2+x-2}\,dx =2ln⁡∣x−1∣−ln⁡∣x+2∣+C\displaystyle = \fa{2\ln|x-1|} - \fb{\ln|x+2|} + C