While reviewing this answer to the question which was asked before, I caught an error in my mind based on what I learnt so far. Here is the answer:
It is true. We have: $$(x+y)^TA(x+y) = 0 \implies x^TAx + y^TAx + x^TAy + y^TAy = 0.$$But $x^TAx = y^TAy = 0$, so we have: $$x^TAy = -y^TAx.$$Take $x = e_i$ and $y = e_j$ to get $a_{ij} = -a_{ji}$.
My concern is about this part:
Take $x = e_i$ and $y = e_j$ to get $a_{ij} = -a_{ji}$
My question is, isn't this a particular example? I mean we said $x^TAx=0$ and it is true for all $x$, so in one sub-solution (which is $x=e_i$ and $y=e_j$), we said $a_{ij} = -a_{ji}$ how about if for other $x$ and $y$ vectors this not happen? I mean if there is a $x$ and $y$ for example which results in $a_{ij} = 2a_{ji}$?
Given $ x^t A x = 0 $ for all vectors x, let's consider the vectors $x$ and $ y $:
$$ (x + y)^t A (x + y) = x^t A x + x^t A y + y^t A x + y^t A y $$
Given our initial condition, $( x^t A x = 0 $) and $( y^t A y = 0 $), the equation becomes:
$$ x^t A y + y^t A x = 0 $$
Since this is true for all vectors $x$ and $y$, we have:
$$ x^t A y = -y^t A x $$Since $y^tAx$ is scalar , it is equal to its transpose i.e $x^tAy$ , so this implies $$ x^t A y = x^t (-A^t) y $$ implies$$ x^t (A + A^t) y = 0 $$
For the expression $ x^t (A + A^t) y $ to be zero for all $x $ and $y$, we claim that the matrix $( A + A^t $) must be the zero matrix i.e
$$\forall x,y~~;x^t (A + A^t) y=0 \Rightarrow A+A^t=0$$ I will prove this by contradiction, i.e. $$if~ A+A^t\neq0 \Rightarrow \exists x,y~~ ;~~x^t (A + A^t) y \neq 0 $$
when $A+A^t \neq 0$ this means there exists at least one non zero element in it . For that we can choose $x$ as $e_i$ and $y$ as $e_j$ such that $(i,j)$ = coordinates of that non zero element and so $e_i^t(A+A^t)e_j = (A+A^t)_{ij}\neq 0$
So $$ A + A^t = 0 $$ $$A=-A^t$$