I have that $$f(\vec{x},\vec{y}) = \vec{x}^T A \vec{x}$$
I have seen the result online that $$\nabla f = \frac{1}{2} (A+A^T) \vec{x}$$ yet I can't understand why this is the case. How do you get from one on the top to the bottom?
The thing I am actually trying to figure out is why we can go from (if $A$ is symmetric)
$$f(\vec{x},\vec{y}) = \begin{bmatrix} \vec{x} \\ \vec{y} \end{bmatrix}^T A \begin{bmatrix} \vec{x} \\ \vec{y} \end{bmatrix}$$ $$f(\vec{x},\vec{y}) = \begin{bmatrix} \vec{x} \\ \vec{y} \end{bmatrix}^T \frac{1}{2} (A+A^T) \begin{bmatrix} \vec{x} \\ \vec{y} \end{bmatrix}$$
To
$$\nabla f = \frac{1}{2}(A+A^T) \begin{bmatrix} \vec{x} \\ \vec{y} \end{bmatrix}$$
Then apparently the Hessian is as follows:
$$H = \frac{1}{2} (A + A^T) = A$$
Could someone help me to understand?
Let $A=\left[\begin{array}{} a & b\\ c& d\end{array}\right]$, then $$ f(x,y)=ax^2+(b+c)xy+dy^2 $$ $$ \nabla f=\left[\begin{array}{} 2ax+(b+c)y \\ (b+c)x+2dy\end{array}\right]= \left[\begin{array}{} 2a & b+c \\ b+c & 2d\end{array}\right]\cdot \left[\begin{array}{} x \\ y\end{array}\right]= (A+A^T)\cdot \left[\begin{array}{} x \\ y\end{array}\right]. $$ Why there is $\frac12$ in your result?