Finite difference methods Basic methods mathematics