This diagram (lost a line!) represents the steps to evaluate integral by parts of
\[I = \int{(x^3+3x^2+2x+1)\cdot \mathrm{e}^x \mathrm{d}x}.\]
We have
\[I = (x^3+3x^2+2x+1)\cdot\mathrm{e}^x - (3x^2 + 6x + 2)\cdot\mathrm{e}^x
+ (6x+6)\cdot\mathrm{e}^x - 6\cdot\mathrm{e}^x.\]
I don't know how to start.

Another integral
\[\int{(x^2+3 x+1)\sin x\,\mathrm{d}x}\]
with diagram

We have
\[-(x^2+3 x+1) \cosx+(2 x+3) \sin x +2 \cosx. \]
How do the arrows parallel and the signs +, -, +, - (on the arrows) aligned?




