To perform a Levenberg-Marquardt step, we need to calculate the gradient and Hessian of the objective function ( f(u, v) ), and then use these to find the next iterate ((u_1, v_1)^\top). The Levenberg-Marquardt algorithm is an iterative method that uses a damped version of the Newton method to solve non-linear least squares problems. The update formula for this algorithm can be written as:
[
\begin{pmatrix}
u_{k+1} \
v_{k+1}
\end{pmatrix}
= \begin{pmatrix}
u_k \
v_k
\end{pmatrix}
- \alpha_k (J_k^\top J_k + \lambda_k I)^{-1} J_k^\top \begin{pmatrix}
r_1(u_k, v_k) \
r_2(u_k, v_k) \
r_3(u_k, v_k)
\end{pmatrix}
]
where ( J_k ) is the Jacobian matrix of ( f(u, v) ) at the current iterate ((u_k, v_k)), ( r_1, r_2, r_3 ) are the residuals corresponding to the objective function, ( \alpha_k ) is the damping parameter, ( \lambda_k ) is the regularization parameter, and ( I ) is the identity matrix.
Given the objective function ( f(u, v) = \frac{1}{2} R^\top R ) with:
[
R = \begin{pmatrix}
u - 3 \
uv - 3 \
uv^2 - 3
\end{pmatrix}
]
we have the residuals:
[
\begin{align*}
r_1(u, v) &= u - 3 \
r_2(u, v) &= uv - 3 \
r_3(u, v) &= uv^2 - 3
\end{align*}
]
The Jacobian matrix ( J ) of the residuals ( R ) with respect to ( u ) and ( v ) is:
[
J = \begin{pmatrix}
\frac{\partial r_1}{\partial u} & \frac{\partial r_1}{\partial v} \
\frac{\partial r_2}{\partial u} & \frac{\partial r_2}{\partial v} \
\frac{\partial r_3}{\partial u} & \frac{\partial r_3}{\partial v}
\end{pmatrix}
= \begin{pmatrix}
1 & 0 \
v & u \
v^2 & 2uv
\end{pmatrix}
]
At the initial point ((u_0, v_0)^\top = \begin{pmatrix} 0 \ -\frac{5}{4} \end{pmatrix}), the Jacobian matrix ( J_0 ) is:
[
J_0 = \begin{pmatrix}
1 & 0 \
-\frac{5}{4} & 0 \
\left(-\frac{5}{4}\right)^2 & 2 \cdot 0 \cdot -\frac{5}{4}
\end{pmatrix}
= \begin{pmatrix}
1 & 0 \
-\frac{5}{4} & 0 \
\frac{25}{16} & 0
\end{pmatrix}
]
The Hessian matrix ( H = J^\top J ) is:
[
H = J_0^\top J_0 = \begin{pmatrix}
1 & -\frac{5}{4} & \frac{25}{16} \
0 & 0 & 0 \
0 & 0 & 0
\end{pmatrix}
\begin{pmatrix}
1 & 0 & 0 \
-\frac{5}{4} & 0 & 0 \
\frac{25}{16} & 0 & 0
\end{pmatrix}
= \begin{pmatrix}
1 & -\frac{5}{4} & \frac{25}{16} \
-\frac{5}{4} & \frac{25}{16} & 0 \
\frac{25}{16} & 0 & 0
\end{pmatrix}
]
However, we will not calculate the full Hessian, because the Levenberg-Marquardt algorithm only needs ( J^\top J + \lambda I ) to be invertible, where ( \lambda ) is typically chosen to ensure that the matrix is diagonally dominant.
Now we need to calculate the gradient ( g = J_0^\top R_0 ), where ( R_0 ) is the residual vector at the initial point:
[
R_0 = \begin{pmatrix}
0 - 3 \
0 \cdot -\frac{5}{4} - 3 \
0 \cdot (-\frac{5}{4})^2 - 3
\end{pmatrix}
= \begin{pmatrix}
-3 \
-3 \
-3
\end{pmatrix}
]
Thus, the gradient ( g ) is:
[
g = J_0^\top R_0 = \begin{pmatrix}
1 & -\frac{5}{4} & \frac{25}{16}
\end{pmatrix}
\begin{pmatrix}
-3 \
-3 \
-3
\end{pmatrix}
= -3 + \frac{15}{4} - \frac{75}{16}
= -3 + \frac{60}{16} - \frac{75}{16}
= -3 - \frac{15}{16}
= -\frac{48}{16} - \frac{15}{16}
= -\frac{63}{16}
]
Now, let's calculate ( J_0^\top J_0 ) and add the damping factor:
[
J_0^\top J_0 = \begin{pmatrix}
1 & -\frac{5}{4} \
-\frac{5}{4} & \frac{25}{16}
\end{pmatrix}
]
For the Levenberg-Marquardt step, we have the damping parameter ( \alpha_0 = \frac{21}{16} ), and we assume that ( \lambda ) is embedded in ( \alpha ) (the damping factor is often increased until the system is diagonally dominant). The update step is then:
[
\begin{pmatrix}
u_1 \
v_1
\end{pmatrix}
= \begin{pmatrix}
0 \
-\frac{5}{4}
\end{pmatrix}
- \frac{21}{16} \left( J_0^\top J_0 \right)^{-1} g
]
We need to calculate the inverse of ( J_0^\top J_0 ) and then multiply it by the gradient ( g ). However, there was a mistake in the computation of ( J_0^\top J_0 ); it should be:
[
J_0^\top J_0 = \begin{pmatrix}
1 & -\frac{5}{4} \
-\frac{5}{4} & \frac{25}{16}
\end{pmatrix}
\begin{pmatrix}
1 & -\frac{5}{4} \
-\frac{5}{4} & \frac{25}{16}
\end{pmatrix}
= \begin{pmatrix}
1 + \frac{25}{16} & 0 \
0 & \frac{25}{16} + \frac{125}{64}
\end{pmatrix}
= \begin{pmatrix}
\frac{41}{16} & 0 \
0 & \frac{289}{64}
\end{pmatrix}
]
This is already diagonally dominant, so we can proceed to calculate its inverse:
[
(J_0^\top J_0)^{-1} = \begin{pmatrix}
\frac{16}{41} & 0 \
0 & \frac{64}{289}
\end{pmatrix}
]
Then, the gradient ( g ) needs to be recalculated correctly:
[
g = J_0^\top R_0 = \begin{pmatrix}
1 & -\frac{5}{4} & \frac{25