Title: A variational formula for the principal eigenvalue for nonlinear semigroup associated with maximizing operator and its applications