Curve fitting
Objective: In order to make a curve fitting better, a higher degree polynomial should be chosen. This approach is used in the Finite Element Method (FEM) as well. (This is the answer of the second question) In linear curve fitting, the curve is not getting good results because if we see the original curve and define it…