I am going crazy trying to solve the Bratu problem using Python:
$$y''(x)+ e^{y(x)} = 0, \quad \lambda = 1, \quad x \in(0,1),$$
$$y(0) = y(1) = 0$$
I have to solve this using the tridiagonal matrices. None of the solutions that I have written work so far. Any help in this direction??
This seems to get to (one of them) the solution:
where the function 'tridiagonal' is given by:
This is a MATLAB code using a usual Newton-Raphson method to approach the solution. If you are interested only in coding, I assume you are familiar enough with this and can easily translate my code to Python (which it's almost straightforward).
If you are also interested in the mathematical steps behind this, please let me know.
Hope this helps.
Cheers!