Skip to content
All LaTeX symbols

Prime symbol (′)

Accents & decorations

′

LaTeX command

f'

apostrophe — LaTeX converts it

Use inside math mode: $f'$ — base LaTeX, KaTeX and MathJax

Typing an apostrophe in math mode gives a correctly raised prime, so f' is all you need. \prime exists for cases where the prime must be combined with another superscript, as in f'^{2} written as f^{\prime 2}.

All ways to write it

CommandUsePackageCopy
f'apostrophe — LaTeX converts itnone
f''double primenone
f^{\prime}explicit, rarely needednone
f^{(n)}nth derivativenone

Example

(fg)' = f'g + fg'

The product rule.

Questions

How do I write a prime and a power on the same letter?

f^{\prime 2}, or {f'}^2 with the primed letter grouped.

Related symbols

Using prime in Confluence

Confluence Cloud has no built-in LaTeX. With LaTeX Math for Confluence you add a math macro to any page, type f' and it renders inline or as a block, with a live preview while you edit. Every command on this page renders there without extra packages.