The Newton’s method is more powerful but also a bit more demanding than the Picard’s method.
We’ll stay with the model problem from the previous section
(1)
As we said before, when using the Newton’s method, it is customary to have everything on the left-hand side. The corresponding discrete problem has the form
where are the test functions. The unknown solution
is sought in the form
where is a Dirichlet lift (any sufficiently smooth function representing the
Dirichlet boundary conditions
), and
with zero values on the boundary is
a new unknown. The function
is expressed as a linear combination of basis functions
with unknown coefficients,
However, in the Newton’s method we look at the same function
as at a function of the unknown solution coefficient vector ,
The nonlinear discrete problem can be written in a compact form
where is the so-called residuum or residual vector.
The residual vector has
components of the form
Here is the
-th test function,
.
The
Jacobian matrix
has the components
Taking account the relation , and the independence of
on
, this becomes
Using elementary relations shown below, we obtain
It is worth noticing that has the same sparsity structure as the
standard stiffness matrix that we know from linear problems. In fact, when the
problem is linear then the Jacobian matrix and the stiffness matrix are the same
thing – we have seen this before, and also see the last paragraph in this section.
Chain rule is used all the time. If your equation contains parameters that depend on
the solution, you will need their derivatives with respect to the solution (such as we needed
the derivative above). In addition, the following elementary rules are useful
for the differentiation of the weak forms:
and
Let’s assume that the Jacobian matrix has been assembled. The Newton’s method is written formally as
but a more practical formula to work with is
This is a system of linear algebraic equations that needs to be solved in every Newton’s
iteration. The Newton’s method will stop when is sufficiently close
to the zero vector.
There are two basic stopping criteria that should be combined for safety:
If just one of these two criteria is used, the Newton’s method may finish prematurely.
In the linear case we have
where is a constant stiffness matrix and
a load vector.
The Newton’s method is now
There exists a widely adopted mistake saying that the Newton’s method, when applied to a linear problem, will converge in one iteration. This is only true if one uses the first (residual norm based) stopping criterion above. If the second criterion is used, which is based on the distance of two consecutive solution vectors, then the Newton’s method will do two steps before stopping. In practice, using just the residual criterion is dangerous.