If A is square matrix such that A2=I, then find the simplified value of (A−I)3+(A+I)3−7A
If A is a square matrix such that A2=A, then write the value of 7A−(1+A)3, where I is an identify matrix.