Calculate f'(x) for f(x) = x^3 + 2x