Prime Derivative in LaTeX (f'(x))
- LaTeX command
f'(x)- Package
- No package needed: built into LaTeX
- Mode
- Text and math mode
Where it is used
Lagrange prime notation for the first derivative of f evaluated at x.
Typing an apostrophe in math mode produces a prime as a superscript, so f' is shorthand for f^{\prime}. Prime notation is compact for single-variable functions, as in the mean value theorem f'(c) = \frac{f(b)-f(a)}{b-a}. If you also need an exponent, write f'^2, which combines both into one superscript, or group as (f'(x))^2; writing f^2' triggers a double superscript error. Avoid pasting a curly quote character, which does not become a prime, and avoid a bare \prime outside a superscript, which prints full size on the baseline. In physics, a prime can also mark a transformed coordinate such as x'.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
Prime Derivative: $f'(x)$
\[ f'(c) = \frac{f(b) - f(a)}{b - a} \]
\end{document}Related symbols
- Double Prime
f''(x) - Differential
dx - Dot
\dot{x} - Product
\prod_{n=1}^{\infty} - Double Dot
\ddot{x} - Summation
\sum_{n=1}^{\infty}
Frequently asked questions
- How do I write Prime Derivative in LaTeX?
- Type f'(x) in math mode, for example $f'(c) = \frac{f(b) - f(a)}{b - a}$. It works in plain LaTeX without loading any package.
- Which package do I need for f'(x)?
- None. f'(x) is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use f'(x) in text mode, or only in math mode?
- Both. f'(x) compiles in running text as well as inside $...$; in a formula keep it in math mode so it gets math fonts and spacing.
أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf
يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي
- أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
- ارفع صورة وحولها إلى LaTeX بسلاسة
- احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث