In class we defined the following inner product:
Let $A\in M_n(\mathbb{R})$, and let $\langle \cdot,\cdot \rangle :\mathbb{R}^n \times \mathbb{R}^n \to \mathbb{R}^n$ be defined as:
$$\langle x,y\rangle=x^TAy.$$
Now, I need to prove that the inner product is symmetric iff $A=A^{T}$.
Proof:
First direction:
If $A=A^{T}$, then $\langle Ax,y \rangle = \langle x,Ay \rangle$
$$\langle Ax,y \rangle =(Ax)^TAy=x^TA^TAy=x^TAAy=\langle x,Ay\rangle$$
The other direction:
Suppose that $\langle Ax,y \rangle = \langle x,Ay \rangle$, we want to show that $A=A^{T}$.
Here I chose to look at $x=e_i$ and $y=e_j$, standard basis vectors of $\mathbb{R}^n$.
I asked myself, what is $Ax$?
$Ax$ is column $i$ of $A$, hence $$\langle Ax,y \rangle=(\text{row $i$ of $A$})Ae_j$$
Which is equals to:
$$(\text{row $i$ of $A$})(\text{column $j$ of $A$})$$
Similarly,
$$\langle x,Ay \rangle =(\text{row $j$ of $A$})(\text{column $i$ of $A$})$$
Here I stopped.
Is my way correct so far? If so, how can I proceed?
Thank you very much.