Partial Derivative in LaTeX (\frac{\partial \mathcal{L}}{\partial \theta})

∂L∂θ\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.

∂L∂θ=2(θ−y)\frac{\partial \mathcal{L}}{\partial \theta} = 2(\theta - y)
\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

All Pembelajaran Mesin & AI →

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.
Math poweredTulis LaTeX menggunakan AI

Editor LaTeX AI Terbaik, Alternatif Overleaf

Octree membantu penyelidik dari 15+ universiti menulis kertas penyelidikan dengan lebih cepat menggunakan AI

  • Jana diagram TikZ yang cantik menggunakan AI
  • Muat naik imej dan tukar ke LaTeX dengan lancar
  • Dapatkan bantuan segera untuk menulis dan memformat kertas penyelidikan