Mark M. answered 04/21/20
Retired math prof. Calc 1, 2 and AP Calculus tutoring experience.
f'(x) = ∫f"(x)dx = x3 + C1
Since f'(-1) = -4, we have -1 + C1 = -4. So, C1 = -3
f'(x) = x3 - 3
f(x) = ∫f'(x)dx = (1/4)x4 - 3x + C2
Since f(2) = 7, we get 4 - 6 + C2 = 7. So, C2 = 9
Therefore, f(x) = (1/4)x4 - 3x + 9