In LaTeX, a^\prime is rendered as a ′ {\displaystyle a^{\prime }} inside math mode.
a^\prime
a' is a shorthand for a^\prime.
a'