If a periodic function is written as linear combination of 2 functions then must they also be periodic?

49 Views Asked by At

Given a non constant periodic function with period $T$, say $f(x)$. Also given that $f(x)$ can be written as a linear combination of 2 independent functions as $$f(x) = a \, g(x) + b \, h(x),$$ where $a$ and $b$ are real constants.

Then my question is that does this imply that $g$ and $h$ are also periodic functions with period $T$ (not necessarily fundamental)??

Intuitively it seems true. But not sure how.

2

There are 2 best solutions below

0
On

Consider something like

$$g(x)= \begin{cases} \sin x\text{,}&\text{if $x\notin\Bbb Q$,}\\ 0\text{,}&\text{if otherwise.} \end{cases} \quad\text{and}\quad h(x)= \begin{cases} \sin x\text{,}&\text{if $x\in\Bbb Q$,}\\ 0\text{,}&\text{if otherwise.} \end{cases} $$

0
On

As long as $ a $ and $ b $ are both non-zero, you can let $ g $ be any non-periodic function, and let $ h $ be $ \frac 1 b ( f - a g ) $. Then $ f = a g + b h $, $ g $ and $ h $ are linearly independent, and neither $ g $ nor $ h $ is periodic.

So for example, if $ f $ is the sine function (with period $ 2 \pi $), $ a $ and $ b $ are both $ 1 $, and $ g $ is the identity function, then $ h ( x ) = \sin x - x $ for all $ x $. Now $ f = 1 g + 1 h $, $ g $ and $ h $ are linearly independent, and neither $ g $ nor $ h $ is periodic. But this example is nothing special.

However, as long as $ b $ is non-zero, if $ f $ and $ g $ are periodic (with a same period), then $ h $ must also be periodic (with that period). That's because $$ h ( x + T ) = \frac 1 b \bigl ( f ( x + T ) - a g ( x + T ) \bigr ) = \frac 1 b \bigl ( f ( x ) - a g ( x ) \bigr ) = h ( x ) \text . $$ Perhaps this is what your intuition was going for.