Each term is integrated according to the formula:
axb --> (a/(b+1))x(b+1)
A constant k integrates to kx
Since this is indefinite integration, an additional term of +c must be added to the expression.
Therefore in this example, the expression integrates to:
x4 + 2x3 + 2x2 +3x + c