How to turn an arbitrary function periodic?

891 Views Asked by At

If you are given any arbitrary function f(x), how is it possible to make it circular with a period of n, writing the function explicitly?

The function would be: $$f(x_{2\space periodic})= \begin{equation} \begin{cases} &f(x), x<n\\ &f(x-n),n<x<2n\\ &f(x-2n), 2n< x < 3n\\ &... \end{cases} \end{equation} $$

But to write it explicitly in terms of x is a bit more difficult. Using the Fourier Transform would work, but is not something I want to employ (for one given that I am working on a computer problem). Are there any simple ways to make function repeat itself, especially if the domain is limited?

2

There are 2 best solutions below

0
On BEST ANSWER

Let $D$ be the domain of $f.$ Assuming that $D$ is bounded and not empty, let $c=\inf D$ and $d=\sup D.$ Let $n>d-c.$ First extend the domain to the interval $[c,c+n)$ by assigning an arbitrary value (e.g. $0$) to $f(x)$ for any $x\in [c,c+n)$ \ $D.$

Let $[x]$ denote the largest integer not exceeding $x.$ For any $x$ let $x'=x-n [(x-c)/n].$ Then $x'\in [c,c+n)$ and $(x'-x)/n\in \mathbb Z.$ So let $f(x)=f(x').$

1
On

Suppose a function $f$ is defined on an interval $[a,b)$ and we want it to create a periodic version of this function $f_p$ that loops over the values of the function on $[a,b)$. Define $f_p(x) = f(x)$ for $x \in [a,b)$ and recursively define $f_p(x) = f_p(x-(b-a))$. So for example, at $x=b$, we expect to get the value of $f$ at $a$ and $$f_p(b) = f_p(b-(b-a)) =f_p(a) =f(a).$$