William W. answered 05/22/21
Experienced Tutor and Retired Engineer
How about this:
Between 0 and 2 the function must be f(x) = x2 + C if the derivative is 2x so we can just arbitrarily select C = 0.
Between 2 and 5 the function must be f(x) = -2/3x + C if the derivative is -2/3. To make it continuous with the first section we can raise it up by adding 16/3.
For x > 5 the function must be f(x) = C if the derivative is 0 and we can make C = 2 to make it continuous with the previous interval.
Since the function is odd, just flip it over to make the negative version.