Discussion:
simplify Arg[E^(I x)]?
(too old to reply)
Neal Becker
2012-03-31 08:42:27 UTC
Permalink
Why doesn't this simplify?

Fullsimplify[Arg[E^(I x)], x \[Element] Reals]

I expect to get 'x'.

Is there some way I can get this to simplify?
Bob Hanlon
2012-04-01 07:34:50 UTC
Permalink
Because it is only correct for a small domain

Plot[Arg[E^(I x)], {x, -2 Pi, 2 Pi}]

Arg[E^(I x)] /. {{x -> -Pi}, {x -> Pi}}

{Pi, Pi}

FullSimplify[Arg[E^(I x)], -Pi < x <= Pi]

x


Bob Hanlon
Post by Neal Becker
Why doesn't this simplify?
Fullsimplify[Arg[E^(I x)], x \[Element] Reals]
I expect to get 'x'.
Is there some way I can get this to simplify?
--
Bob Hanlon
Andrzej Kozlowski
2012-04-01 07:35:21 UTC
Permalink
The first and obvious problem is that it should be FullSimplify and not
Fullsimplify. But fixing that won't help since your expected answer is
incorrect. All you need to do is to look up Mathematica's help for Arg
and you will see:

The result from Arg[z] is always between -\[Pi] and +\[Pi]

But then, it is immediately obvious that if you take an x not in this
range than the answer is not going to be x, for example:

Arg[Exp[3 Pi/2 I]]

-(\[Pi]/2)

Also, this tells you what you have to do to get the answer you are
looking for:

FullSimplify[Arg[Exp[I x]], -Pi < x <= Pi]

x


Andrzej Kozlowski
Post by Neal Becker
Why doesn't this simplify?
Fullsimplify[Arg[E^(I x)], x \[Element] Reals]
I expect to get 'x'.
Is there some way I can get this to simplify?
Neal Becker
2012-04-01 07:35:52 UTC
Permalink
So can I specify I just want the principle value?
First, I presume you just made a typo in your message -- it should be
FullSimplify, with an upper-case S, of course.
Second, one reason the expression doesn't simplify to x is that such a
Arg[Exp[(2 Pi + Pi/2) I]]
has value Pi/2 rather than 2 Pi + Pi/2.
Post by Neal Becker
Why doesn't this simplify?
Fullsimplify[Arg[E^(I x)], x \[Element] Reals]
I expect to get 'x'.
Is there some way I can get this to simplify?
--
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305
Anthony Hodsdon
2012-04-01 07:39:44 UTC
Permalink
The following seems to work:

In[24]:= FullSimplify[Arg[E^((2 Pi n + x) I)], x > -Pi && x <= Pi &&
Element[n, Integers]]
Out[24]= x

Does that help?

--Anthony

-----Original Message-----
From: Neal Becker [mailto:***@gmail.com]
Sent: Saturday, March 31, 2012 1:42 AM
Subject: simplify Arg[E^(I x)]?

Why doesn't this simplify?

Fullsimplify[Arg[E^(I x)], x \[Element] Reals]

I expect to get 'x'.

Is there some way I can get this to simplify?
Murray Eisenberg
2012-04-01 07:42:19 UTC
Permalink
First, I presume you just made a typo in your message -- it should be
FullSimplify, with an upper-case S, of course.

Second, one reason the expression doesn't simplify to x is that such a
result would be wrong! For example:

Arg[Exp[(2 Pi + Pi/2) I]]

has value Pi/2 rather than 2 Pi + Pi/2.
Post by Neal Becker
Why doesn't this simplify?
Fullsimplify[Arg[E^(I x)], x \[Element] Reals]
I expect to get 'x'.
Is there some way I can get this to simplify?
--
Murray Eisenberg ***@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305
David Reiss
2012-04-01 07:43:51 UTC
Permalink
For a given value of x, Arg[Exp[I x]] is not necessarily equal to x:

Plot[Arg[Exp[I x]], {x, 0, 4 Pi}]

So, to get the answer you want, you need to restrict x as in:

FullSimplify[Arg[E^(I x)], {x > -\[Pi], x <= \[Pi]}]

--David
Post by Neal Becker
Why doesn't this simplify?
Fullsimplify[Arg[E^(I x)], x \[Element] Reals]
I expect to get 'x'.
Is there some way I can get this to simplify?
Neal Becker
2012-04-02 08:28:18 UTC
Permalink
FullSimplify[Arg[E^((x) I)], x > -Pi && x <= Pi]

This seems to do what I wanted. Thanks!
Post by Anthony Hodsdon
In[24]:= FullSimplify[Arg[E^((2 Pi n + x) I)], x > -Pi && x <= Pi &&
Element[n, Integers]]
Out[24]= x
Does that help?
--Anthony
-----Original Message-----
Sent: Saturday, March 31, 2012 1:42 AM
Subject: simplify Arg[E^(I x)]?
Why doesn't this simplify?
Fullsimplify[Arg[E^(I x)], x \[Element] Reals]
I expect to get 'x'.
Is there some way I can get this to simplify?
Loading...