2

Is it possible for function $f : \mathbb{R} \to \mathbb{R}$ have a maximum at every point in a countable dense subset of its domain ? The motivation for this question is I have a sequence of functions $\{f_n\}$ where the number of maxima increases with $n$ and I am interested to know what happens to the sequence of functions.

PS : every function of the sequence has a finite number of maxima.

EDIT : $f$ should not be constant function.

bof
  • 78,265
Rajesh D
  • 4,247

2 Answers2

4

Thomae's function has a strict local maximum at each rational number.

I believe the Weierstrass function is another example.


Another question on this site posed the problem of showing that if $f$ is continuous and not monotone on any interval, then $f$ has a local maximum at each point in a dense subset of $\mathbb{R}$.

Jonas Meyer
  • 53,602
3

Sample paths of Brownian motion have this property (with probability $1$), see here.

Shai Covo
  • 24,077