A nonlinear Poisson equation#
Authors: Anders Logg and Hans Petter Langtangen
We shall now address how to solve nonlinear PDEs. We will see that nonlinear problems introduce some subtle differences in how we define the variational form.
The PDE problem#
As a model for the solution of nonlinear PDEs, we take the following nonlinear Poisson equation
The coefficients \(q(u)\) make the problem nonlinear (unless \(q(u)\) is constant in \(u\)).
Variational formulation#
As usual, we multiply the PDE by a test function \(v\in \hat{V}\), integrate over the domain, and integrate second-order derivatives by parts. The boundary integrals arising from integration by parts vanish wherever we employ Dirichlet conditions. The resulting variational formulation of our model problem becomes:
Find \(u\in V\) such that
where
and
The discrete problem arises as usual by restricting \(V\) and \(\hat{V}\) to a pair of discrete spaces. The discrete nonlinear problem can therefore be written as:
Find \(u_h \in V_h\) such that
with \(u_h=\sum_{j=1}^N U_j\phi_j\). Since \(F\) is nonlinear in \(u\), the variational statement gives rise to a system of nonlinear algebraic equations in the unknowns \(U_1,\dots,U_N\).