Introduction

From environmental view point use of nontoxic and renewable compounds is an important issue that has been attempted recently by many research workers on green chemistry. To replace or at least reduce the use of hazardous materials with benign ones in production or extraction processes is considered to be a vital goal to sustainable development1.

Recently, betaine as an environmentally safe material has received more attention by some research workers2,3. Betaine is known as a non-toxic, biodegradable natural material with the obvious name for 2-(trimethylazaniumyl) acetate which is the derivative of the amino acid glycine. It is extracted as a by-product from sugar beet; and widely used as a feed additive and as an osmolyte4. The osmolyte property of betaine is related to its dipolar zwitterions structure which dissolves easily in water. In addition to the mentioned properties, betaine is a methyl group donor and can be taken part in transemethylation reactions and it acts as an organic osmolyte in protecting cells under stress. Finally, due to the methylating and amino acid properties it participates in energy and protein metabolism5.

Design and development of new green processes requires the study of thermodynamic properties of the system. To contribute to a better knowledge of thermodynamic behavior of the system under investigation experimental phase equilibrium data is needed. These data enable us to calculate osmotic and activity coefficients in mixtures which can be used for obtaining some information regarding the solute–solvent interactions and development of reliable thermodynamic models. The obtained results are important in regard with possible two-phase formation of these kinds of ternary systems which may have applications in partitioning and extraction of drugs or proteins6. Recently, using these kinds of ternary systems partitioning studies has been made on some proteins6. However, further studies regarding the solute–solvent interactions, two-phase formation behavior and partitioning of biomaterials is needed.

Vapor pressure data for betaine systems are extremely scarce and many studies are needed. Therefore, in this work, first, water activity for ternary {betaine + poly ethylene glycol dimethyl ether with molar mass 250 g mol−1 (PEGDME250) + water}, {betaine + K3PO4 + water} and {betaine + K2HPO4 + water} systems were measured at 298.15 K to evaluate the possible interactions between these components. There is no report on the water activity or vapor pressure for these systems; and only binodal curves for the two latter systems containing potassium salts and extraction of proteins in the corresponding aqueous two-phase systems have been reported6. In this work, similar vapor–liquid measurements were also carried out on the aqueous binary betaine solutions for which no data is available in open literature. There are several methods for obtaining osmotic coefficient or activity such as electromotive force method, headspace chromatography and vapor pressure osmometry7. In the present study, we have used the isopiestic technique which is an accurate method to determine solvent activity of solutions8,9. Since, quality of isopiestic measurements depends mainly on the temperature equality between the solutions, keeping the whole system at a constant temperature is required. In addition to reporting some thermodynamic properties of the mentioned mixtures, we attempted to provide solute–solute and solute–solvent interactions by calculating the solute activity coefficients and the transfer Gibbs energy (\(\Delta {G}_{tr}^{i}\)) values for the transfer of PEGDME250, K3PO4 and K2HPO4 from binary to ternary aqueous solutions containing betaine using the measured water activity data and polynomial method10,11. Furthermore, to confirm the solute–solute interactions results deduced from water activity treatment, volumetric and ultrasonic properties such as the limiting apparent molar volume (\({V}_{\varphi }^{0}\)), transfer apparent molar volume (\({\Delta }_{tr}{V}_{\varphi }^{0}\)), and also transfer apparent isentropic compressibility (\({\Delta }_{tr}{k}_{\varphi }^{0}\)) of polymer and salts from binary to ternary aqueous solutions containing betaine were determined from the corresponding measured density and speed of sound data.

This work presents the thermodynamic study of the material betaine which is in popular demand in scientific research from environmental point of view. The obtained thermodynamic data with experimental verification will stands as a reference in helping the designing and developments in green chemistry approaches and in the development of thermodynamic systems utilizing betaine. In particular, the use of betaine as a component of two-phase system is very important in extraction of biomaterials. Also, since there is no information regarding the water activity and vapor pressure of betaine in the literature, these data stands as a reference for future studies.

Experimental

Materials

The betaine was obtained from Jinan Grace Industry (> 98%w/w).The salts K3PO4 (> 99.5%w/w), K2HPO4 (> 99.5%w/w) and NaCl (> 99.5%w/w) were supplied by Merck. All materials were dried in vacuum and kept over P2O5 before used. The water contents of materials were measured by a Karl-Fischer titrator (751 GPD Titrino-Metrohm, Herisau, Switzerland). In preparing the sample solutions, the measured water contents was accounted and double distilled water was applied. The specifications for the used chemicals are listed in Table 1.

Table 1 Descriptions of the used chemicals.

Apparatus and procedure

Vapor – liquid equilibrium measurements

In this study, for obtaining water activity and vapor pressure at 298.15 K the improved isopiestic apparatus was applied8,9. In measuring the water activity for binary aqueous betaine solutions, five leg manifold was used in which for each of pure betaine and standard pure NaCl, two flasks are employed and the central flask was considered for water supply. Also, this procedure with a seven leg manifold was employed in the case of water activity measurements for (betaine + PEGDME250 + water), (betaine + K3PO4 + water) and (betaine + K2HPO4 + water). In this case, for each of pure betaine, pure salt (K3PO4/K2HPO4) or polymer one flask was used. Two flasks were poured with standard sodium chloride. The remaining two flasks of the manifold are considered for {betaine + K3PO4/ K2HPO4} or {betaine + PEGDME250}. Before doing anything, it was necessary to degas and remove the air of the solutions which was made by evacuating the apparatus slowly and frequently. To reach the equilibrium between solutions, the apparatus was slowly immersed in a bath for about 120 h. The temperature controller with uncertainty of 0.01K was used. Then, the apparatus was removed from the bath and the mass of each flask and therefore solute mass fractions were determined with an analytical balance with a precision of ± 1 × 10–7 kg. We used the differences between mass fractions of two NaCl solutions as an equilibrium criteria; so that the equilibrium is assumed when this difference is less than 0.1%. In isopiestic equilibrium vapor pressure and water activity in the sample solutions and reference are the same. This enables us to calculate the osmotic coefficient for the reference solution, from which the osmotic coefficient of the each sample in isopiestic equilibrium with the standard NaCl is readily determined. In this work, for the required osmotic coefficient values of the reference solutions the correlation relation suggested by Colin et al.12 was considered.

Density and speed of sound measurement

For volumetric and ultrasonic studies, {betaine + PEGDME250 + water}, {betaine + K3PO4 + water} and {betaine + K2HPO4 + water} solutions at different molalities of betaine as a solute and different molality of {polymer or salt + water} as a solvent (i.e. 0.1, 0.2, 0.3) mol kg−1 were prepared in glass vessels and the corresponding density \((\rho )\) and speed of sound \((u)\) values were measured with (Anton Paar DSA 5000 densitometer and speed of sound analyzer) at T = 298.15 K and atmospheric pressure \(( \approx 85KPa)\).

The uncertainty values of 0.15 kg m−3 and 0.5 m s−1 were estimated for density and speed of sound, respectively. Before doing anything, it was necessary to calibrate densitometer device; for this purpose dried air and double distilled water were used. The accurate temperature controller built in the apparatus enable us to carry out these measurements within ± 0.01 K which is a required condition for such measurements13.

Result and discussion

Experimental results

Water activity results

To study the vapor–liquid equilibrium behavior of binary aqueous solutions of betaine and ternary aqueous betaine solutions containing the salts (K3PO4/K2HPO4) or PEGDME250, water activity measurements were carried out at 298.15 K using isopiestic method8,9. Considering equal water activity of standard and sample solutions at isopiestic equilibrium, and relation 1, the osmotic coefficient, \(\phi\) of the solution can be calculated14:

$$\phi = \frac{{v_{R} \phi_{R} m_{R} }}{vm}$$
(1)

In Eq. (1), m and \(m_{R}\) stand for the isopiestic equilibrium molalities (mol kg−1) of the sample and reference (NaCl) solutions, respectively;\(\phi_{R}\) is the osmotic coefficient of the reference solution, \(\nu_{R}\) and \(\nu\) denote respectively the sum of stoichiometric numbers of the anion and cation in the reference and the salts (K3PO4/K2HPO4) or PEGDME250, solutions. The osmotic coefficient values calculated from Eq. (1) can be used along with Eqs. (2) and (3) to obtain the activity of water and the vapor pressure P in polymer and salt solutions14.

$$\ln a_{W} = - \phi \nu mM_{W}$$
(2)
$$Lna_{W} = \ln \left( {\frac{P}{{P_{W}^{0} }}} \right) + \frac{{(B - V_{W}^{0} )(P - P_{W}^{0} )}}{RT}$$
(3)

Here, MW, \(V_{W}^{0}\) and \(P_{W}^{0}\) are used respectively for the molar mass, molar volume and vapor pressure of pure water. B stand for second virial coefficient of water vapor and its value at T = 298.15K was obtained from the Rard and Platford equation15. R is the gas constant and T is the absolute temperature. The Kell equation16 and the equation of state proposed by Saul and Wagner17 were used respectively to determine \(V_{W}^{0}\) and \(P_{W}^{0}\). After the system reaches isopiestic equilibrium, aw and P values were calculated using Eqs. (2) and (3), respectively.

The for binary (betaine + water) solutions, the values of water activity, osmotic coefficient and vapor pressure are collected in Table 2. In Tables 3, 4, 5, water activity values are given for (betaine + PEGDME250 + water), (betaine + K3PO4 + water) and (betaine + K2HPO4 + water), and the corresponding iso-activity lines are shown in Figs. 1, 2, 3, respectively. In each of presented lines in these Figures, the four points have the same water activity and therefore the same chemical potential.

Table 2 Mass fractions (w) in isopiestic equilibrium, water activity (aW), osmotic coefficient (\({\phi }_{R}\)) and vapor pressure (p) for the {betaine (1) + H2O (2)} system at T = 298.15 K and P ≈ 85 kPaa.
Table 3 Mass fractions (w) in isopiestic equilibrium, water activity (aW), osmotic coefficient (\({\phi }_{R}\)) and vapor pressure (p) for the {betaine (1) + PEGDME250 (2) + H2O (3)} system at T = 298.15 K and P ≈ 85 kPaa.
Table 4 Mass fractions (w) in isopiestic equilibrium, water activity (aW), osmotic coefficient (\({\phi }_{R}\)) and vapor pressure (p) for the {betaine (1) + K3PO4 (2) + H2O (3)} system at T = 298.15 K and P ≈ 85 kPaa.
Table 5 Mass fractions (w) in isopiestic equilibrium, water activity (aW), osmotic coefficient (\({\phi }_{R}\)) and vapor pressure (p) for {betaine (1) + K2HPO4 (2) + H2O (3)} system at T = 298.15 K and P ≈ 85 kPaa.
Figure 1
figure 1

Isoactivity line (aw) for ternary solution{Betaine + PEGDME250 + H2O} with respect semi ideal lines (red lines) at T = 298.15 K. Mass fraction of betaine (wBetaine) plotted against mass fraction of PEGDME250 (wPEGDME250): “filled diamond”, 0.9623; “diamond”, 0.9390; “filled circle”, 0.9343; “circle”, 0.9199; “filled square”, 0.8692; “square”, 0.7207.

Figure 2
figure 2

Isoactivity line (aw) for ternary solution{Betaine + K3PO4 + H2O} with respect semi ideal lines (red lines) at T = 298.15 K. Mass fraction of betaine (wBetaine) plotted against mass fraction of K3PO4 (wK3PO4): “square”, 0.9545; “filled square”, 0.9491; “triangle”, 0.9374; “filled triangle”, 0.9035; “circle”, 0.8791; “filled circle”, 0.6942. The red dotted lines are semi ideal lines.

Figure 3
figure 3

Isoactivity line (aw) for ternary solution {Betaine + K2HPO4 + H2O} with respect semi ideal lines (red lines) at T = 298.15 K. Mass fraction of betaine (wBetaine) plotted against mass fraction of K2HPO4 (wK2HPO4): “filled triangle”, 0.9304; “triangle”, 0.9279, “filled circle”, 0.8997; “circle”, 0.7931; “filled diamond”, 0.7063; “diamond”, 0.5433. The red dotted lines are semi ideal lines.

The available water activity data for (PEGDME250 + H2O)9,18], (K3PO4 + H2O)19 and (K2HPO4 + H2O)20 make it possible to check the quality of our water activity data for these binary solutions by comparisons of these data, as shown in Figs. S1-S3 presented in supporting material. These Figures show good agreement of our measurements for these binary systems with the literature values.

The vapor pressure data for binary (betaine + water), (PEGDME250 + water), (K3PO4 + water) and (K2HPO4 + water) solutions may be used for comparison of the extent of solute–solvent interactions in these binary solutions. For this purpose, the vapor pressure depression values \(\Delta p\) were calculated from the corresponding P values reported in Tables 3, 4, 5 and vapor pressure for pure water as follows:

$$\Delta p = p_{w}^{0} - p$$
(4)

The plot of calculated vapor pressure depression values for these binary solutions versus molalities of betaine, polymer and salts have been given in Fig. 4. This Figure and Tables 3, 4, 5 show that the vapor pressure depressions for salt solutions are more that of betaine or polymer solutions, and their values for (K3PO4 + water) are higher than (K2HPO4 + water) at the same solute concentrations. In other words solute–solvent interactions for salts are stronger than that of betaine or polymer. The differences in interactions between these salt systems are related to their anions; so that, a more vapor pressure depression is observed for the salt which has a higher anion charge (K3PO4 ˃ K2HPO4) leading to stronger salt-water interactions. In other words, since vapor pressure depression is a colligative property, its value is increased by increasing the number of moles of ions. The higher \(\Delta p\) value observed for aqueous betaine than PEGDME250 may be due to the fact that betaine is a hydrogen-bond accepter and PEGDME250 is more hydrophobic than the betaine. The more negative logarithm of octanol/water partition coefficient value for betaine (log Kow = − 4.6)21 than that the polyethylene glycol (log Kow = − 1.36)22, which has similar structure to PEGDME250, indicates lower affinity of PEGDME250 to water molecules compared to betaine.

Figure 4
figure 4

Vapor pressure depression (\(\Delta p = p_{w}^{0} - p\)) of binary aqueous systems plotted against molality (m) of PEGDME250, K3PO4, K2HPO4 and Betaine at T = 298.15 K: “red circle”, {betaine + H2O}; “filled triangle”, {PEGDME250 + H2O}, “pink square”, {K3PO4 + H2O}, “blue diamond”, {K2HPO4 + H2O}.

Based on Figs. 1, 2, 3, from the comparison of lines with equal water activity with the line corresponding to semi-ideal solution, the salting-in or salting-out effect in the ternary (betaine + PEGDME250 + water), (betaine + K3PO4 + water) and (betaine + K2HPO4 + water) systems may be investigated. The Zdanovskii rule was used for this purpose using (Zdanovskii-Stokes-Robinson) relation at constant water activity23,24:

$$\frac{{m_{1} }}{{m_{1}^{0} }} + \frac{{m_{2} }}{{m_{2}^{0} }} = 1$$
(5)

In Eq. (5), \(m_{1}\) and \(m_{2}\) stand for concentration of PEGDME250 or salts and betaine (in molality basis) in the ternary systems, respectively. Similarly, \(m_{1}^{0}\) and \(m_{2}^{0}\) show respectively, the concentration of the PEGDME250 or salts and betaine in the binary solution which has an equal aw. The results of applying Zdanovskii rule23 are also presented in Figs. 1, 2, 3 which indicate that for all the three studied ternary systems the experimental lines with equal water activity indicate negative deviation in regard with semi-ideal behavior. This means that in these investigated ternary systems the interaction between betaine and polymer or salts are unfavorable (salting-out effect). This salting-out effect may be the main reason for phase separation of these systems at some concentrations. Indeed, formation of aqueous two-phase systems (ATPSs) of betaine with both of the salts (K3PO4 and K2HPO4) have been observed by Zeng et al.6. Also, it was found that betaine can form an ATPS with polyethylene glycol (PEG)6. These ATPSs have found important applications in protein extraction6. As expected, we observed that betaine can also form an ATPS with PEGDME250 which has similar structure with PEG.

Thermodynamic framework

The polynomial method10 has been frequently used for obtaining relation between activity coefficients of solutes and their molalities in ternary systems25,26. According to this method, for each component i of the ternary system, the activity coefficient in molality basis,\({\gamma }_{i}^{m}\), can be expressed in terms of betaine molality, m1 and salts (K3PO4/K2HPO4) or PEGDME250 molality, m2 as follows:

$$ln{\gamma }_{i}^{m}=\sum_{i=0}^{\infty }\sum_{j=0}^{\infty }{A}_{ij}{m}_{1}^{i}{m}_{2}^{j} ({A}_{00}=0)$$
(6)

Equation 6 can be written as Eq. (7a) when in the power series we neglect all terms higher than fourth:

$$ln{\gamma }_{i}^{m}=ln{\gamma }_{i}^{0,m}+{A}_{01}{m}_{1}+{A}_{11}{m}_{1}{m}_{2}+{A}_{02}{m}_{2}^{2}+{A}_{21}{m}_{1}^{2}{m}_{2}+{A}_{12}{{m}_{1}m}_{2}^{2}+{A}_{03}{m}_{2}^{3}+{A}_{31}{m}_{1}^{3}{m}_{2}+{A}_{22}{m}_{1}^{2}{m}_{2}^{2}+{A}_{13}{{m}_{1}m}_{2}^{3}+{A}_{04}{m}_{2}^{4}$$
(7a)

In Eq. (7a) the term \({\gamma }_{i}^{0,m}\) denotes the activity coefficient of component i in aqueous binary solutions which is expressed in terms of its molality, mi, as follows:

$$ln{\gamma }_{i}^{0,m}={A}_{10}{m}_{i}+{A}_{20}{m}_{i}^{2}+{A}_{30}{m}_{i}^{3}+{A}_{40}{m}_{i}^{4}$$
(7b)

Within this thermodynamic framework a quantity \(\Delta\) has been introduced27:

$$\Delta =-55.51ln{a}_{w}-{m}_{1}{\phi }_{1}^{0}-2{m}_{2}{\phi }_{2}^{0}$$
(8a)

which is identical with Eq. (8b)

$$\Delta =2{m}_{R}{\phi }_{R}^{0}-{m}_{1}{\phi }_{1}^{0}-2{m}_{2}{\phi }_{2}^{0}$$
(8b)

In above relations, \({\phi }_{R}^{0}, {\phi }_{1}^{0}\), and \({\phi }_{2}^{0}\) are used respectively for the osmotic coefficients of solutions of the reference, betaine, and salts (K3PO4/K2HPO4) or PEGDME250.

Then, using the Gibbs–Duhem relation the Eq. (9) can be derived27:

$$\frac{\Delta }{{m}_{1}{m}_{2}}={A}_{01}+{A}_{11}{m}_{1}+2{A}_{02}{m}_{2}+{3A}_{03}{m}_{2}^{2}+{A}_{21}{m}_{1}^{2}+\left(\frac{3}{2}\right){A}_{12}{m}_{1}{m}_{2}+{A}_{31}{m}_{1}^{3}+\left(\frac{4}{3}\right){A}_{22}{m}_{1}^{2}{m}_{2}+2{A}_{13}{{m}_{1}m}_{2}^{2}+4{A}_{04}{m}_{2}^{3}$$
(9)

Using the Eq. 8, the values for \(\frac{\Delta }{{m}_{1}{m}_{2}}\) can be easily calculated from the molality values presented in Tables 3, 4, 5 for the reference, betaine, and salts (K3PO4/K2HPO4) or PEGDME250. Then, the parameters \({A}_{ij}\) in Eq. (9) were determined by the minimization method with the results presented in Tables 6. When these parameters are inserted in Eq. 7, it is easy to calculate concentration dependencies of \({\gamma }_{1}^{m}\) of betaine in solutions composed of salts (K3PO4/K2HPO4) or PEGDME250.

Table 6 The coefficients, \({A}_{ij}\), obtained from Eq. (9) for different systems.

To calculate the required \({\phi }_{1}^{0}\) value for betaine and salts (K3PO4/K2HPO4) or PEGDME250 at each molality m1 listed respectively in Tables 2 for betaine and Tables 3, 4, 5 (corresponding to zero betaine concentration) for salts (K3PO4/K2HPO4) or PEGDME250, the obtained corresponding osmotic coefficients were correlated with the Eq. (10):

$${\phi }_{i}=1+\sum_{j=1}^{4}{E}_{j}{m}_{i}^{j}$$
(10)

Then, the following relation is used for calculation of the activity coefficients of betaine, salts (K3PO4/K2HPO4) or PEGDME250

$$ln{\gamma }_{i}^{0,m}=\sum_{j=1}^{4}\frac{\left(j+1\right)}{j}{E}_{j}{m}_{i}^{j}$$
(11)

The symbol E denotes the parameters of Eqs. (10) and (11) which can be determined by minimization method.

Using the calculated activity coefficients of betaine in binary and ternary salts (K3PO4/K2HPO4) or PEGDME250 solutions, the Gibbs energy of transfer,\(\Delta {G}_{tr}^{i}\), of betaine from corresponding binary to the ternary solutions were determined from Eq. 1228. The sigh of the \(\Delta {G}_{tr}^{i}\) may be used to evaluate solute–solute and solute–solvent interactions in the investigated solutions.

$$\Delta {G}_{tr}^{i}=RTln\frac{{\gamma }_{i}^{x}}{{\gamma }_{i}^{0x}}$$
(12)

\({\gamma }_{i}^{x}\) and \({\gamma }_{i}^{0x}\) are respectively mole fraction based activity coefficient of betaine in the ternary and binary solutions. The required \({\gamma }_{i}^{x}\) values were determined from the Eq. (13) using the calculated values of activity coefficients in molality basis:

$$ln{\gamma }_{i}^{x}=ln{\gamma }_{i}^{m}+ln{\gamma }_{i}^{\infty }+ln\left(1+\frac{{M}_{w}\nu m}{1000}\right)$$
(13)

where \({\gamma }_{i}^{\infty }\) denotes activity coefficient at infinite dilution.

The calculated transfer Gibbs energy values are presented in Table 7. The positive transfer Gibbs energies obtained for all the three mixtures imply unfavorable interaction of betaine with salts (K3PO4/K2HPO4) and PEGDME250. It is interesting to note that in Sect. 3.1.1 we arrived at the same result regarding these unfavorable interactions by observing the negative deviation of iso-activity lines from semi-ideal solution for the investigated solutions. Table 7 also show that the \(\Delta {G}_{tr}^{i}\) of betaine becomes more positive by increasing the concentrations of salts or polymer.

Table 7 Gibbs energies of transfer,\(\Delta {G}_{tr}^{i}\), of PEGDME250, K3PO4 and K2HPO4 from water to aqueous betaine solutions at 298.15 Ka.

Based on McMillan–Mayer theory the obtained \(\Delta {G}_{tr}^{i}\) values can also be utilized to get information on the extent of solute–solute interactions in our studied systems29,30. According to this theory, at constant temperature and pressure the Gibbs energies of transfer for betaine from water to aqueous salt or polymer solutions are given by Eq. (14):

$$\Delta {G}_{tr}^{1}(w\to \,w+salt \,or \,polymer)=2.{\nu }_{1}.{\nu }_{2}.{m}_{1}.{g}_{12}+6.{\nu }_{1}^{2}.{\nu }_{2}.{m}_{1}.{m}_{2}.{g}_{112}+3.{{\nu }_{1}.\nu }_{2}^{2}.{m}_{2}^{2}.{g}_{122}$$
(14)

In Eq. (14), g12 is called pair interaction parameter; (g112 and g122) are triplet interaction parameters. These interaction parameters were determined by fitting \(\Delta {G}_{tr}^{i}\) data to m1 and m2. From the obtained g12 values and the following relation the salting coefficient \({k}_{s}\) can be calculated:

$${RTk}_{s}=2{\nu }_{1}{\nu }_{2}{g}_{12}$$
(15)

The pair and triple interaction parameters obtained from Eq. (14) were tabulated in Table 8. Also in this Table salting constant values were included which were calculated from Eq. (15). The positive pair interaction parameter, g12, found for betaine indicates that pairwise interactions between betaine and salts (K3PO4/K2HPO4) or PEGDME250 are energetically unfavorable. Also the calculated positive salting constant, \({k}_{s}\), tabulated in Table 8 imply that salts (K3PO4/K2HPO4) or PEGDME250 have the salting-out effect on betaine in these ternary systems. Consequently, the McMillan–Mayer theory also confirms the unfavorable interaction between salts (K3PO4/K2HPO4) or PEGDME250 and betaine that we concluded in Sect. 3.1.1 from the negative deviation of constant water activity lines with respect to semi-ideal solutions, and from the positive sign of Gibbs energies of transfer for betaine from water to aqueous salts (K3PO4/K2HPO4) or PEGDME250 solutions discussed above.

Table 8 Values of pair (g12) and triple parameters (g112 and g122) together with the salting constant (ks).

Volumetric properties

The experimental density and speed of sound values for binary aqueous betaine and ternary aqueous betaine solutions containing PEGDME250 and salts (K3PO4/K2HPO4) are collected respectively in Tables 9, 10, 11, 12. No experimental density or speed of sound data for these systems containing betaine have been reported, previously. In Figures S4-S6, the experimental density values for binary aqueous PEGDME250, K3PO4, and K2HPO4 solutions were compared with the corresponding literature values31,32,33, which show fairly good agreement. The density data presented in Tables 10, 11, 12 were used to calculate values of the apparent molar volumes, \(V_{\Phi }\) and the apparent molar volume at infinite dilution, \(V_{\Phi }^{0}\) , from which some information regarding intermolecular interactions between betaine and polymer or salts may be deduced. To calculate \(V_{\Phi }\) values for betaine in water and ternary {PEGDME250 or salt + water} solutions at T = 298.15 K the following equation34 was used:

$$V_{\varphi } = \frac{M}{\rho } - \left( {\frac{{\rho - \rho_{0} }}{{m\rho \rho_{0} }}} \right)$$
(16)

here, M is the molar mass of betaine and m is its molality; ρ0 and ρ stand for density of the (betaine + H2O) and ternary mixtures (betaine + PEGDME250 + H2O) or [(betaine + salts (K3PO4 and K2HPO4) + H2O], respectively. The obtained \(V_{\Phi }\) values are collected in Tables S1S3 and plotted against betaine molality in Figures S10- S12. It was found that for the investigated systems linear dependence between \(V_{\Phi }\) and betaine molality may be established; so that, the following Masson equation35 were used to evaluate the values for apparent molar volume at infinite dilution \(V_{\Phi }^{0}\):

$$V_{\varphi } = V_{\varphi }^{0} + S_{v} m$$
(17)
Table 9 The values of density (ρ) and speed of sound (u) for the binary (betaine + water) system at T = 298.15 K and P ≈ 85 kPaa.
Table 10 The values of density (ρ) and speed of sound (u) for the betaine in aqueous (PEGDME250 + water) solutions at T = 298.15 K and P ≈ 85 kPaa.
Table 11 The values of density (ρ) and speed of sound (u) for the betaine in aqueous (K3PO4 + water) solutions at T = 298.15 K and P ≈ 85kPaa.
Table 12 The values of density (ρ) and speed of sound (u) for the betaine in aqueous (K2HPO4 + water) solutions at T = 298.15 K and P ≈ 85kPaa.

The values of \(V_{\Phi }^{0}\) and empirical slope \(S_{V}\) obtained from fitting of \(V_{\Phi }\) values to betaine molality are presented in Table 13. In Figures S10S12 the straight lines generated by Eq. (17) for the three investigated systems indicate validity of Mason equation35.The obtained apparent molar volume at infinite dilution \(V_{\Phi }^{0}\) for different systems were plotted against molality of (polymer or salt + water) in Fig. 5. It is also quite clear from the Table 13 and Fig. 5 that the \(V_{\Phi }^{0}\) values decreased with the increase in molality of (polymer or salt + water) as a solvent and this leads to conclusion that interaction is unfavorable between polymer or salt and betaine. This is consistent with the result of vapor–liquid equilibrium study of the investigated ternary solutions mentioned in section "Result and discussion".

Table 13 The obtained values of limiting apparent specific volume (\(V_{\varphi }^{0}\)), experimental slopes (\(S_{V}\)), standard transfer volume (ΔtrVφ0) and standard deviation for apparent molar volume σ (Vφ) for different ternary aqueous betaine solutions at T = 298.15 Ka.
Figure 5
figure 5

Plot of apparent specific volumes \(V_{\Phi }^{0}\) of betaine in aqueous solutions against molality, m, of (polymer or salt + water) at T = 298.15 K: “blue diamond”, PEGDME250; “pink square”, K3PO4; “yellow triangle”, K2HPO4.

The solute- solute interactions in the studied ternary solutions can be deduced from the behavior of apparent molar volumes as plotted against betaine molality in Figures S10-S12. These Figures show that while the slope for the system containing K3PO4 is negative the corresponding one for the K2HPO4 is positive. This difference may be due to the more pronounced chemical reaction between betaine and K3PO4 than K2HPO4 which leads to decrease of solute–solute interactions in ternary solutions containing betaine and K3PO4 as indicated with the negative Sv values reported in Tables 13. The reason for possible reaction between betaine and salts in water is that the used salts hydrolyze in water and form alkaline solution, especially K3PO4. The betaine is an amphoteric molecule and therefore it can react with the alkaline solution. However, this reaction can be occurred readily with K3PO4 than K2HPO4.

The standard partial molar volumes of transfer (ΔtrVφ0) is another important thermodynamic property that can be used for investigating the solute–solvent interactions. Here, the ΔtrVφ0 is the difference between \(V_{\Phi }^{0}\) values of aqueous ternary solutions containing, K3PO4, K2HPO4 or PEGDME250 and binary aqueous betaine solutions as follows:

$$\Delta_{{{\text{tr}}}} V_{\varphi }^{0} = V_{\varphi }^{0} \left( {{\text{in}}\;{\text{aqueous}}\;{\text{ternary}}} \right) - V_{\varphi }^{0} \left( {{\text{in}}\;{\text{aqueous}}\,{\text{binary}}} \right)$$
(18)

The \(V_{\Phi }^{0}\) for binary aqueous PEGDME250, K3PO4, and K2HPO4 solutions are available in the literature31,32,33. The obtained \(V_{\Phi }^{0}\) value for binary aqueous betaine solution is given Table 13. At infinite dilution solute – solute interactions are unaffected on the value of ΔtrVφ013,36. The ΔtrVφ0 values for the ternary {betaine + PEGDME250 + water}, {betaine + K3PO4 + water} and {betaine + K2HPO4 + water} solutions were also reported in Table 13. This Table shows that the ΔtrVφ0 values are negative and become more negative at higher concentrations of PEGDME250 and both salts. This means that the presence of betaine in mentioned systems lead to strong interactions between polymer or salts and water. In other words, the betaine-polymer and betaine- phosphate salts interactions are unfavorable; and therefore, phase separation in these ternary systems may be occurred at certain concentrations of betaine, polymer or salts. Indeed, in these systems we observed the formation of two-phase systems. Therefore, both the VLE and volumetric studies predict phase separation in the investigated solutions.

Acoustic properties

The apparent molar isentropic compressibility κφ and its value at infinite dilution κφ0 are also important quantities which provide some formation regarding the solvent structure around betaine within the bulk solution. The apparent isentropic molar compression for betaine in aqueous solution of (0.1, 0.2, and 0.3 mol kg−1) polymer or salts were calculated and tabulated in Table S1S3 using the Eq. (19)37.

$$\kappa_{\varphi } = \frac{{(\kappa_{s} \rho_{0} - \kappa_{s0} \rho )}}{{m\rho \rho_{0} }} + \frac{{\kappa_{s} M}}{\rho }$$
(19)

The Laplace – Newton's equation38 was used for calculation of the required isentropic compressibility κs of mixture:

$$\kappa_{s} = \frac{1}{{\rho u^{2} }}$$
(20)

For speed of sound u and density ρ, the measured values presented in Tables 10, 11, 12 were used.

κs0 is the isentropic compressibility of pure solvent. The measured speed of sound data obtained for (PEGDME250 + H2O), (K3PO4 + H2O) and (K2HPO4 + H2O) may be compared with literature data as Figures S7- S9 respectively. On the basis of these Figures we observe that there are fairly good agreement between speeds of sound data obtained in this work and the literature31,32,33. The calculated κφ values reported in Tables S1S3 indicate that for all the investigated systems their values decrease with increasing of the betaine concentration.

The apparent molar isentropic compressibility at infinite dilution κφ0 was also determined from fitting of κφ values to the following relation38:

$$\kappa_{\varphi } = \kappa_{\varphi }^{0} + S_{\kappa } m$$
(21)

here \(S_{K}\) is an experimental slope indicative of solute – solvent interactions. The values of κφ0 and \(S_{K}\) together with the standard deviation σ (κφ0) obtained from least square fitting of κφ values to betaine molality m are reported in Table 14. The plots of obtained κφ values against betaine molality shown in Figures S13-S15 indicate that κφ values were satisfactorily correlated with Eq. 21.In Fig. 6, the κφ0 values were plotted against concentration of polymer or salts for different studied systems. It is seen from Table 14 and Fig. 6 that the κφ0 values for the studied systems decrease with increasing concentration of betaine. Also these values decrease with increase of polymer or salts concentration. The trend observed in variation of \(\kappa_{\varphi }^{0}\) or κφ values again implies that while there is a strong interaction between polymer or salts and water, the betaine-polymer and betaine-salts interactions are unfavorable. These results are consistent with the ones we deduced from volumetric studies regarding solute–solvent and solute–solute interactions.

Table 14 The obtained values of isentropic compressibility at infinite dilution (kφ0), experimental slopes (Sk), standard transfer isentropic compressibility (Δtr kφ0) and standard deviation for isentropic compressibility σ (kφ) for different ternary aqueous betaine solutions at T = 298.15Ka.
Figure 6
figure 6

Plot of apparent isentropic compressibility κφ0 of betaine in aqueous solutions against molality, m, of (polymer or salt + water) at T = 298.15 K: “blue diamond”, PEGDME250; “pink sqaure”, K3PO4; Yellow triangle”, K2HPO4.

The transfer molar isotropic compressibility (Δtrkφ0) of betaine from water to aqueous PEGDME250 or phosphate salts solutions at infinite dilution were calculated by the help of the following relation:

$$\Delta_{{{\text{tr}}}} k_{\varphi }^{0} = k_{\varphi }^{0} \left( {{\text{in}}\;{\text{aqueous}}\;{\text{ternary}}} \right) \, - k_{\varphi }^{0} \left( {{\text{in}}\;{\text{aqueous}}\;{\text{binary}}} \right)$$
(22)

For binary aqueous PEGDME250, K3PO4, and K2HPO4 solutions, the \(\kappa_{\varphi }^{0}\) values have been given previously30,31,32. The corresponding \(\kappa_{\varphi }^{0}\) value for aqueous betaine is given in Table 14. Similar to transfer apparent molar volume values, the obtained negative Δtrkφ0 values reported in Table 14 indicate strong polymer or salt water interactions implying unfavorable betaine-polymer and betaine-salt interactions which can be regarded as a main reason for biphasic formation of these systems. Therefore, acoustic studies also give the same results as we obtained from volumetric and isopiestic studies regarding the solute–solute interactions in the investigated systems.

Conclusion

In this work, to investigate a possible interactions between betaine and PEGDME250, K3PO4 or K2HPO4 in aqueous media, water activity measurements were made on the aqueous systems composed of {betaine + PEGDME250}, {betaine + K3PO4} and {betaine + K2HPO4} at T = 298.15 K and atmospheric pressure by the isopiestic method. The experimental water iso-activity lines showed that these systems have negative deviation from the semi-ideal solutions implying unfavorable interactions between betaine and polymer or salts. This means that these ternary solutions have tendency to form two-phase systems, which was confirmed experimentally. From thermodynamic treatment of water activity data, activity coefficients values for betaine, PEGDME250, K3PO4 and K2HPO4 in binary and ternary solutions were determined and these values were used to calculate transfer Gibbs energies from binary to ternary solutions. The positive transfer Gibbs energy values obtained for all the studied systems confirm the unfavorable interaction between betaine and PEGDME250, K3PO4 or K2HPO4. We found further evidence for these interactions by studying volumetric and acoustic properties of the systems by measuring density and speed of sound values. It was found that both of the transfer molar volume (\(\Delta_{tr} V_{\varphi }^{0}\)) and transfer partial molar isentropic compressibility (\(\Delta_{tr} K_{\varphi }^{0}\)) for transferring the betaine from water to polymer or salts solutions have negative values; therefore, the same conclusion can be made regarding unfavorable interaction between betaine and polymer or salts and possible phase separation of these ternary solutions as predicted from isopiestic studies. The results obtained in this work serve as a basis for the development of environmentally benign two-phase systems for extraction of drugs and other biomaterials from aqueous media.