MHB Is This Matrix Idempotent?

  • Thread starter Thread starter mathmari
  • Start date Start date
  • Tags Tags
    Matrix
mathmari
Gold Member
MHB
Messages
4,984
Reaction score
7
Hey! :o

We have that a matrix $A$ is idempotent if it holds that $A^2=A$.

We suppose that $X$ is a $m\times n$-matrix and that $(X^TX)^{-1}$ exists.

I want to show that $A=I_m-X(X^TX)^{-1}X^T$ is idempotent. I have done the following:

$$A^2 =A\cdot A=(I_m-X(X^TX)^{-1}X^T)\cdot (I_m-X(X^TX)^{-1}X^T) \\ =I_m(I_m-X(X^TX)^{-1}X^T)-X(X^TX)^{-1}X^T(I_m-X(X^TX)^{-1}X^T) \\ =I_mI_m-I_mX(X^TX)^{-1}X^T-X(X^TX)^{-1}X^TI_m+(X(X^TX)^{-1}X^T)(X(X^TX)^{-1}X^T) \\ =I_m-X(X^TX)^{-1}X^T-X(X^TX)^{-1}X^T+X(X^TX)^{-1}(X^TX)(X^TX)^{-1}X^T \\ =I_m-2X(X^TX)^{-1}X^T+XI_n(X^TX)^{-1}X^T \\ =I_m-2X(X^TX)^{-1}X^T+X(X^TX)^{-1}X^T \\ =I_m-X(X^TX)^{-1}X^T =A$$

Is this correct? (Wondering)

Is the step from the $3$th to the $4$th line correct? Or doesn't it hold that $(X(X^TX)^{-1}X^T)(X(X^TX)^{-1}X^T)=X(X^TX)^{-1}(X^TX)(X^TX)^{-1}X^T$ ? (Wondering)
 
Physics news on Phys.org
mathmari said:
Hey! :o

We have that a matrix $A$ is idempotent if it holds that $A^2=A$.

We suppose that $X$ is a $m\times n$-matrix and that $(X^TX)^{-1}$ exists.

I want to show that $A=I_m-X(X^TX)^{-1}X^T$ is idempotent. I have done the following:

$$A^2 =A\cdot A=(I_m-X(X^TX)^{-1}X^T)\cdot (I_m-X(X^TX)^{-1}X^T) \\ =I_m(I_m-X(X^TX)^{-1}X^T)-X(X^TX)^{-1}X^T(I_m-X(X^TX)^{-1}X^T) \\ =I_mI_m-I_mX(X^TX)^{-1}X^T-X(X^TX)^{-1}X^TI_m+(X(X^TX)^{-1}X^T)(X(X^TX)^{-1}X^T) \\ =I_m-X(X^TX)^{-1}X^T-X(X^TX)^{-1}X^T+X(X^TX)^{-1}(X^TX)(X^TX)^{-1}X^T \\ =I_m-2X(X^TX)^{-1}X^T+XI_n(X^TX)^{-1}X^T \\ =I_m-2X(X^TX)^{-1}X^T+X(X^TX)^{-1}X^T \\ =I_m-X(X^TX)^{-1}X^T =A$$

Is this correct? (Wondering)

Is the step from the $3$th to the $4$th line correct? Or doesn't it hold that $(X(X^TX)^{-1}X^T)(X(X^TX)^{-1}X^T)=X(X^TX)^{-1}(X^TX)(X^TX)^{-1}X^T$ ? (Wondering)
Your solution is correct. The associative property of multiplication $A(BC) = (AB)C$ extends to any choice of bracketing in longer expressions. For example $(AB)((CD)E) = A((BC)(DE)).$ The proof of this "general associative law" is messy but not particularly hard or interesting, and consists essentially of using induction to show that any bracketing gives the same result as the standard bracketing where the operations are performed in sequence from left to right, like $(((AB)C)D)E$.
 
Opalg said:
Your solution is correct. The associative property of multiplication $A(BC) = (AB)C$ extends to any choice of bracketing in longer expressions. For example $(AB)((CD)E) = A((BC)(DE)).$ The proof of this "general associative law" is messy but not particularly hard or interesting, and consists essentially of using induction to show that any bracketing gives the same result as the standard bracketing where the operations are performed in sequence from left to right, like $(((AB)C)D)E$.

Ah ok... Thanks a lot! (Happy)
 
Thread 'How to define a vector field?'
Hello! In one book I saw that function ##V## of 3 variables ##V_x, V_y, V_z## (vector field in 3D) can be decomposed in a Taylor series without higher-order terms (partial derivative of second power and higher) at point ##(0,0,0)## such way: I think so: higher-order terms can be neglected because partial derivative of second power and higher are equal to 0. Is this true? And how to define vector field correctly for this case? (In the book I found nothing and my attempt was wrong...

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
4K
Replies
10
Views
3K
  • · Replies 19 ·
Replies
19
Views
4K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 5 ·
Replies
5
Views
1K
Replies
3
Views
2K
  • · Replies 26 ·
Replies
26
Views
688