{
  "id": "degree-of-a-polynomial",
  "title": "Degree of a Polynomial",
  "lang": "en",
  "source_lang": "en",
  "summary": "The degree of a polynomial is the highest exponent with a nonzero coefficient, or, in several variables, the largest total exponent sum among its terms.",
  "category": "mathematics",
  "subcategory": "algebra",
  "type": "concept",
  "aliases": [
    "Polynomial degree"
  ],
  "generated_at": "2026-11-06",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/degree-of-a-polynomial/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/degree-of-a-polynomial/",
      "json": "https://aiwiki.page/zh/degree-of-a-polynomial.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "The degree of a polynomial measures the highest power occurring in a nonzero polynomial after like terms have been combined. For a polynomial in one variable, it is the greatest exponent whose coefficient is nonzero. For a polynomial in several variables, “degree” usually means total degree: the largest sum of exponents in any term with a nonzero coefficient. Degree governs many properties of polynomials, including their possible numbers of roots, their behavior under algebraic operations, and the complexity of polynomial equations."
    },
    {
      "heading": "Definition in one variable",
      "text": "Let\n\n\\[p(x)=a_0+a_1x+\\cdots+a_nx^n, \\qquad a_n\\ne 0,\\]\n\nwith coefficients in a field, such as the real numbers or complex numbers. The degree of \\(p\\), denoted \\(\\deg p\\), is\n\n\\[\\deg p=n.\\]\n\nThe term \\(a_nx^n\\) is the leading term, and \\(a_n\\) is the leading coefficient. More generally, the same definition applies to polynomials with coefficients in a ring, although some rules for degree require additional assumptions on that ring.\n\nFor example:\n\nPolynomial | Degree | Leading coefficient\n\\(7\\) | \\(0\\) | \\(7\\)\n\\(3x-5\\) | \\(1\\) | \\(3\\)\n\\(4x^2+x-9\\) | \\(2\\) | \\(4\\)\n\\(-2x^5+6x^2+1\\) | \\(5\\) | \\(-2\\)\n\nA nonzero constant polynomial has degree \\(0\\). Polynomials of degrees \\(1\\), \\(2\\), \\(3\\), and \\(4\\) are called linear, quadratic, cubic, and quartic, respectively. A degree-\\(5\\) polynomial is called quintic.\n\nDegree is determined by the polynomial after simplification, not by the largest exponent visible in an unsimplified expression. For instance,\n\n\\[(x^3+2x)-(x^3-x)=3x\\]\n\nhas degree \\(1\\), not \\(3\\).\n\nOrdinary polynomial exponents are nonnegative integers. Expressions such as \\(x^{-1}+2\\) and \\(x^{1/2}+1\\) are not ordinary polynomials in \\(x\\), so this definition does not assign them a polynomial degree."
    },
    {
      "heading": "The zero polynomial",
      "text": "The zero polynomial has every coefficient equal to zero. It therefore has no highest exponent with a nonzero coefficient.\n\nIts degree is commonly either:\n\n- left undefined; or\n- defined by the convention \\(\\deg 0=-\\infty\\).\n\nThe second convention is useful because it allows many degree inequalities to include the zero polynomial without separate exceptions. Here \\(-\\infty\\) is a formal value smaller than every integer, with conventions such as\n\n\\[-\\infty+n=-\\infty.\\]\n\nThe zero polynomial must be distinguished from a nonzero constant: \\(5\\) has degree \\(0\\), whereas \\(0\\) does not ordinarily have degree \\(0\\)."
    },
    {
      "heading": "Behavior under algebraic operations",
      "text": "Addition and subtraction\n\nFor polynomials over a field, using the convention \\(\\deg 0=-\\infty\\),\n\n\\[\\deg(p+q)\\le \\max(\\deg p,\\deg q).\\]\n\nIf \\(p\\) and \\(q\\) have different degrees, equality holds. If they have the same degree, cancellation of their leading terms can reduce the degree.\n\nFor example,\n\n\\[(2x^4+x)+(3x^4-1)=5x^4+x-1\\]\n\nhas degree \\(4\\), whereas\n\n\\[(2x^4+x)+(-2x^4+3)=x+3\\]\n\nhas degree \\(1\\). Subtraction satisfies the corresponding inequality.\n\nMultiplication\n\nFor nonzero polynomials over a field,\n\n\\[\\deg(pq)=\\deg p+\\deg q.\\]\n\nThe reason is that the product of the leading coefficients is nonzero and is the coefficient of the highest possible power. Consequently, for a positive integer \\(k\\),\n\n\\[\\deg(p^k)=k\\deg p.\\]\n\nThese identities also hold over an integral domain, a nonzero commutative ring in which the product of two nonzero elements is never zero. They may fail over rings with zero divisors. For example, in arithmetic modulo \\(4\\),\n\n\\[(2x+1)^2=4x^2+4x+1=1.\\]\n\nThe factor has degree \\(1\\), but its square has degree \\(0\\). This illustrates why the coefficient system matters; modular arithmetic can change which coefficients vanish.\n\nComposition\n\nFor a nonzero polynomial \\(p\\) and a nonconstant polynomial \\(q\\) over a field,\n\n\\[\\deg(p\\circ q)=\\deg p\\,\\deg q,\\]\n\nwhere composition means\n\n\\[(p\\circ q)(x)=p(q(x)).\\]\n\nFor example, substituting a cubic polynomial into a quadratic polynomial produces a polynomial of degree \\(6\\).\n\nThe requirement that \\(q\\) be nonconstant avoids cases where substitution gives a constant or the zero polynomial.\n\nDivision with remainder\n\nIf \\(p\\) and \\(q\\) are polynomials over a field and \\(q\\ne0\\), there are unique polynomials \\(s\\) and \\(r\\) such that\n\n\\[p=qs+r,\\]\n\nwhere either \\(r=0\\) or\n\n\\[\\deg r<\\deg q.\\]\n\nThis decreasing-degree condition underlies the polynomial version of the Euclidean algorithm, used to compute a greatest common divisor of two polynomials."
    },
    {
      "heading": "Polynomials in several variables",
      "text": "For a monomial\n\n\\[x_1^{\\alpha_1}x_2^{\\alpha_2}\\cdots x_m^{\\alpha_m},\\]\n\nits total degree is\n\n\\[\\alpha_1+\\alpha_2+\\cdots+\\alpha_m.\\]\n\nThe total degree of a nonzero multivariable polynomial is the greatest total degree among its monomials with nonzero coefficients.\n\nFor example,\n\n\\[p(x,y)=3x^2y^3+7xy-5\\]\n\nhas total degree \\(5\\), because the term \\(3x^2y^3\\) has exponent sum \\(2+3=5\\).\n\nDegree in an individual variable\n\nA polynomial can also be assigned a degree with respect to one chosen variable:\n\n\\[\\deg_x p=2,\\qquad \\deg_y p=3\\]\n\nfor the preceding example.\n\nThese individual degrees need not add up to the total degree. For\n\n\\[q(x,y)=x^4+y^4,\\]\n\nthe total degree is \\(4\\), while\n\n\\[\\deg_x q+\\deg_y q=8.\\]\n\nWhen discussing multivariable polynomials, specifying total degree or degree in a particular variable prevents ambiguity.\n\nHomogeneous polynomials\n\nA polynomial is homogeneous of degree \\(d\\) if every nonzero term has total degree \\(d\\). For example,\n\n\\[x^3+2x^2y-xy^2+y^3\\]\n\nis homogeneous of degree \\(3\\).\n\nFor such a polynomial,\n\n\\[p(tx_1,\\ldots,tx_m)=t^d p(x_1,\\ldots,x_m).\\]\n\nEvery polynomial has a unique decomposition into homogeneous parts obtained by grouping terms of equal total degree. The highest nonzero homogeneous part determines its total degree. Homogeneous polynomials are important in algebraic geometry, especially in descriptions using homogeneous coordinates."
    },
    {
      "heading": "Degree, roots, and polynomial functions",
      "text": "A nonzero polynomial of degree \\(n\\) over a field has at most \\(n\\) distinct roots in that field. More generally, the sum of the multiplicities of its roots cannot exceed \\(n\\).\n\nThe fundamental theorem of algebra states that every nonconstant complex polynomial has a complex root. Combined with repeated factorization, it implies that a complex polynomial of degree \\(n\\) has exactly \\(n\\) roots counted with multiplicity:\n\n\\[p(x)=a_n\\prod_{j=1}^{n}(x-r_j).\\]\n\nThis does not imply that it has \\(n\\) distinct roots or \\(n\\) real roots. For example, \\((x-1)^4\\) has degree \\(4\\) but only one distinct root, and \\(x^2+1\\) has no real roots.\n\nA formal polynomial must also be distinguished from the function it defines on a particular field. Over an infinite field, distinct polynomials define distinct functions. Over a finite field, different polynomials can define the same function.\n\nFor example, over the field with two elements, \\(x^2\\) and \\(x\\) agree at every input even though their degrees are \\(2\\) and \\(1\\). Thus polynomial degree is fundamentally a property of the formal polynomial, not always a uniquely determined property of its values."
    },
    {
      "heading": "Differentiation and growth",
      "text": "For a polynomial \\(p\\) of degree \\(n\\ge1\\) over the real or complex numbers, its derivative satisfies\n\n\\[\\deg p'=n-1.\\]\n\nIndeed, the leading term \\(a_nx^n\\) becomes \\(na_nx^{n-1}\\), whose coefficient is nonzero. Repeated differentiation gives\n\n\\[p^{(n)}(x)=n!a_n, \\qquad p^{(n+1)}(x)=0.\\]\n\nThe same conclusions hold over any field of characteristic zero. They need not hold in positive characteristic. Over a field of characteristic \\(p\\), for example, the formal derivative of \\(x^p\\) is zero.\n\nFor a real polynomial with leading term \\(a_nx^n\\),\n\n\\[\\lim_{|x|\\to\\infty}\\frac{p(x)}{a_nx^n}=1.\\]\n\nThus the leading term determines its behavior for sufficiently large positive or negative inputs. The parity of the degree and the sign of the leading coefficient determine the directions of the two ends of its graph."
    },
    {
      "heading": "Uses and limitations",
      "text": "Degree is a basic measure of algebraic complexity, with several concrete uses:\n\n- Interpolation. Given \\(n+1\\) distinct input values over a field and prescribed output values, there is a unique polynomial of degree at most \\(n\\) passing through them. This is the basis of polynomial interpolation.\n- Polynomial spaces. The polynomials in one variable of degree at most \\(n\\), together with zero, form a vector space with basis \\(1,x,\\ldots,x^n\\) and dimension \\(n+1\\). Polynomials of degree exactly \\(n\\) do not form a vector space, because addition can cancel leading terms.\n- Approximation. In approximation theory, degree controls the size of the polynomial space available to approximate a function. Higher degree permits more flexibility, but does not by itself guarantee better numerical behavior.\n- Geometry. The degree of a polynomial equation helps classify algebraic curves and surfaces. Degree alone does not determine their shape or number of components.\n\nDegree also does not measure every aspect of computational difficulty. A polynomial of very high degree may contain only a few nonzero terms, while a lower-degree polynomial in many variables may contain many terms. Coefficient size, sparsity, representation, and numerical stability can therefore be as important as degree in computation."
    }
  ],
  "links": [
    "polynomial",
    "field-mathematics",
    "real-number",
    "complex-number",
    "ring-mathematics",
    "integer",
    "modular-arithmetic",
    "function-composition",
    "euclidean-algorithm",
    "greatest-common-divisor",
    "algebraic-geometry",
    "homogeneous-coordinates",
    "fundamental-theorem-of-algebra",
    "mathematical-function",
    "finite-field",
    "derivative",
    "interpolation",
    "vector-space",
    "numerical-stability"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}