# Calculate this limit with Wolfram|Alpha?

**URL:** <https://community.wolfram.com/t/calculate-this-limit-with-wolfram-alpha/8623>\
**Category:** Questions\
**Tags:** wolfram-alpha\
**Created:** [May 25, 2016, 11:57am UTC](https://community.wolfram.com/t/calculate-this-limit-with-wolfram-alpha/8623 "2016-05-25T11:57:31Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![pere](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/pere/32/16576_2.png) [@pere](https://community.wolfram.com/u/pere)\
**Post date:** [May 25, 2016, 11:57am UTC](https://community.wolfram.com/t/calculate-this-limit-with-wolfram-alpha/8623/1 "2016-05-25T11:57:31Z")

</div>

![Capture.JPG](https://global.discourse-cdn.com/wolfram/original/3X/6/d/6df9224af1cf5b3aaa44b84a1c980f2e0c1e31db.jpeg)

---

<div class="post-metadata">

**Author:** ![sghuisman](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/sghuisman/32/27850_2.png) [@sghuisman](https://community.wolfram.com/u/sghuisman)\
**Post date:** [May 25, 2016, 1:22pm UTC](https://community.wolfram.com/t/calculate-this-limit-with-wolfram-alpha/8623/2 "2016-05-25T13:22:24Z")

</div>

If you do this in Mathematica you DO get the right answer:

```
(y^2 Sin[x])/(x^2+y^2)
% /. x-> c y
Limit[%,y->0]

```

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [May 25, 2016, 1:40pm UTC](https://community.wolfram.com/t/calculate-this-limit-with-wolfram-alpha/8623/3 "2016-05-25T13:40:16Z")

</div>

The limit is 0 if you work on the real numbers, but what about the complex numbers? Try

```
Plot[Abs[(y^2 Sin[x])/(
   x^2 + y^2) /. {x -> t + t^3, y -> I t}], {t, -1, 1}]

```

I don’t know if Wolfram|Alpha had this in mind, though.

---

<div class="post-metadata">

**Author:** ![pere](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/pere/32/16576_2.png) [@pere](https://community.wolfram.com/u/pere)\
**Post date:** [May 25, 2016, 1:43pm UTC](https://community.wolfram.com/t/calculate-this-limit-with-wolfram-alpha/8623/4 "2016-05-25T13:43:51Z")

</div>

This limit is very simple to calculate: (y^2 )/(x^2+y^2) is bounded by 1, and Sin x goes to 0.  
My students use Alpha to check their work and in this case Alpha got it wrong… ):

---

<div class="post-metadata">

**Author:** ![pere](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/pere/32/16576_2.png) [@pere](https://community.wolfram.com/u/pere)\
**Post date:** [May 25, 2016, 1:47pm UTC](https://community.wolfram.com/t/calculate-this-limit-with-wolfram-alpha/8623/5 "2016-05-25T13:47:27Z")

</div>

Tnks. u r probably right. It was nice if Alpha would understand it “as is” and give the option of complex numbers. Most engineering students don’t even know of this option.

---

<div class="post-metadata">

**Author:** ![sghuisman](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/sghuisman/32/27850_2.png) [@sghuisman](https://community.wolfram.com/u/sghuisman)\
**Post date:** [May 25, 2016, 1:47pm UTC](https://community.wolfram.com/t/calculate-this-limit-with-wolfram-alpha/8623/6 "2016-05-25T13:47:45Z")

</div>

With complex numbers it is not bounded by 1… but I think by default Mathematica (Wolfram Language) does the limits with Real numbers… I could be wrong though…

---

<div class="post-metadata">

**Author:** ![hdolhaine](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/hdolhaine/32/35924_2.png) [@hdolhaine](https://community.wolfram.com/u/hdolhaine)\
**Post date:** [May 25, 2016, 4:19pm UTC](https://community.wolfram.com/t/calculate-this-limit-with-wolfram-alpha/8623/7 "2016-05-25T16:19:44Z")

</div>

What about this?

```
f = (y^2 Sin[x])/(x^2 + y^2);

Limit[Limit[f, x -> 0, Assumptions -> x \[Element] Reals], y -> 0, Assumptions -> y \[Element] Reals]

Limit[Limit[f, y -> 0, Assumptions -> y \[Element] Reals], x -> 0, Assumptions -> x \[Element] Reals]

Plot3D[f, {x, -1, 1}, {y, -1, 1}, AxesLabel -> {x, y, "f"}]

```

The “approach” from “in between” is contained in the answer of Sander

---

<div class="post-metadata">

**Author:** ![sghuisman](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/sghuisman/32/27850_2.png) [@sghuisman](https://community.wolfram.com/u/sghuisman)\
**Post date:** [May 25, 2016, 4:24pm UTC](https://community.wolfram.com/t/calculate-this-limit-with-wolfram-alpha/8623/8 "2016-05-25T16:24:48Z")

</div>

Limit[Limit[…]] also works indeed. The assumptions are not even necessary actually.

From the plot it is quite clear that the value is not direction-dependent. I would be surprised that WolframAlpha by default would include complex numbers in the limit while Mathematica doesn’t…

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [May 26, 2016, 5:58am UTC](https://community.wolfram.com/t/calculate-this-limit-with-wolfram-alpha/8623/9 "2016-05-26T05:58:31Z")

</div>

At present it seems that Mathematica only makes limits in one variable. Wolfram|Alpha apparently can handle more general limits, perhaps assuming complex variables. Iterated limits or directional limits are not the same as a full two-variable limit. Wolfram|Alpha’s answer is so vague that it may simply mean that it can’t do it.

---

<div class="post-metadata">

**Author:** ![pere](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/pere/32/16576_2.png) [@pere](https://community.wolfram.com/u/pere)\
**Post date:** [May 26, 2016, 7:38am UTC](https://community.wolfram.com/t/calculate-this-limit-with-wolfram-alpha/8623/10 "2016-05-26T07:38:44Z")

</div>

Yes, u r probably right about Alpha. tnks

---

<div class="post-metadata">

**Author:** ![pere](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/pere/32/16576_2.png) [@pere](https://community.wolfram.com/u/pere)\
**Post date:** [May 26, 2016, 7:47am UTC](https://community.wolfram.com/t/calculate-this-limit-with-wolfram-alpha/8623/11 "2016-05-26T07:47:08Z")

</div>

When u r dealing with limits of multi variable function u need to simultaneously approach the point with all variables, which means  
Sqrt[(x-x0)^2+(y-y0)^2]-\>0, when u r using Limit[Limit[,x-\>0],y-\>0] u get a repeated limit which actually has nothing to do with the existance of the limit at the discussed point, for example check the function

f(x,y)=xSin[1/x] for (x,y) not equal to (0,0) and f(0,0)=0.

---

<div class="post-metadata">

**Author:** ![pere](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/pere/32/16576_2.png) [@pere](https://community.wolfram.com/u/pere)\
**Post date:** [May 26, 2016, 7:49am UTC](https://community.wolfram.com/t/calculate-this-limit-with-wolfram-alpha/8623/12 "2016-05-26T07:49:16Z")

</div>

Yes, me too, especially as many students use Alpha and they know next to nothing about analytic functions

---

<div class="post-metadata">

**Author:** ![hdolhaine](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/hdolhaine/32/35924_2.png) [@hdolhaine](https://community.wolfram.com/u/hdolhaine)\
**Post date:** [May 26, 2016, 4:48pm UTC](https://community.wolfram.com/t/calculate-this-limit-with-wolfram-alpha/8623/13 "2016-05-26T16:48:02Z")

</div>

> u need to simultaneously approach the point with all variables

hmmm, good point. Isn’t it so, that the limit must be the same indepent of the arbritrary path on which you approach the point of interest?  
How can we be sure that there doesn’t exist just one way giving another result, even when we have tested lots of other ways?

---

<div class="post-metadata">

**Author:** ![pere](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/pere/32/16576_2.png) [@pere](https://community.wolfram.com/u/pere)\
**Post date:** [May 27, 2016, 8:52am UTC](https://community.wolfram.com/t/calculate-this-limit-with-wolfram-alpha/8623/14 "2016-05-27T08:52:44Z")

</div>

U need to use different strategies, such as converting into polar coordinates, or the Sandwich theorem . For Example f(x,y)=y^2\*Sin(y/x) : The Sin is bounded by 1, and y^2 goes to 0, etc. In polar form, if the limit is independent of the angle u can prove existence of limits.

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [May 27, 2016, 8:59am UTC](https://community.wolfram.com/t/calculate-this-limit-with-wolfram-alpha/8623/15 "2016-05-27T08:59:25Z")

</div>

It is not enough that the limit is independent of the angle. You also need that the limit is uniform in the angle. A classic couterexample was found by Peano:

```
(x^2 - y) (x^2 - y/3)

```

It has limit 0 along all radiuses, but not along parables.

---

<div class="post-metadata">

**Author:** ![pere](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/pere/32/16576_2.png) [@pere](https://community.wolfram.com/u/pere)\
**Post date:** [May 27, 2016, 9:51am UTC](https://community.wolfram.com/t/calculate-this-limit-with-wolfram-alpha/8623/16 "2016-05-27T09:51:28Z")

</div>

I’m not sure I follow u, this product goes to 0 when {x,y}-\>{0,0}, or did u mean it should be divided? In this case :

Sure, That what I meant when I said it should be independent - i.e. if the limit depend on the angle there is no limit.  
In yr example, after converting to polar u get:  
{rcos(a)-sin(a)}/{rcos(a)-sin(a)/3} → 3sin(a)/sin(a)=3 for all a not equal to 0,Pi

and it does depend on the angle, if a=0,Pi u can’t divide so it doesn’t go to 0 on all radiuses.

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [May 27, 2016, 10:10am UTC](https://community.wolfram.com/t/calculate-this-limit-with-wolfram-alpha/8623/17 "2016-05-27T10:10:37Z")

</div>

Sorry, i got confused. That example was for a different purpose: it has a minimum at the origin along all straight lines, but not along parabolas. Try this:

```
Plot3D[(y/(x^2) )/(1 + (y/x^2)^2), {x, -1, 1}, {y, -1, 1}]

```

This has no limit at the origin, but

```
(y/(x^2) )/(1 + (y/x^2)^2) == (x^2 y)/(x^4 + y^2)

```

so that it has limit 0 along all radiuses. I am in a hurry, I hope I didn’t make mistakes…

---

<div class="post-metadata">

**Author:** ![pere](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/pere/32/16576_2.png) [@pere](https://community.wolfram.com/u/pere)\
**Post date:** [May 27, 2016, 3:05pm UTC](https://community.wolfram.com/t/calculate-this-limit-with-wolfram-alpha/8623/18 "2016-05-27T15:05:39Z")

</div>

Yes. I already figured it out while trying yr example. But u  
right about using polar coordinates to calculate a limit (usually at (0,0)). I usually use it to show there is no limit - if we r left with expressions that depends on the angle.  
Ofcourse, if u try to show that there is a limit we need to asume that the angle is not a constatnt which makes it a linear path (on the radiuses), and therefore not enough to prove the existence of the limit. Obviously converting a 2 variable problem in to only one variable problem (when we “ignore” the angle) does not make much sense.  
Tnks for yr example, Shabat Shalom
