Compute Gradient and Hessian of following function

80 Views Asked by At

can anyone help me and give me directions to compute the gradient and the hessian matrix of this function : $$f:\mathbb{R^n}\to\mathbb{R^+}$$ $$f(x)=\|Ax-(x^TAx)x\|.$$ Thank you