I am checking the proof of $$ \text{det}~e^B= e^{\text{tr}(B)}.\tag{1} $$ Using the Jacobi's formula and adjugate matrix, I now $$d~\text{det}~A=\text{det}(A)\text{tr}(A^{-1}d~A)\tag{2}$$ holds. But here we see that, letting $A=e^B$, we have $$d~\text{det}~e^B=\text{tr}(B)~\text{det}~e^B,\tag{3}$$ which means that $$\text{tr}((e^B)^{-1}de^B)=\text{tr}~dB.\tag{4}$$
Why is that true?