More direct way to derive indirect utility function from expenditure function
Make e (p, V (p, r))=r, hence f (V (p, r)) g (p)=r. Then use the inverse function theorem:
V (p, r)=h (r/g (p))
Where h is the inverse of f.