Assume we have an arbitrary triangle ABC in x-y plane and we want to integrate a function $f(x,y)$ over surface of this triangle as shown in fig. 1:

We can define another coordination system [x' y'] like this: $$\begin{bmatrix}x\\y\\1\\\end{bmatrix}= \begin{bmatrix}C_{11}&C_{12}&C_{13}\\C_{21}&C_{22}&C_{23}\\0&0&1\\\end{bmatrix}* \begin{bmatrix}x'\\y'\\1\\\end{bmatrix} => \begin{bmatrix}x'\\y'\\1\\\end{bmatrix}= \begin{bmatrix}C_{11}&C_{12}&C_{13}\\C_{21}&C_{22}&C_{23}\\0&0&1\\\end{bmatrix}^{-1}* \begin{bmatrix}x\\y\\1\\\end{bmatrix}$$
In a way that : $$x'_{A'}=0,y'_{A'}=0,x'_{B'}=1,y'_{B'}=0,x'_{C'}=0,y'_{C'}=1,$$ And it will looks like this:

Now i want to define the $$\int _S f(x,y).dS$$ in form of $$\int _{S'} g(x',y').dS'$$ or define g(x',y') in a way that $$\int _S f(x,y).dS=\int _{S'} g(x',y').dS'$$ What exactly i need to know is that what is relation between g(x',y') and other parameters like f(x,y) etc.
Integrating g(x',y') over S' surface is as easy as: $$\int _0^1 \int _0^{1-x'} g(x',y') dy'.dx' $$ and i'm doint this to simplify double integration over triangle easy.
UPDATE:
For example if coordinations of $A, B$ and $C$ are known, and $f(x,y)=5x+2yx$ then what is relation of $g(x',y')$ with known parameters? Is it guaranteed that it have strict relation with known parameters in this specific case?