\begin{equation*}
\frac{x+2}{(x+1)(x-6)}
\end{equation*}
The partial fraction decomposition should write this as two fractions, each of which have only one of the two factors of the denominator.
\begin{equation*}
\frac{x+2}{(x+1)(x-6)} = \frac{a}{x-6} + \frac{b}{x+1}
\end{equation*}
The problem of partial fractions is to calculate the numerators \(a\) and \(b\text{.}\) This is the general technique: I write the desired form with unknown numerators. All linear factor (of multiplicity one) will have constant numerators (since all the pieces have to proper as well, and a linear denominator for a proper fraction means a constant numerator). After writing the desired form with unknown numerators, I’ll then simply construct the common denominator on the right side.
\begin{equation*}
\frac{x+2}{(x+1)(x-6)} = \frac{a}{x-6} + \frac{b}{x+1} =
\frac{a(x+1) + b(x-6)}{(x-6)(x+1)} = \frac{(a+b)x +
(a-6b)}{(x+1)(x-6)}
\end{equation*}
Taking the right side to common denominator makes the denominators the same. Since this is an equality, this means the numerators must also be the same. I write that fact as an equation.
\begin{equation*}
x+2 = (a+b)x + (a-6b)
\end{equation*}
Now this is the next general step: I compare coefficients in the equation of numerators. This will give a system of equations in the unknowns. In this case, the coefficient of \(x\) and the constant coefficient must be the same. I can write this as two equations.
\begin{align*}
1 \amp = a+b\\
2 \amp = a-6b
\end{align*}
I have to solve these two equations for \(a\) and \(b\text{.}\) I do this by isolating and replacing. (For students with linear algebra, know that the system in partial fractions will always be a linear system. Feel free to use the matrix techniques of linear algebra to solve these systems if you wish.) The first equation gives \(a = 1-b\text{,}\) which I substitute in the second equation to get \(2 = (1-b) -6b\) which is \(1 =
-7b\) or \(b = \frac{-1}{7}\text{.}\) The I substitute back to get \(a = 1-b = 1 - \frac{-1}{7} = \frac{8}{7}\text{.}\) Now I’ve sovled the systems and I know the unknowns from the numerators. I can now write the original partial fraction decomposition with these values in the numerators.
\begin{equation*}
\frac{x+2}{(x+1)(x-6)} = \frac{\frac{8}{7}}{x-6} +
\frac{\frac{-1}{7}}{x+1}
\end{equation*}
That’s the end of the process. The right side is the partial fraction composition: it is common denominator in reverse. The rational function is separated in a sum of the simplest possible fractions.