Solve the following linear system

Substituting this value of ##x_4## in the equation;##x_2=\dfrac{9x_3+3x_4-5}{6}##...we shall have##x_2=\dfrac{9t+9x_4-5}{6}## ##=\dfrac{9t+9(\dfrac{t-3}{2})-5}{6}## ##=\dfrac{9t+9t-27-5}{6}## ##=\dfrac{18t-32}{6}## ##=\dfrac{3(6
  • #1
chwala
Gold Member
2,650
351
Homework Statement
See attached
Relevant Equations
Gauss - jordan and related methods
Find the problem below with the solution indicated;

1659635617600.png
1659635644391.png


1659635682057.png


1659635726205.png


The text approach is much clear to me...

My way of tackling the problem is as follows; using echelon form (row reduction method)

\begin{bmatrix}
1 & 1 & 2 & -5 &3\\
2 & 5 & -1 & -9&-3 \\
2 & 1 & -1 & 3&-11\\
1& -3 & 2 & 7&-5
\end{bmatrix}

\begin{bmatrix}
1 & 1 & 2 & -5 &3\\
0 & -3 & -3 & -1&9 \\
0 & 1 & 5 & -13&17\\
0& 4& 0 & -12&8
\end{bmatrix}
\begin{bmatrix}
1 & 1 & 2 & -5 &3\\
0 & -3 & -3 & -1&9 \\
0 & 0 & 12 & -40&60\\
0& 0& -12 & -40&60
\end{bmatrix}

\begin{bmatrix}
1 & 1 & 2 & -5 &3\\
0 & -3 & -3 & -1&9 \\
0 & 0 & 12 & -40&60\\
0& 0& 0 & -80&120
\end{bmatrix}It follows that,
##-80x_4=120##
##x_4=-1.5##

Also,
##12x_3-40x_4=60##
##⇒x_3=0##

Also,
##-3x_2-x_4=9##
##-3x_2=9-1.5##
##x_2=-2.5##

Also,
##x_1+x_2-5x_4=3##
##x_1-2.5+7.5=3##
##x_1=-2##

I just checked the text solution and i could see that the solutions agree when ##x_4=-1.5=t##

I would appreciate any other perspective.
 
Last edited:
Physics news on Phys.org
  • #2
I think you have an error in Row 2 of the second matrix:

##\
\begin{bmatrix}
1 & 1 & 2 & -5 &3\\
0 & -3 & -3 & -1&9 \\
0 & 1 & 5 & -13&17\\
0& 4& 0 & -12&8
\end{bmatrix} ##

Added in Edit:

In fact the second row should be:

##\displaystyle \left[ \begin{matrix} 0 & -3 & 5 & -1 & 9 \end{matrix} \right] ##
 
Last edited:
  • Like
Likes chwala
  • #3
SammyS said:
I think you have an error in Row 2 of the second matrix: ##
\begin{bmatrix}
1 & 1 & 2 & -5 &3\\
0 & -3 & -3 & -1&9 \\
0 & 1 & 5 & -13&17\\
0& 4& 0 & -12&8
\end{bmatrix} ##
I'll check that and revert back...
 
  • #4
chwala said:
Homework Statement:: See attached
Relevant Equations:: Gauss - jordan and related methods

Find the problem below with the solution indicated;

View attachment 305359View attachment 305360

View attachment 305361

View attachment 305362

The text approach is much clear to me...

My way of tackling the problem is as follows; using echelon form (row reduction method)

\begin{bmatrix}
1 & 1 & 2 & -5 &3\\
2 & 5 & -1 & -9&-3 \\
2 & 1 & -1 & 3&-11\\
1& -3 & 2 & 7&-5
\end{bmatrix}

\begin{bmatrix}
1 & 1 & 2 & -5 &3\\
0 & -3 & -3 & -1&9 \\
0 & 1 & 5 & -13&17\\
0& 4& 0 & -12&8
\end{bmatrix}
\begin{bmatrix}
1 & 1 & 2 & -5 &3\\
0 & -3 & -3 & -1&9 \\
0 & 0 & 12 & -40&60\\
0& 0& -12 & -40&60
\end{bmatrix}

\begin{bmatrix}
1 & 1 & 2 & -5 &3\\
0 & -3 & -3 & -1&9 \\
0 & 0 & 12 & -40&60\\
0& 0& 0 & -80&120
\end{bmatrix}It follows that,
##-80x_4=120##
##x_4=-1.5##

Also,
##12x_3-40x_4=60##
##⇒x_3=0##

Also,
##-3x_2-x_4=9##
##-3x_2=9-1.5##
##x_2=-2.5##

Also,
##x_1+x_2-5x_4=3##
##x_1-2.5+7.5=3##
##x_1=-2##

I just checked the text solution and i could see that the solutions agree when ##x_4=-1.5=t##

I would appreciate any other perspective.
Amended;

\begin{bmatrix}
1 & 1 & 2 & -5 &3\\
2 & 5 & -1 & -9&-3 \\
2 & 1 & -1 & 3&-11\\
1& -3 & 2 & 7&-5
\end{bmatrix}
\begin{bmatrix}
1 & 1 & 2 & -5 &3\\
0 & -3 & 5 & -1&9 \\
0 & 1 & 5 & -13&17\\
0& 4& 0 & -12&8
\end{bmatrix}
\begin{bmatrix}
1 & 1 & 2 & -5 &3\\
0 & -3 & 5 & -1&9 \\
0 & 0 & 10 & -40&60\\
0& 0& 20 & -40&60
\end{bmatrix}
\begin{bmatrix}
1 & 1 & 2 & -5 &3\\
0 & -3 & 5 & -1&9 \\
0 & 0 & 10 & -40&60\\
0& 0& 0 & -40&60
\end{bmatrix}
It follows that,
##-40x_4=60##
##x_4=-1.5##
Also,
##10x_3-40x_4=60##
##⇒x_3=0##
Also,
##-3x_2-x_4=9##
##-3x_2=9-1.5##
##x_2=-2.5##
Also,
##x_1+x_2-5x_4=3##
##x_1-2.5+7.5=3##
##x_1=-2##
I just checked the text solution and i could see that the solutions agree when ##x_4=-1.5=t##
I would appreciate any other perspective.
 
Last edited:
  • #5
chwala said:
Amended;

$$\begin{bmatrix}
1 & 1 & 2 & -5 &3\\
2 & 5 & -1 & -9&-3 \\
2 & 1 & -1 & 3&-11\\
1& -3 & 2 & 7&-5
\end{bmatrix}$$
$$\begin{bmatrix}
1 & 1 & 2 & -5 & 3\\
0 & -3 & 5 & -1 & 9 \\
0 & 1 & 5 & -13 & 17\\
0& 4& 0 & -12 & 8
\end{bmatrix}$$
$$\begin{bmatrix}
1 & 1 & 2 & -5 &3\\
0 & -3 & 5 & -1&9 \\
0 & 0 & 10 & -40&60\\
0& 0& 20 & -40&60
\end{bmatrix}$$
No that is not correct.

The following is now correct for the second matrix.

##\begin{bmatrix}
1 & 1 & 2 & -5 &3\\
0 & -3 & 5 & -1&9 \\
0 & 1 & 5 & -13&17\\
0& 4& 0 & -12&8
\end{bmatrix} ##

Take 3 times Row 3 added to Row 2 and use this for Row 3 in the third matrix. This gives the same result as what you have correctly given for Row 4 of the third matrix.

The third matrix should be:

##\begin{bmatrix}
1 & 1 & 2 & -5 & 3 \\
0 & -3 & 5 & -1 & 9 \\
0 & 0 & 20 & -40 & 60 \\
0& 0& 20 & -40 & 60
\end{bmatrix} ##
 
  • #6
SammyS said:
No that is not correct.

The following is now correct for the second matrix.

##\begin{bmatrix}
1 & 1 & 2 & -5 &3\\
0 & -3 & 5 & -1&9 \\
0 & 1 & 5 & -13&17\\
0& 4& 0 & -12&8
\end{bmatrix} ##

Take 3 times Row 3 added to Row 2 and use this for Row 3 in the third matrix. This gives the same result as what you have correctly given for Row 4 of the third matrix.

The third matrix should be:

##\begin{bmatrix}
1 & 1 & 2 & -5 & 3 \\
0 & -3 & 5 & -1 & 9 \\
0 & 0 & 20 & -40 & 60 \\
0& 0& 20 & -40 & 60
\end{bmatrix} ##
What do you mean by saying my steps are not correct? The amended steps in post ##4## are correct...argghhhhhh true ... thanks @SammyS
 
  • Like
Likes Delta2
  • #7
chwala said:
What do you mean by saying my steps are not correct? The amended steps in post ##4## are correct...argghhhhhh true ... thanks @SammyS
##x_4## can take on any value.
 
  • #8
SammyS said:
##x_4## can take on any value.
True we shall end up with ##20x_3-40x_4=60## implying that we shall have infinetely many solutions...by either setting ##x_3=t## or ##x_4=t## and not necessarily ##x_4## only.

##x_3## or ##x_4## can take any value...on setting ##x_3=t## we shall end up with,

##x_1=-2-t##
##x_2=\dfrac{9t-15}{6}=\dfrac{3t-5}{2}##
##x_3=t##
##x_4=\dfrac{t-3}{2}## where ##t## is the independent variable.
 
Last edited:
  • #9
chwala said:
##x_3## or ##x_4## can take any value...on setting ##x_3=t## we shall end up with,

##x_1=-2-t##
##x_2=\dfrac{9t-15}{6}=\dfrac{3t-5}{2}##
##x_3=t##
##x_4=\dfrac{t-3}{2}## where ##t## is the independent variable.
Show your workings.
 
  • #10
pbuk said:
Show your workings.
Ok I will later...
 
  • #11
pbuk said:
Show your workings.
Let ##x_3=t##

then using the equation;

##x_3-2x_4=3##

we shall have

##t-2x_4=3##

##x_4= \dfrac{t-3}{2}##

and from
##-3x_2+5x_3- x_4=9##

## -3x_2+5x_3-\left[\dfrac{t-3}{2}\right]=9##

##-6x_2+10t-t+3=18##

##-6x_2+9t=15##

##6x_2=9t-15##

##x_2##=##\dfrac{9t-15}{6}##=##\dfrac{3t-5}{2}##

And from;

##x_1+x_2+2x_3-5x_4=3##

We shall have;

##2x_1+3t-5+4t-5t+15=6##

##2x_1+2t+10=6##

##2x_1=-2t-4##

##x_1=-t-2##
 
  • #12
Just thinking...I will need to try and see if we can solve the problem by using determinant and Cramer's rule...I guess an exercise for the weekend :smile:
 
Last edited:
  • #13
Cramer's rule works if the system matrix is nonsingular. I would advise not using Cramer's method. It's computationally inefficient. If Step 2 in the first post is correct, then Cramer's method is inapplicable, anyway.

You should check whether solutions to your system even exist in the first place. Verify that the ranks of the system matrix and the augmented matrix are equal. If this is not the case, then there's no reason to do any further work. (cf Kronecker-Capelli criterion)

Usually, this check is performed at Step 2. It's easy to see that the system matrix is of rank ##3##. Thus, solutions exist.
 
Last edited:
  • Like
Likes chwala
  • #14
nuuskur said:
Cramer's rule works if the system matrix is nonsingular. I would advise not using Cramer's method. It's computationally inefficient. If Step 2 in the first post is correct, then Cramer's method is inapplicable, anyway.

You should check whether solutions to your system even exist in the first place. Verify that the ranks of the system matrix and the augmented matrix are equal. If this is not the case, then there's no reason to do any further work. (cf Kronecker-Capelli criterion)

Usually, this check is performed at Step 2. It's easy to see that the system matrix is of rank ##3##. Thus, solutions exist.
Thanks I will try...and also do a refresher on rank, dimension of matrix form...let me see what comes out of my trial...
 
  • #15
nuuskur said:
Cramer's rule works if the system matrix is nonsingular. I would advise not using Cramer's method. It's computationally inefficient. If Step 2 in the first post is correct, then Cramer's method is inapplicable, anyway.

You should check whether solutions to your system even exist in the first place. Verify that the ranks of the system matrix and the augmented matrix are equal. If this is not the case, then there's no reason to do any further work. (cf Kronecker-Capelli criterion)

Usually, this check is performed at Step 2. It's easy to see that the system matrix is of rank ##3##. Thus, solutions exist.
Thanks I will try...and also do a refresher on rank, dimension of matrix form...let me see what comes out of my trial
nuuskur said:
Cramer's rule works if the system matrix is nonsingular. I would advise not using Cramer's method. It's computationally inefficient. If Step 2 in the first post is correct, then Cramer's method is inapplicable, anyway.

You should check whether solutions to your system even exist in the first place. Verify that the ranks of the system matrix and the augmented matrix are equal. If this is not the case, then there's no reason to do any further work. (cf Kronecker-Capelli criterion)

Usually, this check is performed at Step 2. It's easy to see that the system matrix is of rank ##3##. Thus, solutions exist.
aaaargh @nuuskur ... the determinant of this matrix is ##0## i.e
from

\begin{bmatrix}
1 & 1 & 2 & -5 \\
2 & 5 & -1 & -9 \\
2 & 1 & -1 & 3\\
1& -3 & 2 & 7
\end{bmatrix}

using
1. ##R_2-2R1##
2. ##R_3-2R_1##
3. ##R_4-R_1##

We shall have;
\begin{bmatrix}
1 & 1 & 2 & -5 \\
0 & 3 & -5 & 1 \\
0 & -1 & -5 & 13\\
0& -4 & 0& 12
\end{bmatrix}

The determinant is given by;

##1[3(-60)+5(-12+52)+1(0-20)]=-180+180=0## implying existence of dependent solutions as earlier seen.
 
Last edited:
  • #16
chwala said:

My way of tackling the problem is as follows; using echelon form (row reduction method)

\begin{bmatrix}
1 & 1 & 2 & -5 &3\\
2 & 5 & -1 & -9&-3 \\
2 & 1 & -1 & 3&-11\\
1& -3 & 2 & 7&-5
\end{bmatrix}

\begin{bmatrix}
1 & 1 & 2 & -5 &3\\
0 & -3 & -3 & -1&9 \\
0 & 1 & 5 & -13&17\\
0& 4& 0 & -12&8
\end{bmatrix}
If you want help, it would be nice if you indicated what row operations you were doing on each row.
Like your r2 row operation to get the second matrix is -(r2-r1) => r2. And your r3 row operation to get your third matrix is (r2+3*r3) => r3.
That way, we can help and don't have to spend time fishing around.
 
  • Like
Likes chwala
  • #17
FactChecker said:
If you want help, it would be nice if you indicated what row operations you were doing on each row.
Like your r2 row operation to get the second matrix is -(r2-r1) => r2. And your r3 row operation to get your third matrix is (r2+3*r3) => r3.
That way, we can help and don't have to spend time fishing around.
You made a mistake (I guess a typo mistake) on the second row.

##4--1=5## and not ##-3##.
 
Last edited:
  • #18
chwala said:
You made a mistake (I guess a typo mistake) on the second row.

##4--1=5## and not ##-3##.
Right. My next guess would be -(r2-2*r1) => r2. No, that only works for the first two columns. I think that makes my point. Suppose you tell me what you did instead of making me guess.
 
  • #19
FactChecker said:
Right. My next guess would be -(r2-2*r1) => r2. No, that only works for the first two columns. I think that makes my point. Suppose you tell me what you did instead of making me guess.

\begin{bmatrix}
1 & 1 & 2 & -5 &3\\
2 & 5 & -1 & -9&-3 \\
2 & 1 & -1 & 3&-11\\
1& -3 & 2 & 7&-5
\end{bmatrix}

Using row-reduction echelon form i.e

##2R_1-R_2##
##2R_1-R_3##
##R_1-R_4##

We get;

\begin{bmatrix}
1 & 1 & 2 & -5 &3\\
0 & -3 & 5 & -1&9 \\
0 & 1 & 5 & -13&17\\
0& 4& 0 & -12&8
\end{bmatrix}

On using;

##R_2+3R_3##
##4R_2+3R_3##

We get;
\begin{bmatrix}
1 & 1 & 2 & -5 &3\\
0 & -3 & 5 & -1&9 \\
0 & 0 & 20 & -40&60\\
0& 0& 20 & -40&60
\end{bmatrix}

From this the steps to solution will follow as indicated in my posts ##8## and ##11##.
 
Last edited:
  • Like
Likes FactChecker
  • #20
chwala said:
\begin{bmatrix}
1 & 1 & 2 & -5 &3\\
2 & 5 & -1 & -9&-3 \\
2 & 1 & -1 & 3&-11\\
1& -3 & 2 & 7&-5
\end{bmatrix}

Using row-reduction echelon form i.e

##2R_1-R_2##
##2R_1-R_3##
##R_1-R_4##

We get;

\begin{bmatrix}
1 & 1 & 2 & -5 &3\\
0 & -3 & 5 & -1&9 \\
0 & 1 & 5 & -13&17\\
0& 4& 0 & -12&8
\end{bmatrix}

On using;

##R_2+3R_3##
##4R_2+3R_3##

We get;
\begin{bmatrix}
1 & 1 & 2 & -5 &3\\
0 & -3 & 5 & -1&9 \\
0 & 0 & 20 & -40&60\\
0& 0& 20 & -40&60
\end{bmatrix}

From this the steps to solution will follow as indicated in my posts ##8## and ##11##.
Thanks! That helped me a lot to follow your work.
 
  • Like
Likes chwala
  • #21
@chwala
Be careful of your choice of free variables. In this instance you have chosen correctly, because the system is of the form
[tex]
\begin{bmatrix}
x_1 & x_2 & x_3 & x_4 & b\\
1 & 1 & 2 & -5 &3\\
0 & -3 & 5 & -1&9 \\
0 & 0 & 2 & -4&6\\
\end{bmatrix}
[/tex]
The minor corresponding to ##x_1,x_2,x_4 ## (i.e rows 123 and columns 124) is nonzero, therefore ##x_3## maybe regarded as free. Similarly, ##x_4## can also be free. In fact, anything here is free.

If the situation were something like this instead
[tex]
\begin{bmatrix}
x_1 & x_2 & x_3 & x_4 & b\\
1 & 1 & 2 & -5 &3\\
0 & -3 & -6 & -1&9 \\
0 & 1 & 2 & -4&6\\
\end{bmatrix}
[/tex]
then ##x_4## cannot be regarded as free. (consider the Kronecker-Capelli theorem)

In general, one determines the rank of the system and finds a nonzero minor of that order. All variables that are "outside" of the minor can be regarded as free.
 
Last edited:
  • Like
Likes chwala
  • #22
nuuskur said:
@chwala
Be careful of your choice of free variables. In this instance you have chosen correctly, because the system is of the form
[tex]
\begin{bmatrix}
x_1 & x_2 & x_3 & x_4 & b\\
1 & 1 & 2 & -5 &3\\
0 & -3 & 5 & -1&9 \\
0 & 0 & 2 & -4&6\\
\end{bmatrix}
[/tex]
The minor corresponding to ##x_1,x_2,x_4 ## (i.e rows 123 and columns 124) is nonzero, therefore ##x_3## maybe regarded as free. Similarly, ##x_4## can also be free. In fact, anything here is free.

If the situation were something like this instead
[tex]
\begin{bmatrix}
x_1 & x_2 & x_3 & x_4 & b\\
1 & 1 & 2 & -5 &3\\
0 & -3 & -6 & -1&9 \\
0 & 1 & 2 & -4&6\\
\end{bmatrix}
[/tex]
then ##x_4## cannot be regarded as free. (consider the Kronecker-Capelli theorem)

In general, one determines the rank of the system and finds a nonzero minor of that order. All variables that are "outside" of the minor can be regarded as free.
Thanks! Let me look at the Kronecker - Capelli theorem. I am hearing it for the 1st time...:cool:
 

1. What is a linear system?

A linear system is a set of equations that can be written in the form of Ax = b, where A is a matrix of coefficients, x is a vector of variables, and b is a vector of constants. The goal of solving a linear system is to find the values of the variables that satisfy all of the equations simultaneously.

2. How do you solve a linear system?

There are several methods for solving a linear system, including substitution, elimination, and graphing. The most common method is Gaussian elimination, which involves using row operations to transform the system into an equivalent system with a simpler form. This simpler system can then be solved by back-substitution to find the values of the variables.

3. What is the importance of solving linear systems?

Solving linear systems is essential in many areas of science and engineering. It allows us to model and analyze real-world situations, such as predicting the growth of a population or finding the optimal solution to a problem. Linear systems also serve as the foundation for more complex mathematical concepts, such as matrices and vector spaces.

4. Can a linear system have more than one solution?

Yes, a linear system can have zero, one, or infinitely many solutions. A system with no solution is called inconsistent, while a system with infinitely many solutions is called dependent. A system with exactly one solution is called consistent and independent.

5. How can I check if my solution to a linear system is correct?

You can check your solution by substituting the values of the variables into each equation in the system and verifying that they satisfy all of the equations. Another method is to use matrix multiplication to check if the solution vector satisfies the original equation Ax = b.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
9
Views
791
  • Precalculus Mathematics Homework Help
Replies
19
Views
1K
  • Precalculus Mathematics Homework Help
Replies
1
Views
493
  • Precalculus Mathematics Homework Help
Replies
11
Views
809
  • Linear and Abstract Algebra
Replies
2
Views
391
  • Precalculus Mathematics Homework Help
Replies
7
Views
1K
  • Precalculus Mathematics Homework Help
Replies
1
Views
732
  • Precalculus Mathematics Homework Help
Replies
7
Views
1K
  • Precalculus Mathematics Homework Help
Replies
32
Views
813
  • Precalculus Mathematics Homework Help
Replies
2
Views
786
Back
Top