14.7 Best Approximation by Trig Polynomials 495
14.7. Best Approximation by Trig Polynomials
We return to the theme of Chapter 10, uniform approximation. Here we are
interested in approximating 2π-periodic functions by (finite) linear combinations
of trigonometric functions. In this section, we obtain some reasonable estimates.
Later we will establish the Jackson and Bernstein Theorems, which yield optimal
estimates. It will turn out that there are close connections with approximation by
polynomials which we also explore.
The degree of a trigonometric polynomial q(x) = a
0
+
P
n
k=1
a
k
coskx +
b
k
sinkx is n if |a
n
|+ |b
n
| > 0 and a
k
= b
k
= 0 for all k > n. We let TP
n
denote
the subspace of C[−π, π] consisting of all trigonometric polynomials of degree at
most n.
14.7.1. DEFINITION. The error of approximation to a 2π-periodic function
f by trigonometric polynomials of degree n is
e
E
n
(f) = inf{kf − qk
∞
: q ∈ TP
n
}
For example, for any 2π-periodic function f ∈ C[−π, π], both S
n
f and σ
n
f
are in TP
n
. The subspace TP
n
has dimension 2n + 1 because it is spanned by the
linearly independent functions {1, coskx, sinkx : 1 ≤ k ≤ n}. It follows from the
compactness argument of Theorem 7.6.5 that there is a best approximation in TP
n
to any function f. That is, given f in C[−π, π], there is a trig polynomial p in TP
n
so that
kf − pk
∞
= inf{kf − qk
∞
: q ∈ TP
n
} =
e
E
n
(f).
In a certain sense, the functions S
n
f and σ
n
f are natural approximants to f
in TP
n
. Theorem 14.1.2 shows that S
n
f is the best L
2
norm approximant to f in
TP
n
. However, it has some undesirable wildness when it comes to the uniform
norm. F
´
ejer’s Theorem (Theorem 14.6.4) suggests that σ
n
f is a reasonably good
approximant in the uniform norm. The following theorem gives bounds on how
close S
n
f is to the best approximation in TP
n
. It says that S
n
f can be a relatively
bad approximation for large n. Nevertheless, the degree of approximation by S
n
f
is sufficiently good to yield reasonable approximations if the Fourier series decays
at a sufficient rate.
On the other hand, while σ
n
f is in general a superior approximant, consider
f(x) = sin nx. Then S
n
f = f is the best approximation with
e
E
n
(f) = 0, while
σ
n
f(x) =
1
n+1
sinnx is a rather poor estimate. In spite of this, good general results
can be obtained from the obvious estimate
e
E
n
(f) ≤ kf − σ
n
fk
∞
.
The reason that S
n
works in the following theorem is the fact that S
n
p = p for all
p in TP
n
.
14.7.2. THEOREM. If f : R → R is a continuous 2π-periodic function, then
kf − S
n
fk
∞
≤ (3 + log n)
e
E
n
(f).