MethodMath
Ask
Join
HomeTopicsAskAlerts
Profile

© 2026 MethodMath. Built for mathematical knowledge sharing.

AboutContactGuidelinesPrivacyTermsCookies
Maya O'Sullivan
May 4, 2026

How do I solve a system of linear equations using Gaussian elimination?

I'm studying linear algebra and I need to solve systems of equations using Gaussian elimination. For example:

x+2y+3z=92x−y+z=83x−z=3\begin{align*} x + 2y + 3z &= 9 \\2x - y + z &= 8 \\3x - z &= 3 \end{align*}x+2y+3z2x−y+z3x−z​=9=8=3​

I know I need to form an augmented matrix and use row operations to reach row-echelon form. But what are the allowed row operations? And how do I know when I've reached the correct form? Should I aim for row-echelon form or reduced row-echelon form (RREF)?

1 answers542 views

1 Answer

5
Aisha Mohammed
May 4, 2026
Accepted
Here is the complete solution. **Allowed Row Operations:** 1. **Swap** two rows ($R_i \leftrightarrow R_j$) 2. **Scale** a row by a non-zero constant ($cR_i \to R_i$) 3. **Add** a multiple of one row to another ($R_i + cR_j \to R_i$) **Augmented Matrix:** $$\begin{pmatrix} 1 & 2 & 3 & | & 9 \\ 2 & -1 & 1 & | & 8 \\ 3 & 0 & -1 & | & 3 \end{pmatrix}$$ **Step 1:** Eliminate $x$ from rows 2 and 3. $R_2 \rightarrow R_2 - 2R_1$: $$\begin{pmatrix} 1 & 2 & 3 & | & 9 \\ 0 & -5 & -5 & | & -10 \\ 3 & 0 & -1 & | & 3 \end{pmatrix}$$ $R_3 \rightarrow R_3 - 3R_1$: $$\begin{pmatrix} 1 & 2 & 3 & | & 9 \\ 0 & -5 & -5 & | & -10 \\ 0 & -6 & -10 & | & -24 \end{pmatrix}$$ **Step 2:** Eliminate $y$ from row 3. $R_3 \rightarrow 5R_3 - 6R_2$: $$\begin{pmatrix} 1 & 2 & 3 & | & 9 \\ 0 & -5 & -5 & | & -10 \\ 0 & 0 & -20 & | & -60 \end{pmatrix}$$ **Step 3:** Back-substitution. From $R_3$: $-20z = -60 \Rightarrow z = 3$ From $R_2$: $-5y - 5(3) = -10 \Rightarrow -5y = 5 \Rightarrow y = -1$ From $R_1$: $x + 2(-1) + 3(3) = 9 \Rightarrow x - 2 + 9 = 9 \Rightarrow x = 2$ **Answer:** $(x, y, z) = (2, -1, 3)$ **Row-Echelon vs. Reduced Row-Echelon (RREF):** | Form | Requirements | When to Use | |---|---|---| | **Row-Echelon** | Leading entry in each row is 1 (pivot), zeros below each pivot | Back-substitution | | **RREF** | Row-echelon + zeros above each pivot as well | Directly reading solutions | Gaussian elimination stops at row-echelon form, then uses back-substitution. Gauss-Jordan elimination continues to RREF, which gives the solution directly without back-substitution.
Still unsure? Join to comment or ask a follow-up.
Login or Register to post your answer

Suggested questions

Why does 0 factorial equal 1 instead of 0? Simple proof

31.4k

Why is dividing by zero undefined instead of infinity?

22.4k

what is the actual answer to 8 divided by 2 parentheses 2 plus 2 viral math problem

21.6k

Does the Banach-Steinhaus theorem hold for non-complete normed spaces?

31.1k

Do I need Calculus 3 before learning Fourier series?

3500