Using Chain Rule To Find Derivative