When the quadratic term and the coefficient of quadratic term are less than 0, the symmetry axis is within the range of independent variables. When the independent variable takes b/-2a, the function value is the largest, and the symmetry axis is within the range of independent variables, so that the function value can be obtained and compared.