Question

A popular method for curve fitting is the “Least Squared” method.
a) Determine the value of the constant k which best approximates a specified function f(x) on the interval a≤x≤b. Use as a cost function to be minimized:
Verify that a minimum is achieved by checking the 2nd order optimality condition.
b) Determine the optimal value of k and L(k) in fractional form for f(x)=x²,a=0,and b=1.
c) For the best linear fit, determine the optimal value of k,m and L(k) in fractional form for f(x)=x²,a=0,and b=1 where,
Hint: The answers to these problems can be confirmed using MATLAB’s or Excel’s curve fitting.
In part a. we need to solve dL(k)/dk=0

Solution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

Warning: If you try using HL materials in an unethical manner, expect to fail your class. All HL items are old, recycled homework and are therefore not original. We intend them to be used only for the purposes of studying and learning.