Is being "stationary" also an example of a "periodic motion"? I read an idea in mathematics about periodic functions that a constant function is also a periodic function with an undefinable period.
So , suppose a body is at rest (for an observer). This means that it's position doesn't change with time for that observer. So everytime the observer sees the body, it is at its initial position.
So can we say that the body is in a periodic motion with an undefinable period ?
 A: A function $f(t)$ is said to be periodic with period $T$ if the following holds for all $t$:
$$ f(t)=f(t+T). $$
As such, the constant function is clearly periodic and every real number is a period. However, it is common to define 'the period' of a function to be the smallest real number that is a period. For example the function:
$$f(t)=\sin 2t $$
is periodic with period $2\pi$, but it is also periodic with period $\pi$. As such whilst you might strictly say "$2\pi$ is a period" if you asked for 'the period', you'd find the answer "$\pi$".
But since every number is the period of the constant function, and there is no smallest positive real number, we arrive at a contradiction and there is thus no single period. This is the source of the tension that "the constant function is periodic, but its period is undefined".

However, this is really a purely terminological issue. In any given case, if you have a theorem relating to period functions (eg maybe you know that in a periodic potential, the solutions to the time-independent Schroedinger equation are governed by Bloch's thoerem) then the constant case is probably a much easier special case that you can solve independently. You will probably find that the constant function does satisfy most theorems about periodic functions but you may need to be careful on occasion.
NB As User SolomonSlow points out, a better terminology is to distinguish between "a period" and "the fundamental period". However it appears that the OP is specifically quoting a text where the word "fundamental" does not appear, which I would say is somewhat common.
A: You can say what you like, depending on how you define your terms. For example, you can say that a body at rest is "in motion" with speed $v=0$, but in most circumstances this would not be a helpful use of terminology. The phrase "in motion" is ordinarily used to explicitly indicate that the body's state of motion is other than "at rest". That means its motion is such that its location at a given moment is not the same as its location at at least some other times.
In mathematics, to say that a function is periodic is to say something purely about that function. One would say, for example, that if, for all $x$,
$$
f(x + L) = f(x)
$$
then the function $f(x)$ is periodic, and if $L$ is the smallest number for which this is true, then $L$ is the period. So this leads to the idea of a flat function being "periodic" in this sense.
However when we talk about periodic motion we ordinarily mean both that the body is moving and that the motion is periodic. So if $y(t)$ is the position of the body at time $t$, then for periodic motion we require both that for all $y$,
$$
y(t + T) = y(t)
$$
and that there is some $\tau$ such that
$$
y(t + \tau) \ne y(t).
$$
A: I don't know what a mathematician would say, but as a physicist I would not see any value in describing a body at rest as being in periodic motion with an undefinable period. Motion implies displacement over time- if the body is never displaced then it is never in motion. You might say that a body at rest is in motion at zero speed, but I cannot see why that would be of any practical help.
A: As a specific example of periodic motion, an object oscillating under harmonic motion will satisfy the differential equation (assuming a one-dimensional problem)
$$\frac{d^2x}{dt^2}+Ax=0.$$
A solution of this could be in the form
$$x=a\sin(\omega t),$$
where $A=a\omega^2$. We could define a stationary object to be in the limit where the frequency or amplitude vanishes i.e. $\omega\rightarrow0$ or $a\rightarrow0$. In this sense, the stationary object could have a well-defined period with a vanishing amplitude or a well-defined amplitude with an infinitely long period.
