Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

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

That is to ask, is $e^{\ln(q_0)}$ = $\ln(e^{q_0})$?

share|cite|improve this question
This condition does not imply that the two maps are inverse, but yes, this is true for sufficiently small q_0. In fact the inverse relationship between the logarithm and the exponential is formal in the sense that it is an equality of power series so it holds whenever the series converge. – Qiaochu Yuan Feb 24 '11 at 18:52
up vote 3 down vote accepted

$e^{\ln(q_0)} = q_0$ always holds for all branches of the logarithm and even for square matrices (because this is essentially the definition of the log).

$\ln(e^{q_0}) = q_0$ is already for complex numbers not always true (because the logarithm is multivalued)

share|cite|improve this answer

I wrote software to play with quaternions numerically on the command line (

q_ln 1 2 3 4 | q_exp 1.0000000000000011 2.0000000000000000 3.0000000000000004 4.0000000000000000
This confirms $e^{ln(q_0)}=q_0$. Flip the order: q_exp 1 2 3 4 | q_ln 1.0000000000000000 -0.3335164408915938 -0.5002746613373907 -0.6670328817831875 So $\ln(e^{q_0}) \ne q_0$.

share|cite|improve this answer

Same here. I have code that seems correct, but I get the following results:

log(exp({2,4,3,3})) = {2,-0.31023,-0.232672,-0.232672}
exp(log({2,4,3,3})) = {2,4,3,3}
share|cite|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.