Minima and Maxima in Higher Dimensions

In two dimensions—and the same reasoning applies in any dimension—the problem of locating a maximum must be extended to increasingly complex functions.

The most immediate solution is to examine the point independently along each spatial direction, reducing the problem entirely to the one-dimensional case.

To use a larger neighborhood, the next simplest model is a paraboloid, a quadratic surface written in the form

\begin{displaymath}
m_0 x^2 + m_1 x + m_2 y^2 + m_3 y + m_4 = z
\end{displaymath} (1.135)

where points $(x,y)$ are offsets from the point being modeled, and $z$ is the value of the function at that point. Unlike the solution with completely independent axes, this equation also allows points off the axes to contribute to the solution. Clearly, if only the five points along the axes are included in the system, the solution is exactly the same as in the previous section.

Each element of the problem therefore provides a constraint of the form

\begin{displaymath}
\mathbf{m} \cdot \mathbf{x}_i=z_i
\end{displaymath} (1.136)

and all the constraints together yield a potentially overdetermined linear system. In this case, there are no known results that provide a closed-form solution. The simplest approach is to precompute a factorization of the system formed by the elements $\mathbf{x}_i$, which represent a particular neighborhood of $(0,0)$, so that the system can be solved more quickly once the values $z_i$ are known.

Equation (1.135) has zero gradient at the point

\begin{displaymath}
\left( - \frac{m_1}{2 m_0}, - \frac{m_3}{2 m_2} \right)
\end{displaymath} (1.137)

just as in the one-dimensional case, since the two components—the one along $x$ and the one along $y$—remain independent during evaluation. This result extends to n-dimensional cases.

Paolo medici
2026-10-19