Skip to main content
\(\require{cancel}\newcommand{\domain}[1]{\operatorname{Dom}(#1)} \newcommand{\range}[1]{\operatorname{Range}(#1)} \newcommand{\linearspan}{\operatorname{span}} \newcommand{\abs}[1]{\lvert #1 \rvert} \newcommand{\set}[2]{\left\{ #1 \: \middle\vert \: #2 \right\}} \renewcommand{\vec}[1]{\mathbf{#1}} \newcommand{\Z}{\mathbb{Z}} \newcommand{\Q}{\mathbb{Q}} \newcommand{\R}{\mathbb{R}} \DeclareMathOperator{\Lapl}{\mathcal{L}} \newcommand{\La}[1]{\Lapl \left\{ #1 \right\}} \newcommand{\invLa}[1]{\Lapl^{-1}\left\{ #1 \right\}} \newcommand{\intbyparts}[4]{\begin{tabular}{|rl|rl|}\hline $u$ \amp $#1$ \amp $dv$ \amp $#2$ \\ \hline $du$ \amp $#3$ \amp $v$ \amp $#4$ \\ \hline \end{tabular}} \newcommand{\identity}{\mathrm{id}} \newcommand{\notdivide}{{\not{\mid}}} \newcommand{\notsubset}{\not\subset} \newcommand{\swap}{\mathrm{swap}} \newcommand{\Null}{\operatorname{Null}} \newcommand{\half}{\text{ \nicefrac{1}{2}}} \newcommand{\lt}{<} \newcommand{\gt}{>} \newcommand{\amp}{&} \)

Section4.1Systems of Linear Equations

A linear (algebraic) equation is any equation that can be written as a linear combination of variables set equal to a scalar.

For example, \(2x+3y=1\) is an example of a linear equation in two variables, namely \(x\) and \(y\text{.}\) Another example is: \begin{equation*} x -2y + 3 = 7z -11, \end{equation*} because this can be rearranged to the equivalent equation: \begin{equation*} x -2y -7z = -14. \end{equation*}

Notice that there is no restriction on the number of variables other than that there must be a finite number. So for example, \(2x=3\) is an example of a linear equation in one variable, and \(4w -x +3y + z = 0\) is an example of a linear equation in four variables. Typically, once we go beyond four variables we begin to run out of the usual variable names, and thus switch to using subscripted variables and subscripted coefficients as in the following definition.

Definition4.1.1

A linear algebraic equation is a finite sum of scaled variables set equal to a scalar. Equivalently, a linear equation is any equation that can be written in the form: \begin{equation} a_0 x_0 + a_1 x_1 + a_2 x_2 + \cdots + a_n x_n = b \label{eqn-linear-algebraic}\tag{4.1.1} \end{equation}

In this case we would say that the equation has \(n+1\) variables, which stands for some finite number of variables.

Notice the similarity between the definition of a linear algebraic equation given above and the definition of a linear differential equation given in definition 1.1.2. Both definitions involve finite sums of scaled objects. In the case of a linear algebraic equation, those objects are distinct variables. In the case of a linear differential equation those objects are distinct derivatives of a function. If you think of each derivative as a distinct variable, then the definitions are very similar indeed. Here we reproduce the equation from each definition for comparison.

\begin{alignat*}{-1} a_n x_n \amp {}+{} \amp a_{n-1} x_{n-1} \amp {}+{} \amp \cdots \amp {}+{} \amp a_1 x_1 \amp {}+{} \amp a_0 x_0 \amp {}={} \amp b \\ a_n(x)y^{(n)} \amp {}+{} \amp a_{n-1}(x)y^{(n-1)} \amp {}+{} \amp \cdots \amp {}+{} \amp a_1(x)y' \amp {}+{} \amp a_0(x)y \amp {}={} \amp f(x) \end{alignat*}

SubsectionSystems and Elimination

Consider the following general form of a single linear equation in the single unknown (variable) \(x\text{,}\) here the \(a\) and \(b\) represent any real numbers, \begin{equation*} ax = b. \end{equation*} When given actual values for \(a\) and \(b\text{,}\) does this equation always have a solution? If you think carefully about how we solve such a system then it is easy to see that the answer is “no”. One would solve this by dividing both sides of the equation by \(a\text{,}\) or equivalently multiplying both sides of the equation by \(a^{-1}\) like so: \begin{align*} ax \amp = b\\ a^{-1} ax \amp = a^{-1}b \qquad \text{ multiplicative inverses exist}\\ (a^{-1} a)x \amp = a^{-1}b \qquad \text{ associativity}\\ 1\cdot x \amp = a^{-1}b \qquad \text{ property of inverses}\\ x \amp = a^{-1}b \qquad \text{ 1 is the multiplicative identity} \end{align*} But this is not possible when \(a=0\text{,}\) so for example \(0x=3\) has no solution. However, there is another interesting case, when both \(a=b=0\text{,}\) then we have \(0x=0\text{,}\) and this equation is true for any value assigned to \(x\text{.}\) Thus there are exactly three possibilities:

  1. a unique solution,

  2. no solution,

  3. infinitely many solutions.

What about a system of two linear equations in two unknowns? For example, \begin{equation*} \left\{ \begin{alignedat}{3} 2x \amp {}-{} \amp 2y \amp {}={} \amp {-14} \\ 3x \amp {}+{} \amp 4y \amp {}={} \amp 7 \end{alignedat} \right. \end{equation*} We wish to find the set of all pairs, \((x,y)\) that simultaneously satisfy both equations. To do so, we will use two facts:

  • Multiplying both sides of an equation by a nonzero constant does not change the set of points which satisfy it.

  • The sum of two equations is again a valid equation, that all solution points must satisfy.

Let's use these two facts to eliminate \(x\) from the second equation by multiplying the first equation by \(-3\text{,}\) the second by \(2\) and then summing them. \begin{equation*} \begin{alignedat}{3} -3[2x \amp {}-{} \amp 2y \amp {}={} \amp {-14}] \\ 2[3x \amp {}+{} \amp 4y \amp {}={} \amp 7] \\ \hline \amp {}~{} \amp 14y \amp {}={} \amp {56~} \\ \end{alignedat} \end{equation*}

The sum is equivalent to the equation \(14y = 56\) which of course has solution \(y=4\text{.}\) So we have determined that all solution points must have \(y\)-coordinate equal to 4. At this point we can plug this new knowledge into either of the two original equations to solve for \(x\text{.}\) Let's plug \(y=4\) into the first equation:

\begin{align*} 2x - 2(4) \amp= {-14}\\ 2x - 8 \amp= -14\\ 2x \amp= -6\\ x \amp= -3 \end{align*} And therefore the solution set is \(\left\{ (-3,4) \right\}\text{.}\)

The method of elimination for finding a solution to a linear system is a recursive algorithm. Suppose you start with a system of \(n\) equations in the \(n\) unknowns, \(x_1, x_2, \ldots, x_n\text{.}\) Pick one equation that contains \(x_1\) and use it to eliminate \(x_1\) from all the other equations. This step will yield a new system of \(n-1\) equations in the \(n-1\) unknowns, \(x_2, x_3, \ldots, x_n\text{.}\) Repeat this process of elimination until you have a single equation in the single unknown \(x_n\text{.}\) This single equation can be solved algebraically. Then we use the previous system of two equations in the two unknowns \(x_{n-1}, x_n\) to solve for \(x_{n-1}\text{.}\) Repeat this process of back substitution until you have solved for each unknown.

We will illustrate the method of elimination with an example system of three equations in three unknowns. \begin{equation*} \left\{ \begin{alignedat}{8} 3x \amp{}-{}\amp 2y \amp{}+{}\amp z \amp{}={}\amp -1 \amp\quad (1) \\ x \amp{}+{}\amp 5y \amp{}+{}\amp 2z \amp{}={}\amp 11 \amp\quad (2) \\ -x \amp{}+{}\amp 2y \amp{}-{}\amp z \amp{}={}\amp 3 \amp\quad (3) \end{alignedat} \right. \end{equation*} The first step is to use equation (1) to eliminate \(x\) from equations (2) and (3). \begin{equation*} \begin{alignedat}{9} 3x \amp{}-{}\amp 2y \amp{}+{}\amp z \amp{}={}\amp -1 \amp\quad\amp (1)\\ -3x \amp{}-{}\amp 15y \amp{}+{}\amp 6z \amp{}={}\amp 33 \amp\quad\amp {-3}(2)\\ \hline \amp{}-{}\amp 17y \amp{}+{}\amp 7z \amp{}={}\amp 32 \amp\quad\amp (1') \end{alignedat} \end{equation*} Next we use equation (1) to eliminate \(x\) from equation (3): \begin{equation*} \begin{alignedat}{9} 3x \amp{}-{}\amp 2y \amp{}+{}\amp z \amp{}={}\amp -1 \amp\quad\amp (1)\\ -3x \amp{}+{}\amp 6y \amp{}-{}\amp 3z \amp{}={}\amp 9 \amp\quad\amp 3(3)\\ \hline \amp{}~{}\amp 4y \amp{}-{}\amp 2z \amp{}={}\amp 8 \amp\quad\amp (2') \end{alignedat} \end{equation*}

We have reduced the \(3\times 3\) system to the \(2 \times 2\) system: \begin{equation*} \left\{ \begin{alignedat}{7} -17y \amp{}+{}\amp 7z \amp{}={}\amp 32 \amp\quad (1') \\ 4y \amp{}-{}\amp 2z \amp{}={}\amp 8 \amp\quad (2') \\ \end{alignedat} \right. \end{equation*} Next we must choose whether to eliminate \(y\) or \(z\text{.}\) Which variable we choose is irrelevant. If we choose to eliminate \(y\text{,}\) then since 17 and 4 are relatively prime, we would have to multiply equation (1') by 4 and equation (2') by 17, but there is a better choice. We will have smaller numbers to deal with if instead we eliminate \(z\text{:}\) \begin{equation*} \begin{alignedat}{6} -34y \amp{}+{}\amp 14z \amp{}={}\amp 64 \amp\quad 2(1') \\ 28y \amp{}-{}\amp 14z \amp{}={}\amp 56 \amp\quad 7(2') \\ \hline -6y \amp{}~{}\amp \amp{}={}\amp 120 \amp\quad (1'') \end{alignedat} \end{equation*} We now have a single equation in the one unknown \(y\) which of course can be solved with basic algebra to yield \(y = -20\text{.}\)

At this point we may substitute \(y=-20\) into either equation 1' or 2' to solve for \(z\text{.}\) Since equation 2' is a little simpler we choose it: \begin{equation*} 4(-20) - 2z = 8 \quad \Rightarrow \quad -2z = 88 \end{equation*} This equation has solution \(z=-44\text{,}\) which we can finally plug into any one of the original three equations to solve for \(x\text{.}\) Here we choose to use equation (2): \begin{align*} x + 5(20) + 2(-44) &= 11\\ x + 12 &= 11\\ x &= -1 \end{align*} Thus the solution to the system is the unique point, \((-1,-20,-44)\text{.}\)

SubsectionMatrices and Gaussian Elimination

Gaussian elimination is an algorithmic version of elimination that is more amenable to implementation in computer code. A key part of the algorithm is the recognition that many of the symbols in a linear system, are unnecessary and can safely be ignored. This is quite similar to what is done in synthetic division if you are familiar with that way of doing polynomial long division. Before we demonstrate the algorithm we need to define three new terms.

Definition4.1.2Elementary Row Operations

The three operations allowed in Gaussian elimination are called elementary row operations. They are:

  1. Multiply any row by a nonzero constant.

  2. Swap any two rows.

  3. Add a multiple of any row to any other row.

Definition4.1.3Row Equivalent Matrices and Systems

Two matrices are row equivalent if one can be transformed into the other via a finite sequence of elmentary row operations.

Two linear systems are row equivalent if their corresponding augmented matrices are row equivalent.

Definition4.1.4Row Echelon Form

A matrix is in row echelon form if:

  1. Every row with all zero elments is beneath any row without all zero elements.

  2. In every row that contains a nonzero leading element, that leading element lies strictly to the right of any leading element above it.

Remark4.1.5

An easy way to remember row echelon form is the following rewording:

  1. All zero rows must be pushed to the bottom.

  2. The leading elements/cofficients must make a “staircase” or echelon shape with only zeros below leading coefficients.

In short, a matrix in row echelon form, corresponds to a system that can be solved via back substitution or as we will see in the next section parametrization.

Let's solve the \(3 \times 3\) system from the algorithm statement above using Gaussian elimination.

Example4.1.7Gaussian Elimination Example

\begin{equation*} \left\{ \begin{alignedat}{8} 2x \amp{}-{}\amp 3y \amp{}+{}\amp z \amp{}={}\amp 5 \\ x \amp{}+{}\amp y \amp{}-{}\amp z \amp{}={}\amp 2 \\ -3x \amp{}+{}\amp y \amp{}+{}\amp 2z \amp{}={}\amp -4 \end{alignedat} \right. \quad \Leftrightarrow \quad \left[ \begin{array}{rrr|r} 2 & -3 & 1 & 5 \\ 1 & 1 & -1 & 2 \\ -3 & 1 & 2 & -4 \end{array} \right] \end{equation*}

In what follows we use a simple notation to record each step, in case we need to check our work for mistakes. The symbols \(R_1, R_2, R_3\) refer to rows 1, 2 and 3 respectively. \begin{equation*} \left[ \begin{array}{rrr|rr} 2 & -3 & 1 & 5 \\ 1 & 1 & -1 & 2 \\ -3 & 1 & 2 & -4 \end{array} \right] \stackrel{(-2)R_2}{\longrightarrow} \left[ \begin{array}{rrr|rr} 2 & -3 & 1 & 5 \\ -2 & -2 & 2 & -4 \\ -3 & 1 & 2 & -4 \end{array} \right] \stackrel{R_2 := R_2 + R_1}{\longrightarrow} \end{equation*} \begin{equation*} \left[ \begin{array}{rrr|rr} 2 & -3 & 1 & 5 \\ 0 & -5 & 3 & 1 \\ -3 & 1 & 2 & -4 \end{array} \right] \stackrel{3R_1, 2R_3}{\longrightarrow} \left[ \begin{array}{rrr|rr} 6 & -9 & 3 & 15 \\ 0 & -5 & 3 & 1 \\ -6 & 2 & 4 & -8 \end{array} \right] \stackrel{R_3 := R_3 + R_1}{\longrightarrow} \end{equation*} \begin{equation*} \left[ \begin{array}{rrr|rr} 6 & -9 & 3 & 15 \\ 0 & -5 & 3 & 1 \\ 0 & -7 & 7 & 7 \end{array} \right] \stackrel{(1/3)R_1, (-1/7)R_3}{\longrightarrow} \left[ \begin{array}{rrr|rr} 2 & -3 & 1 & 5 \\ 0 & -5 & 3 & 1 \\ 0 & 1 & -1 & -1 \end{array} \right] \stackrel{\swap(R_2,R_3)}{\longrightarrow} \end{equation*} \begin{equation*} \left[ \begin{array}{rrr|rr} 2 & -3 & 1 & 5 \\ 0 & 1 & -1 & -1 \\ 0 & -5 & 3 & 1 \end{array} \right] \stackrel{R_3 := R_3 + 5R_2}{\longrightarrow} \left[ \begin{array}{rrr|rr} 2 & -3 & 1 & 5 \\ 0 & 1 & -1 & -1 \\ 0 & 0 & -2 & -4 \end{array} \right] \end{equation*} At this point we stop doing elementary row operations, because the last matrix is in row echelon form. Next we translate the augmented matrix into its corresponding system which is solved via back substitution. \begin{equation*} \left\{ \begin{alignedat}{8} 2x \amp{}-{}\amp 3y \amp{}+{}\amp z \amp{}={}\amp 5 \\ \amp{}{}\amp y \amp{}-{}\amp z \amp{}={}\amp -1 \\ \amp{}{}\amp \amp{}-{}\amp 2z \amp{}={}\amp -4 \end{alignedat} \right. \end{equation*} At this stage we can solve for \(z\) and then back substitute to solve for \(y\) and \(x\text{.}\) \begin{align*} -2z = -4 \quad &\Rightarrow \quad z=2\\ y-2 = -1 \quad &\Rightarrow \quad y=1\\ 2x-3(1)+2 = 5 \quad &\\ 2x = 6 \quad &\Rightarrow \quad x=3 \end{align*} Thus the solution set is: \(\{ (3,1,2) \}\text{.}\)

SubsectionGeometric Interpretation of Row Echelon Forms

Recall that an augmented matrix directly corresponds to a linear system. The solution set of a linear system has a geometric interpretation. In the tables which follow, the following symbols will have a special meaning.

\begin{align*} * & = \text{ any nonzero number}\\ \square & = \text{ any number} \end{align*}

All Zero Rows Representative Matrices Solution Set
0 \(\begin{bmatrix} * & \square \\ 0 & * \end{bmatrix}\) Unique point in \(\R^2\)
1 \(\begin{bmatrix} * & \square \\ 0 & 0 \end{bmatrix} \begin{bmatrix} 0 & * \\ 0 & 0 \end{bmatrix}\) Line of points in \(\R^2\)
2 \(\begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix}\) All points in \(\R^2\) plane
Table4.1.8All possible \(2 \times 2\text{,}\) row echelon matrix forms
All Zero Rows Representative Matrices Solution Set
0 \(\begin{bmatrix} * & \square & \square \\ 0 & * & \square \\ 0 & 0 & * \end{bmatrix}\) Single point in \(\R^3\)
1 \(\begin{bmatrix} * & \square & \square \\ 0 & * & \square \\ 0 & 0 & 0 \end{bmatrix} \begin{bmatrix} * & \square & \square \\ 0 & 0 & * \\ 0 & 0 & 0 \end{bmatrix} \begin{bmatrix} 0 & * & \square \\ 0 & 0 & * \\ 0 & 0 & 0 \end{bmatrix}\) Line of points in \(\R^3\)
2 \(\begin{bmatrix} * & \square & \square \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{bmatrix} \begin{bmatrix} 0 & * & \square \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{bmatrix} \begin{bmatrix} 0 & 0 & * \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{bmatrix}\) Plane of points in \(\R^3\)
3 \(\begin{bmatrix} 0 & 0 & 0 \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{bmatrix}\) All points in \(\R^3\)
Table4.1.9All possible \(3 \times 3\text{,}\) row echelon matrix forms

The number of \(n\times n\text{,}\) row echelon matrix forms follows a pattern. It follows the pattern found in Pascal's triangle. Once you pick \(n\text{,}\) then just read the \(n^{\text{th}}\) row of Pascal's triangle from left to right to determine the number of \(n\times n\) matrices that have \(0, 1, 2, \ldots, n\) rows of all zeroes. So for example, when \(n=4\) there are exactly 4 unique row echelon forms that correspond to one row of all zeros, 6 unique row echelon forms that correspond to two rows of all zeros, and 4 unique row echelon forms that correspond to three rows of all zeros.

\(n=0\) 1
\(n=1\) 1 1
\(n=2\) 1 2 1
\(n=3\) 1 3 3 1
\(n=4\) 1 4 6 4 1
\(n=5\) 1 5 10 10 5 1
\(n=6\) 1 6 15 20 15 6 1
Table4.1.10Pascal's Triangle

SubsectionGaussian Elimination in Sage

In Sage, a matrix is a special type of data structure. It is more than just a list of rows of numbers. It is an object with many built-in functions. In Python/Sage we construct objects with a special constructor function which in this case is called simply enough, matrix. The first parameter to the matrix constructor is the set of numbers from which the elements of the matrix come from. Here we will assume that all entries will be rationals, which in Sage is denoted QQ, and in math is often written \(\Q\text{.}\) Recall \(\Q\) is defined in terms of the integers, \(\Z\text{:}\) \begin{equation*} \Q = \set{\frac{a}{b}}{a,b \in \Z \text{ and } b \ne 0} . \end{equation*} The following Sage code creates a matrix and then a column vector corresponding to the column of constants from the right side of the system of linear equations.

\begin{equation*} \left\{ \begin{alignedat}{4} 2x \amp {}~{} \amp \amp {}+{} \amp z \amp {}={} \amp 8 \\ 3x \amp {}-{} \amp y \amp {}+{} \amp z \amp {}={} \amp 4 \\ x \amp {}+{} \amp y \amp {}-{} \amp 4z \amp {}={} \amp {-18} \end{alignedat} \right. \end{equation*}

Once we have an augmented matrix, our goal is to apply elementary row operations until we have transformed it into a matrix in row-echelon form often denoted REF. The three elementary row operations are given in the table.

Elementary Row Operation Matrix Object Methods
Multiply any row by a nonzero constant B.rescale_row(i,scalar)
Swap any two rows B.swap_rows(i,j)
Add a constant multiple of any row to any other row B.add_multiple_of_row(i,j,scalar)

An important thing to know about Python and Sage is that all counting begins with zero, so the first row in a matrix is the zeroth row instead of row 1. Due to this, I find it easiest to use the above commands if you use the terms: zeroth row, oneth row, twoth row, etc. when referring to rows rather than the usual, first row, second row, third row and so forth.

In Python, an object is something that has both state and behavior. State corresponds with the nouns associated with the object and behaviour corresponds with the verbs that are associated with the object. The behaviors of an object often change the object's state.

In the case of a matrix object, its state is the grid of numbers contained within the matrix. Each elementary row operation is a behavior that changes the state of its internal data. For example, each matrix has a swap_rows behavior which changes the order of two rows in the matrix. An object's behaviors/verbs are often called methods. A method can only chage the state of the object to which it belongs..

The cells below, when evaluated in order, correspond with the steps of Gaussian elimination and illustrate all three elmentary row operations. If you evaluate each cell below more than once you will change the matrix \(B\) in ways not intended by the Gaussian elimination algorithm.

SubsectionExercises

For exercises 1—4 use the method of elimination to determine whether each system below is consistent or inconsistent. For each consistent system, find the unique solution or describe the infinite solution set with an equation. Do not rewrite as a matrix and use Gaussian elimination, just use regular plain elimination.

1

\(\left\{ \begin{alignedat}{3} 2x \amp {}+{} \amp 3y \amp {}={} \amp 1 \\ 3x \amp {}+{} \amp 5y \amp {}={} \amp 3 \end{alignedat} \right.\)

2

\(\left\{ \begin{alignedat}{3} x \amp {}+{} \amp 2y \amp {}={} \amp 4 \\ 2x \amp {}+{} \amp 4y \amp {}={} \amp 9 \end{alignedat} \right.\)

3

\(\left\{ \begin{alignedat}{3} x \amp {}-{} \amp 4y \amp {}={} \amp {-10} \\ -2x \amp {}+{} \amp 8y \amp {}={} \amp 20 \end{alignedat} \right.\)

4

\(\left\{ \begin{alignedat}{4} 3x \amp {}+{} \amp 5y \amp {}-{} \amp z \amp {}={} \amp 13 \\ 2x \amp {}+{} \amp 7y \amp {}+{} \amp z \amp {}={} \amp 28 \\ x \amp {}+{} \amp 7y \amp {}+{} \amp 2z \amp {}={} \amp 7 \end{alignedat} \right.\)

5

A second order IVP and its solution are given below. Differentiate the solution and then plug initial conditions into the solution and its derivative to generate a system of two linear equations in the two unknowns \(c_1\) and \(c_2\text{.}\) Solve the system for \(c_1\) and \(c_2\text{.}\) \begin{gather*} y'' - 25y = 0 \quad y(0)=10 \quad y'(0)=20\\ y(x) = c_1 e^{5x} + c_2 e^{-5x} \end{gather*}

6

Suppose you have a sytem of two equations in three unknowns. Is it possible to have a unique point in \(\R^3\) as a solution? Explain why or why not using geometric reasoning.

7

Suppose you have a sytem of 3 equations in two unknowns. Geometrically, this corresponds with three lines in the \(xy\)-plane. Hand draw three simple diagrams which demonstrate the possible solution set outcomes for a system of linear equations, namely:

  • No solution

  • Infinitely many solutions

  • A unique solution

In each diagram, label your lines with \(L_1, L_2\) and \(L_3\text{.}\)

8

Transform the linear system into an augmented matrix, and then use elementary row operations to transform the augmented matrix into row–echelon form and then solve by back substitution. \begin{align*} 2x_1 + 8x_2 + 3x_3 \amp = 2\\ x_1 + 3x_2 + 2x_3 \amp = 5\\ 2x_1 + 7x_2 + 4x_3 \amp = 8 \end{align*}

9

Transform the linear system into an augmented matrix, and then use elementary row operations to transform the augmented matrix into row–echelon form and then solve by back substitution. \begin{equation*} \left\{ \begin{alignedat}{5} 4x_1 \amp{}-{}\amp 2x_2 \amp{}-{}\amp 3x_3 \amp{}+{}\amp x_4 \amp{}={}\amp 3 \\ 2x_1 \amp{}-{}\amp 2x_2 \amp{}-{}\amp 5x_3 \amp{}+{}\amp x_4 \amp{}={}\amp {-10} \\ 4x_1 \amp{}+{}\amp x_2 \amp{}+{}\amp 2x_3 \amp{}+{}\amp x_4 \amp{}={}\amp 17 \\ 3x_1 \amp{}+{}\amp 6x_2 \amp{}+{}\amp x_3 \amp{}+{}\amp x_4 \amp{}={}\amp 12 \end{alignedat} \right. \end{equation*}

10

Transform the linear system into an augmented matrix, and then use elementary row operations to transform the augmented matrix into row–echelon form and then solve by back substitution. \begin{equation*} \left\{ \begin{alignedat}{4} x_1 \amp{}+{}\amp x_2 \amp{}-{}\amp 3x_3 \amp{}={}\amp {-4} \\ x_1 \amp{}+{}\amp x_2 \amp{}+{}\amp x_3 \amp{}={}\amp 1 \\ 5x_1 \amp{}+{}\amp 6x_2 \amp{}+{}\amp 8x_3 \amp{}={}\amp 8 \end{alignedat} \right. \end{equation*}

11

Determine for which values of \(k\) the system has:

  1. a unique solution

  2. no solution

  3. infinitely many solutions

\begin{align*} 3x + 2y \amp = 1\\ 6x + 4y \amp = k \end{align*}