Consider the nonlinear PDE in two dimensions given by
$$
-\left(\frac{\partial^{2} u}{\partial x^{2}}+\frac{\partial^{2} u}{\partial y^{2}}\right)+e^{u}=g(x, y)
$$
Here \(u=u(x, y)\) is a function in the two variables \(x\) and \(y\), defined on
the unit square \((0,1) \times(0,1)\) and subject to homogeneous Dirichlet
boundary conditions. We discretize it on a uniform mesh, just like in Example
7.1, using \(h=1 /(N+1)\), and obtain the equations
$$
\begin{aligned}
4 u_{i, j}-u_{i+1, j}-u_{i-1, j}-u_{i, j+1}-u_{i, j-1}+h^{2} e^{u_{i, j}}
&=h^{2} g_{i, j}, \quad 1 \leq i, j \leq N, \\
u_{i, j} &=0 \text { otherwise. }
\end{aligned}
$$
(a) Find the Jacobian matrix, \(J\), and show that it is always symmetric
positive definite.
(b) Write a MATLAB program that solves this system of nonlinear equations
using Newton's method for \(N=8,16\), 32. Generate a right-hand-side function
\(g(x, y)\) such that the exact solution of the differential problem is \(u(x, y)
\equiv 1\). Start with an initial guess of all zeros, and stop the iteration
when \(\left\|\delta u^{(k)}\right\|_{2}<10^{-6} .\) Plot the norms
\(\left\|\delta u^{(k)}\right\|_{2}\) and explain the convergence behavior you
observe.