2
$\begingroup$

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.

  • 0
    The word *maxima* is the **plural** of *maximum*. Maxima = maximums.2014-05-13

2 Answers 2

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}$.

  • 1
    @Rajesh: The Weierstrass function is a uniform limit of smooth functions.2011-06-03
3

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

  • 0
    See the third item in that subsection (Qualitative properties).2011-06-03