Integrate: x/[(x+1)(x+2)].
Hint. Decompose into A/(x+1)+B/(x+2), and find A, B by clearing denominators and substituting the roots.
Writing x=A(x+2)+B(x+1), substituting x=-1 gives A=-1, and x=-2 gives B=2. So the fraction splits into -1/(x+1)+2/(x+2), and each piece integrates to a log.
✦ -log|x+1| + 2log|x+2| + C
