chain rule brian mclogan