For the real numbers, $x\in \mathbb R$, we have the relations $$\ln (e^x) = x = e^{\ln x}.$$ Since operators aren't numbers, these equations don't necessarily hold for operators, that is, if we replace $x$ with an operator $\widehat A$. So my question is: Are these relations valid for operators? And why / why not?
My attempt to far:
As far as I know, operator functions used in quantum mechanics are defined as a power series expansion of that function, using the operator as the argument:
$$e^{\widehat B} \equiv \sum_{n=0}^\infty \frac{{\widehat B}^n}{n!}.$$
For $\ln x$ I found different power series for different domains of $x$, for example the series
$$\ln x = \sum_{n=1}^\infty \frac{2}{2n-1} \left(\frac{x-1}{x+1}\right)^{2n-1},$$
which is valid for $x>0$ . But my attempt to use these power series (and I'm not even sure what it would mean for an operator to be greater than $0$, as required by this log series) goes nowhere useful:
\begin{align*} e^{\ln \widehat A} &= \sum_{n=0}^\infty \frac{(\ln\widehat A)^n}{n!}\\ &= \sum_{n=0}^\infty \frac{1}{n!}\left( \sum_{k=1}^\infty \frac{2}{2k-1} \left(\frac{\widehat A-1}{\widehat A+1}\right)^{2k-1} \right)^n \\ &\stackrel ?= \widehat A \end{align*}
I can't see whether those power series reduce to just $\widehat A$ or not. Any help or clarification is greatly appreciated!