Evaluating sum of cosine products with delta function

  • Context: Graduate 
  • Thread starter Thread starter vladimir69
  • Start date Start date
  • Tags Tags
    Sum
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
vladimir69
Messages
124
Reaction score
0
hi,
i am trying to evaluate the following
[tex] A=\sum_{m=-N}^{N} \cos(\frac{mk\pi}{N+1})\cos(\frac{mj\pi}{N+1})[/tex]

to give you an idea of the sort of answer i am after i present to you the following
[tex] \sum_{m=-N}^{N} \sin(\frac{mk\pi}{N+1})\sin(\frac{mj\pi}{N+1})=(N+1)\delta_{k,j}[/tex]

hopefully there are some knowledgeable people that can shed some light on the matter
thanks.

i come up with the following
A=2N+1 if k=j=0
A=N if k=j, k not equal to 0
A=1 if (k+j) is even
A=-1 if (k+j) is odd
but i am not sure how to get this into one nice function so to speak like the example i gave above
 
Last edited:
Mathematics news on Phys.org
The statements you have at the end can't all be true. k + j is always either even or odd, but A is not always -1 or 1.

Since the example is so similar to what you have, you may be able to use trigonometric identities to write your problem in terms of sums in the example form and sums that you know. For example
cos x cos y = sin x sin y + cos (x + y), so if you can sum the case when j or k = 0, you can find A.
 
In fact, summing cos(x + y) is in a standard form for a recurrence relation. You have
(with [tex]\theta = \frac{(k + j) \pi}{N+1}[/tex])
[tex]a_n = a_{n-1}+2cos(\theta n)[/tex]
And [tex]a_0 = 1[/tex]
The homogenous solution to this is of the form [tex]C_0[/tex], and the particular solution is of the form [tex]C_1 sin(\theta n) + C_2 cos(\theta n)[/tex]
So the solution to your whole problem, N, is
[tex](N+1)\delta_{k,j} + a_N[/tex]