To integrate any term, add one to the power of x and divide the co-efficient (amount of x) by the new power, so xn becomes x(n+1)/(n+1).
Using this, 3x2 becomes 1x3, -6x becomes -3x2, and 5 becomes 5x.
Therefore, if we integrate 3x2-6x+5 with respect to x, we get x3-3x2+5x (+c, some arbitrary constant).