Partial Derivative in LaTeX (\frac{\partial \mathcal{L}}{\partial \theta})
- LaTeX command
\frac{\partial \mathcal{L}}{\partial \theta}- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Partial derivative of the loss L with respect to a parameter theta, the per-parameter sensitivity of the loss.
This fraction is the scalar building block of backpropagation; the chain rule becomes \frac{\partial \mathcal{L}}{\partial w} = \frac{\partial \mathcal{L}}{\partial a} \frac{\partial a}{\partial w}. Use \partial, the curly d, for partial derivatives and a plain d for total derivatives. In running text, \frac shrinks to fit, which is often hard to read; \tfrac, the slash form \partial \mathcal{L}/\partial \theta, or a \dfrac in display can work better. For repeated use, a macro or the physics-style \pdv command keeps typing short. When theta is a vector, many authors switch to \nabla_\theta \mathcal{L} instead.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
Partial Derivative: $\frac{\partial \mathcal{L}}{\partial \theta}$
\[ \frac{\partial \mathcal{L}}{\partial \theta} = 2(\theta - y) \]
\end{document}Related symbols
- Eta
\eta - Gradient of L
\nabla_{\theta} \mathcal{L} - Theta
\theta - Nabla
\nabla - Theta Star
\theta^* - ReLU
\text{ReLU}
Frequently asked questions
- How do I write Partial Derivative in LaTeX?
- Type \frac{\partial \mathcal{L}}{\partial \theta} in math mode, for example $\frac{\partial \mathcal{L}}{\partial \theta} = 2(\theta - y)$. It works in plain LaTeX without loading any package.
- Which package do I need for \frac{\partial \mathcal{L}}{\partial \theta}?
- None. \frac{\partial \mathcal{L}}{\partial \theta} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \frac{\partial \mathcal{L}}{\partial \theta} in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\frac{\partial \mathcal{L}}{\partial \theta}$ in running text.
أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf
يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي
- أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
- ارفع صورة وحولها إلى LaTeX بسلاسة
- احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث