The gradient of a function at any point (x,y) 2x – 6. If the function…