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 a, b and c).[1] When the coefficients are themselves variables, they may also be called parameters.

For example, the polynomial ${\displaystyle 2x^{2}-x+3}$ has coefficients 2, −1, and 3, and the powers of the variable ${\displaystyle x}$ in the polynomial ${\displaystyle ax^{2}+bx+c}$ have coefficient parameters ${\displaystyle a}$, ${\displaystyle b}$, and ${\displaystyle c}$.

The constant coefficient is the coefficient not attached to variables in an expression. For example, the constant coefficients of the expressions above are the number 3 and the parameter c, respectively. The coefficient attached to the highest degree of the variable in a polynomial is referred to as the leading coefficient. For example, in the expressions above, the leading coefficients are 2 and a, respectively.

Terminology and definition

In mathematics, a coefficient is a multiplicative factor in some term of a polynomial, a series, or any expression. For example, in the polynomial

${\displaystyle 7x^{2}-3xy+1.5+y,}$
with variables ${\displaystyle x}$ and ${\displaystyle y}$, the first two terms have the coefficients 7 and −3. The third term 1.5 is the constant coefficient. In the final term, the coefficient is 1 and is not explicitly written.

In many scenarios, coefficients are numbers (as is the case for each term of the previous example), although they could be parameters of the problem—or any expression in these parameters. In such a case, one must clearly distinguish between symbols representing variables and symbols representing parameters. Following René Descartes, the variables are often denoted by x, y, ..., and the parameters by a, b, c, ..., but this is not always the case. For example, if y is considered a parameter in the above expression, then the coefficient of x would be −3y, and the constant coefficient (with respect to x) would be 1.5 + y.

When one writes

${\displaystyle ax^{2}+bx+c,}$
it is generally assumed that x is the only variable, and that a, b and c are parameters; thus the constant coefficient is c in this case.

Any polynomial in a single variable x can be written as

${\displaystyle a_{k}x^{k}+\dotsb +a_{1}x^{1}+a_{0}}$
for some nonnegative integer ${\displaystyle k}$, where ${\displaystyle a_{k},\dotsc ,a_{1},a_{0}}$ are the coefficients. This includes the possibility that some terms have coefficient 0; for example, in ${\displaystyle x^{3}-2x+1}$, the coefficient of ${\displaystyle x^{2}}$ is 0, and the term ${\displaystyle 0x^{2}}$ does not appear explicitly. For the largest ${\displaystyle i}$ such that ${\displaystyle a_{i}\neq 0}$ (if any), ${\displaystyle a_{i}}$ is called the leading coefficient of the polynomial. For example, the leading coefficient of the polynomial
${\displaystyle 4x^{5}+x^{3}+2x^{2}}$
is 4. This can be generalised to multivariate polynomials with respect to a monomial order, see Gröbner basis § Leading term, coefficient and monomial.

Linear algebra

In linear algebra, a system of linear equations is frequently represented by its coefficient matrix. For example, the system of equations

${\displaystyle {\begin{cases}2x+3y=0\\5x-4y=0\end{cases}},}$
the associated coefficient matrix is ${\displaystyle {\begin{pmatrix}2&3\\5&-4\end{pmatrix}}.}$ Coefficient matrices are used in algorithms such as Gaussian elimination and Cramer's rule to find solutions to the system.

The leading entry (sometimes leading coefficient[citation needed]) of a row in a matrix is the first nonzero entry in that row. So, for example, in the matrix

${\displaystyle {\begin{pmatrix}1&2&0&6\\0&2&9&4\\0&0&0&4\\0&0&0&0\end{pmatrix}},}$
the leading coefficient of the first row is 1; that of the second row is 2; that of the third row is 4, while the last row does not have a leading coefficient.

Though coefficients are frequently viewed as constants in elementary algebra, they can also be viewed as variables as the context broadens. For example, the coordinates ${\displaystyle (x_{1},x_{2},\dotsc ,x_{n})}$ of a vector ${\displaystyle v}$ in a vector space with basis ${\displaystyle \lbrace e_{1},e_{2},\dotsc ,e_{n}\rbrace }$ are the coefficients of the basis vectors in the expression

${\displaystyle v=x_{1}e_{1}+x_{2}e_{2}+\dotsb +x_{n}e_{n}.}$