I'm trying to solve the following system of linear equations, to determine in which cases it has unique solutions, no solution, or infinitely many solutions. When there are infinitely many solutions, I have been asked to represent all the solutions using a basic solution set.
The system of equations is:
x1 - 3 x2 + 2 x3 + x4 =0,
2 x1 - 5 x2 + 3 x3 - x4 = 1,
x1 - 3 x2 + 2 x3 + x4 = lambda
I'm planning to solve this using Mathematica.
I've tried as follows, but in vain:
In[29]:= Solve[{x1 - 3 x2 + 2 x3 + x4 == 0,
2 x1 - 5 x2 + 3 x3 - x4 == 1, x1 - 3 x2 + 2 x3 + x4 == lambda}, {x1,
x2, x3, x4}]
Out[29]= {}
In[13]:= M = {{1, -3, 2, 1}, {2, -5, 3, -1}, {1, -3, 2, 1}};
B = {0, 1, \[Lambda]};
LinearSolve[M, B]
During evaluation of In[13]:= LinearSolve::nosol: Linear equation encountered that has no solution.
Out[15]= LinearSolve[{{1, -3, 2, 1}, {2, -5, 3, -1}, {1, -3, 2,
1}}, {0, 1, \[Lambda]}]
In[16]:= Solve[M . {x1, x2, x3, x4} == B, {x1, x2, x3, x4}]
Out[16]= {}
Can I seek your guidance on how to proceed with representing solutions for all possible scenarios using Mathematica?
Thanks in advance for your help.
Regards,
Zhao