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 3 of 4: Write one phase-shifted cosine
In plain words

A linear combination of sine and cosine with one frequency is just a cosine shifted horizontally.

R=B2+C2>0,f(x)=Rcos⁡(x+δ)R=\sqrt{B^2+C^2}>0,\qquad f(x)=R\cos(x+\delta)
Detailed analysis

Choose δ\delta with cos⁡δ=B/R\cos\delta=B/R and sin⁡δ=C/R\sin\delta=C/R. Then Rcos⁡(x+δ)=Bcos⁡x−Csin⁡x=f(x)R\cos(x+\delta)=B\cos x-C\sin x=f(x), and the amplitude RR is positive by the preceding step.