\text{\textasciicircum}
The \text{\textasciicircum} command in LaTeX is used to produce the caret symbol (^), which is often used to denote exponentiation or to indicate a superscript in mathematical expressions.
Represents x squared, or x raised to the power of 2.
x \text{\textasciicircum} 2
Indicates a raised to the power of b.
a \text{\textasciicircum} b
Part of Euler's identity, showing e raised to the power of i times pi.
e \text{\textasciicircum} {i\pi} + 1 = 0