Hi @Nicholas ,
Addressing your query regarding, “I don't understand the following written in Rescaling to Solve a Linear System, equilibrate is most useful when the scales of the b and x vectors in the original system x = A\b are irrelevant. However, if the scales of b and x are relevant, then using equilibrate to rescale A only for the linear system solve is not recommended. The obtained solution does not generally yield a small residual for the original system, even if expressed using the original basis vectors." Could someone explain the meaning of this with an example?
Meaning
In layman’s terms, it helps improve the accuracy and efficiency of solving linear systems by rescaling the basis vectors in the matrix A. This can be useful when the scales of the vectors b and x in the original system x = A\b are not important.
An example to illustrate it
So, I created a matrix A with significantly different scales along its diagonal elements, then solve the original system x = A\b and equilibrate matrix A using the equilibrate function. Finally, solve the equilibrated system and compare the original solution x with the equilibrated solution xeq. So, you can observe now, how the use of equilibrate impacts the solution of the linear system and understand the implications of rescaling when the scales of b and x are relevant. Please see attached results.
![](/matlabcentral/answers/uploaded_files/1748474/IMG_7354.jpeg)
Hope this helps, please let me know if you have any further questions.