From Mr. V Wiki Math
Basics
To render any math equation, the math equation must be between <math></math>
i.e., <math>f(x)=x^2</math>
gives
.
Common math commands
Superscript & Subscript
Superscript: <math>x^{5+y}</math>
gives 
Subscript: <math>x_{5+t}</math>
gives 
Both at the same time: <math>x_{5+t}^{5+y}</math>
gives
Fractions and radicals
Fractions: <math>\frac{numerator}{denominator}</math>
gives 
123