# Homework Help: Commutative matrices

1. Mar 23, 2008

### Theofilius

1. The problem statement, all variables and given/known data

Proof that if two matrices A and B are commutative, BA=AB, then the equations:

a) $$(A+B)^2 = A^2 + 2AB + B^2$$ ; b)$$(A+B)^3=A^3+3A^2B+3AB^2+B^3$$

are true.

2. Relevant equations

3. The attempt at a solution

Last edited: Mar 23, 2008
2. Mar 23, 2008

### cristo

Staff Emeritus
Have you tried anything? What do you get if you explicitly expand out the brackets in each case? What happens in the case of A and B commuting?

3. Mar 23, 2008

### Theofilius

I don't know what do you mean?

4. Mar 23, 2008

### cristo

Staff Emeritus
What do you get when you multiply out (A+B)(A+B), where A and B are matrices?

5. Mar 23, 2008

### Theofilius

I get
$$(A+B)(A+B)=A^2+AB+BA+B^2$$

6. Mar 23, 2008

### cristo

Staff Emeritus
Good, now can you simplify this in the case that A and B commute?

7. Mar 23, 2008

### Theofilius

$$(A+B)^2=(A+B)(A+B)=A^2+AB+BA+B^2=A^2+2AB (or 2BA) + B^2$$

like this?

8. Mar 23, 2008

### cristo

Staff Emeritus
Correct!

Now, try applying similar techniques to the second question.

9. Mar 23, 2008

### Theofilius

$$(A+B)^3=(A+B)(A+B)(A+B)=(A^2+2AB+B^2)(A+B)=A^3+A^2B+2A^2B+2AB^2+B^2A+B^3=A^3+A*AB+2A*AB+2 AB*B+B*BA+B^3$$
$$=A^3+3A^2B+3AB^2+B^3$$

Something like this?

Last edited: Mar 23, 2008
10. Mar 24, 2008

### BrendanH

*Applause*

Huzza, well done!