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 التعلم الآلي والذكاء الاصطناعي →

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 poweredاكتب LaTeX باستخدام الذكاء الاصطناعي

أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf

يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي

  • أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
  • ارفع صورة وحولها إلى LaTeX بسلاسة
  • احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث