The boundary conditions are treated separately. Assume Dirichlet boundary conditions and initial conditions given by Equation 1.4. Consider the first section i=0.
Note that the harmonic average given by Equation 1.10 results in . Hence,
Similarly for the last section i=n-1.
Again . Hence,
Where and are given.