• Support PF! Buy your school textbooks, materials and every day products Here!

Why this equation can't solve

  • Thread starter jacky_pcs
  • Start date
  • #1
2
0
I would like to solve equation with x=a-1*b but when I inverse matrix A . It is bad solution to solve (I use mathematica to solve it)(Attach matrix A in excel file).
I want to know why matrix A is bad solution when I inverse???????
If I want to solve this equation. How i can do?
 

Attachments

Last edited:

Answers and Replies

  • #2
statdad
Homework Helper
1,495
35
Is your matrix a square? If not - no inverse. (Although being square is not itself sufficient for an inverse to exist.)
 
  • #3
2
0
-I use Pseudo method but answer is bad solution
x=(aT*a)-1*B
 
  • #4
statdad
Homework Helper
1,495
35
Okay, for which item are you trying to solve.

your equation was
[tex]
x = a - 1b
[/tex]

That has nothing to do at all with your "solution" - your result doesn't follow from the equation.
 
  • #5
hunt_mat
Homework Helper
1,741
25
Roger Penrose worked on the inverses on non-square matries before relativity.
 
  • #6
33,635
5,294
Okay, for which item are you trying to solve.

your equation was
[tex]
x = a - 1b
[/tex]

That has nothing to do at all with your "solution" - your result doesn't follow from the equation.
I believe the OP meant x = A-1b.

Then he/she revised the above to this: x=(aT*a)-1*B,
which I believe means this: x = (ATA)-1b.
 
  • #7
statdad
Homework Helper
1,495
35
I believe the OP meant x = A-1b.

Then he/she revised the above to this: x=(aT*a)-1*B,
which I believe means this: x = (ATA)-1b.
Aha - good catch. Of course, this means that the original equation is nowhere to be seen, so it remains impossible to see why this approach fails.
 
  • #8
hotvette
Homework Helper
996
5
Need to pay attention to dimension. The matrix A has 35 rows and 20 columns (i.e. 35 x 20) and B has 35 rows (i.e. 35 x 1). ATA is a 20 x 20 matrix and so is (ATA)-1. Multiplying a 35 x 1 matrix by a 20 x 20 matrix isn't valid.

This smells like a least squares problem, which means the solution would be x = (ATA)-1 ATb.
 
  • #9
HallsofIvy
Science Advisor
Homework Helper
41,833
955
Roger Penrose worked on the inverses on non-square matries before relativity.
What in the world do you mean by this? Roger Penrose wasn't born until 26 years after relativity was developed! Do you mean he worked on them before they were used in relativity?
 
  • #10
1,955
252
What in the world do you mean by this? Roger Penrose wasn't born until 26 years after relativity was developed! Do you mean he worked on them before they were used in relativity?
Penrose worked those inverses before he worked on relativity
 

Related Threads on Why this equation can't solve

  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
4
Views
1K
  • Last Post
Replies
5
Views
1K
Replies
5
Views
2K
Replies
5
Views
1K
  • Last Post
Replies
13
Views
2K
Replies
2
Views
1K
  • Last Post
Replies
4
Views
1K
  • Last Post
Replies
8
Views
2K
Replies
3
Views
2K
Top