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

I'm trying to determine the limit of the sequence of functions

$$f_n(x)=\left(\frac{1}{\pi}\arctan(n x) + 1/2\right)^n. $$

I define

f[x_, n_] := (1/2 + ArcTan[n x]/Pi)^n

And enter

Limit[f[x, n], n -> Infinity]

This gives the answer 0.

If I instead enter

Assuming[x > 0, Limit[f[x, n], n -> Infinity]]

I get the answer $$e^{-\frac{1}{x\pi}}. $$


Assuming[x < 0, Limit[f[x, n], n -> Infinity]]

gives the answer 0 again.

Why does the normal Limit give the answer assuming that x<0? Is this a bug, or have I missed something?

Thanks in advance.

share|improve this question
Please only use the tag bugs post-hoc, if it is confirmed by WRI or the community. – István Zachar Oct 16 '13 at 12:19
I think it's a bug. The result is not always 0 as you check by using 1 for instance in place of x. – b.gatessucks Oct 16 '13 at 12:51
Probably a bug or at least a limitation in calculus code. Limit will rely on Series and at least for elementary functions that will ignore branch cut issues unless assumptions are provided that give a clear indication of what side of such a cut we are on. – Daniel Lichtblau Oct 16 '13 at 15:55
f[x_, n_] := (1/2 + ArcTan[n x]/Pi)^n;
Limit[f[x, n], n -> Infinity, Assumptions -> x > 0]
E^(-(1/(Pi x)))
share|improve this answer
I think the original poster may have mentioned that.. – Daniel Lichtblau Sep 12 '14 at 21:09

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.