Polygamma in LaTeX (\psi^{(n)}(x))

ψ(n)(x)\psi^{(n)}(x)
LaTeX command
\psi^{(n)}(x)
Package
No package needed: built into LaTeX
Mode
Math mode only

Where it is used

Polygamma function of order n: the (n+1)-th derivative of ln Gamma(x), or n-th derivative of the digamma.

\psi^{(n)}(x) = \frac{d^{n+1}}{dx^{n+1}} \ln \Gamma(x), with \psi^{(0)} = \psi the digamma and \psi^{(1)} the trigamma function. Notable values: \psi^{(1)}(1) = \pi^2/6, and in general \psi^{(n)}(1) = (-1)^{n+1} n!\,\zeta(n+1). The trigamma gives the Fisher information and variance terms for gamma and Dirichlet models. The parenthesized superscript marks derivative order, not a power; writing ^n alone would read as exponentiation. Braces around (n) are required so the whole group is raised. Many authors write the trigamma simply as \psi'(x), which is equally standard.

Minimal compilable example

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

ψ(n)(1)=(−1)n+1 n! ζ(n+1)\psi^{(n)}(1) = (-1)^{n+1}\, n!\, \zeta(n+1)
\documentclass{article}
\begin{document}
Polygamma: $\psi^{(n)}(x)$

\[ \psi^{(n)}(1) = (-1)^{n+1}\, n!\, \zeta(n+1) \]
\end{document}

Related symbols

All Fungsi Khas →

Frequently asked questions

How do I write Polygamma in LaTeX?
Type \psi^{(n)}(x) in math mode, for example $\psi^{(n)}(1) = (-1)^{n+1}\, n!\, \zeta(n+1)$. It works in plain LaTeX without loading any package.
Which package do I need for \psi^{(n)}(x)?
None. \psi^{(n)}(x) is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use \psi^{(n)}(x) in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\psi^{(n)}(x)$ 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