Response Surface Methodology Process Optimization of Biodiesel Production from Castor Seed Oil

. Te increasing demand for energy and the depletion of fossil fuel resources has led to the search for an alternative energy source. Te search for such alternative fuel sources has oriented biodiesel synthesis as the ultimate alternative energy resource of the future. Te purpose of this study was to produce castor oil and optimize biodiesel production using full factorial central composite design (CCD) through the response surface methodology (RSM) approach. Te castor oil was extracted using a mechanical press, and free fatty acids were reduced with acid esterifcation and biodiesel produced through the transesterifcation process using homogeneous catalysts. Te physicochemical properties of extracted castor oil and biodiesel including density, kinematic viscosity, saponifcation number, free fatty acid, acid number, cetane number, and iodine number were determined. Te ideal conditions for producing biodiesel from castor oil are anticipated to be a reaction period of 105min at a temperature of 50 ° C, a catalyst loading weight of 1.5%, and a methanol-to-oil ratio of 5 :1. Te biodiesel yield obtained was 95.0%, and the results of the measured parameters of biodiesel were compared with the international standards of the European norms (EN14214) and the American Society Test Material (ASTM) D6751. Te weight composition of both fatty acid and methyl ester was determined by gas chromatography-mass spectroscopy (GC-MS). Te study concluded that the results of this research are benefcial in optimizing the parameters for making biodiesel from extracted castor oil.


Introduction
An increasing number of nations have made commitments and agreements to encourage the development of alternative renewable energy sources, largely due to their concern for the environment and the necessity of minimizing CO 2 emissions to lessen their impact on global warming [1].Renewable sources of energy are being sought after due to the growing demand for energy and the depletion of fossil fuel supplies [2].Tere is a growing interest in introducing new methods of studying alternative and renewable sources of petroleum products [3].In addition, the limited fossil fuel reserve has drawn the attention of various research trends to discover alternative renewable sources of energy resources that can be used for energy production [4].Biodiesel synthesis has been identifed as the most promising alternative energy source of the future due to the investigation of such alternative fuel sources [5].
Plant and animal fats are renewable sources of the alkyl ester of fatty acids used to make biodiesel [6].Biodiesel is one of the cheap biofuels to replace fossil fuels as the primary energy source for machinery and vehicles [7].Biodiesel meets the criteria of sustainability because its production has less environmental impact and is biodegradable and nontoxic [1].In addition, biodiesel is an environmentally friendly biofuel and is preferred as an alternative energy source due to its low emissions as compared to fossil fuels [3,8].Terefore, biodiesel is a promising alternative energy source and useful for reducing greenhouse gas emissions such as sulfur and nitrogen oxides [9,10].
Biodiesel is produced worldwide from a variety of raw materials, mostly vegetable oils.Vegetable oils can be used as a raw ingredient in the production of biodiesel [8].Biodiesel produced from vegetable oil is a fuel that is as efcient as fossil fuels [5,6,11].Commercially available nonedible oils include Moringa oleifera (Moringa seeds) and Jatropha curcas (Ratanjyot), biodiesel's inedible raw materials [10,12].For this reason, more importance is attached to inedible seed oils as a source for biodiesel production [5,9,13,14].As a result, Ethiopia and other developing countries would be more convenient to produce inedible crops that can support renewable fuel.Choosing the appropriate oil as feedstock is a critical factor in the biodiesel production process.So, the most commonly utilized feedstocks for biodiesel production should possess the characteristics of being nonedible, readily available, low-cost, and adaptable to diverse climatic conditions [15].Tis study uses castor bean (R. communis) seed oil as a potential feedstock for producing biodiesel.
Te castor bean (R. communis) plant has a strong adaptation to diferent weather conditions and can grow in marginal soils.Tis trait is subsidized directly to reduce land use for the production of biofuels and to reserve it for the cultivation of products for human consumption [8].Castor seed oil, obtained from the castor (Ricinus communis) plant, is characterized by its indigestibility, solubility in methanol and methyl esters, high hygroscopicity, and high viscosity [1].Additionally, there are other ways to make this biofuel, although transesterifcation is the most popular [8].Castor oil-based biodiesel is a practical substitute for other types of biodiesel due to its technical and ecological benefts.Castor oil is one of those inedible vegetable oil seeds and useful raw materials for the production of renewable, biodegradable biodiesel [16].
Te production of biodiesel through transesterifcation reactions typically uses homogeneous alkaline catalysts such as KOH and NaOH.Tese catalysts are widely used in the industry due to their ability to operate at low temperatures, short reaction times, and low alcohol-to-oil ratios [15].To produce biodiesel, many researchers often use the transesterifcation process of oil with alcohol in the presence of a catalyst which is commonly used by many researchers [17].Short-chain alcohol and alkaline catalysts, such as sodium hydroxide (NaOH) and potassium hydroxide (KOH), were often used in the transesterifcation process to achieve the highest biodiesel yield in the shortest possible time [16].Several factors infuence biodiesel production such as the alcohol-to-oil ratio, the catalyst loading, the reaction time, and the temperature [5].Optimization of the process variables such as catalyst loading, alcohol-to-oil ratio, reaction time, and reaction temperature is required for the investigation and maximum biodiesel yield with quality assessment.However, there is still a clear research gap in the production of biodiesel from castor oil, especially regarding the optimization of important processing parameters, such as transesterifcation reaction temperature, catalyst dose, reaction time, and methanol-to-oil ratio.
It is a common practice to utilise the response surface methodology (RSM) technique to optimize process variables in order to obtain the required yield with a minimal number of experiments [18].RSM is a helpful tool for analysing the combined efects of independent factors on the dependent variable in an experiment, and it shows where the model boundaries should be so that treatment combinations can be avoided [19].Te experimental design for biodiesel production can stimulate transesterifcation conditions with good error estimates.Several researchers implement RSM for the optimization process of biodiesel production using diferent raw materials [5,17,20,21].To close the obvious research gap in the production of biodiesel from castor oil, biodiesel production was investigated by using RSM for the optimization process from extracted castor oil.
Te novelty of this work is the production of biodiesel oil from castor seed oil by optimization process and identifying infuential variables for biodiesel production using the response surface methodology (RSM)-central composite design (RSM-CCD) method.Te yield of biodiesel oil depends on the molar ratio of methanol to oil, reaction time, temperature, and catalyst loading.Terefore, the optimal parameters for the transesterifcation of castor oil such as the molar ratio of methanol to oil, reaction time, temperature, and catalyst loading were investigated to achieve the highest biodiesel yield.Furthermore, the physicochemical characteristics of the produced biodiesel, including density, acid value, kinematic viscosity, heating value, iodine number, saponifcation value, and cetane number, are studied.

Extraction of Castor
Oil. Te castor seeds were washed with distilled water and dried in sun with open air for 24 hours and heated at 60 °C for 7 hours until a constant weight was reached.Ten, castor seeds were crushed to separate their coats/shells and seed fesh.Te mortar was used to grind the castor seeds into cakes to break up the cell walls and release castor oil for extraction.Te castor oil was extracted by a mechanical press as described by a previous study [22].After compression, the crude oil and press cake were separated from one another.

Esterifcation.
Te castor seed oil was subjected to acid esterifcation to reduce its acid value.After crude castor oil was extracted, gum, high free fatty acid (FFA), moisture, and other undesirable components in the crude castor oil were removed by degumming, neutralization, deodorization, and drying.Te extracted castor oil was degummed by adding boiling water to the castor crude oil.Te mixture of crude oil and boiled water was then stirred for 2 min.After that, the mixture was moved and put in a funnel for 24 hours to 2 Journal of Chemistry separate the castor oil-containing lower layer from the unreacted upper layer.Water from the bottom layer was drained in order to isolate the oil.Te free fatty acid concentrations of the castor oil were subsequently decreased using an acid esterifcation pretreatment.Te samples were heated to 120 °C for 15 min to eliminate the moisture from the crude oil that had been extracted.By using air conditioning, the temperature was dropped to 50 °C.For acid esterifcation, the dried crude oil was next combined with a methanol and H 2 SO 4 solution.Te amount of refned oil was calculated using the following equation: yield of oil (%) � weight of castor oil weight of castor seed × 100. (1) 2.4.Biodiesel Production.Te biodiesel was produced from castor oil using the transesterifcation process.30 mL of castor oil was measured out and transferred to an Erlenmeyer fask.Te castor oil was preheated to 110 °C for 60 min to remove the moisture content in the oil.A known amount of methanol and caustic soda was prepared with diferent proportions of catalysts in the mixture and added to the preheated oil, and the mixture was stirred.Te pretreated castor oil and sodium methylate solution were poured into the 250 mL three-round-bottom fask.Before the addition of the sodium methylate solution, preheated oil was cooled to a selected temperature (30, 40, and 60 °C), and then sodium methylate was mixed in castor oil at the temperatures.Te sodium methylate solution was mixed with the preheated castor oil in a 250 mL Erlenmeyer fask and fxed on a hot plate magnetic stirrer with constant stirring at a selected temperature (30, 40, and 60 °C).Te reaction mixture was then left to stand for 30, 60, and 90 min reaction times.After the transesterifcation process, the mixture was transferred into a separatory funnel and kept overnight to undertake to settle and form two layers (thick brown layer of glycerol and yellowish colored fatty acid methyl ester).Te top level with the biodiesel was collected and mixed with distilled water at 40 °C to remove residual impurities.Te resulting biodiesel was separated from the glycerol by the separatory funnel.Te water washing process was used to further purify biodiesel.Te remaining water was subsequently evaporated by heating the cleaned biodiesel fraction to 100 °C for 60 min.

Gas Chromatography Analysis.
Te Agilent gas chromatography/mass spectrometry instruments provide the efciency, fexibility, and robust performance that modern analytical laboratories required.Te profle of the most important fatty acids contained in the castor oil was obtained by gas chromatography with mass spectroscopy (GC-MS).Specifc fatty acids were quantifed by calculating the relative percentage of total fatty acid esters.Te sample analyses were conducted in the JIJE Lab Glass Laboratory, Addis Ababa, Ethiopia, using the method described in [15].

Characterization of Castor Oil and Biodiesel.
Te physicochemical parameters considered for refned castor oil and biodiesel during the experimental study were specifc gravity, moisture content, viscosity, saponifcation number, acid number, and iodine number and were compared with the standard specifcations of American Society Test Material (ASTM) [2,15,23].

Experimental Design.
Full factorial experiment was conducted during the study period with the four selected experimental factors with the three levels as shown in Table 1.Te selected three levels of four experimental factors were based on the previous research fndings.Researchers showed from their experimental results that the oil-tomethanol ratio increases from 1 : 3 to 1 : 9, the percentage yield of biodiesel production increases from 70% to 95%, and the oil-to-methanol ratio increases from 1 : 9 to 1 : 10, but the percentage yield of biodiesel production decreases up to 80%.Tey also reported that the increase in reaction time from 15 minutes to 90 minutes increases the biodiesel yield from 65% to 95%, but an increase in reaction time from 90 minutes to 120 minutes decreases the biodiesel yield from 95% to 85%.Tey conducted the transesterifcation reaction at various reaction temperatures.By increasing the reaction temperature from 35 °C to 60 °C, the percentage yield of biodiesel production increases from 37% to 95%, but after passed the temperature more than 60 °C, the percentage yield of biodiesel decreases to 85% [24].
Te number of experimental runs was minimized to 30 runs using Design Expert 12 from the original formulation of a 3 4 , which is predicted to generate 81 runs.Te central composite design was used to optimize the experiments which have a quantitative independent variable and a dependent variable.Te independent variables selected to optimize the experiment were reaction temperature (X 1 ), methanol-to-oil molar ratio (X 2 ), reaction time (X 3 ), and catalyst loading (X 4 ).Te response selected was the biodiesel yields produced by the transesterifcation process of castor oil.Ten, reaction temperature, methanol-to-oil molar ratio, reaction time, and loading catalyst were designed for the experimental study at a constant mixing speed of 400 revs/ min.Te optimal yield of biodiesel in percentage was calculated using the following equation: yield of biodiesel (%) � weight of biodiesel obtained from each experiment weight of seed oil used in each sample × 100. (2)

Journal of Chemistry
Te matrices for the four independent factors were changed at three levels: low (−1), medium (0), and high (1).Te batch reactions for each experiment were conducted randomly to minimize systematic error.To validate the biodiesel yield obtained, regression analysis was performed and calculated from the following equation: where Y denotes the anticipated production of biodiesel while β i , β ii , and β ij denote coefcients determined by regression analysis.Te regression equation represents the linear, quadratic, and interactions of the independent variable on the response.

Results and Discussions
3.1.Castor Oil Extraction.About 11.0 kg of castor seeds was used in this experiment and 69.2%wt oil was extracted.Tis fnding showed that castor oil has a great tendency for the yield of biodiesel production, has an economic beneft, and is feasible for the production of oil.Castor oil seed contains about 30%-50% oil (m/m) [22].Castor bean is a highpotential feedstock that might provide up to 60% of the nonedible oil required to make biodiesel [8].

Physicochemical Properties of Castor
Oil. Te physicochemical properties of castor oil were determined, and the results obtained are presented in Table 2. Castor oil has qualities that make it a suitable raw material for the production of biodiesel, including high viscosity, high miscibility, low iodine concentration, and low freezing point [8].At ambient temperature, the extracted oil was yellowish, and examination revealed moisture content of 3.72%, which was higher than the expected range.Moisture content is an impurity that needs to be diminished or eliminated prior to the synthesis of biodiesel by heating crude oil [14].Te moisture content is one indication of the quality measurement of oil for biodiesel production.As the moisture content of the oil is high, the conversion of oil to biodiesel production was reduced.Another researcher indicated that the lower moisture content of oil activates the transesterifcation process [14].Te fnding of the present study showed that the moisture content of castor seed oil was accepted for biodiesel production.
Te density of refned castor oil was 0.961 (Table 2).Te density showed that the refned castor oil was within the range of the ASTM standard specifcation.Terefore, the result indicated that the value of the specifc gravity of castor oil met the criteria for biodiesel production quality indication.Another study reported that the density of extracted crude oil at 15 °C was found to be 0.963 kg/lit [14] which is in agreement with the present result.Te study result showed that the kinematic viscosity of castor oils was 124 mm 2 /sec.Castor oil's kinetic viscosity was stated to be 196 cSt and ranged from 6.6 to 248.8 cSt in the literature, respectively [14].
Te acid number is a signifcant property, which indicates the free fatty acid value in the fuel.Te acid value of castor seed oil (2.4 mL•KOH/g oil) obtained was complying with ASTM specifcation quality indication standards.A higher acid value can cause severe corrosion to a fuel supply system and an internal combustion engine [5].Tus, the result showed that castor seed oil is possible to use as feedstock for biodiesel production.Te saponifcation number of castor oil was found at 185.2 mg•KOH/g, which was well within the range of the ASTM specifcation quality standard.Exactingly speaking, a lower saponifcation value is preferred for a higher yield of biodiesel [14].Oil with a high level of saturated fat is not good for producing biodiesel [25].Te present fnding revealed that the saponifcation value was acceptable for the production of biodiesel.
Te iodine number was found at 86 gI 2 /100 g, which was good and within the range ASTM standard value of 82-88 gI 2 /100 g.Te amount of double bonds in biodiesel is measured by the iodine number, which establishes how unsaturated it is.Additionally, a greater iodine number may result in the production of oxides in the diesel engine injectors [14].

Experimental and Predicted Yield of Biodiesel Using RSM.
Te results of the experimental and predicted yield of biodiesel from castor oil using RSM are shown in Table 3. Te fndings showed that it complied with both European and American standards, making it suitable for use as an alternative fuel.Te density of pure CME (0.89 g/ml) is within the range of the ASTM standard value.Diferent authors reported the density of COME (0.942) [26] and Jatropha curcas oil (0.932 g/mL) [1], which are greater than that of the present results.Te density of CME falls within the range of EN 14214, which was 0.89 g/ml.Biodiesel cleanliness and fatty acid profle propose the density of fuel, 4 Journal of Chemistry which can be determined by the atoms of carbon [9].Te measured value of kinematic viscosity in produced castor biodiesel was 5.22 cSt and found within the range of ASTM standards of 1.9 to 6.0 cSt.Te fuel properties of biodiesel presented in Table 4 are within the range of ASTM D6751 and European standard (EN14214) specifcation quality standard.Kinematic viscosity is an important property that is used to determine the efciency of biodiesel as a fuel [14].When a biodiesel having a viscosity in this range is used in a diesel engine, it helps to lubricate parts of the engine [2].Higher kinematic viscosity causes poor atomization which forms operational problems when introduced into the chamber and leads to deposits in engines [5].Te fnding revealed that the biodiesel produced from castor oil can ft with the specifcation of European standard (EN14214) and it is possible to use instead of petroleum diesel.Te fndings revealed that castor oil has high viscosity and it requires the next process to reduce its viscosity.High viscosities will result in poor atomization, incomplete combustion of fuel, and deposition of carbon in the injector [17].Te transesterifcation process was needed to reduce the viscosity of the pure castor oil from 12.4 to 5.22 cSt, which is within the recommended range of 1.9-6.0 by ASTM.Oils with lower viscosities are simpler to pump, atomize, and produce fner droplets [26].
Te result revealed that the acid number of CME obtained was 4.3 mg•KOH/g oil which met the ASTM standard.Te acid number was used to calculate the percentage of free fatty acids, specifcally those derived from ricinoleic acid, which is found in greater quantity, according to the fatty acid composition profle [1].Te acid number is one of the paramount indicators of oil quality [2].As a result, an excellent predictor of vegetable oil which is potentially useful for refning is a low acid value.Some recorded castor oil acid readings range from 0.14 to 1.97 mg/g oil.[27].Te free fatty acid obtained in this study was 2.15% which is within the range of ASTM standards.Te composition of FFA determines the fuel properties of any biodiesel.Te castor oil contains saturated as well as unsaturated FFAs.Its characteristics, properties, and composition were studied to examine its viability for partial replacement of petrodiesel in internal combustion engines [1,14].
Te saponifcation value of castor oil obtained was 179 mg•KOH/g.Te average range of saponifcation values reported in castor oil is 165.50 to 187 mg•KOH/g oil [27].A lower saponifcation value is preferred for a higher yield of biodiesel because a higher saponifcation value decreases yield.Te iodine number of castor biodiesel produced was 97.4 mgI 2 /g, which is greater than the range of ASTM 80.12-82.88mgI 2 /g.Based on the European standard (EN14214), the maximum value of iodine number was 120 mgI 2 /g.Te iodine number measures the double bonds present in biodiesel which determines the degree of unsaturated free fatty acids present in biodiesel.A higher iodine number may lead to deposition in diesel engine injectors [14].A higher iodine value implies a higher level of unsaturation and a lower value also indicates a low unsaturation level.Iodine content in castor oil typically ranges from 83 to 93 g I 2 per 100 g oil [27].
Te cetane number (CN) of CME (54.8 min) was greater than the standard values of both ASTM (47 min) and EN 14214 (51 min).Cetane number is considered as one of the most important properties of fuel afecting the quality of combustion and ignition delay [14].Indicators of biodiesel ignition quality, such as the cetane number, decline as the chain length, branching, and unsaturation increase.Shorter delay between fuel injection and ignition is indicated by a higher cetane number [26].A higher calorifc value is preferred because it releases higher heat, ultimately improving the performance of the engine [14].5 displays the outcome of the gas chromatography analysis used to identify the castor oil fatty acid profle used throughout the experiment.Te dominant fatty acid in CME was 84.1% of methyl ricinoleate (9,12-octadecadienoic acid (Z, Z)-methyl ester, 4.9% of 9-octadecenoic acid (Z)-methyl ester, 2.6% of 9octadecenoic acid, 12-hydroxy-ethyl ester, 1.5% of methyl stearate, 1.3% of hexadecanoic acid, methyl ester, and 0.5% of 13-octadecenoic acid-methyl ester.Te fatty acid methyl esters (FAME) that were produced as a byproduct of the transesterifcation of castor oil into biodiesel were always a combination with the majority composition being methyl ricinoleate (85%) and methyl stearate (1%) [28] which is in agreement with the present fndings.Te primary fatty acid in castor oil, ricinoleic acid (12-hydroxy-9-octadecenoic acid), accounts for 86% to 92% of the oil's total fatty acids [1].

Fatty Acid Profle of Castor Oil. Table
Castor oil is an attractive option since it may be used in a variety of processes, especially those involving polymers and fuels.[1].Te results obtained are very much consistent with those reported in other research fndings.Ricinoleic acid, a monounsaturated fatty acid, is the most prevalent among them, making up roughly 75 to 90% of the total oil composition [27].

Methanol-to-Oil Molar Ratio.
For the purpose of applying NaOH catalysts to the transesterifcation of castor oil, a study was conducted to determine the amounts for each independent variable.A range of 6 : 1 to 12 : 1 was chosen for the methanol-to-oil molar ratio.According to the study's fndings, reversible reactions were possible when the molar ratio was kept at less than or equal to 3 : 1. Te cost of methanol increased with a molar ratio increase of more than 12 : 1, but the percentage production of biodiesel remained the same.According to another set of fndings, separation of the transesterifcation products was made possible by raising the methanol-to-oil molar ratio from 6 : 1 to 9 : 1, which increased the methyl ester yield to 95% [24].Ten, as the molar ratio rises to 24 : 1, the yield falls from 95% to 45%, which is caused by the accumulation of methanol and the fuid's viscosity [26].

Catalyst Loading.
When the catalyst loading was less than 1% or greater than 2%, soap production was seen during washing.Te chosen range for the catalyst loading was 1% to 2%.Similar fndings were reported by other researchers, who found that by raising the catalyst concentration to 1%, the COME yield rose to 95% [24].Tis behaviour is caused by a strong alkaline catalyst that dominates the saponifcation reaction, which produces soap in the presence of fatty acids, causing an emulsion to form between soap molecules and water molecules [26].

Reaction Time.
Te production of biodiesel depends critically on reaction time, which also afects the process's costs.Te reaction period ranged from 30 to 90 min since less than 30 min of reaction time resulted in an incomplete reaction, produced a lower yield, and more than 90 min did not signifcantly enhance the biodiesel yield.It is evident that the conversion gradually rises with reaction time.Te instability of castor oil biodiesel at higher temperatures, which results in a thermal breakdown, may be the cause of this activity.
3.6.4.Reaction Temperature.Te production of biodiesel will be impacted by a number of signifcant factors, including the reaction temperature.Te chosen reaction temperature was in the range of 30 °C to 60 °C; as the temperature at which the reaction occurred was raised, the rate of reaction was discovered to increase up to a specifc point.Because methanol has a boiling point of 65 °C, the pressure within the vessel was raised as a result of the higher temperature.In accordance with another study, the biodiesel production rises as the reaction temperature rises, reaching an ideal level at 60 °C and a biodiesel yield of 96.7%.Beyond this point, the yield rapidly dropped to 68.3% at 70 °C.Te maximum yield produced by transesterifying castor oil with KOH is 95.8% [7].

Optimization of Biodiesel Production.
Te quadratic model is acceptable for describing the experimental fndings, the predictive value is signifcant with these data, and the "lack of ft" is also signifcant, according to the ANOVA results presented in Table 6.Te model for the percentage yield of biodiesel (Y) in terms of the coded independent process variables is given by equation (4).
It was shown that the quadratic equation gave the best ft with a regression coefcient (R 2 ) of 0.9611.Te model adequacy can also be checked using the factors given in Table 7.
F-values and P values were used to assess each coefcient's signifcance, as shown in Table 6.For a model to be considered statistically signifcant, each relevant independent parameter must have a P value of less than 0.05.For the "lack of ft" in the model to be considered insignifcant, the P value must be higher than 0.05.Te analysis in Table 6 showed that the linear terms X 1 , X 2 , X 3 , and X 4 , the quadratic terms X 2 1 , X 2 2 , and X 2 4 , and the interaction term X 2 X 3 are signifcant model terms.Terefore, the model was reduced to equation ( 5) after eliminating the insignifcant coefcients. ( Based on the statistical signifcance of the independent variable, the nonsignifcant independent variables were removed from equation (4), and then the proposed equation ( 5) was a selected model.Te fndings of the analysis of variance (ANOVA) revealed that the quadratic form of the model in terms of independent parameters was an appropriate empirical model for describing the generation of biodiesel from castor oil.Te fndings showed that the yield of biodiesel was linearly increased with an increase in temperature, the ratio of methanol to oil, and reaction time, and decreased loading catalyst but started to decrease after reaching the optimum value.Te model's applicability was further supported by the high coefcient of determination (R 2 ) value of 0.9611 and the adj R 2 value of 0.9248.Tese statistical factors account for the fact that 96.11% of the experimental data was within 2% of the percent yields that the model anticipated.Te present fnding was agreed with the results of other researchers [16,17].
Te "Pred R-Squared" of 0.7772 is in reasonable agreement with the "Adj R-Squared" of 0.9248 because their diference is 0.1476 which is less than 0.2.From this fnding, it concluded that the developed model can be matched with actual response data.Te ratio of 19.670 indicated that an adequate signal can be used to navigate the design space.Te R-square value of 0.9611 indicates that 96.11% of the total variation in the yield of biodiesel was described by the developed model.Journal of Chemistry A model is considered to be well if data obtained from expert design model actual versus predicted points are along the straight line which concludes zero error.Te results obtained observed that the variable having the most signifcance was catalyst load.It is also shown that the F values and P values of interactions showed that interactive efects of molar ratio of methanol to oil versus time and time versus catalyst load are signifcant on the yield of biodiesel.In comparison with the squared terms of temperature, time, and the molar ratio of methanol to oil, the linear impacts of these variables are more important and have a favourable impact on the output of biodiesel.Tere was also a good agreement in actual and modeled yield as shown in Figure 1.Te result showed efectiveness in capturing the correlation between the four transesterifcation process variable yields of biodiesel.

Time versus the Molar Ratio of Methanol to Oil.
Te interaction between reaction time versus the molar ratio of methanol to oil had a linear signifcant efect on the yield of biodiesel with temperature and loading catalyst kept constant at 50 °C and 1.5%, respectively, at the center of response surface methodology (Figure 2).Te yield of biodiesel was increased until the time and the molar ratio of biodiesel reached the optimal point, but the yield of biodiesel was decreased after the time and the molar ratio of methanol to oil passed the optimal point.Te fndings showed that if the time and the molar ratio of methanol to oil increased after optimum value, it became difcult to separate the biodiesel production from glycerol during the process, causing soap development.
Te efective interaction between reaction time and methanol-to-oil molar ratio on the yield of biodiesel is shown in 3D in Figure 3. Te maximum yield of biodiesel was obtained when the methanol-to-oil ratio was 9 : 1 and the time required was 75 min for completion of the process.As the reaction time increased from 60 min, the biodiesel yield started to increase and the maximum yield of biodiesel obtained was 90.89% at 90 min and a molar ratio close to 9.0.If the molar ratio of methanol to oil became high during the process, soap was produced instead of the biodiesel.Terefore, the time and molar ratio had a signifcant efect on the yield of biodiesel.

Time versus Catalyst Load.
Te interaction of time versus loading catalyst had a linear relationship between them with the temperature and molar ratio of methanol to oil kept constant at 50 °C and 9 : 1, respectively, at the optimum point as shown in Figure 4.As the time and catalyst load were increased, the yield of biodiesel also increased.Also, after the optimum value was obtained, the yield of biodiesel also increased, but this was not feasible due to high consumption time and cost.Terefore, the time versus loading catalyst had a signifcant efect on the yield of biodiesel.
Te yield of biodiesel increased as the loading catalyst increased from 1 to 1.5%wt with the temperature and molar ratio of methanol to oil kept constant at 50 °C and 9 : 1, respectively, at the middle of the Design Expert software as shown in Figure 5.At time versus loading catalyst 75 min and 1.5%wt, respectively, 94% maximum biodiesel yield was achieved.Terefore, the loading catalyst and time had a signifcant efect on the yield of biodiesel.

Conclusion
With the help of response surface methodology's central composite design, the synthesis of biodiesel from castor oil, which is obtained from castor seeds and treated with a NaOH catalyst, was successfully optimised.Te study was mainly based on biodiesel transesterifcation optimization derived from novel nonedible castor seed oil.In this study, diferent independent factors were investigated for the optimization of the yield of biodiesel.To attain the best operating conditions, response surface methodology was used to adjust the temperature, time, catalyst loading percentage, and methanol-to-oil ratio.
According to the fndings, the best operating conditions for transesterifying castor oil were a 9 :1 molar ratio of methanol to oil, a 1.5% catalyst loading percentage, a temperature of 50 °C, and a reaction duration of 105 min with a 95.0% yield.Te fndings showed a signifcant increase in fuel properties of castor methyl esters (CME) such as kinematic viscosity (5.22 mm 2 /s), acid number (4.3 mg KOH/g), cetane number (54.9 min), saponifcation value (179 mg•KOH/g oil), iodine number (97.4 mg I 2 /100g oil), FFF (2.15%), and density (890 kg/m 3 which fall in the range of ASTM and EN14214.Te study concluded that biodiesel produced from castor oil is within the recommended standards for biodiesel fuel.In addition to highlighting its potential for large-scale manufacturing, the castor oil biodiesel that complies with ASTM criteria helps to further sustain development targets.It can be concluded that the biodiesel produced from castor oil can be used as fuel.

3. 4 .
Physicochemical Properties of Biodiesel.Te qualities of the fuel and how they afect engines are shown by the fuel attributes of biodiesel.Table 4 details the physical and chemical characteristics of castor oil-based biodiesel.

Figure 2 :Figure 1 :
Figure 2: Te efect of the interaction between the ratio of methanol to oil and time.

Figure 4 :Figure 3 :
Figure 4: Te efect of the interaction between the ratio of loading catalyst and time on the yield of biodiesel.
of methanol to Castor oil = 9.00

Figure 5 :
Figure 5: Te efect of the interaction of loading catalyst versus time using 3D plots.

Table 1 :
Te full factorial experimental design of biodiesel production with the four factors and three levels.

Table 3 :
Experimental and predicted yield of biodiesel using RSM.

Table 6 :
Analysis of variance for the yield of biodiesel from castor seed oil.