118. Chain Rule

The derivative of with respect to is the sum of all possible paths from to :

Example

Let:

We want to compute:

Step 1: Apply the multivariable chain rule

Step 2: Compute partial derivatives

Step 3: Plug in: