When writing mathematics in LaTeX, we often use various symbols. One important symbol is the asterisk (*).
Generally, the *
is used for multiplication or to indicate something special. However, in some mathematical contexts, it can also be used as a superscript.
In this tutorial, we will learn how to use the asterisk (*) as a superscript in LaTeX and how it is applied in different cases.
What is a superscript and How does it work?
A superscript is any letter, number, or symbol written above the baseline in a smaller size. In LaTeX, superscripts are written using the caret (^) symbol.
x^n x^{n!}
Now, the question is, if we want to use the *
symbol as a superscript, how can we do that? Let’s understand it step by step
Using asterisk (*) as a superscript
To use the *
as a superscript, we must place it after the ^
symbol. If there is only one character in the superscript, we don’t need curly braces {}
. But if we use multiple characters, we must enclose them in ^{}
.
\[ f^* \] \[f^{**} \]
\[ f^* \]
\[ f^{**} \]
Used in quantum mechanics, linear algebra, and other mathematical equations. Here are some examples.
\[\langle \psi | A^* | \phi \rangle\] \[ M^* = \overline{M} \] \[f^*(x) = \int_{-\infty}^{\infty} g(t) e^{-ixt} dt\]
\[\langle \psi | A^* | \phi \rangle\]
\[ M^* = \overline{M} \]
\[f^*(x) = \int_{-\infty}^{\infty} g(t) e^{-ixt} dt\]
Conclusion
Using the *
in LaTeX is very simple. We just need to use the ^
symbol correctly. If the superscript contains a single character, we don’t need {}
. However, for multiple characters, using {}
is necessary.