MHB Jamal's Q via email solving a system

  • Thread starter Thread starter Prove It
  • Start date Start date
  • Tags Tags
    Email System
AI Thread Summary
The discussion outlines the process of solving a system of equations using Gaussian elimination with partial pivoting, represented in an augmented matrix. The elimination steps are detailed, showing how to transform the matrix into an upper triangular form while performing row operations. The final augmented matrix allows for back substitution to find the values of the variables. The solution to the system is found to be x = [2, -1, 0, 3]. Verifying the solution against the original matrix confirms its accuracy.
Prove It
Gold Member
MHB
Messages
1,434
Reaction score
20
We can write the system in an augmented matrix as $\displaystyle \begin{align*} A = \left[ \begin{matrix} 2 & -2 & -1 & \phantom{-}0 & \phantom{-}6 \\ 2 & \phantom{-}3 & \phantom{-}2 & -5 &-14 \\ 0 & \phantom{-}5 & \phantom{-}2 & \phantom{-}2 &\phantom{-}1 \\ 0 & \phantom{-}0 & \phantom{-}2 & -3 & -9 \end{matrix} \right] \end{align*}$. If we apply Gaussian Elimination with Partial Pivoting, when the system is upper-triangularised, the right hand column becomes the elements of matrix $\displaystyle \begin{align*} \mathbf{g} \end{align*}$.

First we will apply R2 - R1 to R1 (no pivoting needed as the elements in the first column have the same magnitude)

$\displaystyle \begin{align*} \left[ \begin{matrix} 2 & -2 & -1 & \phantom{-}0 &\phantom{-}6 \\ 0 & \phantom{-}5 & \phantom{-}3 & -5 &-20 \\ 0 & \phantom{-}5 & \phantom{-}2 & \phantom{-}2 &\phantom{-}1 \\ 0 &\phantom{-}0 & \phantom{-}2 & -3 &-9 \end{matrix} \right] \end{align*}$

Again pivoting is not needed as the elements on or below the main diagonal in column 2 are the same magnitude, so we will apply R3 - R2 to R2 giving

$\displaystyle \begin{align*} \left[ \begin{matrix} 2 & -2 & -1 & \phantom{-}0 &\phantom{-}6 \\ 0 & \phantom{-}5 & \phantom{-}3 & -5 &-20 \\ 0 & \phantom{-}0 & -1 & \phantom{-}7 &\phantom{-}21 \\ 0 &\phantom{-}0 & \phantom{-}2 & -3 &-9 \end{matrix} \right] \end{align*}$

If we look in column 3, we see that the element on or below the main diagonal with the highest magnitude is in Row 4, so we must switch rows 3 and 4, giving

$\displaystyle \begin{align*} \left[ \begin{matrix} 2 & -2 & -1 & \phantom{-}0 &\phantom{-}6 \\ 0 & \phantom{-}5 & \phantom{-}3 & -5 &-20 \\ 0 &\phantom{-}0 & \phantom{-}2 & -3 &-9\\ 0 & \phantom{-}0 & -1 & \phantom{-}7 &\phantom{-}21 \end{matrix} \right] \end{align*}$

and finally when we apply R4 + (1/2)R3 to R4 we get

$\displaystyle \begin{align*} \left[ \begin{matrix} 2 & -2 & -1 & \phantom{-}0 &\phantom{-}6 \\ 0 & \phantom{-}5 & \phantom{-}3 & -5 &-20 \\ 0 &\phantom{-}0 & \phantom{-}2 & -3 &-9\\ 0 & \phantom{-}0 & \phantom{-}0 & \phantom{-}\frac{11}{2} & \phantom{-}\frac{33}{2} \end{matrix} \right] \end{align*}$So we can read off that $\displaystyle \begin{align*} \mathbf{g} = \left[ \begin{matrix} \phantom{-}6 \\ -20 \\ -9 \\ \phantom{-}\frac{33}{2} \end{matrix} \right] \end{align*}$ and we can solve for $\displaystyle \begin{align*} \mathbf{x} \end{align*}$ in the system through back substitution:

$\displaystyle \begin{align*} \frac{11}{2} \, x_4 &= \frac{33}{2} \\ x_4 &= 3 \\ \\ 2\,x_3 - 3\,x_4 &= -9 \\ 2\,x_3 - 9 &= -9 \\ 2\,x_3 &= 0 \\ x_3 &= 0 \\ \\ 5\,x_2 + 3\,x_3 - 5\,x_4 &= -20 \\ 5\,x_2 + 0 - 15 &= -20 \\ 5\,x_2 &= -5 \\ x_2 &= -1 \\ \\ 2\,x_1 - 2\,x_2 - x_3 &= 6 \\ 2\,x_1 + 2 - 0 &= 6 \\ 2\,x_1 &= 4 \\ x_1 &= 2 \end{align*}$

Thus the solution to the system is $\displaystyle \begin{align*} \mathbf{x} = \left[ \begin{matrix} \phantom{-}2 \\ -1 \\ \phantom{-}0 \\ \phantom{-}3 \end{matrix} \right] \end{align*}$.
 
Mathematics news on Phys.org
As always, it's a good idea to check that the solution shown above actually works in the augmented matrix at the beginning of the post.
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Back
Top