I am currently reading Demirel's Nonequilibrium Thermodynamics in order to learn more about entropy and nonequlibrium thermodynamics
However I and stumped on how the author's do the following step:
The pressure $P$ and temperature $T$ define the values at each point of the system and are therefore called intensive properties, some of which can be expressed as derivatives of extensive properties, such as temperature $$T=\left(\frac{\partial U}{\partial S}\right)_{V,N}$$ where $U$ is the energy and $S$ is the entropy. If $X$ denotes any extensive property (not necessarily a thermodynamic propert) of a phase, we may derive intensive properties denoted by $X_i$ and called as partial properties $X_i=\left(\partial X/\partial n_i\right)_{T,p,n_i}$ ($i\neq j$). For any partial property we have $dX=\sum_i\left(\partial X/\partial n_i\right)dn_i=\sum_iX_idn_i$ at constant $T$ and $P$. The Euler theorem shows that $X=\sum_iX_in_i$
Is the result from the text obtained from direct integration, or it just looks like it is integrated because of the consequence of Euler Homogeneous Function Theorem?
That is, is this relation $$ X=\sum_i X_in_i \tag{1} $$ the integration of this relation $$ dX=\sum_i X_idn_i? \tag{2} $$ But just because of Euler Homogeneous Function Theorem, if (2) is true, then (1) must also be true by the theorem?