To get an expression exp to appear as a superscript, you just type ^{exp}. Use in math mode.

exp

^{exp}

See section Math Formulae.

See section Subscripts & Superscripts.