Following the hint, we first show this for trigonometric polynomials. Let
Then
and (noting that
for
since
is irrational)
Since for
,
the limit of the sum on the right-hand side above as
is 0. Hence for every
,
For the general case, let
. By Theorem 8.15 there is a trigonometric polynomial
such that
for all real
. By the result above, there is a positive integer
such that for all
Hence