Newton-Raphson Method

Finding the minima of a function can be reduced to finding the zeros of a function, specifically the first derivative of the cost function $S$.

Let $\mathbf{g}: \mathbb{R}^{m} \mapsto \mathbb{R}^{n}$ be a differentiable multivariate function whose zeros we wish to find:

\begin{displaymath}
\mathbf{g}(\mathbf{x})=\mathbf{0}
\end{displaymath} (4.37)

Expanding the function $\mathbf{g}$ in a Taylor series locally around a suitable point $\mathbf {x}$ gives
\begin{displaymath}
\mathbf{g}(\mathbf{x} + \boldsymbol\delta) = \mathbf{g}(\ma...
...}) + \mathbf{J}_{g} \boldsymbol\delta + O(\boldsymbol\delta^2)
\end{displaymath} (4.38)

where $\mathbf{J}_{g}$ is the Jacobian matrix $n \times m$ of the function $\mathbf{g}$ evaluated at $\mathbf {x}$.

The goal is to change the value of $\mathbf {x}$ by an amount $\boldsymbol\delta$ so that the function $\mathbf{g}(\mathbf{x}_t + \boldsymbol\delta)$ is exactly zero. Neglecting terms of at least quadratic order, the estimate of $\boldsymbol\delta$ that, to first order, brings the function $\mathbf{g}$ closer to zero is the solution to the linear system (4.38) subject to condition (4.37), that is,

\begin{displaymath}
\mathbf{J}_{g} \boldsymbol\delta = - \mathbf{g}(\mathbf{x})
\end{displaymath} (4.39)

If $\mathbf{J}_{g}$ is full rank, this system can be solved exactly or, in the overdetermined case, in the least-squares sense, using one of the techniques presented in Section 1.1. The idea behind iterative methods is to update the point $\mathbf{x}_t$ by an amount $\boldsymbol\delta_t$
\begin{displaymath}
\mathbf{x}_{t+1} = \mathbf{x}_t + \boldsymbol\delta_t
\end{displaymath} (4.40)

at iteration $t=1,2,\ldots$, chosen to progressively approach a zero of the function.

For a single variable $n=m=1$, Newton's method reduces to

\begin{displaymath}
x_{t+1} = x_t - \dfrac{g(x_t)}{g'(x_t)}
\end{displaymath} (4.41)

In numerical analysis, this is the so-called Newton (or Newton-Raphson) method for finding the zeros of a function.

Points at which the gradient vanishes are called stationary points. Interior local maxima and minima belong to this class, but a stationary point may also be a saddle point. This technique can therefore be used to find the stationary points of a function $f(\mathbf{x}): \mathbb{R}^{m} \mapsto \mathbb{R}$ by defining

\begin{displaymath}
\begin{array}{l}
\mathbf{g}(\mathbf{x}) = \nabla f(\mathbf...
...bf{J}_g(\mathbf{x}) = \mathbf{H}_f(\mathbf{x}) \\
\end{array}\end{displaymath} (4.42)

where $\nabla f(\mathbf{x})$ is the gradient function $\mathbb{R}^{m} \mapsto \mathbb{R}^{m}$, and $\mathbf{H}_f(\mathbf{x})$ is the Hessian matrix $m \times m$, both evaluated at the point $\mathbf {x}$. Newton's update to the point $\mathbf {x}$ is therefore
\begin{displaymath}
\mathbf{H}_f(\mathbf{x}) \boldsymbol\delta_t = - \nabla f(\mathbf{x})
\end{displaymath} (4.43)

When used for optimization, Newton's method effectively approximates the function $f(\mathbf{x})$ in a neighborhood of $\mathbf {x}$ by a quadratic function. If $f(\mathbf{x})$ is quadratic, convergence is guaranteed in a single iteration.

In the specific case of optimization methods, the function $f(\mathbf{x})$ is the cost function $S(\boldsymbol\beta)$. Therefore, when the Hessian matrix of $S(\boldsymbol\beta)$ is nonsingular, the parameter update equation is obtained

\begin{displaymath}
\boldsymbol\delta_t = -\mathbf{H}_{S}^{-1}(\boldsymbol\beta_t) \nabla S(\boldsymbol\beta_t)
\end{displaymath} (4.44)

using Newton's optimization method.

Paolo medici
2026-10-19