I am having trouble figuring out how to implement a specific gradient function with NumPy. I am sure my math is correct, but I have failed at coding it. I have attached my work and the parts of the code to be edited.
I have tried attempting to understand how numpy arrays work, but this hasn't taken me anywhere.

