Differentiate both parts of the equation with respect to x, use FTC, and express f(x).