Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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

For some reason Mathematica will not evaluate this asymptotic series to the requested order.


1/x ( x ((1 - x)^2) + E^x);
Series[%, {x, \[Infinity], 0}]


$ \left( x^2 + \frac{1}{\mathcal{O} \left( \frac{1}{x} \right)} \right) + e^x \left( \frac{1}{x} + \mathcal{O} \left( \frac{1}{x} \right)^2 \right)$

The problem being that in the first term it doesn't give me the $\mathcal{O} (x^1)$ and $\mathcal{O} (x^0)$ that I requested.

Mathematica does not make this error for simpler expressions, but I haven't been able to nail down what exactly about this expression is giving me problems.

A couple things I have tried:

(1) I could simply go to a higher order in x in order to get the 'missing' terms, but this is computationally expensive on more complicated expressions.

(2) If I Expand[%] the expression prior to the series expansion that gives me the correct terms, the only thing is, I would never have guessed that I have to put that in there. Plus I often deal with expressions much more complicated than this and it is hard to visually inspect all the $\mathcal{O}(1/\Lambda)$'s all over the place

Is there a simple reason I should have anticipated this being a problem for Mathematica? And is there a simple command to use that doesn't slow things down? - sometimes using Expand[%] prior to doing a computation can slow down when dealing with large expressions.

share|improve this question
Interesting. Not sure if it's a bug or a feature. I'll take a look. – Daniel Lichtblau Jul 28 '14 at 23:00
@DanielLichtblau, Any News on this? – Louis Jun 26 at 8:34
@Louis I don't understand the question. Have you tried the computation in a recent version of Mathematica? Do you obtain an unexpected result? Generally speaking, if you ask someone to revisit a thread from ~2 years ago, it would be a good idea to state specifically what you have checked, in what version, and what is the (presumably unexpected and/or undesired) status you encounter. – Daniel Lichtblau Jun 27 at 16:49

Your Answer


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

Browse other questions tagged or ask your own question.