Give examples of matrices

A and B such that AB ≠ BA.

We need to find matrices A and B such that AB ≠ BA.


Let and.


First, we will find AB.






Now, we will find BA.






Thus, AB ≠ BA when and.


65