For the nodes near the boundary, approximation formulae for the derivatives of non-periodic problems can be derived with the consideration of one-sided schemes. More details on the derivations for the first and second-order derivatives can be found in [38,39]. The derived formulae at boundary points 1, 2, N - 1 and N, respectively, are: