I am asked to show that $A ^3$ is congruent to $A$ for all symmetric real matrices $A$.
If $A$ is invertible, then -
$A^3 = A * A * A = A ^t * (A) * A$
and they are congruent by definition, because $A$ is non-singular and symmetric as stated.
I am stuck on the case where $A$ is singular, and I believe I shouldn't make that distinction of cases from the first place.
Thanks for any suggestions.
Since $A$ is a symmetric matrix, there exists an orthogonal matrix $P$ such that $P^TAP$- say $D$- is a diagonal matrix. We can assume WLOG that $$D=\begin{pmatrix} D_* &0\\0&0\end{pmatrix}$$ where $D_*$ is a diagonal invertible square matrix of order $k=\mathrm{rank}(A)$. We have$$A^3=(PDP^T)^3=PD^3P^T=P\begin{pmatrix} D_*^3 &0\\0&0\end{pmatrix}P^T=P\begin{pmatrix} D_* &0\\0&I\end{pmatrix}\begin{pmatrix} D_* &0\\0&0\end{pmatrix}\begin{pmatrix} D_* &0\\0&I\end{pmatrix}P^T=P\begin{pmatrix} D_* &0\\0&I\end{pmatrix}P^TPDP^TP\begin{pmatrix} D_* &0\\0&I\end{pmatrix}P^T=P\begin{pmatrix} D_* &0\\0&I\end{pmatrix}P^TAP\begin{pmatrix} D_* &0\\0&I\end{pmatrix}P^T=QAQ$$ Since $Q$ is a symmetric invertible matrix, we are done!