When integration by parts has to be repeated, a polynomial times an exponential or a trig function, lay the repeated steps out in a table: differentiate down one column, integrate down the other, multiply diagonally with alternating signs.
| Step | On | |
|---|---|---|
| 1 | Set up two columns: D (differentiate) and I (integrate). The polynomial goes in D, the exponential or trig factor in I. | D: \quad I: |
| 2 | Differentiate down D until you reach 0; integrate down I the same number of times. The I column uses the exponential or trig antiderivatives repeatedly.Exponential and reciprocal antiderivatives ↗ | D: \quad I: |
| 3 | Attach alternating signs to the D column. starting with . | |
| 4 | Multiply each D entry by the I entry one row lower, and add. The row with contributes nothing, which is why the table ends there. |