# I can't seem to get superscript to show up, like I squared should be I^2

In my answer here I have tried to get P = I^2 * R to show the 2 in super script, several different ways, like P = I^{2} * R as mentioned here.

How is it done?

This site supports the LaTeX syntax and rendering through the MathJax engine.

You can use the normal LaTeX syntax, but you have to enclose the formulas in  tags for centered formulas, \\$ tags for inline formulas.

There is a sandbox here, where you can find several examples.

<sub> and <sup> tags would do the job too