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

ArcTan really bothers me, so is there a way to make Mathematica write Logarithm instead of ArcTan? What I'm after is some kind of a ArcTan to Log converter such as the following list from Wiki

share|improve this question
Try TrigToExp, e.g. TrigToExp @ ArcTan[x] works as you seem to expect – Artes Jun 5 '13 at 16:05
That's awesome, thanks a lot man. You should post this as an answer. – mapel Jun 5 '13 at 16:06
So now I'm curious. What's bothering you in ArcTans? – Sjoerd C. de Vries Jun 5 '13 at 18:03
@Vries They are way too restricted for me, $\log$s are much more general and easier to work with imho. – mapel Jun 5 '13 at 19:32
up vote 5 down vote accepted

The function you need is TrigToExp, e.g.

TrigToExp @ ArcTan[x]
 1/2 I Log[1 - I x] - 1/2 I Log[1 + I x]

There is an inverse function for TrigToExp, namely ExpToTrig

ExpToTrig[ 1/2 I Log[1 - I x] - 1/2 I Log[1 + I x]]

They both are Listable:

Attributes @ {ExpToTrig, TrigToExp}
{{Listable, Protected}, {Listable, Protected}}

Therefore you can use it e.g. this way:

TrigToExp [Sin[x] < x < Tan[x] ]
 1/2 I E^(-I x) - 1/2 I E^(I x) < x < (I (E^(-I x) - E^(I x)))/(E^(-I x) + E^(I x))
share|improve this answer

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.