A new technique to obtain derivative-free optimal iterative methods for solving nonlinear equations