The red curve is f(g(x)). Try to match it to the grey curve h(x).
App generated by Geometry Expressions