James' question about Gaussian Elimination

In summary, the conversation discusses the process of using Gaussian Elimination to solve a system of linear equations without pivoting. The augmented matrix is first transformed into an upper triangular matrix, with the right hand column becoming the elements of a vector g. Then, by performing various row operations, the solution for vector x is obtained. The conversation also mentions some considerations for using Gaussian Elimination, such as its efficiency and the importance of checking for consistency before using this method.
  • #1
Prove It
Gold Member
MHB
1,465
24
View attachment 5489

We start by writing the system as an augmented matrix

$\displaystyle \begin{align*} \left[ \begin{matrix} 2 & -2 & 1 & 1 & \phantom{-}4 \\ 4 & -1 & 2 & 3 & -\frac{5}{2} \\ 4 & -4 & 5 & 1 & \phantom{-}8 \\ 0 & \phantom{-}2 & 3 & 4 & -5 \end{matrix} \right] \end{align*}$

Once we have used Gaussian Elimination to upper triangularise the system, the right hand column ends up becoming the elements of $\displaystyle \begin{align*} \mathbf{g} \end{align*}$.

As we are told to do this without pivoting, we will apply R2 - 2R1 to R2 and R3 - 2R1 to R3 giving

$\displaystyle \begin{align*} \left[ \begin{matrix} 2 & -2 & 1 & \phantom{-}1 & \phantom{-}4 \\ 0 & \phantom{-}3 & 0 & \phantom{-}1 & -\frac{21}{2} \\ 0 & \phantom{-}0 & 3 & -1 & \phantom{-}0 \\ 0 & \phantom{-}2 & 3 & \phantom{-}4 & -5 \end{matrix} \right] \end{align*}$

We will now apply R4 - (2/3)R2 to R4 giving

$\displaystyle \begin{align*} \left[ \begin{matrix} 2 & -2 & 1 & \phantom{-}1 & \phantom{-}4 \\ 0 & \phantom{-}3 & 0 & \phantom{-}1 & -\frac{21}{2} \\ 0 & \phantom{-}0 & 3 & -1 & \phantom{-}0 \\ 0 & \phantom{-}0 & 3 & \phantom{-}\frac{10}{3} & \phantom{-}2 \end{matrix} \right] \end{align*}$

We will now apply R4 - R3 to R4 giving

$\displaystyle \begin{align*} \left[ \begin{matrix} 2 & -2 & 1 & \phantom{-}1 & \phantom{-}4 \\ 0 & \phantom{-}3 & 0 & \phantom{-}1 & -\frac{21}{2} \\ 0 & \phantom{-}0 & 3 & -1 & \phantom{-}0 \\ 0 & \phantom{-}0 & 0 & \phantom{-}\frac{13}{3} & \phantom{-}2 \end{matrix} \right] \end{align*}$

So we can now read off $\displaystyle \begin{align*} \mathbf{g} = \left[ \begin{matrix} \phantom{-}4 \\ -\frac{21}{2} \\ \phantom{-}0 \\ \phantom{-}2 \end{matrix} \right] \end{align*}$, and solving for $\displaystyle \begin{align*} \mathbf{x} \end{align*}$ we have

$\displaystyle \begin{align*} \frac{13}{3}\,x_4 &= 2 \\ x_4 &= \frac{6}{13} \\ \\ 3\,x_3 - x_4 &= 0 \\ 3\,x_3 - \frac{6}{13} &= 0 \\ 3\,x_3 &= \frac{6}{13} \\ x_3 &= \frac{2}{13} \\ \\ 3\,x_2 + x_4 &= -\frac{21}{2} \\ 3\,x_2 + \frac{6}{13} &= -\frac{21}{2} \\ 3\,x_2 &= -\frac{285}{26} \\ x_2 &= -\frac{95}{26} \\ \\ 2\,x_1 - 2\,x_2 + x_3 + x_4 &= 4 \\ 2\,x_1 + \frac{95}{13} + \frac{2}{13} + \frac{6}{13} &= 4 \\ 2\,x_1 &= -\frac{51}{13} \\ x_1 &= -\frac{51}{26} \end{align*}$

So the solution to the system is $\displaystyle \begin{align*} \mathbf{x} = \frac{1}{26}\,\left[ \begin{matrix} -51 \\ -95 \\ \phantom{-}4 \\ \phantom{-}12 \end{matrix} \right] \end{align*}$.
 

Attachments

  • gaussian elimination.jpg
    gaussian elimination.jpg
    67.9 KB · Views: 45
Mathematics news on Phys.org
  • #2


I would like to add a few comments about this solution process. First of all, Gaussian Elimination is a powerful tool for solving systems of linear equations, but it is important to note that it is not always the most efficient method. In some cases, it may be more efficient to use other techniques such as LU decomposition or matrix inversion. It is always important to consider the specific characteristics of the system at hand when choosing a solution method.

Additionally, it is important to note that in practice, pivoting is often necessary when using Gaussian Elimination to avoid division by zero or to improve the accuracy of the solution. Therefore, it is important to understand the limitations and potential issues with this method.

Finally, it is worth mentioning that this solution process assumes that the system is consistent, meaning that there is at least one solution. If the system is inconsistent, meaning that there is no solution, then Gaussian Elimination will lead to a row of all zeros in the augmented matrix, and the solution process will not be able to continue. It is important to check for consistency before using Gaussian Elimination to solve a system of linear equations.
 

1. What is Gaussian Elimination?

Gaussian Elimination is a method used to solve systems of linear equations by systematically eliminating variables until a solution is found.

2. How does Gaussian Elimination work?

Gaussian Elimination works by using a combination of row operations, such as swapping rows, multiplying rows by a constant, and adding multiples of one row to another, to simplify a system of linear equations until a solution is found.

3. What are the advantages of using Gaussian Elimination?

Gaussian Elimination is a reliable and efficient method for solving systems of linear equations. It can handle large systems with many variables and is also useful for finding the inverse of a matrix.

4. Are there any limitations to Gaussian Elimination?

Gaussian Elimination may encounter difficulties in certain cases, such as when the system has an infinite number of solutions or no solutions at all. It also requires careful handling of fractions and decimals, which can introduce rounding errors.

5. How is Gaussian Elimination used in real-world applications?

Gaussian Elimination is used in many fields, including engineering, physics, economics, and computer graphics, to solve systems of equations that model real-world problems. It is also a crucial step in many algorithms and numerical methods used in data analysis and machine learning.

Similar threads

Replies
1
Views
4K
Replies
1
Views
4K
Replies
1
Views
5K
  • General Math
Replies
1
Views
4K
Replies
0
Views
4K
Replies
3
Views
731
Replies
2
Views
5K
Replies
1
Views
6K
  • General Math
Replies
1
Views
11K
Back
Top