1 Introduction

Currently, numerous researchers have conducted many experimental studies on biodiesel to find alternative solutions to energy toward fuel for diesel engines without amendment, and the demand of clean sustainable energy sources [17, 27]. Biodiesel is the most promising alternative diesel fuel, it has received a lot of attention in recent years, as global energy demand has increased (Surya et al. [4, 11]).

During the previous decades, worldwide petroleum consumption has always increased due to the development of the human population and industrialization, which affected the depleting fossil fuel reserves and increased petroleum prices [1]. Energy is basic for development and central to sustainable development, poverty reduction, and progressively improved the economy of any country energy consumption and demand [28].

Energy demand is expected to increase due to rapid population growth, expanding urbanization, rising income levels, improved living standards, and economically feasible options to tackle the depleting fossil fuels and their harmful environmental impact [24, 36]. Biomass is the most alternatives renewable energy to fossil fuels energy, used globally for 15% of the primary energy supply [2]. This indicates that, fossil fuels remain the dominant source of energy used either for domestic or industrial consumption, this situation will pose a growing threat, economic, societal, and environmental to the ongoing development of human activities through it is non-renewable and problems of worldwide climate changes [32]. However, biodiesel has received a lot of attention in recent years due to its advantages over nonrenewable source, since it is biodegradable, renewable, non-toxic, and emits less gaseous and particulate pollutants with higher cetane numbers than regular diesel. In addition, the growing global energy demands that are heavily dependent on oil-based fuel resources will be depleted in the near future, if current energy consumption patterns continue [14].

Rumex Crispus is a wild herbaceous perennial weed plant, which has been used as an abundant source of traditional medicine in Ethiopia to treat and cure a variety of diseases [9], Nigussie [26]). The occurrence of a large number of biologically active compounds in different species of the Rumex Crispus leaves and roots made it significant in medicine as well as the pharmaceutical industry and economic importance [33]. These active compounds are called secondary metabolites like flavonoid glycosides, anthraquinones, steroids, proanthocyanidins, and phenolic compounds [23, 33].

In agricultural land, Rumex Crispus leaves and root are common on waste ground and a very serious weed throughout the world, because of the ability to flower numerous times annually, and production of a huge number of seeds per plant, which remain viable in the soil for many years to survive, and ability to re-grow from vegetative fragments left in the soil after cultivation or cutting. These are undesirable in agriculture because they are found in all types of crop as an early colonizer after disturbance; since it affects crop growth, decreases yields, and reduces forage feeding value by competition [3, 30].

A convenient way to lower the use of fossil fuels is by using biomass as a potential source of energy rather than treating them as waste. A cheaper feedstock of Rumex Crispus leaves and roots oil can be used to improve the economics of biodiesel, which will lower the price of petroleum diesel. Besides, recycles Rumex Crispus leaves and roots rather than discarded as wastes, and resolves environmental problems regarding the usage of fossil fuels. However, extensive use of fossil fuels for energy has resulted in a discouraging range of energy-related challenges, both related to the quantity and quality of fuels.

Catalyst plays an important role in the production of biodiesel. In line, various heterogeneous and homogeneous catalysts have been used for the production of biodiesel. Homogeneous catalysts have drawbacks such as low Free Fatty Acid (FFA) and moisture tolerance and complex purification processes. On the other hand, researchers are considering heterogeneous catalysts instead of homogeneous catalysts to eliminate this cause [35]. Heterogeneous catalysts have many advantages over homogeneous catalysts such as recycling, reuse, easily separated from the product, and can be designed to give higher selectivity and longer life leading to economical production costs. However, heterogeneous catalysts also have many disadvantages such as resistance to mass transfer, time consumption, rapid deactivation, and inefficiency [18].

In this study, we optimize and investigate the effects of the most important independent process variables affecting the production of biodiesel (methyl ester) yield through transesterification reaction using Calcium Oxide as a solid heterogeneous catalyst to attain optimal conditions by Response Surface Methodology (RSM) via Central Composite Design (CCD). The molar ratio of methanol to oil, reaction temperature, reaction time, and concentration of catalyst is the parameters that varied with considering the constant stirring rate. The composition of Fatty Acid (FAC) and the properties of biodiesel are estimated according to the standards ASTM D6751 and EN14214, and FTIR and GC–MS chromatographs are used to identify the functional groups, and composition of biodiesel respectively.

2 Materials and Methods

2.1 Materials and Reagents

The fresh Rumex Crispus leaves and roots were collected from near Jimma University, Jimma Ethiopia, and the eggshells were collected from Jimma university institute of technology staff launches. The chemical n-hexane (99%), methanol (99.8%), and Sulphuric acid (98%), were purchased from Chem-Supply Kirkos Ltd. in Addis Ababa, Ethiopia, these used chemicals were pure analytical grade.

2.2 Sample Collection

The collected leaves and roots of Rumex Crispus were separated manually for drying purposes and washed with distilled water several times to remove any impurities, and unwanted materials from the leave, and roots. Consequently, dried at 105 ℃ for 3 h in an oven until constant weight, to determine the moisture contents, and milled to a fine powder with a mortar and pestle, and kept in room temperature until extracted oil.

2.3 Extraction of Rumex Crispus Leaves and Roots Oil FAMEs

The prepared Rumex Crispus leaves and roots (Fig. 1) and prepared powder was used for the oil extraction by Soxhlet extractor with n-hexane as a solvent [12, 29]. The extracted crude oil was kept in a water bath at 70 ℃ using a rotary evaporator until the solvent n-hexane was recovered. The oil was placed in an oven at 60 ℃ for 15 min to remove any remaining solvent in the separated oil, and stored at 4 ℃ in plastic-lipped bottles, and used as a raw material for the production of biodiesel [4]. The oil yield extracted by Soxhlet extraction was estimated in percentage using Eq. (1).

$${\text{Oil yield}} \left( \% \right) = \frac{{{\text{Weight}} \,{\text{of}} \,{\text{extracted}} \,{\text{oil }}\left( {\text{g}} \right)}}{{{\text{Weight}} \,{\text{of}} \,{\text{powderd}} \,{\text{Rumex}} \,{\text{Crispus leaves}} \,{\text{and}} \,{\text{roots}} \left( {\text{g}} \right) }}$$
(1)
Fig. 1
figure 1

Rumex Crispus and Rumex Crispus roots and leaves

2.4 Catalyst Preparation

To prepare a heterogeneous catalyst from the collected waste eggshells were thoroughly washed two or three times with distilled water and placed in an oven at 105 ℃ for a day to dry completely. Then the dried eggshell was heated to 650 ℃ at a rate of 10 ℃/min for 3 h to ensure the calcination process. The calcined eggshell was ground using a mortar and pestle [16]. The powder (CaO) was stored at room temperature. Subsequently, the prepared catalyst was refluxed and stirred in methanol for 1 h, centrifuged, and then placed in a furnace at a temperature of 650 ℃ (temperature rise of 5 ℃/min) for 1 h. The catalyst produced was stored in a desiccator in a polyethylene container to prevent absorption of water and used for transesterification reaction to produce biodiesel with methanol in the presence of a heterogeneous catalyst (CaO).

2.5 Design of Experimental and Statistical Analysis for Optimization

Design-Expert software (version 13.0), used to optimize the process variables and to predict the percentage yield of the response obtained at the design points and determine the optimal operating parameter for producing the maximum yield of biodiesel by the transesterification process without adversely affecting process parameters (Rajesh & Devan, 2021). Response surface methodology (RSM) were used in this study to examine various independent process variables for biodiesel production from Rumex Crispus leaves and roots oil utilizing a heterogeneous (CaO) catalyst based on the analysis of variance (ANOVA) has a significant impact on biodiesel yield through the transesterification process. The statistical analysis saves time, raw materials, and other costs associated with running experiments. The four independent process variables selected for this work are shown in Table 1. This range level of the factors were selected by initial tests carried out on the effects of the individual factors on the biodiesel yield and the operating limits of the production process conditions are shown in Table 1 with the coded symbols, ranges, and levels of the studied factors.

Table 1 Selected Independent process variables

2.6 Transesterification Process Using a Heterogeneous CaO Catalyst

Choosing the right technology to produce biodiesel is critical to addressing the challenges of feedstock processing, yield, quality, and consumption of chemicals and inputs. The transesterification reaction is the most common chemical reaction, which was used to produce biodiesel from oils extracted from Rumex Crispus leaves and roots, and convert oils or triglycerides (TAG) to methyl esters (biodiesel) via methanol (FAME) in the presence of a catalyst calcium oxide (Fig. 2). To carry out the transesterification reaction, a certain amount of methanol was mixed with certain amounts of the produced catalyst, and preheated oil was condensed. Finally, the by-product (glycerol), which needs to be separated from the final product along with drops of methanol, unreacted triglycerides, and the catalyst. The conversion of Rumex Crispus leaves and roots oil into biodiesel through the transesterification process reduces the; molecular weight, a viscosity of oils, flashpoint slightly, and increases the volatility marginally. To prevent the evaporation of methanol in the extract mixture, the temperature value is below the boiling point of methanol (64.7 \(^\circ{\rm C}\)) [7].

Fig. 2
figure 2

Flow diagram of biodiesel production by transesterification process

Biodiesel production from Rumex Crispus leaves and roots oil in presence of heterogeneous CaO catalyst was conducted in three-neck flasks (50 mL) under a variety of independent operating process parameters was adjusted in Table 1. The right quantity of methanol was combined with the right quantity of CaO catalyst and added to preheated the Rumex Crispus leaves and roots oil at the right temperature to carry out the transesterification reaction. The transesterification reaction was carried out in all tests at a constant mixing rate of 500 rpm [15].

Upon completion of the transesterification reaction, the generated catalyst and glycerol were separated from the biodiesel by centrifuging and a funnel. The solution was transferred to a separator funnel and the mixture was allowed to settle down for 24 h to form two layers. The upper layer is biodiesel and the lower layer is glycerol [25]. Once the glycerol and FAME phases were separated, the last phase was washed with distilled water to remove any residual catalyst, glycerol, and soap (Rajesh and Devan. [31]). The washing process was continued until the pH reached 7 (after 3 successive rinsing with water).

Finally, the produced biodiesel was heated in a rotary evaporator at 90 ℃ for 50 min to entirely separate the methanol from the biodiesel [16]. Once the biodiesel has been produced, the percentage yield of biodiesel through transesterification reaction was calculated at each stage using Eq. (2).

$$\% \, Y \, = \, \frac{{\text{Weight of methyl esters produced}}}{{\text{Weight of raw oil used}}} \times 100$$
(2)

2.7 Characterization of Oil, Catalyst, and Produced Biodiesel

FT-IR analysis (PerkinElmer spectrometer) was performed to investigate the functional groups of the extracted oil, catalysts, and produced biodiesel. FT-IR analyzes were performed in the range of 500–4000 cm−1. To measure the functional groups in the oil and biodiesel, droplets were poured onto the KBr plate, the second plate was placed on the first plate (sandwich mode) and the oil was converted to a thin film. To measure the functional groups of the catalyst, 1 mg of catalyst powder was first mixed with completely dried potassium bromide (KBr). After that, a small amount was poured into a special mold and pressed with a hydraulic press to obtain a transparent tablet, and finally, the FT-IR analysis was performed [20].

The Physicochemical properties of extracted oil from Rumex Crispus leaves and roots oil and biodiesel was characterized by kinematic viscosity, viscosity, density, specific gravity, acid value, calorific value, saponification number, and iodine value, which were analyzed according to international standard of ASTM D 6751 and EN 14214.

3 Results and Discussion

In this study, the relationship between the yield of biodiesel as a response and four operating conditions, methanol-to-oil molar ratio, reaction temperature, reaction time, and catalyst concentration was investigated. Thirty (30) experiments were performed based on the response surface methodology (RSM) matrix, and the results were examined (Table 3), and optimized the transesterification variables using the CCD.

3.1 Characterization of Catalyst

The prepared calcined egg shell was characterized by FTIR analysis to determine their functional groups of various compounds found in calcined egg shell. Figure 3 shows the results of an FT-IR analysis of the Calcium Oxide sample prepared from waste egg shell in the range of 400–4000 cm−1. Thus, observed peaks peak at 3450 cm−1; indicating that the stretching vibration associated with hydroxyl (OH) and carbonyl functional groups in the single bond region of the calcined egg shell respectively, while the faint bands in 2920 cm−1 delivered to C–H asymmetrical stretch. Furthermore, the peaks observed in the range of 1590 and1290 cm−1 were assigned to the pyrone C=C and C=O to the carboxyl group correspondingly, and the presence of C-O stretch at wavenumber 1200 cm−1 indicates the presence of alkoxy functional class. The peak in the region of 1100–900 cm −1 is also associated with the expansion and contraction of Si–O or C-O in alcohol and ether.

Fig. 3
figure 3

Fourier transform infrared spectra of calcined chicken eggshell

3.2 Characterization of Oil, and Produced Biodiesel

The density of the oil is 900 kg/m3, which is consistent with the density according to ASTM D6751 and EN 14214. The acid and saponification values of the oil were determined using standard titration methods, and by using the procedure described by [8]. The density at 15 ℃ was measured with a densimeter [5, 8]. The kinematic viscosity was measured using a viscometer, and the kinematic viscosity was estimated using the density and kinematic viscosity at 40 ℃. The acid value of Rumex Crispus leaves and roots oil is 1.5 mg KOH/g, and free Fatty Acid are half of the acid value is 0.75.

Table 2 summarizes the physicochemical properties (i.e. density, viscosity, acid value, iodine value, and saponification value) of Rumex Crispus leaves and roots oil and produced biodiesel based on the standard methods of ASTM D6751 and EN 14214. These have been significantly improved and meet the required specifications. This result shows that the Rumex Crispus leaves and roots oil can be used as substitute feedstock for the production of biodiesel.

Table 2 Summarized the Physico-chemical of the Rumex Crispus leaves and roots oil, and produced biodiesel in United States standards (ASTM D-67510 and Europe (EN 14214)

3.3 Analysis of Rumex Crispus Leaves and Root Oil, and Biodiesel by FT-IR

The infrared spectrum (FT-IR) analysis of the Fourier transform of produced biodiesel shown in Fig. 4 was used for quantitative analysis. The peak in the spectrum represented the functional groups contained in the oil. The wave number, functional group, band assignment, and absorption intensity of the absorption peaks were detected in the infrared spectrum of the Fourier transform of oil, and biodiesel. Figure 4 shows the FTIR spectrum of the extracted oil and biodiesel in the range of 400–4000 cm−1. The broad bond in the range of 1813–2678 cm−1 was attributed to the stretching mode of the O–H groups, as well as weak bond of the OH- bending vibration at 1600 cm−1, which occurred due the adsorption of water molecules from the air on the surface of the catalyst. The carbon-hydrogen bonds formed at 625–3330 cm−1, the functionality of the ester at 1715–1750 cm−1, the terminal carbons CH3 at 1354–1589 cm−1, and the carbon–oxygen bonds at 762–1120 cm−1. The results demonstrated that the produced biodiesel is composed of long-chain Fatty Acid esters. The transesterification process are chemically similar to the refined oil, the CaO stretch peak is 1663 cm−1 located in the range 2966–611 cm−1 is typical of esters, the spectrum is often found in FAME and refined oil.

Fig. 4
figure 4

FT-IR spectra of extracted oil, and biodiesel

3.4 GC- MS Analysis of Biodiesel

GC–MS (Gas chromatography-mass spectrometry) was performed to determine the composition of the methyl ester. While using GC–MS, we should always consider two important pieces of information: retention time (RT) and peak area (PA). However, due to the unique physical properties of the sample, the RT must remain constant as long as the analytical method is the same. It is also important to understand the elution order of the compounds in the mixture before the GC—MS analysis of the sample. Figure 5, shows the chromatogram of biodiesel with the presence of derivatives of (a) C16:0 (palmitic acid methyl ester), (b) C17:0 (Methyl heptadecanoate), (C) C18:1 (oleic acid methyl ester), (d) C18:2 (linoleic acid methyl ester), (e) C18:3 (linolenic acid methyl ester), (f) diglycerides, (g) unreacted triglycerides present in the biodiesel. The chromatogram of biodiesel obtained from Rumex Crispus leaves and roots oil confirmed the formation of methyl esters.

Fig. 5
figure 5

GC–MS chromatogram of biodiesel

3.5 Optimization of Operating Variables by Statistical Analysis via Response-Surface Methodology (RSM)

The quadratic regression model is used to investigate the effects of numerous independent operating variables on the produced biodiesel. The commonly statistical schemes used for response surface methodology (RSM) are central composite designs (CCD), which can be used under certain parametric conditions. RSM was used to optimize the interaction of four variables: the methanol to oil ratio, reaction temperature, reaction time, and catalyst loading. Analysis of variance (ANOVA) based on the analysis of parameters that have a significant impact on biodiesel yield through the transesterification process from Rumex Crispus leaves and roots oil biodiesel yields ranged from 74.14 to 94.18%. Table 3 shows the results of the Box-Behnken design model for optimizing the process parameters. These results indicate that biodiesel yields vary by the production process. All running orders have been randomized to avoid systematic errors.

Table 3 Experimental central composite design result for the optimization of parameters of the transesterification process for the biodiesel yield (%) from Rumex Crispus leaves and root oil

The Predicted biodiesel yield values were generated from a quadratic regression model taken from the statistical analysis of experimental data using response surface methodology (RSM). The response surface methodology was used to calculate the effect of each parameter and its interaction with other parameters. The response (biodiesel yield %) was correlated with other parameters using a full quadratic regression model shown in Eq. (3). This model represents the predicted yield (Y) of Rumex Crispus leaves and roots oil biodiesel as a function of methanol: oil molar ratio (A), reaction temperature (B), reaction time (C), and catalyst concentration (wt%) (D).

$$\begin{aligned} {\text{Y}} & = 84.62 + 0.5498{\text{A}} - 0.6391{\text{B}} - 0.7479{\text{C}} - 0.3333{\text{D}} + 1.67{\text{AB}} \\ & + 0.5863{\text{AC}} + 2.96{\text{AD}} - 0.2925{\text{BC}} + 0.7525{\text{BD}} \\ & - 3.56{\text{CD}} - 0.0827{\text{A}}^{2} - 0.0174{\text{B}}^{2} + 0.2136{\text{C}}^{2} + 0.0026{\text{D}}^{2} \\ \end{aligned}$$
(3)

This model equation in terms of coded factors shows that the positive coefficients are A, AB, AC, AD, BD, A2, C2, and D2, which are the high levels of the factors and the negative coefficients are B, C, D, \({\mathrm{A}}^{2}\),\({\mathrm{B}}^{2}\) and the interaction of BC, and CD are the low levels of the factors. The final coded equation is useful for identifying the relative impact of factors by comparing the coefficients of the factors. The estimated coefficient represents the expected response changes per unit change in the factor by assuming that all remaining factors are constant. Table 4 shows the importance of these parameters related to the probability value (p-value).

Table 4 Results obtained from analysis of variance (ANOVA) for the Quadratic model

Analysis of variance (ANOVA) is performed to determine the significance and validity of the quadratic model, as well as the effects of individual significant terms and interactions on the selected responses (S. [10]. As the ANOVA results are shown in Table 4, the quadratic regression model has an F-value (73.01) higher and implies the model is significant and a p-value or probability error value is used to check the significance of each regression coefficient which is (0.0001) lower than the significance level \(\left(\mathrm{P}<0.05\right)\), indicating that the model terms are significant. In this case, A, B, C, D, AB, AC, AD, BD, and CD are significant model terms, and values greater than 0.1000 indicate that the model terms are not significant. If there are many insignificant models, this implies reduction may improve the model.

The lack of fit is also determined by the quadratic regression model, which shows a lack of fit, this indicates that the model does not sufficiently describe the relationship between the independent variables (i.e. the methanol to oil molar ratio, the reaction temperature, the reaction time and the concentration of the catalyst) and the dependent variable (i.e. biodiesel yield). In this study, the F and p-value of the fit parameter were found to be 1.42 and 0.3670, respectively. The p-value of the missing adjustment parameter is greater than 0.0500, indicating that there is a good fit between the quadratic regression model and the experimental data.

The coefficient of determination R-squared (R2) reflects the variability of the dependent variable explained by its relationship with the independent variables (predictive variables). In general, a high R2 value indicates that the model is responsible for more data variability and therefore the data points will be closer to the regression line. In other words, a high R2 value indicates a good fit between the model and the experimental data. Based on the results of Table 4, it can be seen that the R2 value is 0.9955, indicating that 99.55% of the variability of biodiesel yield is explained by the quadratic regression model.

However, it should be noted that the value of R2 can increase as the number of predictive variables in the model increases and therefore care must be taken in interpreting the value. The corrected coefficient of determination (adjusted R2) is used to compensate for this undesirable effect, as it not only indicates how well the model fits the experimental data but also takes into account the number of predictive variables. Adjusted R2 will increase if useful predictive variables are added to the model, and likewise, adjusted R2 will decrease as unnecessary predictor variables are added. The adjusted R2 is 0.9720 as shown in Table 4, indicating that the model accounts for 97.20% of the variation in biodiesel yield.

The predicted and experimental values of the biodiesel yield are shown in Fig. 6, as the line of a perfect fit with the point corresponding to the zero error. The differences between the experimental and predicted values appear to be less than 0.2, indicating good agreement between the model and the experimental data. A point close to a straight line indicates that the experimental and predicted values are in good agreement. This result is consistent with R2 obtained earlier and R2 modified to a value close to unity. Therefore, the regression model gives a good estimate of system response (i.e. biodiesel yield) with changes in process variables (Fig. 7).

Fig. 6 
figure 6

Plots of the experimental versus predicted biodiesel yield (%)

Fig. 7
figure 7

Plots of Residual: a normal % probability plot vs studentized residuals, b plot of the predicted biodiesel yield versus studentized residuals

3.6 Effect of Process Variables on Biodiesel Yield

This study examined the effect of the molar ratio of methanol to oil on the biodiesel yield by varying the methanol to oil ratios within the ranges of \(6:1-8:1.\) The most effective variable affecting the conversion efficiency of the produced methyl ester yield during the transesterification reaction is the molar ratio of alcohol (methanol) to extracted oil. Since transesterification is an equilibrium reaction, a large excess of alcohol is required for the reaction to proceed and avoid the reversible reaction (Elkady et al. [13]).

Figure 8a shows the three-dimensional surface plot of the combined effects of methanol to oil molar ratio and catalyst concentration on biodiesel yield. Finding the appropriate methanol-to-oil ratio is critical in determining the methyl ester yield. If the methanol to oil ratio is insufficient for the transesterification reaction, glycerides will not be converted to Fatty Acid methyl esters, resulting in lower biodiesel yields. In general, it can be observed that at a fixed catalyst concentration increasing the methanol to oil molar ratio has an insignificant effect on the yield of biodiesel. Increasing the amount of methanol increases the time required to extract excess methanol from biodiesel after the transesterification process since methanol has a polar hydroxyl group that acts as an emulsifier and thus improving the solubility of glycerol in the biodiesel phase and ultimately lowering the yield. In general, adding excessive amounts of methanol to oil are not recommended, because it decreases the percent methyl ester yield, this behavior indicates that the separation of glycerol and methyl esters becomes more difficult due to the emulsification and reversibility behavior of the transesterification reaction [20]. The maximum biodiesel yield was achieved at methanol to oil molar ratio of 8:1, keeping the catalytic concentration and reaction temperature at their optimal values. This fact indicates that excess alcohol in the transesterification process will tip to rises in the product, while the opposite side of excess methanol increases glycerol solubility, resulting in lower yields.

Fig. 8
figure 8

Three-dimensional contour plot, which shows the combined effects of a catalyst concentration and molar ratio methanol to oil, b reaction time and reaction temperature, c catalyst concentration and reaction temperature, d reaction time and molar ratio methanol to oil on the biodiesel yield

Figure 8b shows the effect of reaction temperature and reaction time on biodiesel yield when the molar ratio of methanol to oil and catalyst load are held constant at 8:1 and 1.5 wt% respectively. The figures show that the maximum biodiesel yield could be achieved with a reaction time of 3 h. A further increase in the reaction time will not affect the biodiesel yield. This could be recognized in the reverse reaction loading to reduce FAME formation. The optimal value of the reaction temperature is observed at 65 ℃. The reaction temperature has a significant influence on the reaction rate and the conversion to methyl ester. The biodiesel yield increases with increasing reaction temperature, but as it approaches the boiling point of methanol, the biodiesel yield decreases. Concerning the reaction time, the effect of the reaction temperature influences the yield to the maximum. However, compared to reaction time, the effect of reaction temperature has the greatest impact on yield [21].

Figure 8c, shows the three-dimensional surface plot of the combined effects of temperature and catalyst concentration on FFA conversion with other variables (i.e. methanol to oil molar ratio and reaction time) kept constant at their mean values \(\left(8:1\mathrm{and }3\mathrm{ hours},\mathrm{ respectively}\right)\) with constant stirring speed. In fact from Fig. 8c, it can be observed that increasing the catalyst concentration from the range of 0.50–1.5wt% decreases the biodiesel yield (Hojjat et al. [19]). This indicates that the optimal operating parameters for the transesterification parameters of methanol to oil ratio at 8:1, reaction time at 3 h, catalyst concentration of 1.5wt%, and reaction temperature of 65 ℃ with maximum biodiesel yield of 94.18%.

Figure 8d, shows the three-dimensional surface plot of the combined effects of methanol concentration, and reaction time on biodiesel yield conversion, with other variables (i.e. reaction temperature and catalyst concentration) kept constant at their mean values \(\left(8:1\mathrm{and }3\mathrm{ hours},\mathrm{ respectively}\right)\). The contour diagram indicated that there were two optimal ranges of the methanol to oil ratio, one in the lower half of the contour diagrams and the other in the upper half of the contour diagrams (Karmakar and Mukherjee. [22]). In the lower half of the contour diagram, at a low ratio of methanol to oil, there was a moderate decrease in biodiesel yield with an increase in reaction time due to the negative time effect of Eq. (3).

From Fig. 9, the ramp diagram, it can be seen that the optimum ester yield is 94.18% when the molar ratio of methanol to oil, catalyst concentration, reaction temperature, and reaction time are 8:1, 1.5wt%, 65 ℃, and 3 h respectively.

Fig. 9
figure 9

Ramp graph for maximum yield with desirability 1

4 Conclusion

This study focused on optimizing and characterizing the biodiesel production process independent parameters for biodiesel derived from non-edible feedstocks (Rumex Crispus leaves and roots oil) via transesterification reaction using response surface methodology. The response surface methodology based on the central composite design was applied to investigate the interactive effects of process parameters on the ester yield, to obtain the optimum yield of biodiesel. The optimal operating parameters for transesterification of oil at a molar ratio of methanol to oil of 8:1, a reaction temperature of 65 ℃, a reaction time of 3 h, and a catalyst concentration of 1.5wt%. These optimal operating parameters were validated with the actual biodiesel yield of 94.18%, and the predicted ester yields were 93.72% under optimized conditions. The coefficient of variance (CV %) was 0.7681 with a 98.55% confidence limit of R2. The physicochemical properties of biodiesel are produced to meet the requirements of ASTM D6751 and EN14214 standards. The values are close to the physicochemical properties of diesel leading to the conclusion that optimized biodiesel are a potential replacement for diesel fuel. The results indicated that Rumex Crispus leaves and roots oil could be a possible feedstock for biodiesel production, although more studies are needed to produce a quality fuel and to evaluate the engine performance and emissions of this biodiesel.