1 Introduction

The constraint of fossil fuel resources and the desire to reduce emissions of greenhouse gases served as a prime motivators for the development of alternative fuels. The growing focus on clean energy has led to the development and implementation of renewable fuels for diesel engines like biodiesel and other biofuels. Its production from renewable resources makes it biodegradable and non-toxic, and its closed carbon cycle reduces CO2 emissions. These qualities make it ideal for use in products that are environmentally conscious [1,2,3,4,5,6,7,8,9]. India imports 80% of its annual oil need from other countries, which causes foreign fund outflows and currency fluctuations [10]. In India, about 3 MT of the 23 MT of cooking oil consumed can be utilized to make biofuel, according to estimates. Waste cooking oil has been recognized as a viable raw material substitute as part of ongoing efforts to reduce raw material costs because WCO is around two to three times less expensive than virgin vegetable oils. Some of the common feedstocks for producing biodiesel are Waste cooking oil (WCO), beef tallow, waste frying oil, and other non-edible [11,12,13]. Prices for oil-containing products constitute 70 to 80 percent of the cost of biodiesel, therefore making the cost of producing biodiesel 1.5 times that of diesel, but the overall retail price of biodiesel is 10–15% lesser than diesel because of the excess tax imposed on imported crude oil [14, 15]. Homogeneous alkaline catalysts are frequently used to enable rapid response at low temperatures and pressures. Acids, bases, and enzymes are all catalysts that can be used to perform the transesterification of vegetable oils [16]. A study by Coteron et al. found that transesterification with methanol and strong basic homogeneous catalysts proceeded very quickly with oils containing up to 2.8% free fatty acids (FFA) [17]. To complete the transesterification reaction of triglycerides (TG), Diasakou et al. suggested that three steps are required, as depicted below: the first is the reaction with methyl alcohol for the production of diglycerides (DG), in the second stage monoglycerides (MG) is produced by reacting with methanol, and in the final stage, i.e., in the third stage pure methyl ester is produced along with the glycerol as a by-product when it is reacted with methanol, which is shown in the equations below [18]:

$$\mathrm{TG}+\mathrm{MeOH}\stackrel{{\mathrm{k}}_{1}}{\leftrightarrow }\mathrm{DG}+\mathrm{ME}$$
(1)
$$\mathrm{DG}+\mathrm{MeOH}\stackrel{{\mathrm{k}}_{2}}{\leftrightarrow }\mathrm{MG}+\mathrm{ME}$$
(2)
$$\mathrm{MG}+\mathrm{MeOH}\stackrel{{\mathrm{k}}_{3}}{\leftrightarrow }\mathrm{ME}+\mathrm{Glycerol}$$
(3)

From Eq. 13, the reaction rate constants for each step are k1, k2, and k3. A mathematical model for the transesterification chemical reaction is simplified by neglecting the in-between reactions of diglycerides and monoglycerides because the final product is methyl ester, and the by-product is glycerol. Because of this, the 3-step reaction can be reduced to a single-step reaction, as shown in Eq. 4.

$$\mathrm{TG}+3\mathrm{MeOH}\stackrel{}{\leftrightarrow }\mathrm{G}+3\mathrm{ME}$$
(4)

Biodiesel has been gaining more attraction in the research arena as an environment-friendly and sustainable fuel for CI engines, due to its superior properties compared to diesel. The use of alternative fuels (AFs), such as biodiesel and vegetable-based fuels in CI engines results in unsatisfactory performance due to the higher viscosity and lower energy content of the fuel [19,20,21,22]. Kinetic studies and thermometric analyses can be time-consuming and costly to conduct, especially if multiple samples need to be analysed. These types of analyses often require specialized equipment and facilities which may not be readily available to all researchers. Depending on the disposal method of the waste cooking oil, there may be environmental concerns associated with its use in research, particularly if it is not properly disposed of or recycled after the study is completed [20,21,22,23]. There were kinetic investigations to characterize transesterification reaction kinetics with KOH acting as a catalyst in this research. At atmospheric pressure, these optimum transesterification values for waste cooking oil transesterification conditions were optimized: Based on the 9:1 methanol/oil molar ratio, the catalyst is employed at 50 to 60 °C with 0.45 wt.% of oil ratio. These findings can be used to predict the reaction's rate constant and activation energy. The main objective of this research work is to perform a kinetic study and thermometric analysis of waste cooking oil. Using the Arrhenius equation, the activation energy and frequency factor were determined accordingly. At different temperatures, thermodynamic parameters were also taken into consideration in terms of Gibbs free energy, enthalpy, and entropy.

2 Material and methodology

2.1 Raw material

In this research, Waste cooking oil is collected from the hostel mess of National Institute of Technology, Hamirpur (Himachal Pradesh), India.

2.2 Methodology

The production/extraction process of pure biodiesel, i.e., B100, is described briefly in the form of the flow chart in Fig. 1 [24]. This flow chart was created by studying the various factors that affect the biodiesel yield on the complete production of pure biodiesel (such as the methanol/oil molar ratio, the amount of catalyst in w/w%, the reaction temperature, and the chemical reaction time) through the transesterification process of waste cooking oil (raw biodiesel in this research work) with biodiesel ASTM standard specifications.

Fig. 1
figure 1

Proposed biodiesel production flowchart

2.3 Determination of acid value

The Isopropyl Alcohol Method is commonly used for analyzing the Free Fatty Acid (FFA) content of oils. This technique involves mixing 1 g of oil with 10 ml of Isopropyl Alcohol and 2 to 3 drops of Phenolphthalein Indicator. Slowly add 0.1N KOH to the mixture until a pale pink color persists for 10 s. Make a note of the reading to determine the acid value, which marks the end of this process. Make a note of the reading to determine the acid value, which marks the end of this process. This titration method helps in determining our oil sample acid value directly and FFA through a mathematical relation mentioned below in Eq. 5:

$$Acid\;value= \frac{56.1\times N\times V}{w}$$
(5)

where w represents the weight of the oil sample, N represents the normality of the solution, V represents the volume of the solution used in the titration, and 56.1 is the Molecular weight of KOH. Hence the percentage of Free Fatty Acid (FFA) can be calculated as shown in Eq. 6:

$$FFA (\%)= \frac{Acid\;value}{2}$$
(6)

3 Result and discussion

Figure 2 shows that 88.81% ME was produced during transesterification at 333 K with 0.45% KOH (w/w) and at an optimum molar/oil ratio of 9:1. As the values of the chemical reaction parameters go above this value, the ME yield goes down because the reaction can go in both directions. In Fig. 4, the value of slope coefficient (R2) shows that the first order is the best fit. The correlation coefficients for 323 K and 333 K are 0.9277 and 0.9866, respectively. Figure 5 shows that the transesterification reaction did not follow the second-order kinetic model since the correlation coefficient was 0.9661 at 323 K and 0.9732 at 333 K. Figure 5 shows that the transesterification reaction followed the first Order kinetic model because it had a high correlation coefficient. At 323 K and 333 K, the values of the rate constants K were found to be 0.0196 and 0.0327, respectively. The result shows that the rate constant increased as the temperature increased. Therefore, the yield of FAME starts increasing as the temperature increases.

Fig. 2
figure 2

Effect on biodiesel yield% with a variation of temperature

3.1 Biodiesel process optimization

3.1.1 Effect on pure biodiesel yield% due to variation of temperature

Figure 2 shows how the temperature of the process affects the biodiesel yield over time. WCO oil was converted to methyl-ester at a molar ratio of 9:1 (methanol to oil) in the presence of 1.4 g KOH catalyst, and the reaction was carried out at two distinct temperatures of 50 and 60 °C in the presence of 300 rpm of agitation. When studying the transesterification reaction, it is usual practice to carry out the study at temperatures that are somewhat close to the alcohol's boiling point used in the reaction. Pumping and stirring the oil became difficult below 50 °C due to its high viscosity, and it was recommended that oil be stored at a temperature between 50 °C and 55 °C to keep it liquid. Figure 1 shows that the biodiesel yield increases with time, and after 50 min, it is nearly constant. After 60 min, a biodiesel production of 70.24 percent is obtained at 50 °C, compared to an output of 86.01 percent at 60 °C. This is because when the temperature rises, the viscosity of WCO oil lowers, allowing for better interaction with methanol. Glycerol separates and settles out more quickly at higher temperatures, resulting in a faster reaction rate and a higher output of biodiesel.

3.1.2 Effect of Stirring speed on Biodiesel yield

While keeping other parameters constant, the influence of stirring intensity on biodiesel yield was tested at 300 rpm, 550 rpm, and 800 rpm. Figure 3 shows how biodiesel yields change with stirring intensity over time. The Figure also shows the stirring intensity impacts on biodiesel yield by escalating the nominal contact area between the two reactants. Increasing stirrer speed shortens reaction time and boosts conversion. Beyond a particular stirrer speed, the yield wouldn't rise. Thus, feedstocks with varying physical qualities require variable stirrer speeds [25]. Figure 3 shows that biodiesel yield increases with agitation speed and does not change much after 50 min. The final biodiesel yield was practically the same when the agitation speed was doubled after 50 min. In this work, 300 rpm is the optimal stirring speed for the reaction.

Fig. 3
figure 3

Effect on biodiesel yield% with variation of stirring intensity (rpm)

3.2 Kinetic model

The kinetic analysis that is described here assumes that both pseudo-first and second order irreversible kinetics are at play. The proposed mechanism presupposes that the catalytic process is completely homogenous. In the current investigation, the rate constant of the reaction is determined by taking an appropriate quantity of methyl esters (ME) that were created throughout the reaction; more specifically, the yield of methyl esters as a function of time was employed to investigate the kinetics of the reaction. For the treatment of the kinetic data, the First Order model proposed by Freedman et al. (1986) [5] and the Second Order model proposed by Noureddini and Zhu (1997) [26] were employed, respectively (Figs. 4 and 5).

Fig. 4
figure 4

First Order Kinetic reaction at 50 and 60֯c

Fig. 5
figure 5

Second Order Kinetic reaction at 50 and 60֯c

3.2.1 Determination of reaction order

First order

The mathematical relation for the first-order rate constant of the reaction can be written as:

$$Rate = \frac{-d{ME}_{A}}{dt} = k{C}^{n}$$
(7)

The above mathematical Eq. (7) of first-order may also be written as

$$Rate = \frac{-d{ME}_{A}}{dt} = k{ME}_{A}$$
(8)

Since Triglyceride (TG) concentration is related to conversion degree.

XA, represents the fractional conversion of the biodiesel (FAME).

$${\mathrm{ME}}_{\mathrm{A}}={\mathrm{ME}}_{\mathrm{AO}}(1-{\mathrm{X}}_{\mathrm{A}})$$

Where MEA and MEAO are the actual and initial TG concentrations.

$$\frac{-d{ME}_{A}}{dt} = \frac{d{X}_{A}}{dt} = k(1 - {X}_{A})$$
(9)
$$\frac{-d{X}_{A}}{dt} = \mathrm{k}(1 -\mathrm{ XA})$$
(10)

Integrating the above Eq. 10,

$${\int }_{0}^{{X}_{A}}\frac{1}{1 - {X}_{A}} = k{\int }_{0}^{t}dt$$
(11)
$$-\mathrm{ ln}\left(1 - {X}_{A}\right)=\mathrm{Kt}+\mathrm{C}$$
(12)

where C is the constant of integration and MEA = (1 – XA)

$$\ln\;{ME}_A=-kt$$
(13)

The pseudo-first order rate equation can be written as.

$$\mathrm{ln}\frac{1}{(1-{X}_{A})}=kt$$
(14)

where k is denoted as reaction rate constant (min−1)

Second order

Second order Kinetic model according to Noureddine and Zhu (1997) was used to treat the kinetic data

$$\left(-\frac{{r}_{A}}{dt}\right)= \frac{d{ME}_{A}}{dt}=k{{ME}_{A}}^{2}$$
(15)

where ME.2 = MEAO × (1 – XA)

$$\frac{{dME}_{A}}{dt} = \frac{{dX}_{A}}{dt} = k{ME}_{AO}{(1 - {X}_{A}) }^{2}$$
(16)

where k is denoted as the reaction rate constant (min−1)

Separating the variables, we obtain

$$\frac{-d{X}_{A}}{{\left(1-{X}_{A}\right)}^{2}} = k{ME}_{AO}dt$$
(17)

The pseudo-second-order equation can be written as.

$$\frac{1}{\left(1-{X}_{A}\right)}=kt$$
(18)

3.3 Calculation of activation energy

For the determination of the Energy of activation, which is required for the transesterification process of WCO, the Svante Arrhenius theory was applied. The equation which relates activation energy, temperature, and reaction rate constant are expressed mathematically in the Eq. 19:

$$k = A{e}^{-Ea/RT}$$
(19)

By taking Logarithmic on both sides of the above mathematical Eq. (19) of activation energy,

The final equation obtained is written below:

$$\ln\;k=\ln\;A-\frac{Ea}R\times\frac1T$$
(20)

where k represents the constant for the reaction rate, A represents the frequency factor of the Arrhenius equation (min−1), R represents the universal/molar gas constant (8.314 Jmol−1 K−1), T represents the thermodynamic temperature in kelvin, and Ea represents the energy of activation. The generation of pure biodiesel i.e., from waste cooking oil, was tested at two different temperatures, and KOH was used as the catalyst. The ln k values were determined, and a plot of those values against 1/T was used for the determination of the activation energy (Ea), as shown in Fig. 6. A straight line is obtained when ln k is plotted against 1/T using the Arrhenius method. The activation energy, along with the frequency factor, was determined by taking the slope and the intercept of the linear fit of ln k vs 1/T, respectively. The value that was found for the activation energy of the chemical reaction (Ea) is 45.76 kJmol−1, while the value that was obtained for the frequency factor, A, is 4,95,340.16 min−1. When we talk about a reaction's activation energy, we're talking about the minimal amount of energy that its reacting molecules need to have for the reaction to take place. The lower the activation energy is, the easier it will be for the reaction to take place. Various activation energy values have been recorded in the published research, which pertains to the conversion of WCO to biodiesel, is one of them. However, the activation energy obtained in this work is in the same order as reported in the literature of 56.12 kJmol−1 [27], 53.72 kJmol−1 [28], 89.7 kJmol−1 [29], 113kJmol−1, 148 kJmol−1 [30] by making use of a variety of unique approaches, respectively. This calculated activation energy is reasonable; therefore, biodiesel can be made from WCO.

Fig. 6
figure 6

Arrhenius plot Ln(k) versus 1/T

3.4 Thermometric parameters

The equation developed by Eyring-Polanyi to determine the Gibbs free energy (Gibbs) can be expressed as equation.

$$k= \frac{{k}_{b}T}{h}\mathrm{exp}\left( -\frac{\Delta G}{RT}\right)$$
(21)

By taking the natural logarithm of above Eq. (19) and substituting ΔG = ΔH – TΔS into the equation, where ΔH is enthalpy and ΔS is the entropy of activation, respectively,one can write Eq. (21) as follows:

(22)

A universal gas constant of 8.314 J mol−1 K−1 is referred to as R, a Boltzmann constant of 1.38 × 10–23 J/K is referred to as kb, and a Planck's constant of 6.63 × 10–34 J s is called h. It is common to consider the Transmission Coefficient, К, to be a value of one. The values of change in Gibbs free energy(ΔG), change in Enthalpy (ΔH), and change in Entropy (ΔS) can be computed using Eq. (22), and Eyring plot (Fig. 7) can be used to determine the slope and the intercept of a line between 1/T and ln k/T. Table 1 shows that the values of ΔH and ΔS are 43,039.91 Jmol−1 and -144.99 Jmol−1 K−1, respectively, based on the data. It was determined that the value of ΔG at 333 K was 91,323.91 J/mol based on the values of ΔH and ΔS. To generate the products, the reactants must be heated to reach the transition state, as shown by a positive value of ΔH, and when ΔS is negative, it demonstrates that the transition state possesses a higher degree of organized geometry and alignment than the reactants do in the ground state. Negative values of ΔG imply an endergonic reaction that was not spontaneous. There are numerous studies in the literature describing the thermodynamic parameters that have been conducted so far, as shown in Table 1, and their S. platensis algae biodiesel has different ΔH and ΔS values than biodiesel made from Chlorella algae [31] along with the leather tanning waste, this is because the manufacture of biodiesel is done in a variety of ways [32]. Chlorella oil was extracted and transesterified in two steps by Ahmad et al. at 60 ֯C [31]. At 250–325 ֯C, Ong et al. used supercritical conditions to transesterify the leather tanning waste oil [32]. Furthermore, this research work is considered on the basis of the single-stage biodiesel extraction process and transesterification of algae biomass, i.e., S. platensis, at a specific temperature of 55 ֯C for the final production of pure biodiesel. A change in the method used to produce biodiesel alters reaction parameters, which in turn alters thermodynamic characteristics.

Fig. 7
figure 7

Eyring plot

Table 1 The thermodynamic parameters that were considered in the final production of pure biodiesel

4 Conclusion

Using the Arrhenius equation, the activation energy and frequency factor were determined, and at different temperatures, thermodynamic parameters were also taken into consideration in terms of Gibbs free energy, enthalpy, and entropy. In this research work, a Single-step transesterification reaction is used to prepare the biodiesel from waste cooking oil with 0.45% w/w KOH as a catalyst and at a 9:1 methanol/oil ratio. The conversion rate of WCO was obtained maximum at 60֯C temperature and 300 rpm stirring speed. The kinetic study was carried out with first and second-order kinetic models, amongst which the first-order kinetic described the best model according to R2. The activation energy of the chemical reaction (Ea) obtained is 45.76 KJmol−1 which is comparable to the values procured in other studies. The numerical values of thermodynamic parameters ΔG, ΔH, and ΔS were found to be 91.32 KJmol−1, 43.04 KJmol−1, and -144.99 Jmol−1 K−1 respectively, which shows that the reaction was not spontaneous, thermodynamically favorable, and endergonic in nature. Studies have revealed that biodiesel made from waste cooking oil is a more suitable and environment-friendly alternative to fossil fuels.

4.1 Future scope

Kinetic study involves the analysis of the rate of reaction and the factors that affect it. This technique can be used to optimize the conversion of waste cooking oil into biofuels and to identify the most efficient catalysts and reaction conditions. Thermometric analysis on the other hand involves the measurement of heat flow during a chemical reaction. This technique can be used to determine the energy content and calorific value of waste cooking oil and its derived biofuels. In addition, the use of waste cooking oil as a biofuel can help to reduce waste and promote a circular economy. Therefore, there is a growing interest in the scientific community and the industry to explore the potential of waste cooking oil as a renewable energy source, and kinetic study and thermometric analysis are likely to play an important role in this area in the future.