For any differentiable function, we have the Fermat's theorem necessary condition of optimality, which states that: if f has a local minimum at x^{*} in an open domain, then x^{*} must be a stationary point of f (that is: \nabla f(x^{*}) = 0).
