Mark M. answered 10/17/21
Retired math prof. Calc 1, 2 and AP Calculus tutoring experience.
f'(x) = ∫ f"(x)dx = x - 3x2 + C
Since f'(1) = 2, we have -2 + C = 2. So, C = 4.
Therefore, f'(x) = x - 3x2 + 4
Integrate f'(x) to get f(x):
f(x) = (1/2)x2 - x3 + 4x + K
Since f(-1) = 8, we get 1/2 + 1 - 4 + K = 8
So, K = 10.5
f(x) = (1/2)x2 - x3 + 4x + 10.5