hmm, I tried this ("tried" implies that it fails but you might be able to work some magic on it):
I'm clearly not getting g(x). I think this method is the way to go, except it doesn't use the information f'(0)=1 and g'(0)=0.
I haven't tried induction yet but it works for x=0. This method might take you somewhere.