1D Boundary value problem

Differential equation

Boundary conditions

Goal: Apply Finite Differences to discretize the problem.

Step 1: Meshing

is divided with equidistant parts.

center

Step 2: Discretization

The derivative can be calculated using three different ways

center

The Differential equation then can be written

center

Step 4: Plotting

center