for

Differentiating (with the chain rule):

Then:

Let:

We get with

In the original function we can see that it has the following property

Then it follows that (imagine the graph of f(x)) which clearly holds in our solution

Thus

I hope it's ok