and finally find the second derivative of this function with respect to the vector \boldsymbol{s}. If we replace the vector \boldsymbol{s} with the unknown parameters \boldsymbol{\beta} used to define the ordinary least squares method, we end up with the equations that determine these parameters. The matrix \boldsymbol{A} is then the design matrix \boldsymbol{X} and \boldsymbol{x} here has to be replaced with the outputs \boldsymbol{y}.
The second derivative of the mean squared error is then proportional to the so-called Hessian matrix \boldsymbol{H}=\boldsymbol{X}^T\boldsymbol{X}.
Hint: In these exercises it is always useful to write out with summation indices the various quantities. Take also a look at the weekly slides from week 35 and the various examples included there.
As an example, consider the function