Find the best approximation to $f(x)$ = sgn$(x)$ by a function $f^*(x) = \alpha_0 + \alpha_1 x + \alpha_2x^3$ on the interval $[−1, 1]$, in the least squares sense.
I know what mean sgn$(x)$ but I don't know what mean $f^*(x)$ and how to count best approximation. Anyone helps?




$f^*(x)$ is just a function which is defined in the problem. You could call it $g(x)$ if you prefer. It depends on the constants $\alpha_0, \alpha_1, \alpha_2$. You are supposed to determine the value of the $\alpha $s to minimize the error. The error in the least squares sense is $\int_{-1}^1 (f(x)-f^*(x))^2\; dx$, so evaluate that, set the derivatives with respect to the $\alpha$s to zero, etc.