Solving linear equations system using inverse matrix and finding back this matrix by using linear equations












0












$begingroup$


I stumbled into this question in the course of some experiment:

I had this system of linear equations:



m = 1a+2b+3c+4d

n = 2a+3b+4c+1d

o = 3a+4b+1c+2d

p = 4a+1b+2c+3d



I have no fixed values for m, n, o, p as my a, b, c, d are vectors, so m, n, o and p are output vectors.
So I calculated the following general case solution:

a2 = (-211m+152n-3o-22p)/-76

b2 = (10o+116m+p-76n)/18

c2 = (-17o+20n+3m+2p)/76

d2 = (7m-7n+o+p)/38



I wanted to check my results by comparing the vectors a and a2, b and b2 and so on, but I can't find the good values.



So I used an inverse matrix solver to solve the system, which gave me



a4=(-0,225*m)+(0,025*n)+(0,025*o)+(0,275*p)

b4=(0,025*m)+(0,025*n)+(0,275*o)+(-0,225*p)

c4=(0,025*m)+(0,275*n)+(-0,225*o)+(0,025*p)

d4=(0,275*m)+(-0,225*n)+(0,025*o)+(0,025*p)



These vectors, besides floating point mistakes, are found to be equal to originals.

My questions is:

How could I have reached this inverse matrix by using linear equations?

I am puzzled because I did this for a 3*3 system and it worked, as demonstrated below, still for a 4*4 system, it is a mess and it doesn't work, for some reason.

Can someone explain this to me?
Thanks



m = (1*a) + (2*b) + (3*c) 
n = (2*a) + (3*b) + (1*c)
o = (3*a) + (1*b) + (2*c)

a4=((-5*m)+(1*n)+(7*o))/18
b4=((1*m)+(7*n)+(-5*o))/18
c4=((-7*m)+(5*n)+(-1*o))/-18

These coefficients match the inverse matrix.
-0.277777778 0.055555556 0.388888889
0.055555556 0.388888889 -0.277777778
-0.388888889 0.277777778 -0.055555556









share|cite|improve this question









$endgroup$












  • $begingroup$
    how did you compute your general case solution?
    $endgroup$
    – Exodd
    Dec 10 '18 at 12:41










  • $begingroup$
    I used Excel MINVERSE function. But for the 3*3 system, I actually did it first by linear equations (using substitution method). Problem being I fail miserably to do the same with the 4*4 system, and I can't understand why (which is even more miserable).
    $endgroup$
    – Ando Jurai
    Dec 10 '18 at 12:43












  • $begingroup$
    Yes it does. Actually I also came up with the same solution after giving it a new go. I can't explain what didn't work before, because I found other solutions with no mistakes in coefficient calculations. I think I found (randomly) the good combination which was "homogenous" here, with the same constant to divide all the matrix, while it was pretty messy before. Did you found it by just solving the system by elimination?
    $endgroup$
    – Ando Jurai
    Dec 10 '18 at 17:20
















0












$begingroup$


I stumbled into this question in the course of some experiment:

I had this system of linear equations:



m = 1a+2b+3c+4d

n = 2a+3b+4c+1d

o = 3a+4b+1c+2d

p = 4a+1b+2c+3d



I have no fixed values for m, n, o, p as my a, b, c, d are vectors, so m, n, o and p are output vectors.
So I calculated the following general case solution:

a2 = (-211m+152n-3o-22p)/-76

b2 = (10o+116m+p-76n)/18

c2 = (-17o+20n+3m+2p)/76

d2 = (7m-7n+o+p)/38



I wanted to check my results by comparing the vectors a and a2, b and b2 and so on, but I can't find the good values.



So I used an inverse matrix solver to solve the system, which gave me



a4=(-0,225*m)+(0,025*n)+(0,025*o)+(0,275*p)

b4=(0,025*m)+(0,025*n)+(0,275*o)+(-0,225*p)

c4=(0,025*m)+(0,275*n)+(-0,225*o)+(0,025*p)

d4=(0,275*m)+(-0,225*n)+(0,025*o)+(0,025*p)



These vectors, besides floating point mistakes, are found to be equal to originals.

My questions is:

How could I have reached this inverse matrix by using linear equations?

I am puzzled because I did this for a 3*3 system and it worked, as demonstrated below, still for a 4*4 system, it is a mess and it doesn't work, for some reason.

Can someone explain this to me?
Thanks



m = (1*a) + (2*b) + (3*c) 
n = (2*a) + (3*b) + (1*c)
o = (3*a) + (1*b) + (2*c)

a4=((-5*m)+(1*n)+(7*o))/18
b4=((1*m)+(7*n)+(-5*o))/18
c4=((-7*m)+(5*n)+(-1*o))/-18

These coefficients match the inverse matrix.
-0.277777778 0.055555556 0.388888889
0.055555556 0.388888889 -0.277777778
-0.388888889 0.277777778 -0.055555556









share|cite|improve this question









$endgroup$












  • $begingroup$
    how did you compute your general case solution?
    $endgroup$
    – Exodd
    Dec 10 '18 at 12:41










  • $begingroup$
    I used Excel MINVERSE function. But for the 3*3 system, I actually did it first by linear equations (using substitution method). Problem being I fail miserably to do the same with the 4*4 system, and I can't understand why (which is even more miserable).
    $endgroup$
    – Ando Jurai
    Dec 10 '18 at 12:43












  • $begingroup$
    Yes it does. Actually I also came up with the same solution after giving it a new go. I can't explain what didn't work before, because I found other solutions with no mistakes in coefficient calculations. I think I found (randomly) the good combination which was "homogenous" here, with the same constant to divide all the matrix, while it was pretty messy before. Did you found it by just solving the system by elimination?
    $endgroup$
    – Ando Jurai
    Dec 10 '18 at 17:20














0












0








0





$begingroup$


I stumbled into this question in the course of some experiment:

I had this system of linear equations:



m = 1a+2b+3c+4d

n = 2a+3b+4c+1d

o = 3a+4b+1c+2d

p = 4a+1b+2c+3d



I have no fixed values for m, n, o, p as my a, b, c, d are vectors, so m, n, o and p are output vectors.
So I calculated the following general case solution:

a2 = (-211m+152n-3o-22p)/-76

b2 = (10o+116m+p-76n)/18

c2 = (-17o+20n+3m+2p)/76

d2 = (7m-7n+o+p)/38



I wanted to check my results by comparing the vectors a and a2, b and b2 and so on, but I can't find the good values.



So I used an inverse matrix solver to solve the system, which gave me



a4=(-0,225*m)+(0,025*n)+(0,025*o)+(0,275*p)

b4=(0,025*m)+(0,025*n)+(0,275*o)+(-0,225*p)

c4=(0,025*m)+(0,275*n)+(-0,225*o)+(0,025*p)

d4=(0,275*m)+(-0,225*n)+(0,025*o)+(0,025*p)



These vectors, besides floating point mistakes, are found to be equal to originals.

My questions is:

How could I have reached this inverse matrix by using linear equations?

I am puzzled because I did this for a 3*3 system and it worked, as demonstrated below, still for a 4*4 system, it is a mess and it doesn't work, for some reason.

Can someone explain this to me?
Thanks



m = (1*a) + (2*b) + (3*c) 
n = (2*a) + (3*b) + (1*c)
o = (3*a) + (1*b) + (2*c)

a4=((-5*m)+(1*n)+(7*o))/18
b4=((1*m)+(7*n)+(-5*o))/18
c4=((-7*m)+(5*n)+(-1*o))/-18

These coefficients match the inverse matrix.
-0.277777778 0.055555556 0.388888889
0.055555556 0.388888889 -0.277777778
-0.388888889 0.277777778 -0.055555556









share|cite|improve this question









$endgroup$




I stumbled into this question in the course of some experiment:

I had this system of linear equations:



m = 1a+2b+3c+4d

n = 2a+3b+4c+1d

o = 3a+4b+1c+2d

p = 4a+1b+2c+3d



I have no fixed values for m, n, o, p as my a, b, c, d are vectors, so m, n, o and p are output vectors.
So I calculated the following general case solution:

a2 = (-211m+152n-3o-22p)/-76

b2 = (10o+116m+p-76n)/18

c2 = (-17o+20n+3m+2p)/76

d2 = (7m-7n+o+p)/38



I wanted to check my results by comparing the vectors a and a2, b and b2 and so on, but I can't find the good values.



So I used an inverse matrix solver to solve the system, which gave me



a4=(-0,225*m)+(0,025*n)+(0,025*o)+(0,275*p)

b4=(0,025*m)+(0,025*n)+(0,275*o)+(-0,225*p)

c4=(0,025*m)+(0,275*n)+(-0,225*o)+(0,025*p)

d4=(0,275*m)+(-0,225*n)+(0,025*o)+(0,025*p)



These vectors, besides floating point mistakes, are found to be equal to originals.

My questions is:

How could I have reached this inverse matrix by using linear equations?

I am puzzled because I did this for a 3*3 system and it worked, as demonstrated below, still for a 4*4 system, it is a mess and it doesn't work, for some reason.

Can someone explain this to me?
Thanks



m = (1*a) + (2*b) + (3*c) 
n = (2*a) + (3*b) + (1*c)
o = (3*a) + (1*b) + (2*c)

a4=((-5*m)+(1*n)+(7*o))/18
b4=((1*m)+(7*n)+(-5*o))/18
c4=((-7*m)+(5*n)+(-1*o))/-18

These coefficients match the inverse matrix.
-0.277777778 0.055555556 0.388888889
0.055555556 0.388888889 -0.277777778
-0.388888889 0.277777778 -0.055555556






linear-algebra matrix-equations numerical-linear-algebra






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Dec 10 '18 at 12:37









Ando JuraiAndo Jurai

1063




1063












  • $begingroup$
    how did you compute your general case solution?
    $endgroup$
    – Exodd
    Dec 10 '18 at 12:41










  • $begingroup$
    I used Excel MINVERSE function. But for the 3*3 system, I actually did it first by linear equations (using substitution method). Problem being I fail miserably to do the same with the 4*4 system, and I can't understand why (which is even more miserable).
    $endgroup$
    – Ando Jurai
    Dec 10 '18 at 12:43












  • $begingroup$
    Yes it does. Actually I also came up with the same solution after giving it a new go. I can't explain what didn't work before, because I found other solutions with no mistakes in coefficient calculations. I think I found (randomly) the good combination which was "homogenous" here, with the same constant to divide all the matrix, while it was pretty messy before. Did you found it by just solving the system by elimination?
    $endgroup$
    – Ando Jurai
    Dec 10 '18 at 17:20


















  • $begingroup$
    how did you compute your general case solution?
    $endgroup$
    – Exodd
    Dec 10 '18 at 12:41










  • $begingroup$
    I used Excel MINVERSE function. But for the 3*3 system, I actually did it first by linear equations (using substitution method). Problem being I fail miserably to do the same with the 4*4 system, and I can't understand why (which is even more miserable).
    $endgroup$
    – Ando Jurai
    Dec 10 '18 at 12:43












  • $begingroup$
    Yes it does. Actually I also came up with the same solution after giving it a new go. I can't explain what didn't work before, because I found other solutions with no mistakes in coefficient calculations. I think I found (randomly) the good combination which was "homogenous" here, with the same constant to divide all the matrix, while it was pretty messy before. Did you found it by just solving the system by elimination?
    $endgroup$
    – Ando Jurai
    Dec 10 '18 at 17:20
















$begingroup$
how did you compute your general case solution?
$endgroup$
– Exodd
Dec 10 '18 at 12:41




$begingroup$
how did you compute your general case solution?
$endgroup$
– Exodd
Dec 10 '18 at 12:41












$begingroup$
I used Excel MINVERSE function. But for the 3*3 system, I actually did it first by linear equations (using substitution method). Problem being I fail miserably to do the same with the 4*4 system, and I can't understand why (which is even more miserable).
$endgroup$
– Ando Jurai
Dec 10 '18 at 12:43






$begingroup$
I used Excel MINVERSE function. But for the 3*3 system, I actually did it first by linear equations (using substitution method). Problem being I fail miserably to do the same with the 4*4 system, and I can't understand why (which is even more miserable).
$endgroup$
– Ando Jurai
Dec 10 '18 at 12:43














$begingroup$
Yes it does. Actually I also came up with the same solution after giving it a new go. I can't explain what didn't work before, because I found other solutions with no mistakes in coefficient calculations. I think I found (randomly) the good combination which was "homogenous" here, with the same constant to divide all the matrix, while it was pretty messy before. Did you found it by just solving the system by elimination?
$endgroup$
– Ando Jurai
Dec 10 '18 at 17:20




$begingroup$
Yes it does. Actually I also came up with the same solution after giving it a new go. I can't explain what didn't work before, because I found other solutions with no mistakes in coefficient calculations. I think I found (randomly) the good combination which was "homogenous" here, with the same constant to divide all the matrix, while it was pretty messy before. Did you found it by just solving the system by elimination?
$endgroup$
– Ando Jurai
Dec 10 '18 at 17:20










0






active

oldest

votes











Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3033859%2fsolving-linear-equations-system-using-inverse-matrix-and-finding-back-this-matri%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3033859%2fsolving-linear-equations-system-using-inverse-matrix-and-finding-back-this-matri%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Wiesbaden

Marschland

Dieringhausen