Artificial intelligent assistant

Turn aperiodic function to periodic I got a quick question regarding aperiodic functions. Let's suppose I have an aperiodic function $$ f(x) = \left\\{ \begin{array}{l l} \exp(-t) & \quad -2\leq t \leq2,\\\ 0 & \quad \text{anywhere else,} \end{array} \right. $$ and I want this to become periodic with period $\ T=4 $. What are the steps involved in such a conversion? I know that $\ f(x+nT) = f(x) $ must hold in resulting function but I am really stuck at the moment. Thank you in advance!

You could represent the function as a Fourier series:

$$g(x) = \sum_{n=-\infty}^{\infty} c_n \, e^{i n \pi x/2}$$

where

$$\begin{align}c_n &= \frac1{4} \int_{-2}^2 dt\, e^{-t} \, e^{-i n \pi t/2}\\\ &= \frac1{4} \int_{-2}^2 dt \, e^{-(1 + i n \pi/2) t}\\\ &= \frac{(-1)^n}{4(1 + i n \pi/2)}\left ( e^2-\frac1{e^2}\right ) \end{align}$$

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy f1cb74ad65702630be74d6a6e1838287