Shortly, the LQR problem says that: for $\begin{cases} x'=Ax+Bu \\ x(t_0)=x_0\end{cases}$ find:
$$\min_{u\in L^2(t_0,T; \mathbb{R}^m)} J(u)=\frac{1}{2}\left\{\int_{t_0}^T x^TQx+u^TRu+2x^TNu\ dt + x(T)^TPx(T)\right\}$$
where $Q,P$ are positive semi-definite matrices and $R$ is positive definite.
I know that there is an entire theory of finding the optimal control $u^*$ (see https://en.wikipedia.org/wiki/Linear%E2%80%93quadratic_regulator or http://www.joinville.udesc.br/portal/professores/marianasantos/materiais/lqrnotes_Regra_de_Bryson.pdf)
Why is so important that the matrices $Q,P,R$ be positive definite like I mentioned before? I know that there is a scalar product induced by this type of matrices, but is this so important?