Solving Problems with the Gradient and the Hessian

Learn to solve problems using gradients and Hessians.

We know the candidate points are those in which the gradient has all its entries equal to zero. Therefore, for each point, we do a test with the Hessian so we can determine if the point is a minimum, a maximum, or neither.

Getting the candidate points with Python

Let’s break the code into pieces. We’re going to calculate the gradient first and the points that make it zero. The function will be f(x,y,z)=x2+y2+z2f(x, y, z) = x^2 + y^2 + z^2.

Get hands-on with 1400+ tech skills courses.