# power of square matrices

I have two square matrices $X$ and $Y$. Given :$X = I - XY$ and $Y^3 = 0$ how can I show that $X = I - Y + Y^2$ I tried raising to the power of $3$ both sides of the first equation but it didn't help much.

• Write $X(I+Y)=I$, and $I=I-Y^3=\cdots$. – Dietrich Burde Nov 17 '17 at 17:04
• Yes, X is invertible and X's inverse is (I + Y) but even if I raise this equation to the power of three it gets me nowhere – eventhorizon02 Nov 17 '17 at 17:06
• so I wrote X(I + Y) = I - Y^3 but then I get to X = I - XY - Y^3 – eventhorizon02 Nov 17 '17 at 17:29
• still not able to prove it, any other clue? – eventhorizon02 Nov 17 '17 at 18:07

We have $(I+Y)(I-Y+Y^2)=I+Y^3=I$, so $(I+Y)^{-1}=I-Y+Y^2$. Now $X(I+Y)=I$, so $X=(I+Y)^{-1}$.
• For the general formula for the inverse of $I+Y$ see here, or here. – Dietrich Burde Nov 17 '17 at 19:57
$X=1-XY$ gives $XY^2=Y^2-XY^3=Y^2$
Also $X=1-XY$ gives $XY=Y-XY^2=Y-Y^2$
So $X=1-XY= 1-Y+Y^2$