Here’s a math answer to this math question, but there are still problems as explained at the end of the thread: https://math.stackexchange.com/questions/307411/derivative-of-fx-y-with-respect-to-another-function-of-two-variables-kx-y 9