MathLabs

Problem 2

Let a1,a2,…,ana_1,a_2,\ldots,a_n be real constants and let xx be real. Define f(x)=cos⁡(a1+x)+12cos⁡(a2+x)+⋯+12n−1cos⁡(an+x)f(x)=\cos(a_1+x)+\frac12\cos(a_2+x)+\cdots+\frac1{2^{n-1}}\cos(a_n+x). Given that f(x1)=f(x2)=0f(x_1)=f(x_2)=0, prove that x2−x1=mπx_2-x_1=m\pi for some integer mm.
Step 1 of 4: Collect the sine and cosine coefficients
In plain words

Every term has the same frequency, so changing the phases only changes the two coefficients, not the frequency.

f(x)=Bcos⁡x−Csin⁡x,B=∑j=1n21−jcos⁡aj,C=∑j=1n21−jsin⁡ajf(x)=B\cos x-C\sin x,\quad B=\sum_{j=1}^n2^{1-j}\cos a_j,\quad C=\sum_{j=1}^n2^{1-j}\sin a_j
Detailed analysis

Use cos⁡(aj+x)=cos⁡ajcos⁡x−sin⁡ajsin⁡x\cos(a_j+x)=\cos a_j\cos x-\sin a_j\sin x term by term. The weighted sum therefore has the form f(x)=Bcos⁡x−Csin⁡xf(x)=B\cos x-C\sin x, where B,CB,C are constants independent of xx.