Solving Gaussian Elimination Algorithm Problem (Matrices)

Click For Summary
SUMMARY

The discussion focuses on solving Gaussian elimination problems involving matrices, specifically the system of equations represented by the matrix [3 10 4 : 7], [2 7 3 : 5], and [1 3 2 : 2]. The user describes their process of scaling and using row operations to achieve row echelon form, but encounters difficulties with the final answers. Additionally, the user seeks clarification on using precision in calculations, specifically 10^-3, and questions the conditions for inconsistency in a matrix involving a variable c. The correct final solution for the first matrix is identified as x1 = -1, x2 = 1, x3 = 0.

PREREQUISITES
  • Understanding of Gaussian elimination algorithm
  • Familiarity with matrix row operations
  • Knowledge of backward substitution techniques
  • Basic concepts of matrix consistency and free variables
NEXT STEPS
  • Study advanced Gaussian elimination techniques and pitfalls
  • Learn about matrix precision and rounding methods in numerical analysis
  • Explore the concept of matrix inconsistency and conditions for no solutions
  • Practice solving systems of equations with symbolic variables using software like MATLAB or Python's NumPy
USEFUL FOR

Students studying linear algebra, mathematicians working with matrix equations, and educators teaching Gaussian elimination methods.

adc85
Messages
34
Reaction score
0
I tried to solve this Gaussian elimination algorithm problem (matrices) but for some reason when I plug in the x variables it doesn't work. The problem is:

[ 3 10 4 : 7 ]
[ 2 7 3 : 5 ]
[ 1 3 2 : 2 ]

Alright so the first thing I did was divide the 1st row by 1/3 (scaling). Then I made the entries below the first pivot equal to 0 using:

Row2 = Row2 - Second Row, First Column * Row 1
Row3 = Row3 = Third Row, First Column * Row 1

Then I repeat this algorithm for the submatrix created afterwards (ignoring the first row and first column). Afterwards, I used backwards substitution (even tried using reduced echelon form). But I am not getting quite the right answers (very close for row 3 and the other two rows are fine though). Any input appreciated.

Also, I am having trouble understanding what my professor is saying when he says to solve a certain problem like this using 10^-3 precision for example. Do you just use the same method except placing decimal places at the end of each number or whatever?

Then he has this other weird problem that goes like:

[1 1 1 : 0]
[3 4 8 : 1]
[4 5 c^2 : c - 2]

What value of c would make this inconsistent (in other words, no solution)? I'm thinking that x3 could equal anything by making the last row full of zeros. Not sure though.

Thanks for any help.
 
Physics news on Phys.org
\left(\begin{array}{x1x2x3k}<br /> 3 &amp; 10 &amp; 4 &amp; 7\\ <br /> 2 &amp; 7 &amp; 3 &amp; 5\\ <br /> 1 &amp; 3 &amp; 2 &amp; 2<br /> \end{array}\right)

Gaussian Elimination or any other fancy name is simply an attempt to reduce this matrix into a \left(\begin{array}{x1x2x3k}<br /> 1 &amp; 0 &amp; 0 &amp; k1\\ <br /> 0 &amp; 1 &amp; 0 &amp; k2\\ <br /> 0 &amp; 0 &amp; 1 &amp; k3<br /> \end{array}\right) form.

I will use notation R1, R2, and R3 to indicate Rows 1, 2, and 3. For example (R2 = R2 + R1 means you add row 1 into row 2, and after that you should have Row 1 as it was, and Row 2 will be sum of Row 1 and Row 2 from before.

Now in your case:

\left(\begin{array}{x1x2x3k}<br /> 3 &amp; 10 &amp; 4 &amp; 7\\ <br /> 2 &amp; 7 &amp; 3 &amp; 5\\ <br /> 1 &amp; 3 &amp; 2 &amp; 2<br /> \end{array}\right) R1 = R1 - R2 -> \left(\begin{array}{x1x2x3k}<br /> 1 &amp; 3 &amp; 1 &amp; 2\\ <br /> 2 &amp; 7 &amp; 3 &amp; 5\\ <br /> 1 &amp; 3 &amp; 2 &amp; 2<br /> \end{array}\right) R2 = R2 - 2*R3 -> \left(\begin{array}{x1x2x3k}<br /> 1 &amp; 3 &amp; 1 &amp; 2\\ <br /> 0 &amp; 1 &amp; -1 &amp; 1\\ <br /> 1 &amp; 3 &amp; 2 &amp; 2<br /> \end{array}\right). R3 = R3 - R1 -> \left(\begin{array}{x1x2x3k}<br /> 1 &amp; 3 &amp; 1 &amp; 2\\ <br /> 0 &amp; 1 &amp; -1 &amp; 1\\ <br /> 0 &amp; 0 &amp; 1 &amp; 0<br /> \end{array}\right).


\left(\begin{array}{x1x2x3k}<br /> 1 &amp; 3 &amp; 1 &amp; 2\\ <br /> 0 &amp; 1 &amp; -1 &amp; 1\\ <br /> 0 &amp; 0 &amp; 1 &amp; 0<br /> \end{array}\right) R1 = R1 - 3R2 -> \left(\begin{array}{x1x2x3k}<br /> 1 &amp; 0 &amp; 4 &amp; -1\\ <br /> 0 &amp; 1 &amp; -1 &amp; 1\\ <br /> 0 &amp; 0 &amp; 1 &amp; 0<br /> \end{array}\right). R1 = R1 - 4R3 -> \left(\begin{array}{x1x2x3k}<br /> 1 &amp; 0 &amp; 0 &amp; -1\\ <br /> 0 &amp; 1 &amp; -1 &amp; 1\\ <br /> 0 &amp; 0 &amp; 1 &amp; 0<br /> \end{array}\right). R2 = R2 + R3 -> \left(\begin{array}{x1x2x3k}<br /> 1 &amp; 0 &amp; 0 &amp; -1\\ <br /> 0 &amp; 1 &amp; 0 &amp; 1\\ <br /> 0 &amp; 0 &amp; 1 &amp; 0<br /> \end{array}\right)

So you end up with this:
x1 = -1, x2 = 1, x3 = 0

Your answer is: (-1, 1, 0) \epsilon \mathbb{R}^3
 


Hi there,

Firstly, it's great that you are actively trying to solve this Gaussian elimination algorithm problem and seeking help when you encounter difficulties. It shows determination and a willingness to learn.

Regarding the first problem, it seems like you have a good understanding of the steps involved in Gaussian elimination. However, it's important to double-check your calculations, as even small errors can lead to incorrect solutions. It's also possible that you may have missed a step or made a mistake in the backwards substitution process. I would recommend checking your work and perhaps seeking assistance from your professor or classmates if you are still having trouble.

As for the precision question, using 10^-3 precision means that your final solutions should be rounded to three decimal places. This is to ensure that your answers are as accurate as possible without being overly complicated.

For the second problem, you are correct in thinking that there is no value of c that will make this system consistent. This is because the third row has an equation that is dependent on c, meaning that it can take on any value and still satisfy the system. This is known as a free variable and results in an infinite number of solutions.

I hope this helps and good luck with your future problem-solving endeavors!
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
8K
  • · Replies 26 ·
Replies
26
Views
5K
  • · Replies 13 ·
Replies
13
Views
8K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K