Question

4. (20 pts) (Problem 6.11) Write a MATLAB function using the Newton-Raphson method to find the root \text { of } f(x)=e^{-0.5 x}(4-x)-2 Using initial guesses of (a) 2, (b)

6, and (c) 8. Explain your results with visualization.

Question image 1Question image 2Question image 3