Given f'(x), contruct f(x)