Synthesis of an optimal control for a LQ problem given by a solution of the Riccati differential equation in non-reflexive spaces. Examples of delay equations and population dynamics.