1D Poisson Equation with Finite Difference - OrangeOwlSolutions/PDEs GitHub Wiki

Poisson equation:

Discretization points:

Discretization:

The discretized Poisson equation amounts at the solution of the linear system

with

Although the system matrix is tridiagonal, in the Matlab code the solution of the linear system is obtained without exploiting this information.