On general expansion of cos nΘ

In summary, the conversation discusses two different expansions for \cos n \theta and the process of deriving one from the other. It is noted that the two expressions may not necessarily be equal, but the focus is on determining the coefficients in the second expression by multiplying out and grouping the terms in a power-series form. This process involves summations of binomial coefficients, which is where the participant gets stuck and asks for assistance. The conversation also mentions the relation to Chebyshev polynomials T_n(x) and the possibility of using the generating function or differential equation to find the second expression.
  • #1
julian
Gold Member
794
305
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)^{n-2k} \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^{n-1}[/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]).
 
Mathematics news on Phys.org
  • #2
Equating coefficients of ##cos^{n-2k}\theta## suggests...
$$C_{2k}^n(\cos^2\theta - 1)^k=(-1)^k2^{n-2k}\frac{(n-k-1)!}{k!(n-2k)!}$$... recalling that:$$C_{2k}^n=\frac{n!}{(2k)!(n-2k)!}$$

BTW: the identities you are looking for in your question can be found by considering how factorials work.
 
  • #3
There are many contributions to the coefficient of [itex]\cos^{n-2k} \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^{n-1}[/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^{n-2} \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^{n-1} = {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^{n-4} \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.
 
Last edited:
  • #4
Simon Bridge said:
Equating coefficients of ##cos^{n-2k}\theta## suggests...
$$C_{2k}^n(\cos^2\theta - 1)^k=(-1)^k2^{n-2k}\frac{(n-k-1)!}{k!(n-2k)!}$$...

Not sure what that equation is supposed to mean.
 
  • #5
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?
 
Last edited:
  • #6
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^{n-2k} \theta[/itex]

multiplying everything out and grouping the terms into the form

[itex]\sum_{k=0}^{\lfloor {n \over 2} \rfloor} A_k \cos^{n-2k} \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^{n-2k'} \theta[/itex].

In other words, I'm taking the original expression multiplying out and grouping the terms into a power-series 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 don't 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 {(n-k-1) \over k! (n - 2m)!} (2x)^{n-2k}[/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.
 
Last edited:
  • #7
Simon Bridge said:
Equating coefficients of ##cos^{n-2k}\theta## suggests...
$$C_{2k}^n(\cos^2\theta - 1)^k=(-1)^k2^{n-2k}\frac{(n-k-1)!}{k!(n-2k)!}$$... recalling that:$$C_{2k}^n=\frac{n!}{(2k)!(n-2k)!}$$

I still don't know what to make of this - there is no summation over [itex]k[/itex] on the left hand side, there is no [itex]\cos^{n - 2k} \theta[/itex] there either and there are no [itex]\cos \theta[/itex]'s on the right hand side.

Sorry I'm a bit confused. You realize 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.
 
Last edited:
  • #8
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].
 
Last edited:
  • #9
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 multiplied-out/grouped-together answer is what you are supposed to get from the second expression.
 
Last edited:
  • #10
julian said:
I want to do this for general [itex]\cos n \theta[/itex].
Google for Chebyshev polynomials. They can be defined as

##\begin{align} T_0(x) & = 1 \\ T_1(x) & = x \\ T_{n+1}(x) & = 2xT_n(x) - T_{n-1}(x). \end{align}##

and the property you want is ##T_n(\cos\theta)=\cos n\theta##.
 
  • #11
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^{n-2} \theta + C_4^n (\cos^2 \theta - 1)^2 \cos^{n-4} \theta + C_6^n (\cos^2 \theta - 1)^3 \cos^{n-6} \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^{n-2} \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^{n-2} \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^{n-4} \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^{n-6} \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
AlephZero said:
Google for Chebyshev polynomials. They can be defined as

##\begin{align} T_0(x) & = 1 \\ T_1(x) & = x \\ T_{n+1}(x) & = 2xT_n(x) - T_{n-1}(x). \end{align}##

and the property you want is ##T_n(\cos\theta)=\cos n\theta##.

Yeah, it might probably easier to derive the formula I want from a recursive relation.
 
  • #13
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 (n-1) \theta} + e^{-i (n-1) \theta}}{2} = \cos (n+1) \theta + \cos (n-1) \theta[/itex]

and so

[itex]\cos (n+1) \theta = 2 \cos \theta \cos n \theta - \cos (n-1) \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)^{n-2k} \qquad n > 0 \qquad Eq 2.[/itex]

by induction.

First we assume it is true for [itex]n-1[/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+1-2k}
- {n-1 \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+1-2k}
- {n-1 \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} {(n-1)! \over 0! n!} (2 \cos \theta)^{n+1} + \sum_{k=1}^{\lfloor {n \over 2} \rfloor} (-1)^k \Big[ {n \over 2} {(n-k-1)! \over k! (n-2k)!} + {n-1 \over 2} {(n-k-1)! \over (k-1)! (n -2k +1)!} \Big] (2 \cos \theta)^{n+1-2k}
[/itex]

The content of the square brackets simplify:

[itex]{1 \over 2} {(n-k-1)! \over k! (n + 1 -2k)!} \Big\{ n (n + 1 - 2k) + k (n - 1) \Big\} = {1 \over 2} {(n-k-1)! \over k! (n + 1 -2k)!} \Big\{ (n + 1) (n-k) \Big\} = {n+1 \over 2} {(n-k)! \over k! (n + 1 -2k)!}[/itex]

and also

[itex]{n \over 2} {(n-1)! \over 0! n!} (2 \cos \theta)^{n+1} = {1 \over 2} (2 \cos \theta)^{n+1} = {n+1 \over 2} {(n-0)! \over 0! (n + 1 -0)!} (2 \cos \theta)^{n+1-0}[/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+1-k-1)! \over k! (n + 1 -2k)!} (2 \cos \theta)^{n+1-2k}[/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+1-k-1)! \over k! (n + 1 -2k)!} (2 \cos \theta)^{n+1-2k} + \Big( k' = {n+1 \over 2} \; term \; in \; second \; part \; of \; Eq.3 \Big)[/itex]
[itex] \qquad \qquad \qquad = \; \qquad \dots \qquad + {n-1 \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 + {n-1 \over 2} {2 \over n-1} (-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} {({n-1 \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+1-k-1)! \over k! (n + 1 -2k)!} (2 \cos \theta)^{n+1-2k}[/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)^{2-2k} = 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^{n-1}[/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^{n-3}[/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 (n-3) \over 2} 2^{n-5}[/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 (n-4) (n-5) \over 3!} 2^{n-7}[/itex]

and so on...

I got from wiki (Chebyshev Polynomials page) how to order the terms properly in my second post.
 
Last edited:

1. What is the general expansion of cos nΘ?

The general expansion of cos nΘ refers to the mathematical expression for cos nΘ, where n is any positive integer. It is written as a series of terms involving powers of cos Θ, starting from cos⁰Θ up to cosⁿΘ.

2. How is the general expansion of cos nΘ derived?

The general expansion of cos nΘ can be derived using the binomial theorem and the trigonometric identity cos(α + β) = cos α cos β - sin α sin β. By repeatedly applying this identity, the expression can be simplified to the general form mentioned above.

3. What is the significance of the general expansion of cos nΘ?

The general expansion of cos nΘ is useful in solving various trigonometric equations and in approximating values of cos nΘ for large values of n. It also helps in understanding the periodic nature of the cosine function.

4. Are there any special cases in the general expansion of cos nΘ?

Yes, when n is even, the series contains only even powers of cos Θ, and when n is odd, the series contains only odd powers of cos Θ. Also, when n is a multiple of 4, the series simplifies further to only contain even powers of cos Θ.

5. How is the general expansion of cos nΘ used in real-world applications?

The general expansion of cos nΘ has applications in fields such as physics, engineering, and signal processing. It is used to model periodic phenomena and to analyze and manipulate signals in various systems. It is also used in solving problems related to vibrations, sound waves, and light waves.

Similar threads

  • General Math
Replies
1
Views
231
Replies
8
Views
2K
Replies
2
Views
1K
  • Linear and Abstract Algebra
Replies
2
Views
964
  • General Math
Replies
5
Views
932
Replies
15
Views
2K
Replies
4
Views
368
Replies
3
Views
663
  • Calculus and Beyond Homework Help
Replies
6
Views
349
  • Calculus and Beyond Homework Help
Replies
1
Views
180
Back
Top