Why can the second derivative determine the extremum

Why can the second derivative determine the extremum

Note that the following judgments are based on the fact that the original function and its derivatives of any order are continuous functions