[Math] can local maximums and minimums be on endpoints

calculus

My textbook has these passages written and I'm a bit confused as to whether local maximums and minimums can be on endpoints. why or why not?

enter image description here

Apparently x=4 is not a local maximum. But why?

Other passages:

enter image description here

Best Answer

can local maximums and minimums be on endpoints?

Not according to the definition in your second scanned image.

Apparently $x=4$ is not a local maximum. But why?

Short answer: because the "near $c$" language in the definition means "near $c$" on both sides of $c$.

Longer answer: According to the definition in the red box of your second scanned image,

the number $f(c)$ is a local maximum value of $f$ if $f(c) \geq f(x)$ when $x$ is near $c$

where "near $c$" means

on some open interval containing $c$.

However, for the function $f$ whose graph is plotted in Figure 7, every open interval containing $4$ will contain some values $x > 4$, for which $f(x)$ is not defined. (The domain of $f$ was given to be the closed interval $[-1, 4]$.) So, it's not possible to have $f(4) \geq f(x)$ for every $x$ in some open interval containing $4$.

The discussion above addresses the definition of local maximum, but the definition for local minimum is analogous and has the same issue.

Related Question