Precalculus · Textbook draft · 10 minute reading

Matrices and Linear and Nonlinear Systems

Use row operations and substitution to identify solution structure.

Before you begin

  • Linear systems, polynomial equations, and coordinates.

Learning objectives

  • Solve a linear system using row reduction.
  • Recognize unique, inconsistent, and dependent systems.
  • Solve a nonlinear intersection without losing candidate checks.

A linear system has several constraints on the same unknown quantities. A matrix records their coefficients in a form that makes elimination systematic. The row operations change the written constraints while preserving their common solutions, so we can read the solution structure from a simpler equivalent system.

An augmented matrix records the equations

Consider

x+y+z=6,2x−y+z=3,x+2y−z=2.x+y+z=6,\qquad2x-y+z=3,\qquad x+2y-z=2.

Keeping the variable order x,y,zx,y,z, its augmented matrix is

[11162−11312−12].\left[\begin{array}{ccc|c} 1&1&1&6\\ 2&-1&1&3\\ 1&2&-1&2 \end{array}\right].

The final column holds the right sides. A missing coefficient must be recorded as zero; dropping that entry would shift every later variable into the wrong column.

Reversible row operations implement elimination

We may interchange rows, multiply a row by a nonzero constant, or add a multiple of one row to another. Each operation has an inverse of the same kind. Consequently it preserves exactly the solutions of the original system.

Subtract twice the first row from the second and the first row from the third. Then interchange the last two rows:

[111601−2−40−3−1−9].\left[\begin{array}{ccc|c} 1&1&1&6\\ 0&1&-2&-4\\ 0&-3&-1&-9 \end{array}\right].

Adding three times row 2 to row 3 gives the final row (0,0,−7∣−21)(0,0,-7\mid-21). Back-substitution gives z=3z=3, then y=2y=2, then x=1x=1. Checking all three original equations confirms the result.

This triangular form is an echelon form. Continuing to clear entries above each leading nonzero coefficient gives reduced row-echelon form, but back-substitution already solves this example.

Pivots and free variables describe the solution set

A row (0,0,0∣5)(0,0,0\mid5) requires 0=50=5, so the system is inconsistent. A zero row imposes no additional constraint. If a consistent system has fewer pivot variables than unknowns, the remaining variables are free parameters.

For x+y=3x+y=3 and 2x+2y=62x+2y=6, elimination gives a zero second row. Taking y=ty=t gives all solutions (x,y)=(3−t,t)(x,y)=(3-t,t). The second equation repeats the first constraint rather than identifying a second coordinate.

If the second right side were 7, elimination would instead produce 0=10=1. Nearly parallel constraints in measured data can also make the recovered intersection sensitive to small numerical changes, even before exact inconsistency is considered.

Matrix multiplication and a two-by-two inverse

For compatible dimensions, the entry in row ii, column jj of a product ABAB is the sum of products of row-ii entries of AA with column-jj entries of BB. This definition makes AxA\mathbf x reproduce the left sides of a linear system.

For

A=(abcd),A−1=1ad−bc(d−b−ca),A=\begin{pmatrix}a&b\\c&d\end{pmatrix}, \qquad A^{-1}=\frac1{ad-bc}\begin{pmatrix}d&-b\\-c&a\end{pmatrix},

direct multiplication gives AA−1=A−1A=IAA^{-1}=A^{-1}A=I when ad−bc≠0ad-bc\ne0. The scalar ad−bcad-bc is the determinant. If it is zero, this inverse does not exist, and the equations must be examined for inconsistency or dependence.

An inverse is useful for understanding a reversible linear transformation. For routine numerical systems, row reduction can solve directly without first constructing every entry of an inverse.

Nonlinear intersections need different algebra

Matrix row reduction applies to linear equations. For the circle x2+y2=5x^2+y^2=5 and line y=x+1y=x+1, substitute the line into the circle to get x2+(x+1)2=5x^2+(x+1)^2=5. The equation simplifies to (x+2)(x−1)=0(x+2)(x-1)=0, giving points (−2,−1)(-2,-1) and (1,2)(1,2).

Both points satisfy both original equations. A nonlinear system can have several isolated intersections, so a single linear-system answer pattern does not describe all its possibilities. Substitution, factoring, and original-domain checks remain available.

Exercises

  1. Solve x+2y=7x+2y=7 and 3x−y=73x-y=7 by elimination.
  2. Classify x−y=2x-y=2 and 2x−2y=52x-2y=5.
  3. Parameterize all solutions of 2x+y=42x+y=4 and 4x+2y=84x+2y=8.
  4. Find the determinant and inverse of (2111)\begin{pmatrix}2&1\\1&1\end{pmatrix}.
  5. Solve y=2xy=2x and x2+y2=20x^2+y^2=20.
  6. Explain why multiplying a matrix row by zero is not a permitted equivalence operation.
Worked solutions
  1. Add three times the first equation to the negative of the second to obtain 7y=147y=14, so y=2y=2 and x=3x=3.
  2. Subtract twice the first equation from the second to get 0=10=1. There is no solution.
  3. Set x=tx=t, giving y=4−2ty=4-2t for arbitrary real tt.
  4. Determinant 1; the inverse is (1−1−12)\begin{pmatrix}1&-1\\-1&2\end{pmatrix}.
  5. Substitution gives 5x2=205x^2=20, so x=±2x=\pm2, with points (2,4)(2,4) and (−2,−4)(-2,-4).
  6. It replaces a constraint by 0=00=0, discarding information. The operation cannot be reversed.
Your study progress · Optional

Keep your place

Mark this lesson complete after you've read it, attempted its exercises, and explained its central idea in your own words.

Progress is not saved unless you choose to mark the lesson complete.

Saved only in this browser's local storage. No required account, server transmission, or analytics. You can reset your saved progress on the course page. Clearing browser data also clears the record.