Recover the invisible frequency
A recorder samples \(\sin(7x)\) at \(x_j=2\pi j/10\). Identify its low-frequency alias. Give a point where the two functions disagree, and find the mean-square energy of their difference over a period.
Worked solution
Since 7 is congruent to −3 modulo 10, the sampled signal agrees with \(-\sin(3x)\). At \(x=\pi/10\) their difference is \(2\sin(3\pi/10)\approx1.618\).
On the continuous period the two sine modes are orthogonal. Each has mean square \(1/2\), so their difference has mean square 1. A vanishing discrepancy at every sample therefore coexists with an order-one continuous error.
Explore the related calculation with adjustable inputs. Inspect continuous waves that agree at all recorded samples; the frequency-counting argument remains necessary to establish a whole-band guarantee.
Which modes deserve space?
Let \(f(x)=1+0.6\sin x+0.8\cos(4x)\). Compute its mean square, the root-mean-square error after retaining frequencies at most one, and the best additional single real basis function among all higher-frequency sine and cosine modes.
Worked solution
Pairwise orthogonality gives
Omitting the fourth cosine leaves root-mean-square error \(\sqrt{0.32}\approx0.566\).
The only omitted nonzero coefficient multiplies \(\cos(4x)\). Adding this mode removes the entire remaining mean-square error. Choosing an intermediate frequency for its lower index would make no change for this specific signal.
Explore the related calculation with adjustable inputs. Inspect continuous waves that agree at all recorded samples; the frequency-counting argument remains necessary to establish a whole-band guarantee.
Project an odd function
Find the best linear mean-square approximation to \(x^3\) on \([-1,1]\) with unit weight. Compute its squared integrated error and compare the optimum slope with endpoint interpolation.
Worked solution
Symmetry forces zero constant. Orthogonality to \(x\) requires
Expanding the square gives
Endpoint interpolation gives slope 1. The least-squares line trades endpoint accuracy for lower integrated loss.
Explore the related calculation with adjustable inputs. Compare the reduction produced by two orthogonal correction directions. The continuous integral and the finite observation sum use the same projection identity but different inner products.
Find the zeros in an eight-sample spectrum without eight long sums
A sensor returns \((1,2,0,0,1,2,0,0)\) at eight equally spaced times. Before computing any transforms, predict which four Fourier bins vanish. Use a four-point transform to find the other bins and verify the discrete energy identity for the unnormalised DFT.
Worked solution
Pair sample \(n\) with \(n+4\). The second weight differs by \(e^{-i\pi k}=(-1)^k\), so all odd bins cancel. For even \(k=2j\) the two halves reinforce and give twice the four-point DFT of \((1,2,0,0)\). Its entries are \(3,1-2i,-1,1+2i\). Thus
The sample energy is
The frequency-domain squared magnitudes sum to \(36+20+4+20=80\). Dividing by eight gives 10. Both the zeros and the energy check depend on the adopted transform convention. Reversing the exponent sign conjugates these coefficients and leaves their squared magnitudes unchanged.
Explore the related calculation with adjustable inputs. Inspect continuous waves that agree at all recorded samples; the frequency-counting argument remains necessary to establish a whole-band guarantee.
Revisit chapter 9 · Factor the discrete Fourier transform into short transforms.