Numerical Linear Algebra:
Please provide a correct detailed solution!!!
Suppose you have the following data: (0, 1.0000), (0.25,1.2840), (0.50, 1.6487), (0.75, 2.1170) and (1.00, 2.7183) .Using MATLAB, find a polynomial P (x) of degree 2 that fitsthe data with the minimal approximation error.Calculate this error. Then sketch thesediscrete points and the graph of the polynomial P(x) in a figureusing MATLAB.