Consider the following cost function
$$ E[f] = \int_{\mathbb{R^N}} \sum_{|\alpha| = 2} \binom{2}{\alpha} |D^{\alpha}f|^2 dx_1 \dots dx_n $$
here $\alpha$ is a multi-index and $D^{\alpha}f$ denotes the derivatives with give multi-indices I am trying to find $f$ such that $E[f]=0$, since the integrand is sum of positive contribution then $E[f] = 0$ iff
$$ \left\{ \begin{array}{ll} \frac{\partial^2 f}{\partial x_i^2} = 0 & i =1,\dots,n \\ \frac{\partial^2 f}{\partial x_i \partial x_j} = 0 & i = 1,\dots,n, \;\; j = i+1, \dots n \end{array} \right. $$
I am a bit confused on how to solve this system, but I know the final result should be
$$ f(x_1,\ldots,x_n) = b + a_1x_1 + \dots + a_n x_n $$
Maybe is very trivial but I get confused on how to carry with the calculations. Can you help?