In this post, we will see how to resolve Using Python to find best square approximation of Piecewise Functions? Question: Given a parabola, $f(x)=10(x-1)^2-1,x\in \Omega =[1,2]$, find the best approximation in the space of all linear functions. The Python code ...