How a Mandelbrot set arises from Newton’s work