Inactive Tutor answered 08/03/23
If you plot this with something like Desmos, you will get an inverted parabola with the vertex at (0,5). You will also notice that the curve crosses the x-axis near -2 and 2. So the approximation is near -2 or 2.
xn+1=xn-f(x)/f '(x0
f(x) = cos(x)-x2+4
f '(x) = -sin(x)-2x
If you let x1=2, x will settle around 1.9140206 in 3 iterations.
x2=x1-f(x1)/f'(x1)
x2=2-f(2)/f'(2)
x3=....
x4=....
If you let x1=-2, x will settle around -19.140206