Partial Fraction Decomposition Calculator
Find partial fractions step by step
This online calculator will find the partial fraction decomposition of the rational function, with steps shown.
Solution
Your input: perform the partial fraction decomposition of $$$\frac{x}{\left(x + 1\right) \left(x + 2\right)}$$$
The form of the partial fraction decomposition is
$$\frac{x}{\left(x + 1\right) \left(x + 2\right)}=\frac{A}{x + 1}+\frac{B}{x + 2}$$
Write the right-hand side as a single fraction:
$$\frac{x}{\left(x + 1\right) \left(x + 2\right)}=\frac{\left(x + 1\right) B + \left(x + 2\right) A}{\left(x + 1\right) \left(x + 2\right)}$$
The denominators are equal, so we require the equality of the numerators:
$$x=\left(x + 1\right) B + \left(x + 2\right) A$$
Expand the right-hand side:
$$x=x A + x B + 2 A + B$$
Collect up the like terms:
$$x=x \left(A + B\right) + 2 A + B$$
The coefficients near the like terms should be equal, so the following system is obtained:
$$\begin{cases} A + B = 1\\2 A + B = 0 \end{cases}$$
Solving it (for steps, see system of equations calculator), we get that $$$A=-1$$$, $$$B=2$$$
Therefore,
$$\frac{x}{\left(x + 1\right) \left(x + 2\right)}=\frac{-1}{x + 1}+\frac{2}{x + 2}$$
Answer: $$$\frac{x}{\left(x + 1\right) \left(x + 2\right)}=\frac{-1}{x + 1}+\frac{2}{x + 2}$$$