Let $A$ and $B$ be $n\times n$ complex matrices such that $e^A = e^B$. I would like to know relations between $A$ and $B$.
When $A,B\in\mathbb{C}$, we have a simple relation $e^A = e^B \Leftrightarrow A-B\in 2\pi i \mathbb{Z}$. Is there such simple relation for general matrices $A$ and $B$?
For any nonsingular $n \times n$ matrix $C$, there are matrices $A$ such that $\exp(A)=C$.
Suppose $C$ is in Jordan form. For each Jordan block of size $m$ with eigenvalue $\lambda$, $$\pmatrix{ \lambda & 1 & 0 & \ldots & 0 & 0\cr 0 & \lambda & 1 & \ldots & 0& 0\cr \ldots & \ldots & \ldots & \ldots & \ldots & \ldots\cr 0 & 0 & 0 & \ldots &\lambda & 1\cr 0 & 0 & 0 & \ldots & 0 &\lambda \cr}$$ $A$ can have a corresponding block of size $m$ where the diagonal elements are some branch of $\log(\lambda)$, and the elements in the $k$'th super-diagonal are $\dfrac{d^n}{d\lambda^n} \log(\lambda)/n!$. This is not a Jordan block, but its Jordan form will be a single Jordan block of size $m$.
If the blocks of $C$ are all different, the decomposition is unique, and the only choice in $A$ is which branches of logarithm to use. However, if there are identical blocks, there will be a continuum of choices. Thus since $$ C = \pmatrix{1 & 1 & 0 & 0\cr 0 & 1 & 0 & 0\cr 0 & 0 & 1 & 1\cr 0 & 0 & 0 & 1\cr}$$ commutes with $$ J = \pmatrix{\cos(t) & 0 & \sin(t) & 0\cr 0 & \cos(t) & 0 & \sin(t)\cr -\sin(t) & 0 & \cos(t) & 0\cr 0 & -\sin(t) & 0 & \cos(t)}$$ logarithms of $C$ will include $$ \eqalign{J &\pmatrix{ w_1 & 1 & 0 & 0\cr 0 & w_1 & 0 & 0\cr 0 & 0 & w_2 & 1\cr 0 & 0 & 0 & w_2\cr} J^{-1} \cr = &\pmatrix{ (w_1-w_2)\cos(t)^2+w_2 & 1 & -\cos(t)\sin(t)(w_1-w_2) & 0\cr 0 & (w_1-w_2)\cos(t)^2+w_2 & 0 & -\cos(t)\sin(t)(w_1-w_2)\cr -\cos(t)\sin(t)(w_1-w_2) & 0 & (-w_1+w_2)\cos(t)^2+w_1 & 1\cr 0 & -\cos(t)\sin(t)(w_1-w_2) & 0 & (-w_1+w_2)\cos(t)^2+w_1\cr}} $$ where $w_1$ and $w_2$ are any logarithms of $1$ (e.g. $0$ and $2\pi i$).