Question: can endpoints be local extrema?
Answer: Endpoints as Local Extrema The definition can be extended to include endpoints of intervals. A function f has a local maximum or local minimum at an endpoint c of its domain if the appropriate inequality holds for all x in some half-open interval contained in the domain and having c as its one endpoint.