Mathwords logoMathwords

Coefficient Matrix — Definition, Examples & Table

Coefficient Matrix

The matrix formed by the coefficients in a linear system of equations.

 

System: 2x-3y=8, 4x+5y=1. Coefficient Matrix: [[2,-3],[4,5]]

 

 

See also

Augmented matrix

Key Formula

For the system {a11x1+a12x2++a1nxn=b1a21x1+a22x2++a2nxn=b2am1x1+am2x2++amnxn=bmthe coefficient matrix is A=[a11a12a1na21a22a2nam1am2amn]\text{For the system } \begin{cases} a_{11}x_1 + a_{12}x_2 + \cdots + a_{1n}x_n = b_1 \\ a_{21}x_1 + a_{22}x_2 + \cdots + a_{2n}x_n = b_2 \\ \vdots \\ a_{m1}x_1 + a_{m2}x_2 + \cdots + a_{mn}x_n = b_m \end{cases} \quad \text{the coefficient matrix is } A = \begin{bmatrix} a_{11} & a_{12} & \cdots & a_{1n} \\ a_{21} & a_{22} & \cdots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{m1} & a_{m2} & \cdots & a_{mn} \end{bmatrix}
Where:
  • aija_{ij} = The coefficient of the j-th variable in the i-th equation
  • x1,x2,,xnx_1, x_2, \ldots, x_n = The unknowns (variables) in the system
  • b1,b2,,bmb_1, b_2, \ldots, b_m = The constants on the right-hand side (not included in the coefficient matrix)
  • mm = The number of equations
  • nn = The number of variables

Worked Example

Problem: Write the coefficient matrix for the following system of equations: 2x + 3y − z = 7 4x − y + 5z = −3 x + 6y + 2z = 10
Step 1: Identify the variables. The system has three variables: x, y, and z.
Step 2: Read off the coefficients from each equation. From the first equation, the coefficients of x, y, and z are 2, 3, and −1.
Equation 1: 2x+3yz=7    [2,  3,  1]\text{Equation 1: } 2x + 3y - z = 7 \implies [2, \; 3, \; -1]
Step 3: Do the same for the second and third equations.
Equation 2: [4,  1,  5]Equation 3: [1,  6,  2]\text{Equation 2: } [4, \; -1, \; 5] \qquad \text{Equation 3: } [1, \; 6, \; 2]
Step 4: Arrange these rows into a matrix. Each row corresponds to one equation, and each column corresponds to one variable.
A=[231415162]A = \begin{bmatrix} 2 & 3 & -1 \\ 4 & -1 & 5 \\ 1 & 6 & 2 \end{bmatrix}
Answer: The coefficient matrix is A = [[2, 3, −1], [4, −1, 5], [1, 6, 2]]. Notice that the constants 7, −3, and 10 are not included.

Another Example

This example uses a simpler 2×2 system and shows how to write the entire system in compact matrix form Ax = b, which is the primary reason coefficient matrices are useful.

Problem: Write the coefficient matrix for the system and then express the system in the form Ax = b: x + 2y = 5 3x − 4y = 1
Step 1: This is a 2×2 system (two equations, two variables). Extract the coefficients of x and y from each equation.
Equation 1: [1,  2]Equation 2: [3,  4]\text{Equation 1: } [1, \; 2] \qquad \text{Equation 2: } [3, \; -4]
Step 2: Form the coefficient matrix A.
A=[1234]A = \begin{bmatrix} 1 & 2 \\ 3 & -4 \end{bmatrix}
Step 3: Write the variable vector x and the constant vector b.
x=[xy],b=[51]\mathbf{x} = \begin{bmatrix} x \\ y \end{bmatrix}, \quad \mathbf{b} = \begin{bmatrix} 5 \\ 1 \end{bmatrix}
Step 4: Express the full system in matrix form Ax = b.
[1234][xy]=[51]\begin{bmatrix} 1 & 2 \\ 3 & -4 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 5 \\ 1 \end{bmatrix}
Answer: The coefficient matrix is A = [[1, 2], [3, −4]], and the system is written compactly as Ax = b.

Frequently Asked Questions

What is the difference between a coefficient matrix and an augmented matrix?
A coefficient matrix contains only the coefficients of the variables from the system of equations. An augmented matrix includes those same coefficients plus an extra column on the right containing the constants from each equation, separated by a vertical bar. For example, if the coefficient matrix is [[1, 2], [3, 4]], and the constants are 5 and 6, then the augmented matrix is [[1, 2 | 5], [3, 4 | 6]].
How do you find the coefficient matrix of a system of equations?
First, make sure each equation is written in standard form with the variables in the same order and the constant on the right-hand side. Then, read off the coefficient of each variable from each equation. If a variable is missing from an equation, its coefficient is 0. Arrange these values in a matrix where each row is one equation and each column is one variable.
When is a coefficient matrix used to solve a system?
You use the coefficient matrix whenever you apply matrix methods to solve a linear system. These include Gaussian elimination (via the augmented matrix), computing the inverse matrix to find x = A⁻¹b, or using Cramer's rule with determinants. The coefficient matrix must be square and have a nonzero determinant for the inverse method and Cramer's rule to work.

Coefficient Matrix vs. Augmented Matrix

Coefficient MatrixAugmented Matrix
DefinitionMatrix of only the variable coefficientsCoefficient matrix with an extra column for the constants
Size (for m equations, n variables)m × nm × (n + 1)
Includes constants (b values)?NoYes, as the last column
Primary useMatrix equations Ax = b, Cramer's rule, determinantsRow reduction (Gaussian elimination)
NotationA[A | b]

Why It Matters

The coefficient matrix appears throughout algebra and linear algebra courses whenever you study systems of equations. It is the foundation for matrix methods like Gaussian elimination, finding inverse matrices, and computing determinants — all standard topics on the SAT, ACT, and college algebra exams. Understanding how to form it correctly is the first step toward using any of these powerful solving techniques.

Common Mistakes

Mistake: Including the constants from the right-hand side in the coefficient matrix.
Correction: The coefficient matrix contains only the coefficients of the variables. The constants belong in a separate vector b or, if needed, in the augmented matrix [A | b].
Mistake: Writing 0 for a missing coefficient or forgetting it entirely when a variable does not appear in an equation.
Correction: If a variable is absent from an equation (e.g., 3x + z = 4 has no y-term), you must place a 0 in that variable's column. Skipping it shifts all subsequent entries into the wrong columns, producing an incorrect matrix.

Related Terms