When a Simpler Function Is Enough
A function may take too long to evaluate or be too complicated for a later calculation. We can choose a simpler class of functions, then find the one that is closest to the original function.
Let denote the real vector space of continuous functions on . We measure the error across the whole interval.
Assume so the interval has positive length.
Inner Product and Error over an Interval
For , define
This inner product turns into an inner-product space. The displayed norm is the norm. Dividing it by the square root of the interval length gives the root-mean-square value:
The quantity combines the error across the interval. Positive and negative errors cannot cancel because the difference is squared inside the integral.
Best Approximation as an Orthogonal Projection
Let be a finite-dimensional subspace. The best approximation of in is the unique function satisfying
Geometrically, is the orthogonal projection of onto . The residual must be orthogonal to every function in the approximation space:
If is a basis of and , these orthogonality conditions become the normal equations
Approximating a Quadratic by a Line
Approximate on by a function in . Write . Orthogonality to the two basis functions gives
The odd terms integrate to zero on the symmetric interval. The second equation gives , and the first gives . Therefore
The best line is horizontal. That conclusion is not a guess: the symmetry of forces the coefficient of the odd basis function to vanish.
Polynomial Approximation Spaces
For algebraic polynomials of degree at most , use
Increasing enlarges the approximation space, so the smallest possible error cannot increase. In computation, orthogonal polynomial bases are often preferable to raw powers because they produce better-conditioned systems.
Trigonometric Approximation Spaces
For period , the space consists of all functions of the following form, with real coefficients :
Over one full period, these sine and cosine basis functions are mutually orthogonal. Their coefficients can therefore be computed by projecting the target function onto each basis function, which is the finite-dimensional idea behind Fourier approximation.
| Choice of | Best suited for | What determines the coefficients |
|---|---|---|
| Smooth behavior on a finite interval | Orthogonality of the residual to polynomial basis functions | |
| Periodic behavior | Orthogonality of the residual to sine and cosine basis functions |
A best approximation is the orthogonal projection defined by a chosen function space, interval, and norm. Visual similarity alone does not establish it.