I have the following function $$f(\textbf{x})=\frac{Q(\textbf{x})}{P(\textbf{x})}$$ where $P(\textbf{x})$ is such that $P(\textbf{x})=0\iff \textbf{x}=0$ and at the same time $Q(\textbf{x})=0\iff\textbf{x}=0$. The functions $P(\textbf{x})$ and $Q(\textbf{x})$ are such that: $\lim \limits _{\textbf{x}\rightarrow0}f(\textbf{x})=0$ and $\int \limits _{\Omega}f(\textbf{x})\ \mathrm{d}\textbf{x}=m$.
Suppose now that $Q(\textbf{x})$ is a polynomial function and that I need to algebrically expand it. What one would get is: $$f(\textbf{x})=\frac{Q_1(\textbf{x})+Q_2(\textbf{x})+\cdots+Q_n(\textbf{x})}{P(\textbf{x})}=\sum \limits _{i=1}^n\frac{Q_i(\textbf{x})}{P(\textbf{x})}$$
Unfortunately, the functions are such that $$\lim \limits _{\textbf{x}\rightarrow0} f(\textbf{x})\neq \sum \limits _{i=1}^n\lim \limits _{\textbf{x}\rightarrow0} \frac{Q_i(\textbf{x})}{P(\textbf{x})}$$ and also $$\int \limits _{\Omega}f(\textbf{x})\ \mathrm{d}\textbf{x}\neq \sum \limits _{i=1}^n\int \limits _{\Omega} \frac{Q_i(\textbf{x})}{P(\textbf{x})} \mathrm{d}\textbf{x}$$
What I would like to know is, when one has to work with the "expanded" version of the function (meaning that one has to evaluate the integral or the limit forcibly in this form), how can he/she adapt the inequalities in order to be sure that he retrieves the results of the "compact" formulation?
I have read When can a sum and integral be interchanged?, but still find this situation obscure
A very simple example would be:
$$f(x)=\frac{x-2}{x-2}$$ and $$g(x)=\frac{x}{x-2},\ h(x)=-\frac{2}{x-2}$$ integrated over (for example) $I=[0,3]$