https://9dok.org/document/qo5gg300-second-order-discrete-boundary-problem-periodic-boundary-conditions.html