Let $G$ be a smooth affine algebraic group over a field $k$. If $G_{\bar{k}}$ is commutative over $\bar{k}$, is it necessary that $G$ is a commutative algebraic group over $k$?
I think the answer is yes. Since the formation of centralizer commutes with extension of the base field, we have $Z(G)_{\bar{k}}=Z(G)_{\bar{k}}=G_{\bar{k}}$ so $Z(G)=G$. The "smoothness" seems to be unnecessary here so I don't know if my attempt is wrong or not.