# Prove idempotent and invertible [duplicate]

A square matrix $A$ is idempotent if $A^2 = A.$

Prove that if $A$ is an $n\times n$ matrix that is idempotent and invertible, then $A$ is the identity.

How do i prove this?

## marked as duplicate by rschwieb, Leucippus, Pragabhava, Chris Godsil, user228113 Jan 27 '16 at 0:18

• what have you tried? You have the equation $A^2=A$, you know that $A^{-1}$ exists, how can use that? – Ofir Schnabel Aug 20 '15 at 10:31
• You could always multiply both sides of the equation by $A^{-1}$ – Omnomnomnom Aug 20 '15 at 13:22
We have $$I = A A^{-1} \overset{(*)}{=} A^2 A^{-1} = A (A A^{-1})=A I =A,$$ where we used in $(*)$ that we have $A=A^2$.
• @shive The question was to show $A=I$. I showed $I=A$ using multiple times the transitivity of the equality relation. The last step which I want you to do is using the symmetry of the equality relation to conclude $A=I$. – principal-ideal-domain Aug 20 '15 at 10:53