Question is whether the following statement is true or false?
if the quadratic form $X^T AX$ has no cross product terms then $A$ is diagonal matrix.
I know that, if A is diagonal matrix then quadratic form has no cross product terms! But what if the quadratic form has no cross product terms? Is A will be diagonal matrix?
If there are no cross product terms in quadratic form then all off diagonal entries of matrix are zeros. So A will be diagonal. But in key it is given that, answer is false! That is $A$ is not diagonal! Please explain? and if possible please give me an examples.