Answer:
x = -2
Explanation:
The function is decreasing where the first derivative is negative.
That is, the function is decreasing on the interval (-2, 5), except at x=2, where there is a flat spot. That means the maximum value is found at the left end of that interval, at x=-2.
__
The maximum value might be found at x = 6, at the right end of the interval (5, 6) on which the function is increasing. However, we judge the area under the first derivative curve between x=5 and x=6 to be less than the total area under the curve between x=-2 and x=5. That means the function does not increase enough from its minimum at x=5 to make up for the decrease over the longer interval.
__
The attachment shows an approximation of the derivative function given in the problem statement (dashed line) and its integral (solid line). Not all of the curvature of f'(x) is accounted for in the approximation, but the overall result is consistent with the above analysis.