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