The four-point midpoint third derivative uses the four values at , centred at . The Taylor theorem about that midpoint givesThus, for , take the interior equationsImpose the two value conditions exactly, , , and approximate the remaining condition with the second-order backward finite difference:This gives equations for . The endpoint derivative formula equals , so its residual tends to zero along with those of the four-point equations. Every stencil lies within ; no unprescribed ghost value is introduced. The construction is therefore a consistent finite difference method for all three boundary conditions.