QPolyGamma[z,q]
gives the
-digamma function
.
QPolyGamma[n,z,q]
gives the ![]()
derivative of the
-digamma function
.
QPolyGamma
QPolyGamma[z,q]
gives the
-digamma function
.
QPolyGamma[n,z,q]
gives the ![]()
derivative of the
-digamma function
.
Details
- Mathematical function, suitable for both symbolic and numerical manipulation.
.
.- QPolyGamma automatically threads over lists.
Examples
open all close allBasic Examples (6)
QPolyGamma[2., 3]Plot over a subset of the reals:
Plot[QPolyGamma[x, 2 / 3], {x, -2, 2}]Plot over a subset of the complexes:
ComplexPlot3D[QPolyGamma[z, 1 / 2], {z, -1 - I, 1 + I}, PlotLegends -> Automatic]Series expansion at the origin:
Series[QPolyGamma[x, 1 / 2], {x, 0, 2}]Series expansion at Infinity:
Series[QPolyGamma[x, 1 / 2], {x, ∞, 2}]//NormalSeries expansion at a singular point:
Series[QPolyGamma[x, 1 / 2], {x, -1, 2}, Assumptions -> x > 0]//FullSimplifyScope (26)
Numerical Evaluation (6)
QPolyGamma[.5, 9]QPolyGamma[0, .9, 5.0]N[QPolyGamma[1, 1 / 7, 1 / 3], 25]The precision of the output tracks the precision of the input:
QPolyGamma[1, .300000000000000000]QPolyGamma[.3 + I, .5 - I]Evaluate efficiently at high precision:
QPolyGamma[1 / 8, 122`100]//TimingQPolyGamma[1 / 5, 122`10000];//TimingCompute average-case statistical intervals using Around:
QPolyGamma[Around[3, 0.01], .5]Compute the elementwise values of an array:
QPolyGamma[{{3, 2}, {2, 3}}, 1]Or compute the matrix QPolyGamma function using MatrixFunction:
MatrixFunction[QPolyGamma[#, 1]&, {{3, 2}, {2, 3}}]//FullSimplifySpecific Values (5)
QPolyGamma[2, 2, 1]//FunctionExpandQPolyGamma[3, 2, 1]//FunctionExpandQPolyGamma[1, 1]QPolyGamma[2, x, 1]//FunctionExpandSome singular points of QPolyGamma:
{QPolyGamma[0, 0], QPolyGamma[-1, 1], QPolyGamma[-2, -2]}QPolyGamma[ComplexInfinity, 1]Find a value of x for which QPolyGamma[x,6]=3:
xval = x /. N@Solve[QPolyGamma[x, 6] == 3 && 1 < x < 5, x, Reals][[1]]//QuietPlot[QPolyGamma[x, 6], {x, -2, 4}, Epilog -> Style[Point[{xval, QPolyGamma[xval, 6]}], PointSize[Large], Red]]Visualization (3)
Plot the QPolyGamma function:
Plot[QPolyGamma[x, 1 / 2], {x, -2, 2}]Plot the QPolyGamma as a function of its second parameter q:
Plot[{QPolyGamma[1 / 4, q], QPolyGamma[1 / 3, q], QPolyGamma[1 / 2, q]}, {q, 0, 2}]ComplexContourPlot[Re[QPolyGamma[z, 1 / 2]], {z, -2 - 4I, 2 + 4I}, Contours -> 20]ComplexContourPlot[Im[QPolyGamma[z, 1 / 2]], {z, -2 - 4I, 2 + 4I}, Contours -> 20]Function Properties (7)
The real domain of QPolyGamma:
FunctionDomain[QPolyGamma[n, x, q], {n, x, q}]//FullSimplifyFunctionDomain[QPolyGamma[n, z, q], {n, z, q}, Complexes]QPolyGamma threads elementwise over lists:
QPolyGamma[0, {1, 2, 3}, 0.5]
is neither nonincreasing nor nondecreasing:
FunctionMonotonicity[QPolyGamma[x, 2 / 3], x]QPochhammer is not injective:
FunctionInjective[QPolyGamma[x, 2 / 3], x]Plot[{QPolyGamma[x, 2 / 3], 5}, {x, -2, 2}]QPolyGamma is neither non-negative nor non-positive:
FunctionSign[QPolyGamma[x, 2 / 3], x]QPolyGamma is neither convex nor concave:
FunctionConvexity[QPolyGamma[x, 2 / 3], x]TraditionalForm formatting:
QPolyGamma[x, q]//HoldForm//TraditionalFormQPolyGamma[n, x, q]//TraditionalFormDifferentiation (3)
First derivative with respect to z:
D[QPolyGamma[z, q], z]Higher derivatives with respect to z:
Table[D[QPolyGamma[z, q], {z, k}], {k, 1, 3}]//FullSimplifyPlot the higher derivatives with respect to z when q=3:
Plot[Evaluate[% /. { q -> 3}], {z, -3, 3}, PlotLegends -> {"First Derivative", "Second Derivative", "Third Derivative"}]Formula for the ![]()
derivative with respect to z:
D[QPolyGamma[z, q], {z, k}]// FullSimplifySeries Expansions (2)
Find the Taylor expansion using Series:
Series[QPolyGamma[x, q], {x, 0, 3}]//NormalPlots of the first three approximations around
:
terms = Normal@Table[Series[QPolyGamma[x, 1 / 3], {x, 0, m}], {m, 1, 3}];
Plot[{QPolyGamma[x, 1 / 3], terms}, {x, 0, 5}, PlotRange -> {-10, 10}]The Taylor expansion at a generic point:
Series[QPolyGamma[x, q], {x, x0, 2}]// Normal//FullSimplifyApplications (3)
Express certain sums in closed form:
Sum[(1/Cosh[k] + 1), {k, 0, Infinity}]In general, all basic
-rational sums can be computed using QPolyGamma:
Sum[(1/(q ^ k - 1)(q ^ k - 2)), k]Sum[(1/q ^ (3k) + 3 q ^ (2k) + 1), k]Use DifferenceDelta to verify:
DifferenceDelta[%, k]Compute an approximation for a finite sum:
AsymptoticSum[1 / (2 ^ k + 1), {k, 0, n}, {n, ∞, 1}]Compute the numerical approximation for increasing values of n:
Table[%, {n, {5, 10, 300}}]//N[#, 20]&//N//ChopCompare with the exact results given by Sum:
Table[Sum[1 / (2 ^ k + 1), {k, 0, n}], {n, {5, 10, 300}}]//N[#, 20]&//N//ChopThe Lambert series
can be expressed in terms of the
-digamma function:
lambert[q_] := (QPolyGamma[1, q] + Log[1 - q]/Log[q])Verify the identity through series expansion:
With[{n = 14}, Series[lambert[q] - Underoverscript[∑, k = 1, n](q^k/1 - q^k), {q, 0, n}]]The Lambert series is related to the generating function for the number of divisors:
CoefficientList[Series[lambert[q] / q, {q, 0, 11}], q]Table[DivisorSigma[0, n], {n, 12}]Properties & Relations (2)
Differences of QPolyGamma are
-rational functions:
DifferenceDelta[QPolyGamma[0, k, q], k]FunctionExpand[%]DifferenceDelta[QPolyGamma[2, k, q], k]//FunctionExpandDerivatives of QGamma involve QPolyGamma:
D[QGamma[x, q], x]Related Guides
Related Links
History
Text
Wolfram Research (2008), QPolyGamma, Wolfram Language function, https://reference.wolfram.com/language/ref/QPolyGamma.html.
CMS
Wolfram Language. 2008. "QPolyGamma." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/QPolyGamma.html.
APA
Wolfram Language. (2008). QPolyGamma. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/QPolyGamma.html
BibTeX
@misc{reference.wolfram_2026_qpolygamma, author="Wolfram Research", title="{QPolyGamma}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/QPolyGamma.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_qpolygamma, organization={Wolfram Research}, title={QPolyGamma}, year={2008}, url={https://reference.wolfram.com/language/ref/QPolyGamma.html}, note=[Accessed: 13-June-2026]}