I want to show that if $G$ is a connected Lie group, then its centre, $Z(G)$ equals $Ker \ Ad$, where Ad is the adjoint function define by:
$$\forall X \in G, Y \in \mathfrak{g}: Ad(X)(Y) = XYX^{-1}$$
Now, I know also the next few relations:
$$ X \in \mathfrak{g}: \ Ad(e^X) = e^{ad(X)}$$
$$ ad(X)(Y)= [X,Y]$$
Now, from the fact that $G$ is connected I know that each $A \in G$ can be written as:
$$\exists X_1,\cdots,X_m \in \mathfrak{g}: \ A=e^{X_1}\cdots e^{X_m}$$
So now I want to show that for every $B \in G, \ A\in \mathfrak{g}: \ AB=BA$.
Now I see that: $Ad(AB)=Ad(BA)$ cause $Ad$ is homomorphism and $Ad(A)=Id$.
But I don't see how does this imply that $AB=BA$.
Any hints or advice is much helpful.
Thanks in advance.