A manipulative matrix question

  • Thread starter Thread starter Raghav Gupta
  • Start date Start date
  • Tags Tags
    Matrix
AI Thread Summary
The discussion revolves around the properties of two matrices A and B, where it is established that AB = A and BA = B. Participants explore the implications of these equations to determine the value of B², with various approaches leading to the conclusion that B² = B. There is debate about whether matrix A has an inverse, as the problem does not specify this, which affects the validity of certain manipulations. The associative property of matrix multiplication is confirmed, aiding in the derivation of results. Ultimately, the consensus is that B² = B, highlighting the simplicity of the solution based on the initial conditions.
Raghav Gupta
Messages
1,010
Reaction score
76

Homework Statement



If A and B are 2 matrices such that AB = A and BA =B, then B2 is equal to
B
A
Zero matrix
I

Homework Equations


We can pre or post multiply a matrix on both sides of equation.

The Attempt at a Solution


(AB).(BA) = A.B
AB2A = A.B
Pre multiply both sides by A-1
We get B2A = AB
Implies B2AB = AB as (A = AB)
Post multiplying by B-1 and A we get B2 = I

Is this correct?
 
Physics news on Phys.org
Raghav Gupta said:

Homework Statement



If A and B are 2 matrices such that AB = A and BA =B, then B2 is equal to
B
A
Zero matrix
I

Homework Equations


We can pre or post multiply a matrix on both sides of equation.

The Attempt at a Solution


(AB).(BA) = A.B
AB2A = A.B
Pre multiply both sides by A-1
We get B2A = AB
Shouldn't that last equation be as follows?

B2A = B

By the way: Are you certain that matrix, A, has an inverse?
Implies B2AB = AB as (A = AB)
Post multiplying by B-1 and A we get B2 = I

Is this correct?
Are you certain that matrix, A, has an inverse?
 
I don't see anything in the problem that says that either matrix is invertible, so there's no justification for assuming that A-1 exists.

I found it helpful to start with B2 and work with that.
 
Maybe it was a trick question - nothing involving inverse matrices. Both A and B could be identity matrices. This would satisfy the problem statement in the strictest sense.
 
Mark44 said:
I found it helpful to start with B2 and work with that.
I started with A2 .
 
SammyS said:
I started with A2 .
That seems the long way around if the goal it to find B2, but then I don't know what you did.
 
Mark44 said:
That seems the long way around if the goal it to find B2, but then I don't know what you did.
Well, I suppose we'll have to see what OP does before we can all compare notes.
 
If you start with ##B^2##,
Then i got A=I.
##B^2=B.B=B.BA=B^2A##
##B^2=B^2A##
A=I satisfies the above equation.
And if i put it on AB=A, then i got B=I.
 
AdityaDev said:
If you start with ##B^2##,
Then i got A=I.
##B^2=B.B=B.BA=B^2A##
##B^2=B^2A##
A=I satisfies the above equation.
And if i put it on AB=A, then i got B=I.
While I satisfied that equation, it's not necessary that A = I .
 
  • #10
AdityaDev said:
If you start with ##B^2##,
Then i got A=I.
##B^2=B.B=B.BA=B^2A##
##B^2=B^2A##
A=I satisfies the above equation.
And if i put it on AB=A, then i got B=I.
As Sammy said, B isn't necessarily I. Here's a counterexample, using your assumption that A = I.
$$B = \begin{bmatrix} 1 & 0 \\ 0 & 0\end{bmatrix}$$
This matrix satisfies B2 = B2A = B2I, yet ##B \neq I##.
 
  • #11
SammyS said:
Shouldn't that last equation be as follows?

B2A = B (Yes, sorry )

By the way: Are you certain that matrix, A, has an inverse? (No)

Are you certain that matrix, A, has an inverse? (No, as Mark44 10th post example proves that matrix B has determinant=0)
So,
I started with B2 ,

## B^2 = B.B = (BA).(BA) = B(AB)A = (BA)A= BA=B ## Is multiplication of matrices associative which I am doing here?

Starting with A2.
Following the above similar pattern , I get A2= A.
How did you Sammy get B2 value by starting from A2?
 
  • #12
Raghav Gupta said:
So,
I started with B2 ,

## B^2 = B.B = (BA).(BA) = B(AB)A = (BA)A= BA=B ## Is multiplication of matrices associative which I am doing here?

Starting with A2.
Following the above similar pattern , I get A2= A.
How did you Sammy get B2 value by starting from A2?

Yes, multiplication of matrices is certainly associative.
 
  • #13
Dick said:
Yes, multiplication of matrices is certainly associative.
How?
 
  • #16
Raghav Gupta said:
Oh, I was expecting a easy proof for it. I think we have to go in deep for that topic to understand the proof?

It's not deep, you just have to pay attention to the indices. Ignore the ring stuff. Just use that for real numbers (ab)c=a(bc).
 
  • #17
Dick said:
It's not deep, you just have to pay attention to the indices. Ignore the ring stuff. Just use that for real numbers (ab)c=a(bc).
Thanks, got it.
 
  • #18
Raghav Gupta said:
So,
I started with B2 ,

## B^2 = B.B = (BA).(BA) = B(AB)A = (BA)A= BA=B ## Is multiplication of matrices associative which I am doing here?

Starting with A2.
Following the above similar pattern , I get A2= A.
How did you Sammy get B2 value by starting from A2?
Of course, I didn't follow that pattern, but, yes, A2= A.

I start with:
A2 = A2

BAAB = BAAB

((BA)A)B = (BA)(AB)

(BA)B = BA

BB = BAdded in Edit:
Here are two such matrices.
##\displaystyle \left[\begin{matrix} 1 & 1 \\ 0 & 0 \end{matrix}\right]##

##\displaystyle \left[\begin{matrix} 0 & 0 \\ 1 & 1 \end{matrix}\right]##
 
Last edited:
  • #19
SammyS said:
I start with:
A2 = A2

BAAB = BAAB
How you have written A2 = BAAB ?
 
  • #20
Here are two such matrices.
##\displaystyle \left[\begin{matrix} 1 & 1 \\ 0 & 0 \end{matrix}\right]##

##\displaystyle \left[\begin{matrix} 0 & 0 \\ 1 & 1 \end{matrix}\right]##
Raghav Gupta said:
How you have written A2 = BAAB ?
I didn't say that.

I said

BAAB = BAABNow that I look at that, I only needed:

BAB = BAB

(BA)B = B(AB)

BB = BA

B2 = B
 
  • #21
SammyS said:
BAAB = BAABNow that I look at that, I only needed:

BAB = BAB
How you have written A2 = A ?
 
  • #22
Raghav Gupta said:
How you have written A2 = A ?
I didn't use that at all. (I did mention in Post #18 that it is also true.)That post (#20) says, instead of starting with the identity BAAB = BAAB,

I could have started with BAB = BAB .

Either of these equations is obviously true.

You seem to not be following my method of working with these equations.

I manipulate each side of the equation independently.

I could have also done it this way.

BAB = (BA)B
= BB
=B2

BAB = B(AB)
=BA
=B​

Therefore, B2 = B .

Added In Edit:
I left the 2 out of the [ SUP][ /SUP]. DUH !

(Well the little icon has X2, so why no 2 ?) :smile:
 
Last edited:
  • #23
SammyS said:
I was simply stating that similar to B2 = B, it's also true that A2 = A.
I know that already and I have solved it as you can see in my earlier post.
What I am asking is you have told that earlier that you started with A2 and when deriving that value of B2 from A2 you don't know that A2 = A.
So how from A2
BAAB comes?
 
  • #24
SammyS said:
I didn't use that at all. (I did mention in Post #18 that it is also true.)That post (#20) says, instead of starting with the identity BAAB = BAAB,

I could have started with BAB = BAB .

Either of these equations is obviously true.

You seem to not be following my method of working with these equations.

I manipulate each side of the equation independently.

I could have also done it this way.

BAB = (BA)B
= BB
=B2

BAB = B(AB)
=BA
=B​

Therefore, B = B .
I'm pretty sure that you meant Therefore, B2 = B.
 
  • Like
Likes SammyS
  • #25
Raghav Gupta said:
I know that already and I have solved it as you can see in my earlier post.
What I am asking is you have told that earlier that you started with A2 and when deriving that value of B2 from A2 you don't know that A2 = A.
So how from A2
BAAB comes?
I said I started with A2, then I revised that (in the post) to say Instead start with BAAB. (Of course that's BA2B .)

After that, I further made the observation that I might just have well started with BAB .

I don't use A2 = A at all.
 
  • Like
Likes Raghav Gupta
  • #26
Okay, got it.
Thanks to all of you.
Learnt quite a lesson from this question.
 
  • #27
Raghav Gupta said:
Okay, got it.
Thanks to all of you.
Learnt quite a lesson from this question.

The easiest solution of all is to start with AB = A and BA =B, and multiply both sides of the first equation on the left by B, to get B(AB) = BA, or (BA)B = B = B*B because BA=B. That seems to me to be about the simplest solution possible.
 
Last edited by a moderator:
  • Like
Likes Raghav Gupta
  • #28
Thanks to you as well Ray.
 

Similar threads

Replies
69
Views
8K
Replies
5
Views
2K
Replies
2
Views
3K
Replies
2
Views
11K
Back
Top