RootSum[f,form]
represents the sum of form[x] for all x that satisfy the polynomial equation f[x]==0.
RootSum
RootSum[f,form]
represents the sum of form[x] for all x that satisfy the polynomial equation f[x]==0.
Details
- f must be a Function object such as (#^5-2#+1)&.
- form need not correspond to a polynomial function.
- Normal[expr] expands RootSum objects into explicit sums involving Root objects.
- f and form can contain symbolic parameters.
- RootSum[f,form] is automatically simplified whenever form is a rational function.
- RootSum is often generated in computing integrals of rational functions.
Examples
open all close allBasic Examples (2)
Integrating a rational function of any order:
Integrate[1 / (x ^ 5 + 11 x + 1), {x, 1, 3}]N[%, 50]Automatic simplification of RootSum objects:
RootSum[# ^ 5 - 11 # + 1&, (# ^ 2 - 1) / (# ^ 3 - 2# + c)&]Scope (11)
Compute a numerical approximation of a RootSum:
N[RootSum[# ^ 5 - 3# - 7&, Sin]]N[RootSum[# ^ 5 - 3# - 7&, Sin], 50]Sums over roots of polynomials with inexact number coefficients:
RootSum[# ^ 5 - 3.2# + 2.1&, f]Sums of numeric functions over roots of quadratics:
RootSum[# ^ 2 - # + a&, Sin[#]&]Sums of rational functions of roots:
RootSum[# ^ 5 - a # + b&, (# ^ 2 - 1) / (# ^ 3 - 2# + c)&]Sums of logarithms of linear functions over roots of polynomials with rational coefficients:
RootSum[# ^ 5 - 2 # + 3 / 7&, Log[2# + 1]&]Sums of numeric functions over roots of polynomials with multiple factors:
RootSum[(# ^ 3 - a) ^ 2(# ^ 4 - b) ^ 3&, 5Tan[#] + 7&]Represent a RootSum explicitly in terms of Root objects:
Normal[RootSum[# ^ 5 - 3# - 7&, Sin]]D[RootSum[# ^ 5 + 11# + 1&, Exp[a #]&], a]D[RootSum[# ^ 5 + a # + 1&, Exp[#]&], a]Integrate[RootSum[# ^ 5 + 11# + 1&, Exp[-a #]&], a]Integrate[RootSum[# ^ 5 + 11# + 1&, Sin[a #]&], {a, 0, 1}]Limit[RootSum[# ^ 5 + 11# + 1&, Exp[a #]&], a -> 1]Limit[RootSum[# ^ 5 + 2# ^ 4 + 11# + 1&, Sin[a #] / a&], a -> 0]Series[RootSum[# ^ 5 + 2# ^ 4 + 11# + 1&, Sin[a #] / a&], {a, 0, 5}]Series[RootSum[# ^ 5 + a # + 1&, Exp[#]&], {a, 0, 2}]Applications (3)
Properties & Relations (2)
Table[RootSum[# ^ 4 + a # ^ 3 + b # ^ 2 + c # + d&, # ^ k&], {k, 4}]Table[SymmetricReduction[r ^ k + s ^ k + t ^ k + u ^ k, {r, s, t, u}, {-a, b, -c, d}][[1]], {k, 4}]NIntegrate[1 / (x ^ 6 - 2x + 4), {x, -Infinity, Infinity}]N[RootSum[# ^ 6 - 2# + 4&, If[Im[#] > 0, 2Pi I / (6# ^ 5 - 2), 0]&]]See Also
Tech Notes
Related Guides
History
Introduced in 1996 (3.0)
Text
Wolfram Research (1996), RootSum, Wolfram Language function, https://reference.wolfram.com/language/ref/RootSum.html.
CMS
Wolfram Language. 1996. "RootSum." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RootSum.html.
APA
Wolfram Language. (1996). RootSum. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RootSum.html
BibTeX
@misc{reference.wolfram_2026_rootsum, author="Wolfram Research", title="{RootSum}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/RootSum.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_rootsum, organization={Wolfram Research}, title={RootSum}, year={1996}, url={https://reference.wolfram.com/language/ref/RootSum.html}, note=[Accessed: 13-June-2026]}