Decompose (3*x + 5)/((x + 1)(x + 2)) into partial fractions.
Note
Because the denominator is a product of two different linear factors, split the fraction into two simpler fractions, one over each factor. Assume A/(x+1) + B/(x+2). Combining gives [A(x+2)+B(x+1)]/[(x+1)(x+2)]. Matching coefficients gives A=2, B=1. In practice, compare the coefficient of x and the constant term on both sides to find A and B. After A and B are found, place them above their matching denominators to get the partial fraction form.
