If find using the chain rule. Assume the variables are restricted to domains on which the functions are defined.