Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In which case can we swap summation and multiple? ie. $$\sum_{i=1}^n\prod_{j=1}^na_{ij}=\prod_{j=1}^n\sum_{i=1}^na_{ij}$$ if we can't swap like this, please tell me how can we swap them?

share|cite|improve this question

Take for example the case $n=2$. Then you are asking under what conditions we have $$ab+cd=(a+c)(b+d)\ .$$ Likewise, if $n=3$ you are asking whether $$abc+def+ghi=(a+d+g)(b+e+h)(c+f+i)\ .$$ These will only be true for very special values of $a,b,\ldots,i$ and in general there will be no way to swap the sum and product.

share|cite|improve this answer

Let me take the case for $n=3$ using your notations $$\sum_{i=1}^n\prod_{j=1}^na(i,j)=\prod_{j=1}^n\sum_{i=1}^na(i,j)$$ After expansion of sum and product, the lhs write $$a(1,1) a(1,2) a(1,3)+a(2,1) a(2,2) a(2,3)+a(3,1) a(3,2) a(3,3)$$ while the rhs write $$(a(1,1)+a(2,1)+a(3,1)) (a(1,2)+a(2,2)+a(3,2)) (a(1,3)+a(2,3)+a(3,3))$$ As you see, they do not have much to to with eachother and, as said by David, you cannot swap sum and product.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.