Newton Raphson derirative from Jia Li