Use the chain rule:
We have
so we get
Alternatively, you can substitute u in the definition of y and differentiate with respect to x :
8.6m questions
11.2m answers