Non-Quadratic Example
Let's apply the complete optimization workflow to a non-quadratic function: on the square .
The interior critical points are found by solving . This system is nonlinear and may have multiple solutions, found numerically or by exploiting symmetry.
On the boundary (e.g., , ), reduces to a one-variable function whose extrema are found by . The global extremum is the best among all interior and boundary candidates.
Formal View
Interactive Visualization
Local Linear Approximation
Why This Matters
Non-quadratic examples show that the systematic method extends beyond the quadratic case.
- Nonlinear regression models have non-quadratic objective functions
- Physical potentials (Lennard-Jones, Morse) are non-quadratic and have multiple local minima
- Neural network loss functions are highly non-quadratic in their parameters
Quiz
For , how many interior critical points does the gradient equation have?
For a smooth non-quadratic function, the second derivative test (checking Hessian definiteness) can still classify critical points as local minima, maxima, or saddle points.
Common Mistakes
- Assuming non-quadratic functions have a unique critical point like positive-definite quadratics.
- Forgetting that the Hessian changes with location — compute it at each critical point separately.
- Neglecting the possibility that the global minimum is on the boundary, not at an interior critical point.