I am trying to come up with an example of a function $f:[0,1]\to\mathbb{R}$, that has a local maximum which is not a global maximum.
The picture in my mind looks like this:
what would be a function that has a local maximum which is not a global maximum?
Thank you