When Do You Apply The Chain Rule