I recently asked a question pertaining to the appliciation of Jacobi's method to a semilinear elliptic PDE (Poisson's equation)
$$ \nabla^2u = -\rho~e^{-u} $$
A more efficient method like the Bi conjugate gradient stabilised method was recommended. I have tested this method out and it is indeed much faster. But I am unsure of what the matrix representation of a semilinear system would look like. For an ordinary linear PDE like
$$ \nabla^2u=-\rho $$
it looks like $$ \frac{1}{h^2}\left( \begin{array}{ccc} 2 & -1 & & & \\ -1 & 2 & -1 & & \\ & -1 & 2 & -1 & \\ & & -1 & 2 & -1 \\ & & & -1 & 2 \\ \end{array} \right)\left( \begin{array}{c} u_1 \\ u_2 \\ u_3 \\ u_4 \\ u_5\end{array} \right) = \left( \begin{array}{c} \rho_1+g \\ \rho_2 \\ \rho_3 \\ \rho_4 \\ \rho_5+g\end{array} \right) $$ where $g$ is the Dirichlet boundary condition.
My question: What would the corresponding matrix representation of the set of simultaneous equations for the semilinear case look like? I'm guessing something like
$$ \frac{1}{h^2}\left( \begin{array}{ccc} 2 & -1 & & & \\ -1 & 2 & -1 & & \\ & -1 & 2 & -1 & \\ & & -1 & 2 & -1 \\ & & & -1 & 2 \\ \end{array} \right)\left( \begin{array}{c} u_1 \\ u_2 \\ u_3 \\ u_4 \\ u_5\end{array} \right) = \left( \begin{array}{c} \rho_1e^{-u_1}+g \\ \rho_2e^{-u_2} \\ \rho_3e^{-u_3} \\ \rho_4e^{-u_4} \\ \rho_5e^{-u_5}+g\end{array} \right) $$
But this doesn't leave me with all $u$ values in a single vector.
Would it make sense to do something like:
1) Solve the linear case $$ \nabla^2u = -\rho $$ 2) Use the resultant $u$ to construct a new linear case $$ \nabla^2u_i = -\rho~C $$ where $$ C = e^{-u_{old}} $$ 3) Repeat step 2 until self-consistency is reached.