If $\int f(x)dx =g(x)$ then $\int f^{-1}(x)dx $ is equal to
(1) $g^{-1}(x)$
(2) $xf^{-1}(x)-g(f^{-1}(x))$
(3) $xf^{-1}(x)-g^{-1}(x)$
(4) $f^{-1}(x)$
My approach is as follows: Let $f(x)=y$, therefore $f^{-1}(y)=x$, $\int f^{-1}(f(x))dx =g(f(x))$
On differentiating we get $x=g'(f(x))f'(x)$
After this step, I am not able to proceed.


Ignoring the constant of integration the answer is (2):$$\int f^{-1}(x)dx=\int yf'(y)dy=yf(y)-\int f(y)dy$$ (where I have used integration by parts). Hence $$\int f^{-1}(x)dx=f^{-1}(x)x-g(y)=xf^{-1}(x)-g(f^{-1}(x))$$.