The definition(wiki): A real-valued function $f$ defined on a domain $X$ has a global (or absolute) maximum point at $x∗$, if $f(x∗) \geq f(x)$ for all $x$ in $X$.
My question is can there be more than one global maximum(or minimum) of a function?
The definition does not suggest that there is only 1 global maximum(or minimum). Example: let $f(x) = x^2$ on the domain $X = [-2,2]$, thus the global maximum is $f(-2) = 4 = f(2)$ as by definition $f(-2) = f(2) \geq f(x) \ \forall x\in X$, thus we have 2 global maiximums.
I tried to confirm this but there are so many sorces saying that there can only be one: Example1, Example2.
Am I misunderstanding something? I would appreciate any insight you can offer.