Whether the quadratic coefficient is equal to zero.
The quadratic coefficient is positive and the opening is upward.
The quadratic coefficient is negative and the opening is downward.
Summarize the three situations, choose according to the preconditions, and finally get the correct answer.
I hope I can help you and wish you progress in your studies.