Maths WorkshopMaths problems with full solutions
Exercise 156Calculus › Single-variable calculus › Differentiation › Optimisation and curve sketchingL2Added 4 Nov 2026

The best constant approximating x²

#minimax#uniform approximation#absolute value

Statement

Find the real number cc that minimises E(c)=max⁡x∈[−1,1]∣x2−c∣E(c)=\displaystyle\max_{x\in[-1,1]}|x^2-c|, and the minimal error.

Hint

As xx ranges over [−1,1][-1,1], x2x^2 takes all the values in [0,1][0,1]. What is the largest distance from cc to a point of [0,1][0,1]?

Show solutionHide solution

Solution

Computing E(c)E(c). Since x2x^2 covers exactly [0,1][0,1], E(c)=max⁡t∈[0,1]∣t−c∣E(c)=\max_{t\in[0,1]}|t-c|. The function t↦∣t−c∣t\mapsto|t-c| is convex, so its maximum on [0,1][0,1] is at an endpoint:
E(c)=max⁡(∣c∣, ∣1−c∣).E(c)=\max\bigl(|c|,\,|1-c|\bigr).

Minimising. For c≤12c\le\frac12, E(c)=1−cE(c)=1-c (it is decreasing); for c≥12c\ge\frac12, E(c)=cE(c)=c (increasing). So the minimum is at c=12c=\frac12 with
E(12)=12.E\left(\tfrac12\right)=\frac12.

Interpretation. x2−12x^2-\frac12 takes the values +12+\frac12 (at x=−1x=-1), −12-\frac12 (at x=0x=0), +12+\frac12 (at x=1x=1): the error reaches its extremal value three times, with alternating signs.

Remark. This minimax problem is the first step towards Chebyshev polynomials: x2−12=12T2(x)x^2-\frac12=\frac12T_2(x) with T2(x)=2x2−1T_2(x)=2x^2-1. Contrast with the *least squares* approximation, which would minimise ∫−11(x2−c)2dx\int_{-1}^1(x^2-c)^2dx and give c=13c=\frac13 (the mean of x2x^2 on [−1,1][-1,1]).