Hard differentiation problem

Question

Hints

Answer