[Tex/LaTex] Centering Math Formulas

amsmathhorizontal alignment

I am using LaTeXila in Ubuntu and I want to center my math equation so I have this written:

$\[ 2^{10} \]$

But when I try to compile into PDF, it outputs the error:

Bad math environment delimeter

How do I get it to center math text properly? Thanks

Best Answer

$2^{10}$ 

will give you inline math, i.e., a formula in the middle of the text.

\[ 2^{10} \]

will give you display math, i.e., a formula separated from the text, and centered.

Related Question