Help with simple matrix algebra

rusty009
Messages
68
Reaction score
0
Hi all,

I'm having trouble solving this matrix problem, basically I have,

s=r*H

where s = [ 1 1 0] and,

H=
1 0 1 1 0 0
0 1 1 0 1 0
1 1 0 0 0 1

I am trying to find out what the matrix r is but it won't work in matlab. I have tried inverting H but it isn't a square matrix. So I tried pseudoinverse psinv and it still doesn't seem to be working. Any help would be greatly appreciated.
 
Mathematics news on Phys.org
Your problem is that this is impossible. H has three rows and 6 columns so r must have three columns. If it also has n rows, s would have to have n rows and 6 columns. Since s has one row, n can be 1 but s has 3 columns, not 6.
 
Your equation is of the form :
<br /> \vec{a} = \vec{b}A<br />

Where b is the 1x3 vector we are looking for and a is a 1x6 vector . As you mentioned, your matrix isn't square an thus not normally invertible. By the Moore-Penrose Pseudoinverse, there does exist a solution (infinitely many actually).
Your matrix A is an mxn matrix where m<n and is also full-rank, so:
<br /> A^\dagger = (A^TA)^{-1}A^T<br />
Where A-dagger is the Moore-Penrose Pseudoinverse. Notice that only because A was full rank could you use this formula, otherwise you have to use the singular value decomposition .
I've tried A^\dagger = (A^TA)^{-1}A^T with your matrix but A^TA turns out to be singular. I suppose you could try to take the pseudoinverse of that too, but then I'm not sure if everything will work out as you had wanted.

Edit: I made a silly mistake with the size of r :redface: (as HallsofIvy pointed out). The above would have been useful for consistent sizes and a full rank matrix.
 
Last edited:
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
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...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top