f'(x) = -4x3 + 18x2 - 2x + C f'(0) = C = 18 f'(x) = -4x3 + 18x2 - 2x + 18
f(x) = - x4 + 6x3 - x2 + 18x + D. f(0) = D = 8.
f(x) = - x4 + 6x3 - x2 + 18x + 8
Looks like you got the coefficient of the cubic term wrong in f (maybe you did 18 / 3 = 8?). Also the constant term in f clearly needs to be 8 (not 2) so that f(0) = 8.
But it looks like you are integrating (antidifferentiating) mostly very well.