Varying and integrating by parts gives
Since , variation of the potential and another integration by parts give
These are the scalar and Maxwell equations of Einstein-Maxwell-dilaton theory.