Unconstrained Optimization,Rosenbrock, UndergraduateOptimization using MATLAB and proofsI attached homework 3 and the lecture notes. It saids homework 3 is based on chapter 2 lecture notes, but…