I am a chemical engineer so I'm not very familiar with the methods of signal processing. Nevertheless I need to apply them now on my thesis work. Most recently a question occurred to me, that is probably answered easily with a certain insight on signal processing and FFT.
Here is my problem: I am researching residence time distributions ($\text{RTD}$) on a reactor. Therefore I inject a tracer substance and measure its concentration course over time on the inlet and outlet. So I have two signals $C_{in}$ and $C_{out}$, which are related to each other by $$C_{out} = \text{RTD} * C_{in}$$ where $*$ stands for convolution.
To calculate the desired residence time distribution of the run one has to deconvolve the signal $C_{in}$ from the $C_{out}$ signal.
To achieve that I convert the two signals into the frequency domain via FFT: \begin{align} &C_{out}(t) \xrightarrow{FFT} C_{OUT}(f)\\ &C_{in}(t) \xrightarrow{FFT} C_{IN}(f) \end{align}
After that I divide $C_{OUT}$ by $C_{IN}$ since a convolution in the time domain is a multiplication in the frequency domain. After inverse FFT of the output I get the $\text{RTD}$.
Note: Because the amount of tracer that enters the reactor is the same that exits the reactor, the integrals of $C_{in}$ and $C_{out}$ with respect to $dt$ are of same value. Therefore the integral of the $\text{RTD}$-curve with respect to $dt$ has to be $1$.
Because the corresponding time values of the measurements of $C_{in}$ and $C_{out}$ aren't uniformly spaced I resample both with the sample frequency $f_s$ to get uni-distant time steps.
Now to my problem/question: I have noticed that the area under the RTD-curve that should be always $1$ is dependent on the sample frequency by: $$\text{area} = \frac{1}{f_s}$$ So if the sample times are $0.2\text{s}$ apart, the $\text{area} = 0.2$. If they're $2\text{s}$ apart, $\text{area} = 2$. Only with $1\text{s}$ steps I get $\text{area} = 1$. Why?
Thank you in advance for your answers. Here is also a section of my Matlab code:
% resampling fs=1 [Cout, t]=resample(Cout_orig, time_orig, fs); Cin = resample(Cin_orig, time_orig, fs); % deconvolution COUT=fft(Cout); CIN=fft(Cin); RTD=COUT/CIN; rtd=ifft(RTD); rtd=rtd(:,1); % calculating area area=trapz(t, rtd); 

trapz. If it is, there might be something going on with the FFT scaling... $\endgroup$