In
mathematics, a polynomial is an
expression consisting of
indeterminates (also called
variables) and
coefficient
In mathematics, a coefficient is a multiplicative factor in some term of a polynomial, a series, or an expression; it is usually a number, but may be any expression (including variables such as , and ). When the coefficients are themselves ...
s, that involves only the operations of
addition
Addition (usually signified by the plus symbol ) is one of the four basic operations of arithmetic, the other three being subtraction, multiplication and division. The addition of two whole numbers results in the total amount or ''sum'' of ...
,
subtraction
Subtraction is an arithmetic operation that represents the operation of removing objects from a collection. Subtraction is signified by the minus sign, . For example, in the adjacent picture, there are peaches—meaning 5 peaches with 2 taken ...
,
multiplication
Multiplication (often denoted by the cross symbol , by the mid-line dot operator , by juxtaposition, or, on computers, by an asterisk ) is one of the four elementary mathematical operations of arithmetic, with the other ones being ad ...
, and positive-integer powers of variables. An example of a polynomial of a single indeterminate is . An example with three indeterminates is .
Polynomials appear in many areas of mathematics and science. For example, they are used to form
polynomial equation
In mathematics, an algebraic equation or polynomial equation is an equation of the form
:P = 0
where ''P'' is a polynomial with coefficients in some field, often the field of the rational numbers. For many authors, the term ''algebraic equati ...
s, which encode a wide range of problems, from elementary
word problems to complicated scientific problems; they are used to define polynomial functions, which appear in settings ranging from basic
chemistry and
physics
Physics is the natural science that studies matter, its fundamental constituents, its motion and behavior through space and time, and the related entities of energy and force. "Physical science is that department of knowledge which rel ...
to
economics
Economics () is the social science that studies the production, distribution, and consumption of goods and services.
Economics focuses on the behaviour and interactions of economic agents and how economies work. Microeconomics analy ...
and
social science
Social science is one of the branches of science, devoted to the study of societies and the relationships among individuals within those societies. The term was formerly used to refer to the field of sociology, the original "science of soc ...
; they are used in
calculus
Calculus, originally called infinitesimal calculus or "the calculus of infinitesimals", is the mathematics, mathematical study of continuous change, in the same way that geometry is the study of shape, and algebra is the study of generalizati ...
and
numerical analysis
Numerical analysis is the study of algorithms that use numerical approximation (as opposed to symbolic manipulations) for the problems of mathematical analysis (as distinguished from discrete mathematics). It is the study of numerical methods th ...
to approximate other functions. In advanced mathematics, polynomials are used to construct
polynomial ring
In mathematics, especially in the field of algebra, a polynomial ring or polynomial algebra is a ring (which is also a commutative algebra) formed from the set of polynomials in one or more indeterminates (traditionally also called variable ...
s and
algebraic varieties
Algebraic varieties are the central objects of study in algebraic geometry, a sub-field of mathematics. Classically, an algebraic variety is defined as the set of solutions of a system of polynomial equations over the real or complex number
...
, which are central concepts in
algebra
Algebra () is one of the areas of mathematics, broad areas of mathematics. Roughly speaking, algebra is the study of mathematical symbols and the rules for manipulating these symbols in formulas; it is a unifying thread of almost all of mathem ...
and
algebraic geometry.
Etymology
The word ''polynomial''
joins two diverse roots: the Greek ''poly'', meaning "many", and the Latin ''nomen'', or "name". It was derived from the term ''
binomial'' by replacing the Latin root ''bi-'' with the Greek ''poly-''. That is, it means a sum of many terms (many
monomial
In mathematics, a monomial is, roughly speaking, a polynomial which has only one term. Two definitions of a monomial may be encountered:
# A monomial, also called power product, is a product of powers of variables with nonnegative integer expon ...
s). The word ''polynomial'' was first used in the 17th century.
Notation and terminology
The ''x'' occurring in a polynomial is commonly called a ''variable'' or an ''indeterminate''. When the polynomial is considered as an expression, ''x'' is a fixed symbol which does not have any value (its value is "indeterminate"). However, when one considers the
function defined by the polynomial, then ''x'' represents the argument of the function, and is therefore called a "variable". Many authors use these two words interchangeably.
A polynomial ''P'' in the indeterminate ''x'' is commonly denoted either as ''P'' or as ''P''(''x''). Formally, the name of the polynomial is ''P'', not ''P''(''x''), but the use of the
functional notation
In mathematics, a function from a set to a set assigns to each element of exactly one element of .; the words map, mapping, transformation, correspondence, and operator are often used synonymously. The set is called the domain of the fun ...
''P''(''x'') dates from a time when the distinction between a polynomial and the associated function was unclear. Moreover, the functional notation is often useful for specifying, in a single phrase, a polynomial and its indeterminate. For example, "let ''P''(''x'') be a polynomial" is a shorthand for "let ''P'' be a polynomial in the indeterminate ''x''". On the other hand, when it is not necessary to emphasize the name of the indeterminate, many formulas are much simpler and easier to read if the name(s) of the indeterminate(s) do not appear at each occurrence of the polynomial.
The ambiguity of having two notations for a single mathematical object may be formally resolved by considering the general meaning of the functional notation for polynomials.
If ''a'' denotes a number, a variable, another polynomial, or, more generally, any expression, then ''P''(''a'') denotes, by convention, the result of substituting ''a'' for ''x'' in ''P''. Thus, the polynomial ''P'' defines the function
:
which is the ''polynomial function'' associated to ''P''.
Frequently, when using this notation, one supposes that ''a'' is a number. However, one may use it over any domain where addition and multiplication are defined (that is, any
ring). In particular, if ''a'' is a polynomial then ''P''(''a'') is also a polynomial.
More specifically, when ''a'' is the indeterminate ''x'', then the
image
An image is a visual representation of something. It can be two-dimensional, three-dimensional, or somehow otherwise feed into the visual system to convey information. An image can be an artifact, such as a photograph or other two-dimensio ...
of ''x'' by this function is the polynomial ''P'' itself (substituting ''x'' for ''x'' does not change anything). In other words,
:
which justifies formally the existence of two notations for the same polynomial.
Definition
A ''polynomial expression'' is an
expression that can be built from
constants
Constant or The Constant may refer to:
Mathematics
* Constant (mathematics), a non-varying value
* Mathematical constant, a special number that arises naturally in mathematics, such as or
Other concepts
* Control variable or scientific const ...
and symbols called ''variables'' or ''indeterminates'' by means of
addition
Addition (usually signified by the plus symbol ) is one of the four basic operations of arithmetic, the other three being subtraction, multiplication and division. The addition of two whole numbers results in the total amount or ''sum'' of ...
,
multiplication
Multiplication (often denoted by the cross symbol , by the mid-line dot operator , by juxtaposition, or, on computers, by an asterisk ) is one of the four elementary mathematical operations of arithmetic, with the other ones being ad ...
and
exponentiation
Exponentiation is a mathematical operation, written as , involving two numbers, the '' base'' and the ''exponent'' or ''power'' , and pronounced as " (raised) to the (power of) ". When is a positive integer, exponentiation corresponds to re ...
to a
non-negative integer power. The constants are generally
number
A number is a mathematical object used to count, measure, and label. The original examples are the natural numbers 1, 2, 3, 4, and so forth. Numbers can be represented in language with number words. More universally, individual numbers ...
s, but may be any expression that do not involve the indeterminates, and represent
mathematical object
A mathematical object is an abstract concept arising in mathematics.
In the usual language of mathematics, an ''object'' is anything that has been (or could be) formally defined, and with which one may do deductive reasoning and mathematical ...
s that can be added and multiplied. Two polynomial expressions are considered as defining the same ''polynomial'' if they may be transformed, one to the other, by applying the usual properties of
commutativity,
associativity
In mathematics, the associative property is a property of some binary operations, which means that rearranging the parentheses in an expression will not change the result. In propositional logic, associativity is a valid rule of replacement ...
and
distributivity
In mathematics, the distributive property of binary operations generalizes the distributive law, which asserts that the equality
x \cdot (y + z) = x \cdot y + x \cdot z
is always true in elementary algebra.
For example, in elementary arithmetic, ...
of addition and multiplication. For example
and
are two polynomial expressions that represent the same polynomial; so, one has the
equality .
A polynomial in a single indeterminate can always be written (or rewritten) in the form
:
where
are constants that are called the ''coefficients'' of the polynomial, and
is the indeterminate.
The word "indeterminate" means that
represents no particular value, although any value may be substituted for it. The mapping that associates the result of this substitution to the substituted value is a
function, called a ''polynomial function''.
This can be expressed more concisely by using
summation notation:
:
That is, a polynomial can either be zero or can be written as the sum of a finite number of non-zero
terms. Each term consists of the product of a number called the
coefficient
In mathematics, a coefficient is a multiplicative factor in some term of a polynomial, a series, or an expression; it is usually a number, but may be any expression (including variables such as , and ). When the coefficients are themselves ...
of the term and a finite number of indeterminates, raised to non-negative integer powers.
Classification
The exponent on an indeterminate in a term is called the degree of that indeterminate in that term; the degree of the term is the sum of the degrees of the indeterminates in that term, and the degree of a polynomial is the largest degree of any term with nonzero coefficient.
Because , the degree of an indeterminate without a written exponent is one.
A term with no indeterminates and a polynomial with no indeterminates are called, respectively, a
constant term
In mathematics, a constant term is a term in an algebraic expression that does not contain any variables and therefore is constant. For example, in the quadratic polynomial
:x^2 + 2x + 3,\
the 3 is a constant term.
After like terms are com ...
and a constant polynomial. The degree of a constant term and of a nonzero constant polynomial is 0. The degree of the zero polynomial 0 (which has no terms at all) is generally treated as not defined (but see below).
For example:
:
is a term. The coefficient is , the indeterminates are and , the degree of is two, while the degree of is one. The degree of the entire term is the sum of the degrees of each indeterminate in it, so in this example the degree is .
Forming a sum of several terms produces a polynomial. For example, the following is a polynomial:
:
It consists of three terms: the first is degree two, the second is degree one, and the third is degree zero.
Polynomials of small degree have been given specific names. A polynomial of degree zero is a ''constant polynomial'', or simply a ''constant''. Polynomials of degree one, two or three are respectively ''linear polynomials,'' ''
quadratic polynomial
In mathematics, a quadratic polynomial is a polynomial of degree two in one or more variables. A quadratic function is the polynomial function defined by a quadratic polynomial. Before 20th century, the distinction was unclear between a polynomia ...
s'' and ''cubic polynomials''.
For higher degrees, the specific names are not commonly used, although ''quartic polynomial'' (for degree four) and ''quintic polynomial'' (for degree five) are sometimes used. The names for the degrees may be applied to the polynomial or to its terms. For example, the term in is a linear term in a quadratic polynomial.
The polynomial 0, which may be considered to have no terms at all, is called the zero polynomial. Unlike other constant polynomials, its degree is not zero. Rather, the degree of the zero polynomial is either left explicitly undefined, or defined as negative (either −1 or −∞). The zero polynomial is also unique in that it is the only polynomial in one indeterminate that has an infinite number of
roots. The graph of the zero polynomial, , is the ''x''-axis.
In the case of polynomials in more than one indeterminate, a polynomial is called ''homogeneous'' of if ''all'' of its non-zero terms have . The zero polynomial is homogeneous, and, as a homogeneous polynomial, its degree is undefined. For example, is homogeneous of degree 5. For more details, see
Homogeneous polynomial
In mathematics, a homogeneous polynomial, sometimes called quantic in older texts, is a polynomial whose nonzero terms all have the same degree. For example, x^5 + 2 x^3 y^2 + 9 x y^4 is a homogeneous polynomial of degree 5, in two variables; ...
.
The
commutative law
In mathematics, a binary operation is commutative if changing the order of the operands does not change the result. It is a fundamental property of many binary operations, and many mathematical proofs depend on it. Most familiar as the name of ...
of addition can be used to rearrange terms into any preferred order. In polynomials with one indeterminate, the terms are usually ordered according to degree, either in "descending powers of ", with the term of largest degree first, or in "ascending powers of ". The polynomial is written in descending powers of . The first term has coefficient , indeterminate , and exponent . In the second term, the coefficient . The third term is a constant. Because the ''degree'' of a non-zero polynomial is the largest degree of any one term, this polynomial has degree two.
Two terms with the same indeterminates raised to the same powers are called "similar terms" or "like terms", and they can be combined, using the
distributive law
In mathematics, the distributive property of binary operations generalizes the distributive law, which asserts that the equality
x \cdot (y + z) = x \cdot y + x \cdot z
is always true in elementary algebra.
For example, in elementary arithmetic ...
, into a single term whose coefficient is the sum of the coefficients of the terms that were combined. It may happen that this makes the coefficient 0.
Polynomials can be classified by the number of terms with nonzero coefficients, so that a one-term polynomial is called a
monomial
In mathematics, a monomial is, roughly speaking, a polynomial which has only one term. Two definitions of a monomial may be encountered:
# A monomial, also called power product, is a product of powers of variables with nonnegative integer expon ...
, a two-term polynomial is called a
binomial, and a three-term polynomial is called a ''trinomial''. The term "quadrinomial" is occasionally used for a four-term polynomial.
A real polynomial is a polynomial with
real coefficients. When it is used to define a
function, the
domain
Domain may refer to:
Mathematics
*Domain of a function, the set of input values for which the (total) function is defined
** Domain of definition of a partial function
**Natural domain of a partial function
**Domain of holomorphy of a function
*Do ...
is not so restricted. However, a real polynomial function is a function from the reals to the reals that is defined by a real polynomial. Similarly, an integer polynomial is a polynomial with
integer
An integer is the number zero (), a positive natural number (, , , etc.) or a negative integer with a minus sign ( −1, −2, −3, etc.). The negative numbers are the additive inverses of the corresponding positive numbers. In the language ...
coefficients, and a complex polynomial is a polynomial with
complex coefficients.
A polynomial in one indeterminate is called a ''
univariate
In mathematics, a univariate object is an expression, equation, function or polynomial involving only one variable. Objects involving more than one variable are multivariate. In some cases the distinction between the univariate and multivariat ...
polynomial'', a polynomial in more than one indeterminate is called a multivariate polynomial. A polynomial with two indeterminates is called a bivariate polynomial.
These notions refer more to the kind of polynomials one is generally working with than to individual polynomials; for instance, when working with univariate polynomials, one does not exclude constant polynomials (which may result from the subtraction of non-constant polynomials), although strictly speaking, constant polynomials do not contain any indeterminates at all. It is possible to further classify multivariate polynomials as ''bivariate'', ''trivariate'', and so on, according to the maximum number of indeterminates allowed. Again, so that the set of objects under consideration be closed under subtraction, a study of trivariate polynomials usually allows bivariate polynomials, and so on. It is also common to say simply "polynomials in , and ", listing the indeterminates allowed.
The
evaluation of a polynomial consists of substituting a numerical value to each indeterminate and carrying out the indicated multiplications and additions. For polynomials in one indeterminate, the evaluation is usually more efficient (lower number of arithmetic operations to perform) using
Horner's method:
:
Arithmetic
Addition and subtraction
Polynomials can be added using the
associative law
In mathematics, the associative property is a property of some binary operations, which means that rearranging the parentheses in an expression will not change the result. In propositional logic, associativity is a valid rule of replacement ...
of addition (grouping all their terms together into a single sum), possibly followed by reordering (using the
commutative law
In mathematics, a binary operation is commutative if changing the order of the operands does not change the result. It is a fundamental property of many binary operations, and many mathematical proofs depend on it. Most familiar as the name of ...
) and combining of like terms.
For example, if
:
and
then the sum
:
can be reordered and regrouped as
:
and then simplified to
:
When polynomials are added together, the result is another polynomial.
Subtraction of polynomials is similar.
Multiplication
Polynomials can also be multiplied. To expand the
product of two polynomials into a sum of terms, the distributive law is repeatedly applied, which results in each term of one polynomial being multiplied by every term of the other.
For example, if
:
then
:
Carrying out the multiplication in each term produces
:
Combining similar terms yields
:
which can be simplified to
:
As in the example, the product of polynomials is always a polynomial.
[
]
Composition
Given a polynomial of a single variable and another polynomial of any number of variables, the composition is obtained by substituting each copy of the variable of the first polynomial by the second polynomial.[ For example, if and then
A composition may be expanded to a sum of terms using the rules for multiplication and division of polynomials. The composition of two polynomials is another polynomial.
]
Division
The division of one polynomial by another is not typically a polynomial. Instead, such ratios are a more general family of objects, called '' rational fractions'', ''rational expressions'', or ''rational function
In mathematics, a rational function is any function that can be defined by a rational fraction, which is an algebraic fraction such that both the numerator and the denominator are polynomials. The coefficients of the polynomials need not be ...
s'', depending on context. This is analogous to the fact that the ratio of two integer
An integer is the number zero (), a positive natural number (, , , etc.) or a negative integer with a minus sign ( −1, −2, −3, etc.). The negative numbers are the additive inverses of the corresponding positive numbers. In the language ...
s is a rational number
In mathematics, a rational number is a number that can be expressed as the quotient or fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (e.g. ). The set of all ra ...
, not necessarily an integer. For example, the fraction is not a polynomial, and it cannot be written as a finite sum of powers of the variable .
For polynomials in one variable, there is a notion of Euclidean division of polynomials
In algebra, the greatest common divisor (frequently abbreviated as GCD) of two polynomials is a polynomial, of the highest possible degree, that is a factor of both the two original polynomials. This concept is analogous to the greatest common ...
, generalizing the Euclidean division
In arithmetic, Euclidean division – or division with remainder – is the process of dividing one integer (the dividend) by another (the divisor), in a way that produces an integer quotient and a natural number remainder strictly smaller than ...
of integers. This notion of the division results in two polynomials, a ''quotient'' and a ''remainder'' , such that and . The quotient and remainder may be computed by any of several algorithms, including polynomial long division
In algebra, polynomial long division is an algorithm for dividing a polynomial by another polynomial of the same or lower degree, a generalized version of the familiar arithmetic technique called long division. It can be done easily by hand, becau ...
and synthetic division.
When the denominator is monic and linear, that is, for some constant , then the polynomial remainder theorem
In mathematics, a polynomial is an expression consisting of indeterminates (also called variables) and coefficients, that involves only the operations of addition, subtraction, multiplication, and positive-integer powers of variables. An examp ...
asserts that the remainder of the division of by is the evaluation
Evaluation is a
systematic determination and assessment of a subject's merit, worth and significance, using criteria governed by a set of standards. It can assist an organization, program, design, project or any other intervention or initiative ...
.[ In this case, the quotient may be computed by Ruffini's rule, a special case of synthetic division.
]
Factoring
All polynomials with coefficients in a unique factorization domain
In mathematics, a unique factorization domain (UFD) (also sometimes called a factorial ring following the terminology of Bourbaki) is a ring in which a statement analogous to the fundamental theorem of arithmetic holds. Specifically, a UFD is ...
(for example, the integers or a field) also have a factored form in which the polynomial is written as a product of irreducible polynomial
In mathematics, an irreducible polynomial is, roughly speaking, a polynomial that cannot be factored into the product of two non-constant polynomials. The property of irreducibility depends on the nature of the coefficients that are accepted f ...
s and a constant. This factored form is unique up to the order of the factors and their multiplication by an invertible constant. In the case of the field of complex number
In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted , called the imaginary unit and satisfying the equation i^= -1; every complex number can be expressed in the for ...
s, the irreducible factors are linear. Over the real number
In mathematics, a real number is a number that can be used to measurement, measure a ''continuous'' one-dimensional quantity such as a distance, time, duration or temperature. Here, ''continuous'' means that values can have arbitrarily small var ...
s, they have the degree either one or two. Over the integers and the rational number
In mathematics, a rational number is a number that can be expressed as the quotient or fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (e.g. ). The set of all ra ...
s the irreducible factors may have any degree. For example, the factored form of
:
is
:
over the integers and the reals, and
:
over the complex numbers.
The computation of the factored form, called ''factorization'' is, in general, too difficult to be done by hand-written computation. However, efficient polynomial factorization
In mathematics and computer algebra, factorization of polynomials or polynomial factorization expresses a polynomial with coefficients in a given field or in the integers as the product of irreducible factors with coefficients in the same d ...
algorithm
In mathematics and computer science, an algorithm () is a finite sequence of rigorous instructions, typically used to solve a class of specific problems or to perform a computation. Algorithms are used as specifications for performing ...
s are available in most computer algebra system
A computer algebra system (CAS) or symbolic algebra system (SAS) is any mathematical software with the ability to manipulate mathematical expressions in a way similar to the traditional manual computations of mathematicians and scientists. The ...
s.
Calculus
Calculating derivative
In mathematics, the derivative of a function of a real variable measures the sensitivity to change of the function value (output value) with respect to a change in its argument (input value). Derivatives are a fundamental tool of calculus. ...
s and integrals of polynomials is particularly simple, compared to other kinds of functions.
The derivative
In mathematics, the derivative of a function of a real variable measures the sensitivity to change of the function value (output value) with respect to a change in its argument (input value). Derivatives are a fundamental tool of calculus. ...
of the polynomial with respect to is the polynomial
Similarly, the general antiderivative
In calculus, an antiderivative, inverse derivative, primitive function, primitive integral or indefinite integral of a function is a differentiable function whose derivative is equal to the original function . This can be stated symbolically ...
(or indefinite integral) of is
where is an arbitrary constant. For example, antiderivatives of have the form .
For polynomials whose coefficients come from more abstract settings (for example, if the coefficients are integers modulo
In computing, the modulo operation returns the remainder or signed remainder of a division, after one number is divided by another (called the '' modulus'' of the operation).
Given two positive numbers and , modulo (often abbreviated as ) is t ...
some prime number
A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime because the only way ...
, or elements of an arbitrary ring), the formula for the derivative can still be interpreted formally, with the coefficient understood to mean the sum of copies of . For example, over the integers modulo , the derivative of the polynomial is the polynomial .
Polynomial functions
A ''polynomial function'' is a function that can be defined by evaluating a polynomial. More precisely, a function of one argument
An argument is a statement or group of statements called premises intended to determine the degree of truth or acceptability of another statement called conclusion. Arguments can be studied from three main perspectives: the logical, the dialect ...
from a given domain is a polynomial function if there exists a polynomial
:
that evaluates to for all in the domain
Domain may refer to:
Mathematics
*Domain of a function, the set of input values for which the (total) function is defined
** Domain of definition of a partial function
**Natural domain of a partial function
**Domain of holomorphy of a function
*Do ...
of (here, is a non-negative integer and are constant coefficients).
Generally, unless otherwise specified, polynomial functions have complex coefficients, arguments, and values. In particular, a polynomial, restricted to have real coefficients, defines a function from the complex numbers to the complex numbers. If the domain of this function is also restricted to the reals, the resulting function is a real function
In mathematical analysis, and applications in geometry, applied mathematics, engineering, and natural sciences, a function of a real variable is a function whose domain is the real numbers \mathbb, or a subset of \mathbb that contains an inter ...
that maps reals to reals.
For example, the function , defined by
:
is a polynomial function of one variable. Polynomial functions of several variables are similarly defined, using polynomials in more than one indeterminate, as in
:
According to the definition of polynomial functions, there may be expressions that obviously are not polynomials but nevertheless define polynomial functions. An example is the expression which takes the same values as the polynomial on the interval