ATTACHED IS THE SOLUTION..I also provided you with the formula used to get the gradient.
4.5m questions
5.8m answers