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
 |
(1.135) |
where points
are offsets from the point being modeled, and
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
 |
(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
, which represent a particular neighborhood of
, so that the system can be solved more quickly once the values
are known.
Equation (1.135) has zero gradient at the point
 |
(1.137) |
just as in the one-dimensional case, since the two components—the one along
and the one along
—remain independent during evaluation. This result extends to n-dimensional cases.
Paolo medici
2026-10-19