How to write prime(a′) symbol in LaTeX like f′(x)?

The prime symbol is available on your computer keyboard. However, you should also have an idea about the various latex packages and commands.

\documentclass{article}
\begin{document}
   a' f' c'
\end{document}

\[a’ \quad f’(x) \quad c’\]
Notice the output above, you cannot use the direct prime symbol as a latex command in text mode. Because it will return the single left quotation mark. So, the prime symbol has to be used in math mode.

\documentclass{article}
\begin{document}
  a$'$  b$'$  c$'$
  $ a' b' c' $
\end{document}

\( a′ \quad b’ \quad c′ \)

\(a′ \quad f’(x) \quad c′ \)
\prime command must be used in math mode. However, it will take the place of inline text. For example

\[ f\prime(x) \]

\[ f\prime(x) \]
The above output is not very accurate. Because the prime symbol is always located along the top corner.

So, you can pass in superscript without using a direct prime command. Now you notice the output below.

\documentclass{article}
\begin{document}
  \[ a^{\prime} \]
  \[ b^{\prime} \]
  \[ c^{\prime} \]
\end{document}

Output :

a′
b′
c′

Double and triple prime symbols in LaTeX

Mathematically, the prime symbol is used in calculus to represent the derivative of a function.

\documentclass{article}
\begin{document}
 \[ f'(x) \]
 \[ f''(x) \]
 \[ f'''(x) \]
\end{document}

\[ f'(x) \]

\[ f”(x) \]

\[ f”'(x) \]

Share tutorial

Leave a Comment

Your email address will not be published. Required fields are marked *