Register to reply 
On general expansion of cos nΘ 
Share this thread: 
#1
Jun2514, 06:31 PM

PF Gold
P: 316

So I know
[itex]\cos n \theta + i \sin n \theta = (\cos \theta + i \sin \theta)^n[/itex] and by applying binomial to the RHS and taking the real part gives you: [itex]\cos n \theta = \sum_{k=0}^{\lfloor {n \over 2} \rfloor} C^n_{2k} (\cos^2 \theta  1)^k \cos^{n  2k} \theta[/itex] . I have come across another expansion: [itex]\cos n \theta = {n \over 2} \sum_{k=0}^{\lfloor {n \over 2} \rfloor} (1)^k {(n  k  1)! \over k! (n  2 k)!} (2 \cos \theta)^{n2k} \qquad n > 0[/itex] I'm trying to derive this second expansion for [itex]\cos n \theta[/itex] from the previous expression. You can start by rewriting the first expansion as [itex]\cos n \theta = \cos^n \theta \sum_{k=0}^{\lfloor {n \over 2} \rfloor} C^n_{2k} (1  \cos^{2} \theta)^k[/itex] and then expand the [itex](1  \cos^{2} \theta)^k[/itex] for every value of [itex]k[/itex] and bring together terms of the same power in [itex](\cos^{2} \theta)[/itex]. This is where I get a bit stuck. I think you might need to use some identity for the sum of the product of binomial coefficients. I have used the identity [itex]C_0^n + C_2^n + C_4^n + \dots + C_{2 \lfloor {n \over 2} \rfloor}^n = 2^{n1}[/itex] to obtain the correct coefficient for the [itex](\cos^{2} \theta)^0[/itex] term (note this term gets multiplied by the [itex]\cos^n \theta[/itex] outside the sum and so what we have is the coefficient corresponding to the [itex]\cos^n \theta[/itex] term in the expansion of [itex]\cos n \theta[/itex]). 


#2
Jun2514, 09:23 PM

Homework
Sci Advisor
HW Helper
Thanks
P: 12,463

Equating coefficients of ##cos^{n2k}\theta## suggests...
$$C_{2k}^n(\cos^2\theta  1)^k=(1)^k2^{n2k}\frac{(nk1)!}{k!(n2k)!}$$... recalling that:$$C_{2k}^n=\frac{n!}{(2k)!(n2k)!}$$ BTW: the identities you are looking for in your question can be found by considering how factorials work. 


#3
Jun2514, 10:22 PM

PF Gold
P: 316

There are many contributions to the coefficient of [itex]\cos^{n2k} \theta[/itex] and you have to add them up. Let me be more explicit, I write out the expression:
[itex] \cos^n \theta \; \sum_{k=0}^{\lfloor {n \over 2} \rfloor} C^n_{2k} (1  \cos^{2} \theta)^k [/itex] [itex] = cos^n \theta \; [ C^n_{0} + C^n_{2} (1  \cos^{2} \theta) + C^n_{4} (1  \cos^{2} \theta)^2 + C^n_{6} (1  \cos^{2} \theta)^3 + \dots + C_{2 \lfloor {n \over 2} \rfloor}^n (1  \cos^{2} \theta)^{\lfloor {n \over 2} \rfloor}] [/itex] and expand every bracket so the total sum is explicitly: [itex] = \cos^n \theta \; C^n_{0} + [/itex] [itex] + \cos^n \theta \; C^n_{2} (1  \cos^{2} \theta) + [/itex] [itex] + \cos^n \theta \; C^n_{4} (1  2 \cos^{2} \theta + \cos^{4} \theta) + [/itex] [itex] + \cos^n \theta \; C^n_{6} (1  3 \cos^{2} \theta + 3 \cos^{4} \theta  \cos^{6} \theta) + [/itex] [itex] + \dots [/itex] [itex] + \cos^n \theta \; C^n_{2 \lfloor {n \over 2} \rfloor} (1  C^{\lfloor {n \over 2} \rfloor}_1 \cos^{2} \theta + C^{\lfloor {n \over 2} \rfloor}_2 \cos^{4} \theta + \dots + (1)^{{\lfloor {n \over 2} \rfloor}  1} C^{\lfloor {n \over 2} \rfloor}_{{\lfloor {n \over 2} \rfloor}  1} \cos^{ 2 ({\lfloor {n \over 2} \rfloor}  1)} \theta + (1)^{\lfloor {n \over 2} \rfloor} x^{ 2 {\lfloor {n \over 2} \rfloor}} ) [/itex] It is easy to see now how the coefficient of [itex]\cos^n \theta[/itex] term is equal to [itex]C_0^n + C_2^n + C_4^n + \dots C_{2 {\lfloor {n \over 2} \rfloor}}^n[/itex] so you have many contributions and we have to add them up. We can prove this sum of binomial coefficients is equal to [itex]2^{n1}[/itex] by noting: [itex]2^n = (1+x)^n _{x=1} + (1+x)^n _{x=1} = [C_0^n + C_1^n + C_2^n + C_3^n + \dots + (1)^n C_n^n] + [C_0^n  C_1^n + C_2^n  C_3^n + \dots + (1)^n C_n^n] [/itex] [itex]= 2 [C_0^n + C_2^n + C_4^n + \dots + C_{2 {\lfloor {n \over 2} \rfloor}}^n][/itex]. I think I might know how to find coefficient of [itex]\cos^{n2} \theta[/itex] we need to add [itex][C_2^n + 2 C_4^n + 3 C_6^n + \dots ][/itex] which can be found from considering: [itex]n 2^{n1} = {d \over dx} (1+x)^n _{x=1}  {d \over dx} (1+x)^n _{x=1} = 2^2 [C_2^n + 2 C_4^n + 3 C_6^n + \dots] [/itex] These are the kind of identities I'm talking about. The coefficient of [itex]\cos^{n4} \theta[/itex] we need to add [itex]C_4^n + {3 \times 2 \over 2} C_6^n + {4 \times 3 \over 2} C_8^n + \dots[/itex] not sure how to do this sum. 


#4
Jun2514, 10:40 PM

PF Gold
P: 316

On general expansion of cos nΘ



#5
Jun2614, 12:33 AM

Homework
Sci Advisor
HW Helper
Thanks
P: 12,463

Exactly what I said. (Oh I think I missed out an n/2)
You don't really need to derive one from the other  just demonstrate that they are the same. They aught to ... but they may each involve different circumstances so the two expressions you are trying to relate may not actually be equal. Have you seen how the second expression is usually derived? 


#6
Jun2614, 11:35 AM

PF Gold
P: 316

They are equal, I'm simply taking
[itex]\sum_{k=0}^{\lfloor {n \over 2} \rfloor} C^n_{2k} (\cos^2 \theta  1)^k \cos^{n2k} \theta[/itex] multiplying everything out and grouping the terms into the form [itex]\sum_{k=0}^{\lfloor {n \over 2} \rfloor} A_k \cos^{n2k} \theta[/itex] where I need to determine the coefficients [itex]A_k[/itex] (this is what I'm calling deriving the second expression). The [itex]k[/itex] in the first expression isn't to be identified with the [itex]k[/itex] in the second expression, I'm just using it as a dummy variable, maybe I should write for the second expression [itex]\sum_{k'=0}^{\lfloor {n \over 2} \rfloor} A_{k'} \cos^{n2k'} \theta[/itex]. In other words, I'm taking the original expression multiplying out and grouping the terms into a powerseries form involving descending powers of [itex]\cos \theta[/itex]. Finding [itex]A_{k'}[/itex] isn't as straightforward as you seem to be making it out to be. You have to do certain summations of binomial coefficients and that is where I get stuck! I dont know how to do them in general. And this is what my question is about! Have I seen how the second expression is usually derived? No. But I know how all this is related to Chebyshev polynomials [itex]T_n (x)[/itex] ([itex]T_n = \cos n \theta[/itex] and [itex]x = \cos \theta[/itex]), and I have read that the expression [itex]T_n (x) = {n \over 2} \sum_{k=0}^{\lfloor {n \over 2} \rfloor} (1)^k {(nk1) \over k! (n  2m)!} (2x)^{n2k}[/itex] can be found from the generating function, or from the differential equation for Chebyshev polynomials, but I haven't tried doing it that way yet. I wanted to do it this way first. 


#7
Jun2614, 11:37 AM

PF Gold
P: 316

Sorry I'm a bit confused. You realise that the [itex]k[/itex]'s in the two expressions are not to be identified with each other? They are just being used as dummy variables. EDIT: I think you've just equated the [itex]k[/itex]'th term in the first expression with the [itex]k[/itex]'th term in the second expression, you shouldn't have done that, you've misunderstood what I'm doing, and you need to understand that the [itex]k[/itex] is just a dummy variable. 


#8
Jun2614, 01:17 PM

PF Gold
P: 316

Example:
[itex]\cos 3 \theta = \cos^3 \theta + (\cos^2 \theta  1) \cos \theta[/itex] comes from the first expression, gets rearranged to [itex]\cos 3 \theta = 2 \cos^3 \theta  \cos \theta[/itex] now it is written as a series in descending powers of [itex]\cos \theta[/itex]. So in the first expression the terms are a mixture of [itex](\cos^2 \theta  1)[/itex] and [itex]\cos \theta[/itex], whereas in the second expression the terms are just powers of [itex]\cos \theta[/itex]. I want to do this for general [itex]\cos n \theta[/itex]. 


#9
Jun2614, 01:50 PM

PF Gold
P: 316

Next example:
[itex]\cos 4 \theta = \cos^4 \theta + 6 (\cos^2 \theta  1) \cos^2 \theta + (\cos^2 \theta  1)^2[/itex] comes from the first expression and the terms are a mixture of [itex](\cos^2 \theta  1)[/itex] and [itex]\cos \theta[/itex], multiplying out and collecting terms in the same power of [itex]\cos \theta[/itex] we get [itex]\cos 4 \theta = 8 \cos^4 \theta  8 \cos^2 \theta + 1[/itex], and so on... And this multipliedout/groupedtogether answer is what you are supposed to get from the second expression. 


#10
Jun2614, 05:06 PM

Engineering
Sci Advisor
HW Helper
Thanks
P: 6,956

##\begin{align} T_0(x) & = 1 \\ T_1(x) & = x \\ T_{n+1}(x) & = 2xT_n(x)  T_{n1}(x). \end{align}## and the property you want is ##T_n(\cos\theta)=\cos n\theta##. 


#11
Jun2614, 06:01 PM

PF Gold
P: 316

So in
[itex]\cos 4 \theta = \cos^4 \theta + 6 (\cos^2 \theta  1) \cos^2 \theta + (\cos^2 \theta  1)^2[/itex], [itex]\cos^4 \theta[/itex] appears three times and they add up to [itex]8 \cos^4 \theta[/itex], [itex]\cos^2 \theta[/itex] appears twice times and they add up to [itex] 8 \cos^2 \theta[/itex], and a constant appears once. I want to do this multiplying out and adding up of like terms for arbitrary [itex]n[/itex]. In [itex]\cos n \theta = \cos^n \theta + C_2^n (\cos^2 \theta  1) \cos^{n2} \theta + C_4^n (\cos^2 \theta  1)^2 \cos^{n4} \theta + C_6^n (\cos^2 \theta  1)^3 \cos^{n6} \theta \dots[/itex] the [itex]\cos^n \theta[/itex] will appear multiple times and I need to know how to add them up, [itex]\cos^{n2} \theta[/itex] will appear multiple times and I need to know how to add them up, and so on. In my second post I established this adding up of like terms is equivalent to certain sums over binomial coefficients, namely For [itex]\cos^n \theta \;[/itex]: [itex]C_0^n + C_2^n + C_4^n + C_6^n + C_8^n + C_{10}^n + \dots[/itex] For [itex]\cos^{n2} \theta \;[/itex]: [itex][C_2^n + 2 C_4^n + 3 C_6^n + 4 C_8^n + 5 C_{10}^n + \dots][/itex] For [itex]\cos^{n4} \theta \;[/itex]: [itex] C_4^n + {3 \times 2 \over 2} C_6^n + {4 \times 3 \over 2} C_8^n + {5 \times 4 \over 2} C_{10}^n + \dots[/itex] For [itex]\cos^{n6} \theta \;[/itex]: [itex][C_6^n + {4 \times 3 \times 2 \over 3!} C_8^n + {5 \times 4 \times 3 \over 3!} C_{10}^n + \dots][/itex] and so on... My question was how to do these summations...hoping someone might have a reference or something. 


#12
Jun2614, 06:03 PM

PF Gold
P: 316




#13
Jun3014, 01:37 PM

PF Gold
P: 316

RECURSIVE RELATION:
We can easily derive the (Chebyshev) recursive relation directly as a trig identity: [itex]2 \cos \theta \cos n \theta = \dfrac{e^{i \theta} + e^{i \theta}}{2} \dfrac{e^{i n \theta} + e^{i n \theta}}{2} = \dfrac{e^{i (n+1) \theta} + e^{i (n+1) \theta}}{2} + \dfrac{e^{i (n1) \theta} + e^{i (n1) \theta}}{2} = \cos (n+1) \theta + \cos (n1) \theta[/itex] and so [itex]\cos (n+1) \theta = 2 \cos \theta \cos n \theta  \cos (n1) \theta \qquad Eq. 1[/itex]. PROOF BY INDUCTION: We can use this recursive relation to prove [itex]\cos n \theta = {n \over 2} \sum_{k=0}^{\lfloor {n \over 2} \rfloor} (1)^k {(n  k  1)! \over k! (n  2k)!} (2 \cos \theta)^{n2k} \qquad n > 0 \qquad Eq 2.[/itex] by induction. First we assume it is true for [itex]n1[/itex] and [itex]n[/itex] and substitute this assumption into the right hand side of the recursive relation Eq. 1: [itex]\cos (n+1) \theta = {n \over 2} \sum_{k=0}^{\lfloor {n \over 2} \rfloor} (1)^k {(n  k  1)! \over k! (n  2k)!} (2 \cos \theta)^{n+12k}  {n1 \over 2} \sum_{k=0}^{\lfloor {n  1 \over 2} \rfloor} (1)^k {(n  k  2)! \over k! (n  1  2k)!} (2 \cos \theta)^{n  1 2k}[/itex] write [itex]k = k'  1[/itex] in the second term, and we get [itex]{n \over 2} \sum_{k=0}^{\lfloor {n \over 2} \rfloor} (1)^k {(n  k  1)! \over k! (n  2k)!} (2 \cos \theta)^{n+12k}  {n1 \over 2} \sum_{k'=1}^{\lfloor {n  1 \over 2} \rfloor + 1} (1)^{k'  1} {(n  k'  1)! \over (k'  1)! (n + 1  2k')!} (2 \cos \theta)^{n + 1 2k'} \qquad Eq.3[/itex] It is easy to check that for [itex]n[/itex] even [itex]\lfloor {n  1 \over 2} \rfloor + 1 = \lfloor {n \over 2} \rfloor[/itex] and for [itex]n[/itex] odd [itex]\lfloor {n  1 \over 2} \rfloor + 1 = {n+1 \over 2} = \lfloor {n + 1 \over 2} \rfloor[/itex]. [itex]n \; {\bf even:}[/itex] Separating out the ([itex]k=0[/itex] term of the first part, and then replacing [itex]k'[/itex] by [itex]k[/itex] we obtain [itex]{n \over 2} {(n1)! \over 0! n!} (2 \cos \theta)^{n+1} + \sum_{k=1}^{\lfloor {n \over 2} \rfloor} (1)^k \Big[ {n \over 2} {(nk1)! \over k! (n2k)!} + {n1 \over 2} {(nk1)! \over (k1)! (n 2k +1)!} \Big] (2 \cos \theta)^{n+12k} [/itex] The content of the square brackets simplify: [itex]{1 \over 2} {(nk1)! \over k! (n + 1 2k)!} \Big\{ n (n + 1  2k) + k (n  1) \Big\} = {1 \over 2} {(nk1)! \over k! (n + 1 2k)!} \Big\{ (n + 1) (nk) \Big\} = {n+1 \over 2} {(nk)! \over k! (n + 1 2k)!}[/itex] and also [itex]{n \over 2} {(n1)! \over 0! n!} (2 \cos \theta)^{n+1} = {1 \over 2} (2 \cos \theta)^{n+1} = {n+1 \over 2} {(n0)! \over 0! (n + 1 0)!} (2 \cos \theta)^{n+10}[/itex] and so then we have [itex]\cos (n+1) \theta = {n+1 \over 2} \sum_{k=0}^{\lfloor {n + 1 \over 2} \rfloor} (1)^k {(n+1k1)! \over k! (n + 1 2k)!} (2 \cos \theta)^{n+12k}[/itex] where we have used [itex]\lfloor {n + 1 \over 2} \rfloor = {n \over 2} = \lfloor {n \over 2} \rfloor[/itex] for [itex]n[/itex] even. [itex]n \; {\bf odd:}[/itex] We can go through the same steps as before, but this time there is an extra term. So from Eq.3 we have [itex]{n+1 \over 2} \sum_{k=0}^{\lfloor {n \over 2} \rfloor} (1)^k {(n+1k1)! \over k! (n + 1 2k)!} (2 \cos \theta)^{n+12k} + \Big( k' = {n+1 \over 2} \; term \; in \; second \; part \; of \; Eq.3 \Big)[/itex] [itex] \qquad \qquad \qquad = \; \qquad \dots \qquad + {n1 \over 2} (1)^{n + 1 \over 2} {(n  {n + 1 \over 2}  1)! \over ({n + 1 \over 2}  1)! (n + 1  2{n + 1 \over 2})!} (2 \cos \theta)^{n + 1 2{n + 1 \over 2}} [/itex] [itex] \qquad \qquad \qquad = \; \qquad \dots \qquad + {n1 \over 2} {2 \over n1} (1)^{n + 1 \over 2}[/itex] [itex] \qquad \qquad \qquad = \; \qquad \dots \qquad + (1)^{n + 1 \over 2}[/itex] But we get from: [itex]{n+1 \over 2} (1)^{n+1 \over 2} {(n + 1  {n+1 \over 2} 1)! \over ({n+1 \over 2})! (n+1  2{n+1 \over 2})!} (2 \cos \theta)^{n+1  2{n+1 \over 2}} = (1)^{n+1 \over 2}{n+1 \over 2} {({n1 \over 2})! \over ({n+1 \over 2})! (0)!} = (1)^{n+1 \over 2}[/itex] and so then we have [itex]\cos (n+1) \theta = {n+1 \over 2} \sum_{k=0}^{\lfloor {n + 1 \over 2} \rfloor} (1)^k {(n+1k1)! \over k! (n + 1 2k)!} (2 \cos \theta)^{n+12k}[/itex] So we have obtained the correct formula, i.e. Eq.2 with [itex]n \mapsto n+1[/itex], for both [itex]n[/itex] even and [itex]n[/itex] odd. Now we can argue that if it works for [itex]n = 1[/itex] and for [itex]n = 2[/itex] then it works for [itex]n = 3[/itex]. We then know it works for [itex]n = 2[/itex] and for [itex]n = 3[/itex] therefore it works for [itex]n = 4[/itex], and so on... So for [itex]n = 1[/itex]: [itex]{1 \over 2} \sum_{k=0}^{0} (1)^0 {(0)! \over 0! (1)!} (2 \cos \theta)^{1} = \cos \theta[/itex] and for [itex]n = 2[/itex]: [itex]{2 \over 2} \sum_{k=0}^1 (1)^k {(1  k)! \over k! (2  2k)!} (2 \cos \theta)^{22k} = 2 \cos^2 \theta  1 = \cos 2 \theta.[/itex] BINOMIAL COEFFICIENTS SUMMATION IDENTITIES. Inadvertently from this result we have the following Binomial coefficient summation identities: [itex]C_0^n + C_2^n + C_4^n + C_6^n + C_8^n + C_{10}^n + \dots + C_{2 \lfloor {n \over 2} \rfloor}^n = 2^{n1}[/itex] [itex]C_2^n + 2 C_4^n + 3 C_6^n + 4 C_8^n + 5 C_{10}^n + C_{2 \lfloor {n \over 2} \rfloor}^n = n 2^{n3}[/itex] [itex]C_4^n + {3 \times 2 \over 2} C_6^n + {4 \times 3 \over 2} C_8^n + {5 \times 4 \over 2} C_{10}^n + \dots + C_{2 \lfloor {n \over 2} \rfloor}^n = {n (n3) \over 2} 2^{n5}[/itex] [itex]C_6^n + {4 \times 3 \times 2 \over 3!} C_8^n + {5 \times 4 \times 3 \over 3!} C_{10}^n + \dots + C_{2 \lfloor {n \over 2} \rfloor}^n= {n (n4) (n5) \over 3!} 2^{n7}[/itex] and so on... I got from wiki (Chebyshev Polynomials page) how to order the terms properly in my second post. 


Register to reply 
Related Discussions  
Help solving ODE's using eigenfunction expansion, in general  Differential Equations  2  
General Term for an expansion..  Calculus & Beyond Homework  2  
Expansion in general relativity  Cosmology  12  
A general qustion on expansion.....  Astronomy & Astrophysics  0  
Does general relativity predict expansion?  Special & General Relativity  18 