13

Suppose I want to resolve $1/{(n(n+1))}$ into a sum of partial fractions. I solve this by letting $1/{(n(n+1))} = {a/n} + {b/(n+1)}$ and then solving for $a$ and $b$, which in this case gives $a=1$ and $b=-1$.

But I learnt about a shortcut method. It says suppose $1/{(n(n+1))} = {a/n} + {b/(n+1)}$, then find $a$ by finding the value which makes its denominator in the RHS equal to $0$ and computing the LHS with the $0$ term (or $a$'s denominator in RHS) removed so we get $a = {1/(0+1)} = 1$ [as $n=0$], and we get $b = {1/(-1)} = -1$ [as $n+1=0$].

Another example, if I am not clear, suppose $$\frac{1}{n(n+1)(n+2)} = \frac{a}{n} + \frac{b}{n+1} + \frac{c}{n+2};$$ then $$ \begin{eqnarray} a &=& \frac{1}{(0+1)(0+2)}=\frac{1}{2}, \\ b &=& \frac{1}{(-1)(-1+2)}=-1, \\ c &=& \frac{1}{(-2)(-2+1)}=\frac{1}{2}. \end{eqnarray} $$

Why does this shortcut method work?

Ram Keswani
  • 1,003
  • 6
    For future reference, this is frequently referred to as the "Heaviside cover-up method." – Micah Aug 04 '19 at 02:42
  • Related: https://math.stackexchange.com/questions/165118/how-does-partial-fraction-decomposition-avoid-division-by-zero, https://math.stackexchange.com/questions/1313454/is-this-a-valid-partial-fraction-decomposition – Hans Lundmark Aug 04 '19 at 13:27
  • A little bit off-topic, but there was also a technique called "partial partial fraction decomposition" which I remember being cool but which I'm struggling to find right now... – user541686 Aug 04 '19 at 21:02

4 Answers4

16

Just multiply the whole formula by the linear factor that you are setting to zero. It cancels on the left side and in exactly one term on the right side. in your second example with the factor $n+2$ this gives $$ \frac1{n(n+1)}=(n+2)\frac an+(n+2)\frac{b}{n+1}+c $$ Then set the linear factor to zero, that is, evaluate at its root and , giving exactly the procedure you describe. $$ \frac1{(-2)(-2+1)}=0\frac a{-2}+0\frac{b}{-2+1}+c $$ Note that this does not work if the factor has a higher multiplicity. There is an extension that works with truncated Taylor series, but this is more suitable for a computer implementation.

Lutz Lehmann
  • 126,666
  • 5
    +1 for the note about higher multiplicity. – John Hughes Aug 03 '19 at 15:58
  • Why doesn't it work for higher multiplicity? Suppose I want to resolve 1/{n)[(n+1)^2]}, By the shortcut method I get {1/n} - 1/{(n+1)^2} which is wrong but why? Thank you. – Ram Keswani Aug 03 '19 at 16:10
  • 2
    Because you have to expect to get $\frac{a}n+\frac{b+cn}{(1+n)^2}$ or $\frac{a}n+\frac{b}{1+n}+\frac{c}{(1+n)^2}$, and you get only two of the three coefficients with the method. You can still get the third term by computing the difference. Now have both factors squares, then you get two terms undetermined, requiring another method. – Lutz Lehmann Aug 03 '19 at 16:23
  • @RamKeswani: I'm glad you're asking lots of "why"s. I just want to point out, however, that in mathematics the default question should be "why is this correct?". By default, you should not assume anything to be correct unless you have logically justified it or have chosen to accept it as an axiom. – user21820 Aug 05 '19 at 05:19
7

I'll just start with $a$ as an example. Multiply both sides by $n$ to get $$\frac 1{(n+1)(n+2)} = a + \frac {bn}{n+1} + \frac {cn}{n+2}$$ Since this is true for all $n$, plug in $0$. The $b$ and $c$ terms become $0$, leaving $a$ in the formula described above: $$\frac 1{(0+1)(0+2)} = a$$

D.R.
  • 8,691
  • 4
  • 22
  • 52
2

This is a nice shortcut. It uses the observation that the function on the LHS has divergences at the isolated values of $n$ that make the denominator zero, and each term on the RHS must match one of those divergences (in both location and magnitude). So, suppose in general that the LHS is $$ \frac{1}{(n-z_1)(n-z_2)\ldots(n-z_k)}=\frac{c_1}{n-z_1} + \frac{c_2}{n-z_2} + \cdots + \frac{c_k}{n-z_k}. $$ and let $n=z_i + \varepsilon$. Then the RHS is clearly $\sim c_i / \varepsilon$, while the LHS is asymptotic to $$ \frac{1}{(z_i-z_1)(z_i-z_2)\cdots(z_i-z_{i-1})\cdot\varepsilon\cdot(z_i-z_{i+1})\cdots(z_i-z_k)}, $$ when $\varepsilon \rightarrow 0$. Equating the two gives your shortcut result, $$ c_i = \frac{1}{(z_i-z_1)(z_i-z_2)\cdots(z_i-z_{i-1})\cdot(z_i-z_{i+1})\cdots(z_i-z_k)}. $$ This relies on the $z_i$ being distinct; you need to do more work to handle higher multiplicities.

mjqxxxx
  • 41,358
0

Let's take your example. We have \begin{align}\frac{1}{n(n+1)(n+2)} = \frac{a}{n} + \frac{b}{n+1} + \frac{c}{n+2}&=\color{red}{\boxed{\frac an+\frac{b(n+2)+c(n+1)}{(n+1)(n+2)}\cdot\frac nn}}\quad(\text{group together}\,b,c)\\&=\color{blue}{\boxed{\frac b{n+1}+\frac{a(n+2)+cn}{n(n+2)}\cdot\frac{n+1}{n+1}}}\quad(\text{group together}\,a,c)\\&=\color{green}{\boxed{\frac c{n+2}+\frac{a(n+1)+bn}{n(n+1)}\cdot\frac{n+2}{n+2}}}\quad(\text{group together}\,a,b)\end{align} so we get $$\color{red}{\frac a{\color{black}{\boldsymbol{n}}}=\frac{1-n[b(n+2)+c(n+1)]}{n(n+1)(n+2)}\implies \color{red}a=\frac{1-\color{black}{\boldsymbol{n}}\boldsymbol{[b(n+2)+c(n+1)]}}{(n+1)(n+2)}}\\\phantom{2cm}\\\color{blue}{\frac b{\color{black}{\boldsymbol{n+1}}}=\frac{1-(n+1)[a(n+2)+cn]}{n(n+1)(n+2)}=\frac{1-\color{black}{\boldsymbol{(n+1)}}\boldsymbol{[a(n+2)+cn]}}{n(n+2)}}\\\phantom{2cm}\\\color{green}{\frac c{\color{black}{\boldsymbol{n+2}}}=\frac{1-(n+2)[a(n+1)+bn]}{n(n+1)(n+2)}=\frac{1-\color{black}{\boldsymbol{(n+2)}}\boldsymbol{[a(n+1)+bn]}}{n(n+1)}}$$ Notice that in each case, when you set $n,n+1,n+2=0$ respectively, the terms in bold disappear, so you get $$\color{red}{a=\frac{1-0}{(0+1)(0+2)}=\frac12}\\\color{blue}{b=\frac{1-0}{(-1)(-1+2)}=-1}\\\color{green}{c=\frac{1-0}{-2(-2+1)}=\frac12}.$$