Evaluating the Sum

Sum[a^i, {i, ∞}]


-(a/(-1 + a))

which obviously only holds true for $\left|a\right|<1$. Why doesn't Mathematica give a limitation for the validity of the solution?

  • 3
    Sum[a^i, {i, ∞}, GenerateConditions -> True] will return the necessary conditions. – J. M. is computer-less Jul 27 '16 at 8:09
  • @J.M. OK, thanks. It seems as if I have to get used to MMA thinking more than I do ;) – DPF Jul 27 '16 at 8:18
  • 2
    It seems a conspicuous inconsistency to me that Sum has GenerateConditions->False by default , while Integrate has it True ( eg Integrate[a^i, {i, 1, Infinity}] ). – george2079 Jul 27 '16 at 20:40
up vote 2 down vote accepted

Thanks to @J. M. this solution gives the answer:

Sum[a^i, {i, ∞}, GenerateConditions -> True]

It returns a ConditionalExpression, in the above case:

ConditionalExpression[-(a/(-1 + a)), Abs[a] < 1]

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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