1Computer Lab #6ObjectivesReview of Midterm ExamPart 2: Problem 3 (Root-Finding)Root-Finding and OptimizationUnderstand how an optimization problem can be converted into a root-finding problem.You should have read Chapters 7.1 and 8of the textbook.Reminder: In-Class Quiz Next Tuesday on Linear Algebra (read Chap. 8!)
has intentionally blurred sections.
Sign up to view the full version.
2ExampleProblem DescriptionApply (1) the fixed point iteration method and (2) the Newton-Raphson method for2 iterationsto find the root ofSpecifically, your MATLAB function should take as input:•x0: initial guess (for both methods)and output•root_fixedpoint: the approximate root given by the fixed point iterationafter 2 iterations.•root_newton: the approximate root given by the Newton-Raphson methodafter 2 iterations.