Linear Equation Solutions: A Systematic Approach for n1xn2 and n1xm2 Matrices

Click For Summary

Discussion Overview

The discussion revolves around solving the matrix equation A*C=B, where A is an n1xn2 matrix and B is an n1xm2 matrix, with the goal of determining the matrix C, which is n2xm2. Participants explore different methods and considerations for finding C systematically, addressing both specific examples and general cases within linear algebra.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant asks for a systematic method to solve for C given A and B, providing a simple example where A=(1,2)^t and B=(2,4)^t, leading to C=2.
  • Another participant suggests that the solution depends on the dimensions of A and B, indicating that the simplest method involves writing out the components and solving the resulting system of equations.
  • A third participant notes that the i'th column of C only affects the i'th column of B, simplifying the problem to a set of linear equations that may have zero, one, or multiple solutions based on the dimensions and rank of A.
  • A participant presents a method involving the use of the transpose of A and its inverse to derive C, but expresses confusion when the calculated C does not satisfy the original equation A*C=B in a specific example.

Areas of Agreement / Disagreement

Participants express differing views on the method of solving for C, with some proposing specific techniques while others highlight potential pitfalls or conditions under which solutions may not exist. The discussion remains unresolved regarding the effectiveness of the proposed method involving the inverse of A^t.A.

Contextual Notes

Participants mention the importance of the rank of A and the dimensions of the matrices involved, indicating that these factors influence the existence and uniqueness of solutions. There is also mention of potential singularity issues with A^t.A.

phynewb
Messages
13
Reaction score
0
Hi guys

I wonder if you know any linear algebra formalism or something to solve the following question systematically?

Give A,B with A=n1xn2 matrix and B=n1xm2 matrix.
How do we get C=n2xm2 matrix such that A*C=B.
A simple example if A=(1,2)^t, B=(2,4)^t, then C=2

The question is how to solve C given A and B.
Thanks
 
Physics news on Phys.org
That depends upon how many dimensions A and B have. In the example you give the simplest method is the write out the components and solve the resulting system of equations. Since A is "1 by 2" and B is "2 by 1", C must be a 1 by 1 matrix (a single number) and AC= B becomes
\begin{bmatrix}1 \\ 2\end{bmatrix}\begin{bmatrix}c\end{bmatrix}= \begin{bmatrix}c \\ 2c\end{bmatrix}= \begin{bmatrix}2 \\ 4\end{bmatrix}
which gives the two equations c= 2 and 2c= 4 so that c= 2. Of course, if B has NOT been a simple multiple of A, there would not have been any solution.
 
If you think about how matrix multiplication AC is defined, the i'th column of C only affects the i'th column of B.

So you only need to consider the simpler problem where C and B are vectors.

This is just a set of linear equations, which may have zero, one, or more than one solution depending on the row and column dimensions of A and the rank of A. The details should be covered in any course on linear algebra, or numerical methods for solving linear equations.
 
Thanks AlephZero and HallsofIvy.

I guess the example is too simple.
I like to consider the general case.
Here is the way I solve it.
Want to solve C with AC=B.
Multiply A^t on both sides A^t.A.C=A^t.B
Now A^t.A^t is a square matrix so I can calculate its inverse (if it is not singular)
Then I get C=(A^t.A)^-1.A^t.B (1)

However if I calculate C in this way, something goes wrong!
For example,
Say A=[1,2]^t, B=[[1,0,2],[2,1,0]]
By(1) C=1/5[5,2,2]
But A.C=1/5[[5,2,2],[10,4,4]]\=B.
So I wonder what is wrong with (1).
Why does (1) get correct C such that A.C=B?
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 19 ·
Replies
19
Views
4K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 4 ·
Replies
4
Views
3K