Gradient of L in LaTeX (\nabla_{\theta} \mathcal{L})

∇θL\nabla_{\theta} \mathcal{L}
LaTeX command
\nabla_{\theta} \mathcal{L}
Package
No package needed: built into LaTeX
Mode
Math mode only

Where it is used

Gradient of the loss L with respect to the parameters theta: the vector of partial derivatives used in training.

This is the quantity backpropagation computes, and it drives the gradient descent update \theta \leftarrow \theta - \eta \nabla_\theta \mathcal{L}. The subscript on \nabla names which variables you differentiate with respect to, which matters when the loss depends on both parameters and inputs, for example \nabla_x \mathcal{L} in adversarial attacks. \mathcal gives the script L and supports uppercase letters only. In inline text, the subscript sits to the lower right of the nabla, which is standard. For stochastic estimates, a hat helps: \hat{\nabla}_\theta \mathcal{L} or \tilde{g}.

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

θt+1=θt−η∇θL(θt)\theta_{t+1} = \theta_t - \eta \nabla_{\theta} \mathcal{L}(\theta_t)
\documentclass{article}
\begin{document}
Gradient of L: $\nabla_{\theta} \mathcal{L}$

\[ \theta_{t+1} = \theta_t - \eta \nabla_{\theta} \mathcal{L}(\theta_t) \]
\end{document}

Related symbols

All Machine Learning at AI →

Frequently asked questions

How do I write Gradient of L in LaTeX?
Type \nabla_{\theta} \mathcal{L} in math mode, for example $\theta_{t+1} = \theta_t - \eta \nabla_{\theta} \mathcal{L}(\theta_t)$. It works in plain LaTeX without loading any package.
Which package do I need for \nabla_{\theta} \mathcal{L}?
None. \nabla_{\theta} \mathcal{L} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use \nabla_{\theta} \mathcal{L} in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\nabla_{\theta} \mathcal{L}$ in running text.
Math poweredSumulat ng LaTeX gamit ang AI

Pinakamahusay na AI LaTeX Editor, Alternatibo sa Overleaf

Tinutulungan ng Octree ang mga researcher mula sa 15+ na unibersidad na sumulat ng research papers nang mas mabilis gamit ang AI

  • Gumawa ng magagandang TikZ diagrams gamit ang AI
  • Mag-upload ng larawan at i-convert ito sa LaTeX nang walang problema
  • Makakuha ng instant na tulong sa pagsulat at pag-format ng research papers