The cosine and sine series hold for every complex z, and with them the series become a tool for proving identities, bounding values and summing other series.
§238 defined cosz and sinz through the exponential, and §242 expanded the exponential in a power series. Putting the two together, §243 obtains the familiar series for cosine and sine, now valid for every complex z. The examples that follow show what this buys: inequalities for ∣cosz∣ and ∣sinz∣, combinatorial identities by comparing coefficients, and closed forms for series such as ∑cosnz/n!.
The idea
cosz is the average of exp(iz) and exp(−iz). Write both as series: the terms of exp(iz) are (iz)n/n!, and those of exp(−iz) are (−iz)n/n!. For even n they are equal; for odd n they are opposite. So in the average the odd terms cancel and the even ones survive, with i2m=(−1)m. That is the cosine series. The sine is the same with the roles of even and odd exchanged.
The pictures are telling. On the imaginary axis, z=iy, every term of the cosine series is (−1)m(iy)2m/(2m)!=y2m/(2m)!: real and positive. The partial sums march steadily along the real axis to coshy, with no cancellation at all, which is why cosz is large off the real axis.
ExplorePartial sums of the cosine and sine series
Try this.Start with cosz at the given z and add terms. Then drag z onto the imaginary axis, say z=2i, and watch the direction of the steps. Switch to sinz at z=2i and at a real z such as z=3.
1−2!z2+4!z4−⋯→cosz
ReIm
z (drag it)
partial sums sₖ, one side per term
the sum
Series
z=1.4+1.2i, ∣z∣=1.84. Partial sum: 0.74−1.68i. Sum: 0.30775−1.4875i; distance 0.473. Next term has modulus 0.482.
What to notice
Successive steps of the cosine series turn by 2amz+π (each is the previous one times −z2/{(2m+1)(2m+2)}), and their lengths soon shrink. At z=2i all the steps of the cosine series point the same way, to the right: cos2i=cosh2≈3.76. For sin at z=2i they all point up, to sin2i=isinh2. On the real axis the steps alternate in direction and largely cancel, which is why ∣cosx∣≤1 there.
both series being absolutely convergent. Likewise coshz=∑z2m/(2m)! and sinhz=∑z2m+1/(2m+1)!.
CorollaryTaylor's series for cos and sin everywhereHardy: Examples XCVII, 11
The expansions cos(x+h)=cosx−hsinx−2!h2cosx+3!h3sinx+⋯ and sin(x+h)=sinx+hcosx−2!h2sinx−⋯ of §152 hold for all complex x and h.
Proofs
ProofThe cosine and sine series
Strategy
Substitute the exponential series for exp(iz) and exp(−iz) into the definitions of §238, and add or subtract term by term, which is allowed for convergent series.
The two series
By §242, exp(iz)=∑ninzn/n! and exp(−iz)=∑n(−i)nzn/n!, both absolutely convergent.
Cosine
cosz=21{exp(iz)+exp(−iz)}=∑n21{in+(−i)n}n!zn. For odd n the bracket is 0; for n=2m it is 21⋅2i2m=(−1)m.
Sine
sinz=−21i{exp(iz)−exp(−iz)}=∑n−21i{in−(−i)n}n!zn. For even n the bracket is 0; for n=2m+1 it is −21i⋅2i2m+1=−i2m+2=(−1)m.
Absolute convergence and the hyperbolic functions
Each series is dominated termwise by ∑∣z∣n/n!. For cosh and sinh do the same with exp(z) and exp(−z), where no powers of i appear.
∎
ProofTaylor's series everywhere
Strategy
Use the addition formulae (§238), which hold for complex arguments, and then expand cosh and sinh by the theorem.
Addition formula
cos(x+h)=cosxcosh−sinxsinh for all complex x, h.
Expand in h
Insert the series for cosh and sinh and multiply by the constants cosx, sinx: cos(x+h)=cosx(1−2!h2+⋯)−sinx(h−3!h3+⋯). Merging the two convergent series term by term gives the stated expansion. The sine is similar.
∎
Worked examples and exercises
ExerciseBounds from the series●○○Hardy: Examples XCVII, 1–2
Show that ∣cosz∣≤cosh∣z∣ and ∣sinz∣≤sinh∣z∣. Deduce that if ∣z∣<1 then ∣cosz∣<2 and ∣sinz∣<56∣z∣.
Hint
Take moduli term by term. For the second part, sinh1≈1.1752.
Solution
∣cosz∣≤∑∣z∣2m/(2m)!=cosh∣z∣, and similarly for sin. If ∣z∣<1: ∣cosz∣≤cosh∣z∣<cosh1≈1.543<2. And ∣sinz∣≤sinh∣z∣=∣z∣(1+3!∣z∣2+5!∣z∣4+⋯)<∣z∣(1+3!1+5!1+⋯)=∣z∣sinh1<56∣z∣ (for z=0).
ExerciseAn identity by comparing coefficients●●○Hardy: Examples XCVII, 3
From sin2z=2sinzcosz, by multiplying the series and comparing coefficients of z2n+1, prove
(12n+1)+(32n+1)+⋯+(2n+12n+1)=22n.Hint
Coefficients of equal convergent power series are equal (§201). The coefficient of z2n+1 in sin2z is (−1)n22n+1/(2n+1)!.
Solution
In 2sinzcosz=2(∑j(−1)j(2j+1)!z2j+1)(∑k(−1)k(2k)!z2k), the coefficient of z2n+1 is 2(−1)n∑j+k=n(2j+1)!(2k)!1=(2n+1)!2(−1)n∑j=0n(2j+12n+1). Equating with (−1)n22n+1/(2n+1)! gives ∑j(2j+12n+1)=22n.
Check by the binomial theorem: (1+1)2n+1=∑k(k2n+1) and (1−1)2n+1=∑k(−1)k(k2n+1)=0. Subtracting, twice the sum of the odd-index coefficients is 22n+1.
sin3z=41∑m(−1)m(2m+1)!(3−32m+1)z2m+1; the m=0 term vanishes, and the next ones give z3−21z5+⋯ (for m=1: 41⋅(−1)(3−27)/6=1; for m=2: 41(3−243)/120=−21).
ExerciseSumming a series of cosines●●○Hardy: Examples XCVII, 7
Since cosnz+isinnz=exp(inz)={exp(iz)}n, we get C+iS=∑n{exp(iz)}n/n!=exp{exp(iz)}, and likewise C−iS=exp{exp(−iz)} (all series converge absolutely). Now exp(±iz)=cosz±isinz, so by the addition theorem C±iS=exp(cosz)exp(±isinz). Adding and subtracting: C=exp(cosz)cos(sinz) and S=exp(cosz)sin(sinz), using the definitions of cosine and sine of the complex number sinz.
Check yourself
Check yourselfEnter a number
Compute cos2i.
Why
Every term of the series is positive: cos2i=1+2!4+4!16+⋯=cosh2≈3.7622.
Check yourselfChoose one
Why does the cosine series contain only even powers of z?
Why
The n-th terms of the two series are inzn/n! and (−i)nzn/n!, which are opposite for odd n. (cosz is not real in general, and the odd derivatives of cos vanish at 0, not everywhere.) Equivalently: cos is an even function.
Check yourselfTrue or false?
The series z−z3/3!+⋯ converges only for ∣z∣<π, the distance to the nearest zero of sin other than 0.
Why
False. It converges for every z: its terms are dominated by those of ∑∣z∣n/n!. Zeros do not limit the radius of convergence; only points where the function misbehaves (such as the pole of 1/(1+z) at −1) do.
Hardy’s language
Summary
Summary
cosz=∑(−1)mz2m/(2m)! and sinz=∑(−1)mz2m+1/(2m+1)! for every complex z: average or difference of two exponential series.
On the imaginary axis the terms do not alternate, which is why cosiy=coshy is large.
Term-by-term moduli give ∣cosz∣≤cosh∣z∣, ∣sinz∣≤sinh∣z∣.
Comparing coefficients turns trigonometric identities into combinatorial ones; ∑cosnz/n!=exp(cosz)cos(sinz).