Linear theories, hidden variables and integrable nonlinear equations