4.02q - Summing trigonometric series

4.02q - Summing trigonometric series

Add trigonometric terms by putting their cosine and sine parts back into a complex exponential. You will sum finite and convergent infinite geometric series, handle their exceptional cases, and recognise binomial coefficients hidden inside trigonometric sums.

Finite geometric sums of complex exponentials

Can you find the value of

1+12cos⁡θ+14cos⁡2θ+18cos⁡3θ+⋯1+\frac12\cos\theta+\frac14\cos2\theta+\frac18\cos3\theta+\cdots

without adding infinitely many terms? At θ=π2\theta=\frac\pi2, every other term is zero, and the rest give 1−14+116−⋯=451-\frac14+\frac1{16}-\cdots=\frac45. We will find one expression that works for every real θ\theta.

The first move is to put the sine terms back. For example,

1+eiθ+e2iθ=(1+cos⁡θ+cos⁡2θ)+i(sin⁡θ+sin⁡2θ)\begin{aligned} 1+e^{i\theta}+e^{2i\theta} &=(1+\cos\theta+\cos2\theta) \\ &\quad+i(\sin\theta+\sin2\theta) \end{aligned}

The real part is the cosine sum and the imaginary part is the sine sum. The complex expression is easier to add because it is a geometric progression with ratio eiθe^{i\theta}.

You already know

Euler's formula gives eirθ=cos⁡rθ+isin⁡rθe^{ir\theta}=\cos r\theta+i\sin r\theta. For a geometric progression with nn terms, first term aa and ratio q≠1q\ne1, the sum is a(1−qn)/(1−q)a(1-q^n)/(1-q). The same cancellation proof works with complex qq.

Indeed, subtracting qSqS from S=a+aq+⋯+aqn−1S=a+aq+\cdots+aq^{n-1} leaves (1−q)S=a(1−qn)(1-q)S=a(1-q^n).

A finite complex geometric sum

For a positive integer nn, complex aa and complex q≠1q\ne1,

∑r=0n−1aqr=a(1−qn)1−q\sum_{r=0}^{n-1}aq^r=\frac{a(1-q^n)}{1-q}

When q=1q=1, the sum is nana, obtained directly rather than by dividing by zero.

In the formula booklet.

For a unit ratio it helps to rewrite a difference of exponentials symmetrically:

1−eiu=eiu/2(e−iu/2−eiu/2)=−2ieiu/2sin⁡u21-e^{iu}=e^{iu/2}(e^{-iu/2}-e^{iu/2})=-2i e^{iu/2}\sin\frac u2

This derived identity is not printed in the formula booklet. It converts the quotient into a real size times a single exponential.

Worked example 1: a finite cosine sum

Question. Determine Cn=∑r=0n−1cos⁡rθ\displaystyle C_n=\sum_{r=0}^{n-1}\cos r\theta, where θ\theta is not an integer multiple of 2π2\pi.

Plan. Sum the complex geometric progression, centre its numerator and denominator, then take the real part.

Sn=∑r=0n−1eirθ=1−einθ1−eiθgeometric sum=−2ieinθ/2sin⁡(nθ/2)−2ieiθ/2sin⁡(θ/2)centre each difference=sin⁡(nθ/2)sin⁡(θ/2)ei(n−1)θ/2cancel factors\begin{aligned} S_n&=\sum_{r=0}^{n-1}e^{ir\theta}=\frac{1-e^{in\theta}}{1-e^{i\theta}} && \text{geometric sum} \\ &=\frac{-2i e^{in\theta/2}\sin(n\theta/2)}{-2i e^{i\theta/2}\sin(\theta/2)} && \text{centre each difference} \\ &=\frac{\sin(n\theta/2)}{\sin(\theta/2)}e^{i(n-1)\theta/2} && \text{cancel factors} \end{aligned}

Why this step? The sine quotient is real, so the real part of the final expression is obtained just by replacing its exponential by its cosine part.

Answer. Cn=sin⁡(nθ/2)cos⁡((n−1)θ/2)sin⁡(θ/2)\displaystyle C_n=\frac{\sin(n\theta/2)\cos((n-1)\theta/2)}{\sin(\theta/2)}.

Check. For n=2n=2 and θ=π3\theta=\frac\pi3, the sum is 1+12=321+\frac12=\frac32. The formula gives sin⁡(π/3)cos⁡(π/6)sin⁡(π/6)=32\frac{\sin(\pi/3)\cos(\pi/6)}{\sin(\pi/6)}=\frac32.

Worked example 2 changes only the part you extract: imaginary instead of real. The complex sum and all its conditions stay the same.

Worked example 2: a finite sine sum

Question. Determine Tn=∑r=0n−1sin⁡rθ\displaystyle T_n=\sum_{r=0}^{n-1}\sin r\theta, where θ\theta is not an integer multiple of 2π2\pi.

Plan. Use the same complex geometric progression and extract its imaginary part.

Cn+iTn=1−einθ1−eiθcombine the two sums=sin⁡(nθ/2)sin⁡(θ/2)ei(n−1)θ/2centre and cancelTn=sin⁡(nθ/2)sin⁡((n−1)θ/2)sin⁡(θ/2)imaginary part\begin{aligned} C_n+iT_n&=\frac{1-e^{in\theta}}{1-e^{i\theta}} && \text{combine the two sums} \\ &=\frac{\sin(n\theta/2)}{\sin(\theta/2)}e^{i(n-1)\theta/2} && \text{centre and cancel} \\ T_n&=\frac{\sin(n\theta/2)\sin((n-1)\theta/2)}{\sin(\theta/2)} && \text{imaginary part} \end{aligned}

Why this step? The imaginary part is the real coefficient of ii; taking it introduces sine and leaves no ii in the answer.

Answer. Tn=sin⁡(nθ/2)sin⁡((n−1)θ/2)sin⁡(θ/2)\displaystyle T_n=\frac{\sin(n\theta/2)\sin((n-1)\theta/2)}{\sin(\theta/2)}.

Check. At n=2n=2, θ=π3\theta=\frac\pi3, this is sin⁡(π/3)sin⁡(π/6)sin⁡(π/6)=32\frac{\sin(\pi/3)\sin(\pi/6)}{\sin(\pi/6)}=\frac{\sqrt3}{2}, equal to sin⁡0+sin⁡π3\sin0+\sin\frac\pi3.

The two real sum formulae are not in the formula booklet: obtain them from its geometric-series formula. If θ=2kπ\theta=2k\pi, each cosine term is 1 and each sine term is 0, so Cn=nC_n=n and Tn=0T_n=0. The quotient formulae then read 0/00/0 and cannot be substituted into directly.

Watch out

Wrong: ∑r=1neirθ=(1−einθ)/(1−eiθ)\sum_{r=1}^{n}e^{ir\theta}=(1-e^{in\theta})/(1-e^{i\theta}). That expression starts at r=0r=0. Right: the first term is eiθe^{i\theta}, so multiply the quotient by eiθe^{i\theta}.

Changing the first index rotates the whole complex sum by one step, which changes the angle in its final cosine factor.

Convergent trigonometric sums

A factor that shrinks each term turns the complex geometric progression into a convergent infinite series.

Write q=ρeiθq=\rho e^{i\theta}. Its modulus is ∣q∣=∣ρ∣|q|=|\rho|, because ∣eiθ∣=1|e^{i\theta}|=1. If ∣ρ∣<1|\rho|<1, then ∣qn∣=∣ρ∣n→0|q^n|=|\rho|^n\to0, so both the real and imaginary parts of the omitted tail tend to zero. This is the condition that permits an infinite sum.

An infinite complex geometric sum

For complex a,qa,q with ∣q∣<1|q|<1,

∑r=0∞aqr=a1−q\sum_{r=0}^{\infty}aq^r=\frac{a}{1-q}

The modulus condition is essential; in particular, q=eiθq=e^{i\theta} has modulus 1 and does not give a convergent geometric series.

In the formula booklet.

The sum of a complex GP is also the sum of its real parts plus ii times the sum of its imaginary parts. Rationalise 1−ρeiθ=1−ρcos⁡θ−iρsin⁡θ1-\rho e^{i\theta}=1-\rho\cos\theta-i\rho\sin\theta to read them off.

Worked example 3: the opening infinite cosine sum

Question. Determine C=∑r=0∞2−rcos⁡rθ\displaystyle C=\sum_{r=0}^{\infty}2^{-r}\cos r\theta.

Plan. Sum the GP with ratio 12eiθ\frac12e^{i\theta}, then multiply by the conjugate of its denominator.

S=∑r=0∞(12eiθ)r=11−12eiθ∣q∣=12<1=1−12cos⁡θ+12isin⁡θ(1−12cos⁡θ)2+14sin⁡2θuse the conjugate=1−12cos⁡θ+12isin⁡θ54−cos⁡θcos⁡2θ+sin⁡2θ=1\begin{aligned} S&=\sum_{r=0}^{\infty}\left(\frac12e^{i\theta}\right)^r=\frac1{1-\frac12e^{i\theta}} && |q|=\tfrac12<1 \\ &=\frac{1-\frac12\cos\theta+\frac12i\sin\theta}{(1-\frac12\cos\theta)^2+\frac14\sin^2\theta} && \text{use the conjugate} \\ &=\frac{1-\frac12\cos\theta+\frac12i\sin\theta}{\frac54-\cos\theta} && \cos^2\theta+\sin^2\theta=1 \end{aligned}

Why this step? A real denominator makes the real and imaginary parts visible, while its squared-modulus form shows it cannot vanish here.

Answer. C=4−2cos⁡θ5−4cos⁡θ\displaystyle C=\frac{4-2\cos\theta}{5-4\cos\theta}.

Check. At θ=0\theta=0, the sum is 1+12+14+⋯=21+\frac12+\frac14+\cdots=2, and the formula gives 2. At θ=π2\theta=\frac\pi2, it gives 45\frac45, answering the numerical case from the opening.

Worked example 4 changes only cosine to sine. The convergence condition and the denominator are unchanged.

Worked example 4: the matching infinite sine sum

Question. Determine T=∑r=0∞2−rsin⁡rθ\displaystyle T=\sum_{r=0}^{\infty}2^{-r}\sin r\theta.

Plan. Extract the imaginary part of the same convergent complex GP after rationalising its denominator.

∑r=0∞2−reirθ=11−12eiθ∣q∣=12<1=4−2cos⁡θ+2isin⁡θ5−4cos⁡θrationalise; multiply by 4T=2sin⁡θ5−4cos⁡θimaginary part\begin{aligned} \sum_{r=0}^{\infty}2^{-r}e^{ir\theta} &=\frac1{1-\frac12e^{i\theta}} && |q|=\tfrac12<1 \\ &=\frac{4-2\cos\theta+2i\sin\theta}{5-4\cos\theta} && \text{rationalise; multiply by }4 \\ T&=\frac{2\sin\theta}{5-4\cos\theta} && \text{imaginary part} \end{aligned}

Why this step? The complex sum solves the cosine and sine problems together; extracting a different part requires no new summation.

Answer. T=2sin⁡θ5−4cos⁡θ\displaystyle T=\frac{2\sin\theta}{5-4\cos\theta}.

Check. At θ=π2\theta=\frac\pi2, the series is 12−18+132−⋯=1/21+1/4=25\frac12-\frac18+\frac1{32}-\cdots=\frac{1/2}{1+1/4}=\frac25, agreeing with the formula.

These rational trigonometric sum expressions are derived results, not printed in the formula booklet. More generally the denominator is 1−2ρcos⁡θ+ρ21-2\rho\cos\theta+\rho^2, the squared modulus of 1−ρeiθ1-\rho e^{i\theta}.

Watch out

Wrong: an infinite sum of eirθe^{ir\theta} equals 1/(1−eiθ)1/(1-e^{i\theta}) whenever the denominator is non-zero. A non-zero denominator is not a convergence test. Right: use the infinite GP formula only when the modulus of the ratio is less than 1.

Changing the shrinking factor changes the denominator's squared modulus; the extraction of the imaginary part stays the same.

Binomial coefficients in trigonometric sums

When the coefficients are binomial coefficients, use a binomial expansion instead of a geometric sum.

For example, 1,4,6,4,11,4,6,4,1 are the coefficients of (1+z)4(1+z)^4, so

1+4eiθ+6e2iθ+4e3iθ+e4iθ=(1+eiθ)41+4e^{i\theta}+6e^{2i\theta}+4e^{3i\theta}+e^{4i\theta}=(1+e^{i\theta})^4

The coefficients change, so this is not a GP. Its real and imaginary parts are still the desired trigonometric sums.

The binomial sum

For a non-negative integer nn and complex zz,

∑r=0n(nr)zr=(1+z)n\sum_{r=0}^{n}\binom nr z^r=(1+z)^n

In the formula booklet.

Here the sum has n+1n+1 terms. To simplify the right side, centre the exponential sum:

1+eiθ=eiθ/2(e−iθ/2+eiθ/2)=2cos⁡θ2 eiθ/21+e^{i\theta}=e^{i\theta/2}(e^{-i\theta/2}+e^{i\theta/2})=2\cos\frac\theta2\ e^{i\theta/2}

This derived identity is not separately printed. It is valid even when cos⁡(θ/2)\cos(\theta/2) is negative: the expression is an algebraic product, and we are not claiming its real prefactor is a modulus.

Worked example 5: a binomial cosine sum

Question. Determine ∑r=0n(nr)cos⁡rθ\displaystyle\sum_{r=0}^{n}\binom nr\cos r\theta, for a positive integer nn.

Plan. Recognise the real part of (1+eiθ)n(1+e^{i\theta})^n, centre the bracket, and use de Moivre.

S=∑r=0n(nr)eirθ=(1+eiθ)nbinomial theorem=(2cos⁡θ2)neinθ/2centre; take the integer powerRe(S)=2ncos⁡nθ2cos⁡nθ2real part\begin{aligned} S&=\sum_{r=0}^{n}\binom nr e^{ir\theta}=(1+e^{i\theta})^n && \text{binomial theorem} \\ &=\left(2\cos\frac\theta2\right)^n e^{in\theta/2} && \text{centre; take the integer power} \\ \mathrm{Re}(S)&=2^n\cos^n\frac\theta2\cos\frac{n\theta}2 && \text{real part} \end{aligned}

Why this step? The entire coefficient (2cos⁡(θ/2))n(2\cos(\theta/2))^n is real, so it stays outside when you extract the real part.

Answer. ∑r=0n(nr)cos⁡rθ=2ncos⁡nθ2cos⁡nθ2\displaystyle\sum_{r=0}^{n}\binom nr\cos r\theta=2^n\cos^n\frac\theta2\cos\frac{n\theta}2.

Check. For n=2n=2, θ=π3\theta=\frac\pi3, the sum is 1+2(12)−12=321+2(\frac12)-\frac12=\frac32. The expression is 4(32)2(12)=324(\frac{\sqrt3}{2})^2(\frac12)=\frac32.

Worked example 6 changes only the part extracted, so the sine sum follows from the very same expansion.

Worked example 6: a binomial sine sum

Question. Determine ∑r=0n(nr)sin⁡rθ\displaystyle\sum_{r=0}^{n}\binom nr\sin r\theta, for a positive integer nn.

Plan. Sum the complex binomial expression and extract its imaginary part.

S=(1+eiθ)nbinomial theorem=2ncos⁡nθ2(cos⁡nθ2+isin⁡nθ2)de MoivreIm(S)=2ncos⁡nθ2sin⁡nθ2coefficient of i\begin{aligned} S&=(1+e^{i\theta})^n && \text{binomial theorem} \\ &=2^n\cos^n\frac\theta2\left(\cos\frac{n\theta}2+i\sin\frac{n\theta}2\right) && \text{de Moivre} \\ \mathrm{Im}(S)&=2^n\cos^n\frac\theta2\sin\frac{n\theta}2 && \text{coefficient of }i \end{aligned}

Why this step? Taking imaginary parts gives the sine sum directly, including its sign; no division by a trigonometric expression is needed.

Answer. ∑r=0n(nr)sin⁡rθ=2ncos⁡nθ2sin⁡nθ2\displaystyle\sum_{r=0}^{n}\binom nr\sin r\theta=2^n\cos^n\frac\theta2\sin\frac{n\theta}2.

Check. At n=2n=2, θ=π3\theta=\frac\pi3, the sum is 2(32)+32=3322(\frac{\sqrt3}{2})+\frac{\sqrt3}{2}=\frac{3\sqrt3}{2}, also the value of the formula.

The binomial cosine and sine sum results are not printed in the formula booklet: they come from its binomial theorem and de Moivre's theorem. A factor ara^r changes the bracket to 1+aeiθ1+ae^{i\theta}; alternating signs change it to 1−eiθ1-e^{i\theta}. Recognising the coefficients tells you which expansion to choose.

Problem-solving

Combine cosine and sine first, then inspect the coefficients: constant ratio suggests a GP; binomial coefficients suggest a power of a bracket.

An angle step of 2θ2\theta simply replaces eiθe^{i\theta} by e2iθe^{2i\theta} inside the binomial bracket.

Quick Recap

  • Add eirθe^{ir\theta} terms first; their real and imaginary parts give cosine and sine sums.
  • Count the terms and identify the first term before using a finite GP formula.
  • Handle ratio 1 directly; do not substitute into a zero denominator.
  • An infinite complex GP requires its ratio to have modulus less than 1.
  • Binomial coefficients call for (1+z)n(1+z)^n, followed by de Moivre and extraction of a real or imaginary part.

The opening infinite series is (4−2cos⁡θ)/(5−4cos⁡θ)(4-2\cos\theta)/(5-4\cos\theta), so at θ=π2\theta=\frac\pi2 it is exactly 45\frac45.