We know finite difference method (FDM) can replace $ y”(x)$ as $ \frac{1}{h^2}[y(x+h)+y(x-h)-2y(x)]$ or so. The naive way to write down the matrix of the differential operator is like the following, which somehow simply cuts off at the two edges. Similarly, we can write for $ y’$ . But what boundary condition (BC) correspond toRead more