The center and the Lie structure of a Leavitt path algebra