Pj13 - Summing trigonometric series

Pj13 - Summing trigonometric series

Add a sine series and a cosine series together as one complex series, sum it, then extract the part you need. This second use of Pj13 covers binomially weighted sums, finite geometric sums and convergent infinite series, including series whose angles advance by more than one step.

Binomial coefficients reveal a power

What is the exact value of

1+8cos⁡π3+28cos⁡2π3+56cos⁡π+70cos⁡4π3+56cos⁡5π3+28cos⁡2π+8cos⁡7π3+cos⁡8π3?1+8\cos\frac\pi3+28\cos\frac{2\pi}3+56\cos\pi+70\cos\frac{4\pi}3+56\cos\frac{5\pi}3+28\cos2\pi+8\cos\frac{7\pi}3+\cos\frac{8\pi}3?

The coefficients look far less mysterious when you recognise row 88 of Pascal's triangle. One binomial expansion can replace the whole sum.

You already know

For z=cos⁡θ+isin⁡θz=\cos\theta+i\sin\theta, de Moivre gives zr=cos⁡rθ+isin⁡rθz^r=\cos r\theta+i\sin r\theta. The binomial theorem gives (1+z)n=∑r=0n(nr)zr(1+z)^n=\sum_{r=0}^{n}\binom nr z^r for a non-negative integer nn.

Consequently, the real and imaginary parts of (1+z)n(1+z)^n are the two weighted sums. The half-angle identities give a useful factorisation:

1+z=1+cos⁡θ+isin⁡θ=2cos⁡θ2(cos⁡θ2+isin⁡θ2)\begin{aligned} 1+z&=1+\cos\theta+i\sin\theta \\ &=2\cos\frac\theta2\left(\cos\frac\theta2+i\sin\frac\theta2\right) \end{aligned}

This is an algebraic identity even when cos⁡(θ/2)\cos(\theta/2) is negative; do not call that negative coefficient a modulus. Raising the factorisation to an integer power and using de Moivre now sums both series at once.

Binomially weighted trigonometric sums

For a positive integer nn and real θ\theta,

∑r=0n(nr)cos⁡rθ=2ncos⁡nθ2cos⁡nθ2∑r=0n(nr)sin⁡rθ=2ncos⁡nθ2sin⁡nθ2\begin{aligned} \sum_{r=0}^{n}\binom nr\cos r\theta &=2^n\cos^n\frac\theta2\cos\frac{n\theta}2 \\ \sum_{r=0}^{n}\binom nr\sin r\theta &=2^n\cos^n\frac\theta2\sin\frac{n\theta}2 \end{aligned}

Not in the formula booklet: learn it.

The booklet supplies the binomial theorem and de Moivre's theorem separately. In an exam, explain how you combine them rather than simply quoting a remembered sum.

Worked example 1: extracting a cosine sum

Question. Find ∑r=04(4r)cos⁡(rπ/3)\sum_{r=0}^{4}\binom4r\cos(r\pi/3) exactly.

Plan. Make the sum the real part of (1+z)4(1+z)^4, where z=cos⁡(π/3)+isin⁡(π/3)z=\cos(\pi/3)+i\sin(\pi/3).

1+z=3(cos⁡π6+isin⁡π6)half-angle factorisation(1+z)4=9(cos⁡2π3+isin⁡2π3)de Moivre∑r=04(4r)cos⁡rπ3=9cos⁡2π3=−92real parts\begin{aligned} 1+z&=\sqrt3\left(\cos\frac\pi6+i\sin\frac\pi6\right) && \text{half-angle factorisation} \\ (1+z)^4&=9\left(\cos\frac{2\pi}3+i\sin\frac{2\pi}3\right) && \text{de Moivre} \\ \sum_{r=0}^{4}\binom4r\cos\frac{r\pi}3&=9\cos\frac{2\pi}3=-\frac92 && \text{real parts} \end{aligned}

Why this step? The binomial coefficient multiplies the whole power zrz^r, so its real part is exactly the coefficient times cos⁡(rπ/3)\cos(r\pi/3).

Answer. −9/2-9/2.

Check. Directly, 1+4(1/2)+6(−1/2)+4(−1)+(−1/2)=−9/21+4(1/2)+6(-1/2)+4(-1)+(-1/2)=-9/2.

Change only the requested part of the same complex sum. There is no need to repeat four separate trigonometric calculations.

Worked example 2: extracting a sine sum

Question. Find ∑r=04(4r)sin⁡(rπ/3)\sum_{r=0}^{4}\binom4r\sin(r\pi/3) exactly.

Plan. Use the imaginary part of the same binomial expansion.

∑r=04(4r)zr=(1+z)4binomial theorem=9(−12+32i)de Moivre∑r=04(4r)sin⁡rπ3=932imaginary parts\begin{aligned} \sum_{r=0}^{4}\binom4r z^r&=(1+z)^4 && \text{binomial theorem} \\ &=9\left(-\frac12+\frac{\sqrt3}{2}i\right) && \text{de Moivre} \\ \sum_{r=0}^{4}\binom4r\sin\frac{r\pi}3&=\frac{9\sqrt3}{2} && \text{imaginary parts} \end{aligned}

Why this step? The imaginary part is the coefficient of ii, so the real sum you seek does not contain ii.

Answer. 93/29\sqrt3/2.

Check. The non-zero sine terms give 4(3/2)+6(3/2)−3/2=93/24(\sqrt3/2)+6(\sqrt3/2)-\sqrt3/2=9\sqrt3/2.

The surprising feature is that an entire row of Pascal's triangle, with alternating positive and negative trigonometric contributions, collapses to one point on a circle. For the opening sum that point has modulus 8181 and angle 4π/34\pi/3, so its real part will be −81/2-81/2.

Watch out

Wrong: ∑(nr)cos⁡rθ=(1+cos⁡θ)n\sum\binom nr\cos r\theta=(1+\cos\theta)^n.

Right: take Re⁡((1+z)n)\operatorname{Re}((1+z)^n). Taking real parts before raising to a power loses all the terms involving even powers of ii.

A new exponent tests whether you can recognise the structure without expanding the entire row.

Finite sums with equally spaced angles

Without binomial coefficients, equally spaced angles usually signal a geometric series. The common ratio is complex, but the cancellation proof of the geometric-series formula still works.

If C=1+cos⁡θ+⋯+cos⁡nθC=1+\cos\theta+\cdots+\cos n\theta and S=sin⁡θ+⋯+sin⁡nθS=\sin\theta+\cdots+\sin n\theta, then C+iS=1+z+⋯+znC+iS=1+z+\cdots+z^n, where z=cos⁡θ+isin⁡θz=\cos\theta+i\sin\theta.

Finite geometric sum

For complex q≠1q\ne1 and positive integer NN,

1+q+⋯+qN−1=1−qN1−q1+q+\cdots+q^{N-1}=\frac{1-q^N}{1-q}

When q=1q=1, the sum is NN, so do not use the fraction.

In the formula booklet.

To extract real and imaginary parts, either rationalise the denominator or factor numerator and denominator into half-angle forms. The latter often keeps a general finite sum pleasantly short.

Worked example 3: consecutive angles

Question. Show that, for θ\theta not a multiple of 2π2\pi,

∑r=0ncos⁡rθ=sin⁡((n+1)θ/2)cos⁡(nθ/2)sin⁡(θ/2)\sum_{r=0}^{n}\cos r\theta =\frac{\sin((n+1)\theta/2)\cos(n\theta/2)}{\sin(\theta/2)}

Plan. Sum the complex geometric series and use half-angle factorisations before taking real parts.

Write uα=cos⁡α+isin⁡αu_\alpha=\cos\alpha+i\sin\alpha. The identity
1−uα=−2isin⁡(α/2)uα/21-u_\alpha=-2i\sin(\alpha/2)u_{\alpha/2} follows by expanding the right side. Therefore

C+iS=1−zn+11−zgeometric sum=−2isin⁡((n+1)θ/2)u(n+1)θ/2−2isin⁡(θ/2)uθ/2factor both differences=sin⁡((n+1)θ/2)sin⁡(θ/2)unθ/2divide unit complex numbers\begin{aligned} C+iS&=\frac{1-z^{n+1}}{1-z} && \text{geometric sum} \\ &=\frac{-2i\sin((n+1)\theta/2)u_{(n+1)\theta/2}} {-2i\sin(\theta/2)u_{\theta/2}} && \text{factor both differences} \\ &=\frac{\sin((n+1)\theta/2)}{\sin(\theta/2)}u_{n\theta/2} && \text{divide unit complex numbers} \end{aligned}

Why this step? Dividing the unit factors subtracts their angles. The remaining prefactor is real, so its real part is obtained by multiplying by cos⁡(nθ/2)\cos(n\theta/2).

Answer. Taking real parts gives the stated result. Taking imaginary parts also gives

∑r=0nsin⁡rθ=sin⁡((n+1)θ/2)sin⁡(nθ/2)sin⁡(θ/2)\sum_{r=0}^{n}\sin r\theta =\frac{\sin((n+1)\theta/2)\sin(n\theta/2)}{\sin(\theta/2)}

Check. At n=1n=1, the cosine formula gives 2cos⁡2(θ/2)=1+cos⁡θ2\cos^2(\theta/2)=1+\cos\theta.

Now change only the angle step, from θ\theta to 2θ2\theta. The ratio must change with it.

Worked example 4: an angle step of twice theta

Question. Find an expression for 1+cos⁡2θ+cos⁡4θ+⋯+cos⁡2nθ1+\cos2\theta+\cos4\theta+\cdots+\cos2n\theta, when θ\theta is not a multiple of π\pi.

Plan. Sum 1+z2+z4+⋯+z2n1+z^2+z^4+\cdots+z^{2n}, whose common ratio is z2z^2.

C+iS=1−z2(n+1)1−z2ratio z2=−2isin⁡((n+1)θ)u(n+1)θ−2isin⁡θ uθhalf-angle factors=sin⁡((n+1)θ)sin⁡θunθsubtract arguments\begin{aligned} C+iS&=\frac{1-z^{2(n+1)}}{1-z^2} && \text{ratio }z^2 \\ &=\frac{-2i\sin((n+1)\theta)u_{(n+1)\theta}} {-2i\sin\theta\,u_\theta} && \text{half-angle factors} \\ &=\frac{\sin((n+1)\theta)}{\sin\theta}u_{n\theta} && \text{subtract arguments} \end{aligned}

Why this step? There are still n+1n+1 terms. The final exponent is 2n2n, but the geometric numerator uses the ratio to the power n+1n+1.

Answer. C=sin⁡((n+1)θ)cos⁡nθsin⁡θC=\dfrac{\sin((n+1)\theta)\cos n\theta}{\sin\theta}.

Check. At n=2n=2, θ=π/3\theta=\pi/3, the direct sum is 1−1/2−1/2=01-1/2-1/2=0, and the formula has numerator sin⁡π=0\sin\pi=0.

The two extracted finite trigonometric-sum identities are not in the formula booklet: learn the derivation. At the excluded angles, return to the original terms. For example, when θ=2kπ\theta=2k\pi, the consecutive-angle cosine sum is n+1n+1, although its fractional expression gives 0/00/0.

Watch out

Wrong: 1+z+⋯+zn=(1−zn)/(1−z)1+z+\cdots+z^n=(1-z^n)/(1-z).

Right: the numerator is 1−zn+11-z^{n+1}, because the sum contains n+1n+1 terms. Count terms before applying the formula.

Use the imaginary-part formula for this exact-value check; its first term is sin⁡0=0\sin0=0.

Infinite sums and shifted angles

An infinite complex geometric series converges when its ratio has modulus less than 11. This is a distance condition: repeated powers approach the origin, whatever their arguments do.

For example, q=12(cos⁡θ+isin⁡θ)q=\frac12(\cos\theta+i\sin\theta) has ∣q∣=1/2|q|=1/2, so each power has half the previous modulus. Its cosine and sine parts can oscillate while the series still converges.

Infinite complex geometric sum

For complex qq with ∣q∣<1|q|<1,

a+aq+aq2+⋯=a1−qa+aq+aq^2+\cdots=\frac{a}{1-q}

The finite formula tends to this result because qN→0q^N\to0.

In the formula booklet.

After summing, make the denominator real using its conjugate. Taking a real or imaginary part of a quotient before doing this is generally invalid.

Worked example 5: a convergent sine series

Question. Show that

12sin⁡θ+14sin⁡2θ+18sin⁡3θ+⋯=2sin⁡θ5−4cos⁡θ\frac12\sin\theta+\frac14\sin2\theta+\frac18\sin3\theta+\cdots =\frac{2\sin\theta}{5-4\cos\theta}

Plan. Sum q+q2+⋯q+q^2+\cdots, where q=z/2q=z/2, rationalise, then take imaginary parts.

C+iS=z/21−z/2=z2−z∣z/2∣<1=z(2−z−1)(2−z)(2−z−1)z∗=z−1=2z−15−2(z+z−1)zz−1=1=(2cos⁡θ−1)+2isin⁡θ5−4cos⁡θreal denominator\begin{aligned} C+iS&=\frac{z/2}{1-z/2}=\frac{z}{2-z} && |z/2|<1 \\ &=\frac{z(2-z^{-1})}{(2-z)(2-z^{-1})} && z^*=z^{-1} \\ &=\frac{2z-1}{5-2(z+z^{-1})} && zz^{-1}=1 \\ &=\frac{(2\cos\theta-1)+2i\sin\theta}{5-4\cos\theta} && \text{real denominator} \end{aligned}

Why this step? Both numerator and denominator must be multiplied by the denominator's conjugate. The denominator is then ∣2−z∣2|2-z|^2, a positive real number.

Answer. Taking imaginary parts gives S=2sin⁡θ5−4cos⁡θS=\dfrac{2\sin\theta}{5-4\cos\theta}, as required.

Check. At θ=π/2\theta=\pi/2, the series is 1/2−1/8+1/32−⋯=(1/2)/(1+1/4)=2/51/2-1/8+1/32-\cdots=(1/2)/(1+1/4)=2/5, matching the formula.

Change the angle step from θ\theta to 2θ2\theta, keeping the initial angle θ\theta. The first term and the common ratio now have different arguments.

Worked example 6: a different initial angle and step

Question. Sum

C=cos⁡θ+12cos⁡3θ+14cos⁡5θ+⋯C=\cos\theta+\frac12\cos3\theta+\frac14\cos5\theta+\cdots

Plan. Pair this with the corresponding sine sum and use first term zz, ratio z2/2z^2/2.

C+iS=z1−z2/2=2z2−z2∣z2/2∣=1/2=2z(2−z−2)(2−z2)(2−z−2)conjugate denominator=4z−2z−15−2(z2+z−2)simplify powers=2cos⁡θ+6isin⁡θ5−4cos⁡2θde Moivre\begin{aligned} C+iS&=\frac{z}{1-z^2/2}=\frac{2z}{2-z^2} && |z^2/2|=1/2 \\ &=\frac{2z(2-z^{-2})}{(2-z^2)(2-z^{-2})} && \text{conjugate denominator} \\ &=\frac{4z-2z^{-1}}{5-2(z^2+z^{-2})} && \text{simplify powers} \\ &=\frac{2\cos\theta+6i\sin\theta}{5-4\cos2\theta} && \text{de Moivre} \end{aligned}

Why this step? The ratio comes from the change between successive terms: the coefficient halves and the angle increases by 2θ2\theta. It is not simply half the first term.

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

Check. At θ=0\theta=0, the series is 1+1/2+1/4+⋯=21+1/2+1/4+\cdots=2, and the expression is 2/(5−4)=22/(5-4)=2.

The derived trigonometric sums are not in the formula booklet: learn the complex-series method. Notice that 5−4cos⁡2θ≥15-4\cos2\theta\ge1, so the final denominator cannot vanish for a real angle. That agrees with convergence for every real θ\theta.

Exam tip

State the first term, common ratio and its modulus before summing an infinite series. When establishing a given sine or cosine result, show a real denominator before extracting the required part.

Finally, the opening binomial sum is the real part of (1+z)8(1+z)^8 at θ=π/3\theta=\pi/3: (3)8cos⁡(4π/3)=−81/2(\sqrt3)^8\cos(4\pi/3)=-81/2. The long string of cosines hid a single binomial power.

Watch out

Wrong: the ratio in z+12z3+14z5+⋯z+\frac12z^3+\frac14z^5+\cdots is z/2z/2. Each exponent increases by 22, so dividing the second term by the first gives the correct ratio z2/2z^2/2.

Find the next series’ ratio from two consecutive complex terms.

Quick Recap

  • Binomial coefficients suggest (1+z)n(1+z)^n; its real and imaginary parts give weighted cosine and sine sums.
  • Equally spaced angles suggest a geometric series. Identify the angle step and count its terms.
  • For infinite sums, check that the modulus of the common ratio is below 11.
  • Make a complex denominator real before extracting parts; a shifted first angle changes the first term, while the angle step changes the ratio.

The opening nine-term cosine sum is −81/2-81/2, obtained from the real part of one eighth power.