Message Boards Message Boards

0
|
5981 Views
|
6 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Problem with solving inequality x+1/x>-1+1/x

Posted 4 years ago

Wolfram|Alpha gives correct answer (-1;0)(0;+infty). But wolfram script gives (-1;+infty) -- so, with 0 inside answer.

I use this command: Reduce[x+1/x>-1+1/x, x];

Where is a problem with my Wolfram script?

POSTED BY: Lev Breslav
6 Replies
Posted 4 years ago

Crossposted here.

POSTED BY: Rohit Namjoshi

Why is x=0 not a solution?

In[3]:= Limit[(x + 1/x) - (-1 + 1/x), x -> 0]

Out[3]= 1
POSTED BY: Frank Kampas

Hi Frank,

because the expression is not defined at x=0. You cannot substitute x->0 because you would divide by zero. The limit that you calculate does exist. If you run:

FunctionDomain[(x + 1/x), x]

You obtain:

x < 0 || x > 0

The function is not defined for x=0. Hence, x=0 cannot be a solution of the inequality.

Cheers,

Marco

POSTED BY: Marco Thiel

Hi,

this one appears to work:

Reduce[x + 1/x > -1 + 1/x && FunctionDomain[{x + 1/x, -1 + 1/x}, x],x]

The result correctly excludes x==0 as a solution.

Cheers,

Marco

POSTED BY: Marco Thiel

Aren't they equivalent?

POSTED BY: Frank Kampas
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract