The pure Newton method. Newton's method with fixed step size t=1 can diverge if the initial point is not close to x⋆. In this problem we consider two examples.
((a)) f(x)=log(ex+e−x) has a unique minimizer x⋆=0. Run Newton's method with fixed step size t=1, starting at x(0)=1 and at x(0)=1.1.
((b)) f(x)=−logx+x has a unique minimizer x⋆=1. Run Newton's method with fixed step size t=1, starting at x(0)=3.
Plot f and f′, and show the first few iterates.