How to calculate the gradient of $f(x)=x^TAx+b^Tx$ when $A$ is symmetric and when $A$ is not symmetric?
I will have confirmation if the computation of the gradient of $f$ when $A$ is a square matrix of size $n \times n$ non-symmetric and when $A$ is symmetric.
I begin my proof
$f:R^n \to R$
1) A is no symmetric:
It is already noted that : $f(x)=a^TAx=x^TA^Tx$ because $a^TAx$ is a scalar$ So about calculating gradient of $$ and he does that using the concept of exterior derivative.
$f(x+a)=(x+a)^T(x+h)+b^T(x+h)$
$x^TAx+a^Ax+x^Aa+a^TAa+B^Tx+B^Th$
$f(x)+x^T(A+A^T)a+a^T+B^Tx+B^Th$
$∇f(x)a=(A+A^T+B^T)x+B^Th$
2) A is symmetric so $A^T=A$
$∇f(x)a=$2Ax
It would be great if someone could help me solve the problems I will be very thankful
Also , I will also have another question in both cases the staging for a decadent gradient and quasi newton algorithm, thank you
Paul-henri