Index shifting in summation FORMULAS

In summary, the conversation discusses the process of deriving a new formula for a series by changing the index of summation. The new formula is obtained by replacing the original index with a new one and adjusting the upper and lower limits accordingly. However, the conversation also highlights the importance of being careful with the calculations, as a small mistake can lead to an incorrect formula. The conversation also touches on the concept of the summand and how it affects the value of the sum. Finally, the conversation concludes with the correct formula for the squared sum being derived.
  • #1
508
4
So I am trying to derive a formula from one of the standard summation formulas except starting at a different index. So if I have the series..

[tex]\sum i = \frac{n(n+1)}{2}[/tex]

Where "i" runs from 1 to n. (I don't know how to put it in the code.) If I want to make the series start from zero, I would use another index equal to, "k=i-1" And now my upper limit will be "n-1" So now I can replace "i" in the sum with "k+1", Shouldn't the new formula for the partial sums be..

[tex]\sum k+1 = \frac{(n-1)(n)}{2} + (n-1)[/tex]
Problem is, it isnt. A simple test will prove this. Whats wrong?
 
Physics news on Phys.org
  • #2
Your new formula is wrong. (By the way, you can click on the equations below to see the Latex code for putting the indices on the sum.)

The original sum is equivalent to

[tex]\sum_{k=0}^{n-1} (k + 1)[/tex]

Note that the sum starts with [itex]k=0[/itex], not [itex]k=1[/itex].

This can be rewritten as

[tex]\sum_{k=0}^{n-1}k + \sum_{k=0}^{n-1} 1[/tex]

The first sum is the same whether it starts with [itex]k=0[/itex] or [itex]k=1[/itex], but the second sum is not.

Your mistake is in your calculation of the second sum. How many 1's are being added?
 
Last edited:
  • #3
You can also change the "starting point" by changing the index.

Given
[tex]\sum_{i= 0}^{n-1} i [/tex]

Let k= i+1 so that when i= 0, k= 0+1= 1 so the lower limit is i= 1. Then when i= n-1, k= (n-1)+ 1= 1 so the upper limit is k= n. Finally, of course, since k= i+ 1, i= k- 1. There's your error- your sum should be of k- 1, not k+ 1:
[tex]\sum_{k=1}^n k-1[/tex]
 
  • #4
jbunniii said:
This can be rewritten as

[tex]\sum_{k=0}^{n-1}k + \sum_{k=0}^{n-1} 1[/tex]

The first sum is the same whether it starts with [itex]k=0[/itex] or [itex]k=1[/itex], but the second sum is not.

Your mistake is in your calculation of the second sum. How many 1's are being added?

Hmm I think I still have some issues. Since the original formula for the partial sums is..

[tex]\sum_{i=1}^{n} i = \frac{n(n+1)}{2}[/tex]

Since "n" represents the upper limit, the new formula for the series I am after should be just replacing all the "n" with "n-1."
[tex]\sum_{k=0}^{n-1} k+1 =\frac{(n-1)(n)}{2} + \sum_{k=0}^{n-1} 1[/tex]

Now you say up until this part is correct? For the second sum, shouldn't the sum of this be just the upper limit? For example..

[tex]\sum_{i=1}^{3} 1 = 3(1) = 3[/tex]

Shouldn't the same thing apply for this sum? Shouldn't it therefore be..
[tex]\sum_{k=0}^{n-1} 1 = 1(n-1) = n-1[/tex]

Or should it equal "n" because the index is zero?
 
  • #5
Xyius said:
Since "n" represents the upper limit, the new formula for the series I am after should be just replacing all the "n" with "n-1."
[tex]\sum_{k=0}^{n-1} k+1 =\frac{(n-1)(n)}{2} + \sum_{k=0}^{n-1} 1[/tex]

Actually both the lower and the upper limit have changed, right? You are now summing from 0 to n-1, whereas the original formula sums from 1 to n.

Now it happens that

[tex]\sum_{k=0}^{n-1}k = \sum_{k=1}^{n-1}k[/tex]

i.e. it doesn't matter whether you start summing from [itex]k=0[/itex] or [itex]k=1[/itex] in THIS PARTICULAR SUM. That is because the summand is [itex]k[/itex], so the [itex]k=0[/itex] term is 0: it has no effect on the value of the sum. You can therefore start summing from [itex]k=1[/itex] and get the same answer.

Now you say up until this part is correct?

Yes, it's correct up to this point.

For the second sum, shouldn't the sum of this be just the upper limit? For example..

[tex]\sum_{i=1}^{3} 1 = 3(1) = 3[/tex]

Shouldn't the same thing apply for this sum? Shouldn't it therefore be..
[tex]\sum_{k=0}^{n-1} 1 = 1(n-1) = n-1[/tex]

Or should it equal "n" because the index is zero?

The summand is [itex]1[/itex], and you are summing it [itex]n[/itex] times. The [itex]k=0[/itex] term DOES matter in this case, because that term is not zero.

Therefore

[tex]\sum_{k=0}^{n-1} 1 = n[/tex]

Think of it as having [itex]n[/itex] marbles with labels on them. It doesn't matter if the labels read [itex]0[/itex] through [itex]n-1[/itex] or [itex]1[/itex] through [itex]n[/itex], there are still [itex]n[/itex] marbles.

I could just as well write

[tex]\sum_{k=1000}^{1000+n-1} 1[/tex]

and the sum would still be [itex]n[/itex].
 
Last edited:
  • #6
Makes complete sense! Thanks a lot!

So if I wanted to derive a formula for the squared sum. The normal formula is.

[tex]\sum_{i=1}^{n} i^2 = \frac{n(n+1)(2n+1)}{6}[/tex]

So therefore the new sum should be..

[tex]\sum_{k=0}^{n-1} (k+1)^2 = \sum_{k=0}^{n-1} k^2-2k+1 = \frac{(n-1)(n)(2n-1)}{6} + 2\frac{(n-1)(n)}{2} + n [/tex]

Would this be correct?
 
  • #7
Xyius said:
Makes complete sense! Thanks a lot!

So if I wanted to derive a formula for the squared sum. The normal formula is.

[tex]\sum_{i=1}^{n} i^2 = \frac{n(n+1)(2n+1)}{6}[/tex]

So therefore the new sum should be..

[tex]\sum_{k=0}^{n-1} (k+1)^2 = \sum_{k=0}^{n-1} k^2-2k+1 = \frac{(n-1)(n)(2n-1)}{6} + 2\frac{(n-1)(n)}{2} + n [/tex]

Would this be correct?

Yes, it looks right to me. And I tried plugging in n = 20 and verified that the two formulas give the same answer. Of course they're really the same formula, in the sense that if you carry out the addition of the three terms in your expression by putting them over a common denominator and simplifying, you should end up with the original formula.
 
  • #8
Thanks a lot man! :D!
 

Suggested for: Index shifting in summation FORMULAS

Replies
5
Views
1K
Replies
6
Views
2K
Replies
6
Views
712
Replies
2
Views
1K
Replies
7
Views
2K
Replies
2
Views
1K
Replies
1
Views
996
Back
Top