When Is The Chain Rule Applied