7x-2y=10

12y-2x-7z=-6

13z-7y=3

asked by guest
on Nov 29, 2024 at 2:36 pm



You asked:

Solve the system of equations:\[\begin{aligned}7 x - 2 y &= 10\\12 y - 2 x - 7 z &= -6\\13 z - 7 y &= 3\end{aligned}\]

MathBot Answer:

The system of equations has one solution.\[x = \frac{956}{697}\] \[y = - \frac{139}{697}\] \[z = \frac{86}{697}\]


Solve by Gauss-Jordan Elimination:

Begin by writing the augmented matrix of the system of equations. $$\begin{bmatrix}7 & -2 & 0 &\bigm |& 10\\-2 & 12 & -7 &\bigm |& -6\\0 & -7 & 13 &\bigm |& 3\end{bmatrix}$$

Then use a series of elementary row operations to convert the matrix into reduced-row echelon form. The three elementary row operations are:

  1. Swap the positions of any two rows.

  2. Multiply any row by a nonzero scalar.

  3. Multiply a row by a nonzero scalar and add it to any other row.


First, switch the rows in the matrix such that the row with the leftmost non-zero entry with the greatest magnitude is at the top.

$$\begin{bmatrix}7 & -2 & 0 &\bigm |& 10\\-2 & 12 & -7 &\bigm |& -6\\0 & -7 & 13 &\bigm |& 3\end{bmatrix}$$

Multiply row \(1\) by scalar \(\frac{1}{7}\) to make the leading term \(1\).

$$\begin{bmatrix}1 & - \frac{2}{7} & 0 &\bigm |& \frac{10}{7}\\-2 & 12 & -7 &\bigm |& -6\\0 & -7 & 13 &\bigm |& 3\end{bmatrix}$$

Multiply row \(1\) by scalar \(2\) and add it to row \(2\).

$$\begin{bmatrix}1 & - \frac{2}{7} & 0 &\bigm |& \frac{10}{7}\\0 & \frac{80}{7} & -7 &\bigm |& - \frac{22}{7}\\0 & -7 & 13 &\bigm |& 3\end{bmatrix}$$

Switch the rows in the matrix such that the row with the next leftmost non-zero entry with the next greatest magnitude is the next row from the top.

$$\begin{bmatrix}1 & - \frac{2}{7} & 0 &\bigm |& \frac{10}{7}\\0 & \frac{80}{7} & -7 &\bigm |& - \frac{22}{7}\\0 & -7 & 13 &\bigm |& 3\end{bmatrix}$$

Multiply row \(2\) by scalar \(\frac{7}{80}\) to make the leading term \(1\).

$$\begin{bmatrix}1 & - \frac{2}{7} & 0 &\bigm |& \frac{10}{7}\\0 & 1 & - \frac{49}{80} &\bigm |& - \frac{11}{40}\\0 & -7 & 13 &\bigm |& 3\end{bmatrix}$$

Multiply row \(2\) by scalar \(\frac{2}{7}\) and add it to row \(1\).

$$\begin{bmatrix}1 & 0 & - \frac{7}{40} &\bigm |& \frac{27}{20}\\0 & 1 & - \frac{49}{80} &\bigm |& - \frac{11}{40}\\0 & -7 & 13 &\bigm |& 3\end{bmatrix}$$

Multiply row \(2\) by scalar \(7\) and add it to row \(3\).

$$\begin{bmatrix}1 & 0 & - \frac{7}{40} &\bigm |& \frac{27}{20}\\0 & 1 & - \frac{49}{80} &\bigm |& - \frac{11}{40}\\0 & 0 & \frac{697}{80} &\bigm |& \frac{43}{40}\end{bmatrix}$$

Multiply row \(3\) by scalar \(\frac{80}{697}\) to make the leading term \(1\).

$$\begin{bmatrix}1 & 0 & - \frac{7}{40} &\bigm |& \frac{27}{20}\\0 & 1 & - \frac{49}{80} &\bigm |& - \frac{11}{40}\\0 & 0 & 1 &\bigm |& \frac{86}{697}\end{bmatrix}$$

Multiply row \(3\) by scalar \(\frac{7}{40}\) and add it to row \(1\).

$$\begin{bmatrix}1 & 0 & 0 &\bigm |& \frac{956}{697}\\0 & 1 & - \frac{49}{80} &\bigm |& - \frac{11}{40}\\0 & 0 & 1 &\bigm |& \frac{86}{697}\end{bmatrix}$$

Multiply row \(3\) by scalar \(\frac{49}{80}\) and add it to row \(2\).

$$\begin{bmatrix}1 & 0 & 0 &\bigm |& \frac{956}{697}\\0 & 1 & 0 &\bigm |& - \frac{139}{697}\\0 & 0 & 1 &\bigm |& \frac{86}{697}\end{bmatrix}$$

Once the matrix is in reduced-row echelon form, convert the matrix back into linear equations to find the solution. $$\begin{aligned}1 \cdot x+ 0 \cdot y+ 0 \cdot z = \frac{956}{697} \\ x = \frac{956}{697}\end{aligned}$$$$\begin{aligned}0 \cdot x+ 1 \cdot y+ 0 \cdot z = - \frac{139}{697} \\ y = - \frac{139}{697}\end{aligned}$$$$\begin{aligned}0 \cdot x+ 0 \cdot y+ 1 \cdot z = \frac{86}{697} \\ z = \frac{86}{697}\end{aligned}$$


Solve by matrix inversion:

In cases where the coefficient matrix of the system of equations is invertible, we can use the inverse to solve the system. Use this method with care as matrix inversion can be numerically unstable for ill-conditioned matrices.


Express the linear equations in the form \(A \times X = B\) where \(A\) is the coefficient matrix, \(X\) is the matrix of unknowns, and \(B\) is the constant matrix.$$\left[\begin{matrix}7 & -2 & 0\\-2 & 12 & -7\\0 & -7 & 13\end{matrix}\right] \times \left[\begin{matrix}x\\y\\z\end{matrix}\right] = \left[\begin{matrix}10\\-6\\3\end{matrix}\right]$$

The product of \(A\) and its inverse \(A^{-1}\) is the identity matrix. Any matrix multiplied by the identity matrix remains unchanged, so this yields the matrix of unknowns on the left hand side of the equation, and the solution matrix on the right. $$\begin{aligned} A \times X &= B\\ A^{-1} \times A \times X &= A^{-1} \times B \\ I \times X &= A^{-1} \times B \\ X &= A^{-1} \times B \end{aligned}$$

Using a computer algebra system, calculate \(A^{-1}\). $$\left[\begin{matrix}\frac{107}{697} & \frac{26}{697} & \frac{14}{697}\\\frac{26}{697} & \frac{91}{697} & \frac{49}{697}\\\frac{14}{697} & \frac{49}{697} & \frac{80}{697}\end{matrix}\right]$$

Multiply both sides of the equation by the inverse. $$\left[\begin{matrix}\frac{107}{697} & \frac{26}{697} & \frac{14}{697}\\\frac{26}{697} & \frac{91}{697} & \frac{49}{697}\\\frac{14}{697} & \frac{49}{697} & \frac{80}{697}\end{matrix}\right] \times \left[\begin{matrix}7 & -2 & 0\\-2 & 12 & -7\\0 & -7 & 13\end{matrix}\right] \times \left[\begin{matrix}x\\y\\z\end{matrix}\right] = \left[\begin{matrix}\frac{107}{697} & \frac{26}{697} & \frac{14}{697}\\\frac{26}{697} & \frac{91}{697} & \frac{49}{697}\\\frac{14}{697} & \frac{49}{697} & \frac{80}{697}\end{matrix}\right] \times \left[\begin{matrix}10\\-6\\3\end{matrix}\right]$$ $$\left[\begin{matrix}x\\y\\z\end{matrix}\right] = \left[\begin{matrix}\frac{956}{697}\\- \frac{139}{697}\\\frac{86}{697}\end{matrix}\right]$$

\[x = \frac{956}{697}\]\[y = - \frac{139}{697}\]\[z = \frac{86}{697}\]