A matrix is diagonal if

In other words, you want non-zero elements only when the indices of the row and the column are the same: the first element of the first row must be non zero, the second element of the second row must be non-zero, and so on. All other elements must be zero.
I think that there are 4 termms if we condider onlu plus and minus as operators.
Sure! but unfortunately the picture is blank. not sure if it’s just my screen
The answer is 29, I just didn’t on my head right now.