To get an expression exp to appear as a superscript, you just type ^{exp}. Use in math mode.
See also: Math Formulas, Subscripts and Superscripts,