$f(x) = \frac{x^\textrm{T}Ax} {x^\textrm{T}x}$, where $A$ is a symmetric $n \times n$ matrix and $x \neq 0$. I need to prove that if $H=H(f)(v)$, where $H(f)(v)$ is the Hessian of function $f$ evaluated for vector $v$, $v^\textrm{T}Hv=0$ for any $v$.
I have already proved that:
(a) $\frac{df}{dx}=0$ iff $x$ is an eigenvector of $A$;
(b) $f(cx) = f(x)$ for $c \in R$;
(c) $\lambda_\min \leq f \leq \lambda_\max$ where $\lambda_\max$ and $\lambda_\min$ are the maximal and minimal eigenvalues of $A$.
The hint to the question states the following: “ Hint: do not attempt to calculate the Hessian directly: the algebra is very messy. Use the intuition gave by (b), that a certain function is constant.”
Let $v_1,v_2,\cdots, v_n$ be a basis of $R^n$ such that they are eigenvectors of $A$. By (a), $$ \nabla f(x)v_i=\frac{\partial f(x)}{\partial v_i}=0, \forall x\in R^n. $$ So \begin{eqnarray} v_j^TH(f)v_i=H(f)(v_i,v_j)=\lim_{t\to0}\frac{\nabla f(x+tv_i)(v_j)-\nabla f(x)(v_j)}{t}=0. \end{eqnarray} Hence for $\forall v\in R^n$, $v=\sum_{i=1}^nc_iv_i$, one has $$ vH(f)v=\sum_{i,j=1}^nc_ic_jv_j^HH(f)v_i=0. $$