I want to solve boundary value problem in n points, :
where:
with finite difference method instead of finite element method.
I substituted finite difference:
and obtained:
And I don't know how to turn that into the matrix equation. Is there a way to do it?