Figure 1

Figure 1: Function f = cos3(πx ∕2) + (x + 1)3 ∕8 (black curve) and its best approximation of degree 2 (red curve). The blue arrows denote the four points where the maximum error is attained.