Assume that the quadratic function $f : {\Bbb R}^n \to {\Bbb R}$ is given by $$ f(x) = \frac12 x^T P x + q^T x + r$$ Calculate the Hessian of $f$.
Actually, I don't know how to apply Hessian on $f$ because Hessian requires 2nd order differentials and I don't know how to apply 2nd order differential on $f$.