# Coefficient

Short description: Multiplicative factor in a mathematical expression

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). 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 \ne 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.

## 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) 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 . }$