Introduction

Heterogeneous catalysts have become pivotal in the pursuit of cost-effective and eco-friendly organic synthesis1,2,– 3. Their reusability offers a significant advantage over homogeneous catalysts4,5. The desirable properties of heterogeneous catalysts address many green chemistry principles, making them a preferred choice for organic synthesis6,7. Their recovery and separation simplicity, reduced corrosion issues, and environmental friendliness have driven substantial research and development in this area8,9,10,11,12.

Nanoparticles (NPs), with their exceptional physicochemical properties including high surface area-to-volume ratio, mechanical and thermal stability, thermal and electrical conductivity, and corrosion resistance, have shown great potential as efficient catalysts13,14. Owing to their high surface-to-volume ratio, NPs can catalyze chemical reactions at a much faster rate than conventional catalysts. However, their small size often hinders their recovery from reaction mixtures, limiting their practical applications15. Magnetic catalysts align well with green and sustainable chemistry principles for organic synthesis16,17,18,19,20. Their ability to accommodate active catalytic centers or organic functional groups on magnetic materials such as Fe3O43,17,21,22, CoFe2O423, CuFe2O424, and NiFe2O425 has garnered interest due to synergistic effects, heat induction, and efficient magnetic separation 26. To date, a broad spectrum of catalytic systems, encompassing both homogeneous and heterogeneous catalysts, has been explored, including Pd NPs@Fe3O4/chitosan/pumice hybrid beads3, Fe3O4@CS/DAR-Au22, Fe3O4@CS-Ni27, Fe3O4/GO@melamine-ZnO28, Fe3O4@SiO2-Schiff base-Cu(II)29, MNPs-SA@Cu MOF30, Fe3O4@SiO2@APIDSO3H31. Among magnetic materials, Fe3O4 NPs exhibit superior magnetization but are more reactive in acidic environments, leading to faster magnetic property loss32.

Biopolymers, being one of the most widely used heterogeneous catalysts, have attracted considerable attention3,33,34,35. Chitosan, a natural polymer renowned for its biocompatibility and biodegradability, has emerged as an attractive material for the synthesis of MNPs36,37. Its chemical and physical properties facilitate the creation of MNPs that can serve as drug carriers or in water and wastewater treatment38,39.

Polyacrylonitrile (PAN) or polyvinyl cyanide is a linear polymer characterized by a high melting point and notable properties, including thermal resistance, mechanical robustness, electrochemical stability, solubility in polar solvents, and resistance to oxidative degradation. The presence of a significant number of nitrile (C≡N) functional groups along the polymer backbone renders PAN amenable to chemical modification with various materials. This susceptibility to modification is facilitated by several reaction types, such as nucleophilic addition, 1,3-dipolar cycloadditions, and hydrolysis40. The combination of chitosan and polyacrylonitrile can lead to magnetic nanoparticles with enhanced properties. The incorporation of both chitosan and Fe₃O₄ into the structure of magnetic Cs-g-PAN not only reduces the toxicity of the final composite significantly but also allows for better control over the size and distribution of the nanoparticles41.

Multicomponent reactions (MCRs) are significant methods to synthesize diverse complex heterocyclic compounds42,43. They have received great attention because of striking advantages including simplicity, cost-effectiveness, atomic economy, energy and time savings, mild reaction conditions, and high selectivity44. In the mid-20th century, when chemists began to explore the synthesis and properties of heterocyclic compounds, the first reports of dihydropyrano[2,3-c]pyrazoles (DHPPs) were initially synthesized via a process involving tetracyanoethylene and 3-methyl-1-phenylpyrazolin-5-one, which was published in the 1960s and 1970s, mainly focusing on their synthesis via MCRs and cycloadditions37. These early studies established the foundation for understanding the basic structural and chemical properties of these compounds45.

DHPPs are essential heterocyclic scaffolds found in many biologically-active molecules. The core structure of dihydropyrano[2,3-c]pyrazoles consists of a six-membered pyran ring fused to a five-membered pyrazole ring. This fusion results in a rigid, planar structure that provides a stable framework for the attachment of substituents at different positions46. The presence of both oxygen and nitrogen atoms in the heterocyclic system imparts polarity and reactivity, which are crucial for their biological interactions47,48. They possess pharmacological significance as antimicrobials, anticancers, anti-inflammatories, muscle relaxants, and p38 MAP Kinase and CHK1 kinase inhibitors49,50. While numerous catalysts have been developed for their synthesis, many of these protocols suffer from limitations such as lengthy reaction times, complex work-up procedures, and environmental concerns51,52. Typical examples including ionic liquids, L-proline, PEG, melamine-modified chitosan53, and magnetic silica functionalized with 3,4-diaminobenzoic acid54, have been employed for the synthesis of oxygen-containing DHPPs heterocycles55. Hence, the study of DHPPs has received significant interest in terms of exploring their biological properties as well as developing more efficient protocols for their environmentally-benign synthesis56.

As fundamental components of this field, DHPP as well as 4H-pyran compounds have been the subject of considerable research, with preliminary advances already made. Nevertheless, further development and refinement of their synthetic methodologies are warranted, necessitating ongoing investigation57. The significance of DHPP and 4H-pyran heterocyclic compounds is unambiguous, as they comprise a vital and indispensable realm within the broader discipline of chemistry. A range of pharmaceutical compounds and their therapeutic applications are exemplified in Fig. 1A-H. 4H-pyran derivatives exhibit various medicinal properties such as antispasmodic, anticoagulant, antiallergic, antimicrobial, antidepressant, antifungal, hypoglycemic, anti-HIV, and antipyretic activities58,59,60, and also a therapeutic activity for neurological diseases including Alzheimer’s and Parkinson’s,40. Therefore, different methods and catalysts have been reported for the synthesis of this oxygen-containing heterocycles such as ionic liquids61,62, sodium alginate63, chitosan-EDTA-cellulose63, Fe3O4@Hal-Glu-EPI-SO3H IL64, Na2CaP2O765, potassium phthalimide-N-oxyl in water under reflux conditions66, potassium phthalimide under ball milling67. However, there are some challenges with the protocols developed for the synthesis of both dihydropyrano[2,3-c]pyrazole and 4H-pyran derivatives including moderate yields, long reaction times, the use of toxic reagents with high reactivity, such as ClSO3H for the preparation of catalytic systems, and difficulties in their recycling and reusability.

Fig. 1
figure 1

Structure of the selected examples of biologically and pharmacologically active dihydropyrano[2,3-c]pyrazole and 4H-pyran derivatives.

To address these challenges and in the continuation of our research, we have developed a magnetized PAN-modified chitosan (CS-g-PAN/Fe3O4) nanomaterial (Fig. 2)67,68,69. The magnetic nature of the catalyst enables its easy recovery and reuse, making it a sustainable and efficient heterogeneous catalyst for the one-pot condensation reaction involving β-dicarbonyl compounds, hydrazine hydrate, and active methylene compounds including malononitrile has been employed as a simple and efficient method for the synthesis of dihydropyrano[2,3-c]pyrazole (DHPP) (Fig. 3a) and 4H-pyran derivatives (Fig. 3b).

Fig. 2
figure 2

Schematic representation for the preparation of CS-g-PAN/Fe3O4 nanocomposite (1).

Fig. 3
figure 3

One-pot multi-component synthesis of highly substituted (a) DHPP 6a-p and (b) 4H-pyran 8a-j derivatives catalyzed by the CS-g-PAN/Fe3O4 nanocomposite (1).

Experimental

General information

The high-purity chemicals were purchased from Merck and Sigma Aldrich companies. The solvents used in the experiments consisted of high-purity distilled water and 96% EtOH. Thin-layer chromatography (TLC) analyses were performed using a UV lamp with a wavelength output of 254 nm. Fourier transform infrared spectroscopy (FTIR) spectra were recorded using KBr pellets on a 1720-X Perkin Elmer (USA) spectrometer. Energy-dispersive X-ray (EDS) spectra and X-ray powder diffraction (XRD) patterns were obtained using Bruker EDS (Germany) and D8 ADVANCE diffractometer (Germany) with Cu Ka radiation (λ = 1.54050 Å) instruments, respectively. Thermogravimetric analysis (TGA) of the samples was measured using a STA 300 Hitachi device. Field emission scanning electron microscope (FESEM) images were obtained using a FESEM-ZEISS (Germany) and TESCAN-MIRAII instrument. The magnetic behavior of samples was measured using a Meghnatis Daneshpajooh Kashan, Iran vibrating sample magnetometer (VSM). A Micromeritics ASAP 2020 (USA) instrument was used to conduct the BET and BJH tests. Proton nuclear magnetic resonance (¹H NMR) spectra were obtained at room temperature using a Bruker Avance 500 spectrometer with deuterated dimethyl sulfoxide (DMSO-d6) as the solvent. Melting point determinations were carried out using a 9100 Electrothermal apparatus, and the values are reported without correction. Product yields were determined based on the isolated and purified compounds.

Preparation of the CS-g-PAN nanomaterial

A solution of chitosan (CS, 1.0 g) was prepared in 100.0 mL of a 5–10% aqueous acetic acid (AcOH) solution by heating at 50 °C with continuous stirring until a clear and colorless solution was formed. This solution was subsequently degassed under N2 atmosphere for a minimum of 15 min. An aqueous solution of ammonium persulfate (APS, 1.0 mmol dissolved in 50.0 mL of water) was then added dropwise over a 30-minute period. After maintaining the reaction mixture at 55 °C for 45 min, acrylonitrile (AN, 90 mmol, 6.0 mL, d = 0.81 g/mol) was gradually introduced, and the mixture was allowed to react for a further 40 min. The polymerization process was allowed to proceed for 15 h, after which the mixture was treated with EtOH (96%, 200.0 mL) to induce the formation of the CS-g-PAN nanocomposite hydrogel. Following a 4 h period, the resulting hydrogel was collected and subjected to repeated washing cycles with EtOH and deionized water. Finally, the purified hydrogel was dried in an oven at 50 °C for 1 h.

Preparation of the magnetic decorated polyacrylonitrile-grafted chitosan (CS-g-PAN MNPs) nanocomposite

The CS-g-PAN nanomaterial was further modified by introducing magnetic nanoparticles to its composition via an in-situ coprecipitation technique. Initially, 0.54 g (1.0 mmol) of ferrous chloride tetrahydrate (FeCl2.4H2O) and 0.92 g (2.0 mmol) of ferric chloride hexahydrate (FeCl3.6H2O) were dissolved in 20 mL of distilled water and agitated at ambient temperature for 20 min. Subsequently, 0.66 g of the CS-g-PAN nanocomposite was introduced into the aforementioned solution and stirred under a N2 atmosphere for an additional 20 min. Upon raising the reaction temperature to 80 °C, 10 mL of a 28% liquid ammonia solution was gradually added to the reaction mixture over 20 min. The reaction was then allowed to proceed for approximately one hour. The resulting precipitate was magnetically separated and subsequently subjected to multiple washes using distilled water, EtOH, and acetone to eliminate any residual unreacted components. Finally, the obtained magnetic nanocomposite was dried in an oven at 70 °C for a duration of 2 h.

General procedure for the synthesis of DHPP 6a-p derivatives in the presence of CS-g-PAN/Fe3O4 nanocatalyst

The synthesis was conducted at 80 °C by incorporating 10.0 mg of the CS-g-PAN/Fe3O4 catalyst (1) into a 2.0 mL solution of EtOH and water (EtOH/H2O, 1:1 v/v) containing the following reactants: Ethyl acetoacetate (2, 1.0 mmol), hydrazine hydrate (3, 1.2 mmol), an aromatic aldehyde (5, 1.0 mmol), and malononitrile (4, 1.0 mmol). Reaction progress was monitored using thin-layer chromatography (TLC). Upon completion, the reaction mixture was dissolved in hot EtOH, and the undissolved magnetic catalyst was subsequently separated using an external magnet and filtration. The obtained crude product was then purified via recrystallization from EtOH to yield the desired DHPP 6a-p derivatives (Fig. 2a).

General procedure for the synthesis of 2-amino-tetrahydro-4H-chromene-3-carbonitrile 8a-j derivatives in the presence of CS-g-PAN/Fe3O4 nanocatalyst

A mixture consisting of an aromatic aldehyde (5a, 1.0 mmol), malononitrile (4, 1.0 mmol), dimedone (7, 1.0 mmol), and CS-g-PAN/Fe3O4 catalyst (1, 0.01 g) was stirred in 2.0 mL of EtOH at room temperature. The reaction’s progress was tracked using thin-layer chromatography (TLC). Upon completion, additional hot EtOH was introduced to the mixture to dissolve the product, allowing for the separation of the undissolved nanocatalyst by using an external magnet and filtration. The crude products were then purified through recrystallization in EtOH, yielding 2-amino-tetrahydro-4H-chromene-3-carbonitrile 8a-j derivatives. The structural identification of these derivatives was confirmed by measuring of their melting points, and in certain instances, by obtaining of their FTIR and 1H NMR spectral data.

Spectral data of the selected products

6-Amino-4-(4-chlorophenyl)-3-methyl-2,4-dihydropyrano[2,3-c] pyrazole-5-carbonitrile (6a)

1H-NMR (500 MHz, DMSO-d6): δ (ppm) = 1.80 (s, 3 H, ), 4.64 (s, 1H), 6.91 (s, 2H), 7.20–7.22 (d, J = 8.5 Hz, 2H, Harom.), 7.38–7.40 (d, J = 8.5 Hz, 2H, Harom.), 12.15 (s, 1H, NH).

6-Amino-4-(4-methylphenyl)-3-methyl-1,4-dihydropyrano[2,3-c]pyrazole-5-carbonitrile (6d)

1H NMR (500 MHz, DMSO-d6): δ (ppm) = 1.80 (s, 3H), 2.25 (s, 3 H), 4.65 (s, 1H), 6.94 (s, 2H, NH2), 7.20–7.22 (d, 2H, J = 10.0 Hz, Harom.), 7.38–7.40 (d, 2H, J = 10.0 Hz, Harom.), 12.15 (s, 1H, NH).

6-Amino-3-methyl-4-(3-nitrophenyl)-1,4-dihydropyrano[2,3-c]pyrazole-5-carbonitrile (6k)

1H-NMR (500 MHz, DMSO-d6): δ (ppm) = 1.82 (s, 3H), 4.89 (s, 1H), 7.07 (s, 2H, NH2), 7.63–7.68 (m, 2H, Harom.), 8.03 (s, 1H, Harom.), 8.13–8.15 (dd, J = 7.4 Hz, 1H, Harom.), 12.22 (s, 1H, NH).

2-Amino-4-(4-chlorophenyl)-7,7-dimethyl-5-oxo-5,6,7,8-tetrahydro-4H-chromene-3-arbonitrile (8a)

1H NMR (500 MHz, DMSO-d6): δ (ppm) = 0.94 (s, 3H), 1.03 (s, 3H) 2.09–2.26 (ABq, J = 16.0 Hz, 2H), 2.50 (s, 2H) 4.19 (s, 1H), 7.07 (s, 2H, NH2), 7.16–7.36 (m, 4 H, Harom.).

2-Amino-4-(3-hydroxyphenyl)-7,7-dimethyl-5-oxo-5,6,7,8-tetrahydro-4H-chromene-3-carbonitrile (8d)

1H NMR (500 MHz, DMSO-d6): δ (ppm) = 0.94 (s, 3H), 1.03 (s, 3H), 2.09–2.26 (ABq, J = 16.0 Hz, 2H), 2.51 (s, 2H), 4.19 (s, 1H), 6.54–6.99 (m, 6 H, 4Harom. and 2H of NH2), 9.29 (s, 1H, OH).

2-Amino-4-(3-nitrophenyl)-7,7-dimethyl-5-oxo-5,6,7,8-tetrahydro-4H-chromene-3-carbonitrile (8h)

1H NMR (500 MHz, DMSO-d6): δ (ppm) = 0.93 (s, 3H), 1.02 (s, 3H), 2.10–2.27, (ABq, J = 16.0 Hz, 2H), 2.51 (s, 2H), 4.56 (s, 1H), 7.19 (s, 2H, NH2) 7.59–8.09 (m, 4 H, Harom.).

2-Amino-7,7-dimethyl-4-(2-nitrophenyl)-5-oxo-5,6,7,8-tetrahydro-4H-chromene-3-carbonitrile (8i)

1H NMR (500 MHz, DMSO-d6): δ (ppm) = 7.82 (d, J = 8.0 Hz, 1H, Harom.), 7.67 (t, J = 7.5 Hz, 1H, Harom.), 7.43 (t, J = 8.0 Hz, 1H, Harom.), 7.36 (d, J = 7.5 Hz, 1H, Harom.), 7.22 (s, 2H, NH2), 4.93 (S, 1H), 2.44–2.56 (ABq, J = 20.2 Hz, 2H), 2.00-2.22 (Abq, J = 16.2 Hz, 2H), 1.01 (s, 3H), 0.88 (s, 3H).

2-Amino-4-(4-cyanophenyl)-6,6-dimethyl-7-oxo-5,6,7,8-tetrahydro-4H-chromene-3-carbonitrile (8j)

1H NMR (500 MHz, DMSO-d6): δ (ppm) = 7.77 (d, J = 7.7 Hz, 2H, Harom.), 7.36 (d, J = 7.8 Hz, 2H, Harom.) 7.15 (s, 2H), 4.29 (s, 1H), 2.53 (s, 2H), 2.25 (d, J = 16.0 Hz, 1H), 2.11 (d, J = 16.0 Hz, 1H), 1.03 (s, 3H), 0.95 (s, 3H).

Results and discussion

Characterization of the magnetic decorated polyacrylonitrile-grafted chitosan with ferrite nanoparticles (CS-g-PAN/Fe3O4 nanocomposite)

Characterization of nanoparticles typically involves various techniques to understand their size, shape, composition, surface properties, and other relevant characteristics. To confirm the structure and surface characteristics of the prepared magnetic CS-g-PAN/Fe3O4 nanocomposite, several analyses were employed. These analyses include Fourier transform infrared spectroscopy (FTIR) for identifying functional groups through vibrational modes, field-emission scanning electron microscopy (FESEM) for detailed imaging to reveal information about size and morphology, X-ray powder diffraction (XRD) for determining the crystallinity degree of structure and providing insights into composition and arrangement, energy-dispersive X-ray spectroscopy (EDS) for determining the elemental composition of the nanoparticles, Brunauer–Emmett–Teller (BET) for assessing specific surface area and porosity, and vibrating sample magnetometry (VSM) technique for measuring magnetic properties including magnetic moment, magnetic susceptibility, and coercivity.

Fourier‑transform infrared (FTIR) spectroscopy of the CS-g-PAN/Fe3O4 nanocomposite

To determine the functional groups and structure of PAN (a), chitosan (b), CS-g-PAN (c), and CS-g-PAN/Fe3O4 (d) as well as the CS-g-PAN/Fe3O4 catalyst (1), FTIR spectroscopy was employed. The results are exhibited in Fig. 4. The broad band at 3435 cm− 1 can be assigned to O‒H and N‒H stretching vibrations. The stretching vibration band of C‒H was observed at 2960 cm− 1, while the bands in the region of 2194–2251 cm− 1 can be considered for the corresponding C≡N functional group. On the other hand, the band observed at 1655 cm− 1 can be attributed to the C = O bond of the amide group in the chitosan moiety. Furthermore, out of plane and in plane bending vibrations of CH2 units appeared at 1460 and 1390 cm− 1, respectively. The C–O stretching bands are located at about 1100 cm− 170. In FTIR, the nanocomposite Cs-g-PAN/Fe3O4 had a new characteristic absorption band at about 580 cm− 1, which is related to the stretching vibration of Fe–O and confirms the presence of Fe3O4 MNPs in the nanocomposite structure. All of these data demonstrate successful grafting of PAN to the backbone of chitosan biopolymer and subsequent formation of its magnetic nanocomposite.

Fig. 4
figure 4

FTIR spectra of (a) PAN, (b) AN (c) CS, (d) Cs-g-PAN and (e) the CS-g-PAN/Fe3O4 nanocomposite (1).

Field Emission scanning electron microscopy (FESEM) of the CS-g-PAN/Fe3O4 nanocomposite

The morphological features and dimensions of the CS-g-PAN/Fe3O4 nanocatalyst were investigated using field emission scanning electron microscopy (FESEM) analysis, as depicted in Fig. 5. The acquired FESEM images revealed that the nanocatalyst particles predominantly exhibit a spherical shape with non-smooth surfaces, which effectively enhances their surface area and catalytic activity. The FESEM micrographs of the CS-g-PAN/Fe3O4 catalyst demonstrated a uniform distribution of MNPs throughout the sample. Notably, the formation of a porous structure was observed, which can be attributed to the grafting of polyacrylonitrile (PAN) onto the chitosan (CS) backbone and the subsequent incorporation of Fe3O4 NPs71, 72. This porous design offers highly advantageous features as it facilitates the accessibility of reactants to the catalytically active sites, thereby improving the overall catalytic performance of the CS-g-PAN/Fe3O4 nanocatalyst.

Fig. 5
figure 5

FESEM images of the CS-g-PAN (a-b) and CS-g-PAN/Fe3O4 (c-d) nanomaterial (1).

Powder X‑ray diffraction (XRD) of the CS-g-PAN/Fe3O4 nanocomposite

X-Ray diffraction (XRD) analysis is a non-destructive method that provides detailed insights into the crystallographic structure, physical properties, and chemical composition of materials73. The XRD spectra of chitosan (CS) and its graft copolymer (CS-g-PAN) are presented in Fig. S6. The intense peak observed in the CS spectrum at approximately 2θ = 19.20° is attributed to the overlapping diffraction from the crystal planes (020) and (110) of chitosan. In contrast, the more intense peak in the CS-g-PAN spectrum at approximately 2θ = 16.75° is ascribed to the overlapping diffraction peaks from the crystal planes (110) and (200) of polyacrylonitrile (PAN)74. Notably, the diffraction intensity of the peak at around 2θ = 20.00° in the CS-g-PAN spectrum is significantly weakened, indicating a decrease in the crystallinity of chitosan after modification. This suggests that PAN has grown into sufficiently long chains to form regular crystalline regions during the grafting copolymerization process. Furthermore, the XRD spectrum of CS-g-PAN reveals reflection peaks at 2θ = 18.00°, 30.21°, 35.91°, 37.59°, 43.28°, 53.68°, 57.16°, and 62.82°, which are assigned to the characteristic peaks of cubic Fe3O475. Additionally, a relatively broad diffraction peak is observed at 16.99°, corresponding to the (100) crystal plane structure of PAN. The compatibility between the components is further supported by the fact that all peaks in the composite pattern match well with the desired pattern of each component, indicating that there are no significant interferences or disruptions in the crystal structure of the composite material due to blending. This suggests a high degree of compatibility and structural integrity in the CS-g-PAN/Fe3O4 composite (Fig. S6).

EDS and mapping elemental analysis of the CS-g-PAN/Fe3O4 nanocomposite

The identification of N, Fe, and O elements through energy dispersive X-ray spectroscopy (EDS) analysis provides further justification for the successful synthesis of CS-g-PAN/Fe3O4 nanocatalyst (Fig. 6a). Furthermore, the EDS elemental mapping analysis of the CS-g-PAN/Fe3O4 catalyst, as depicted in Fig. 6b, clearly confirms the presence of Fe, N, and O elements within the nanomaterial’s composition. Notably, the mapping analysis reveals a uniform distribution of these desired elements in the structure of nanocomposite 1.

Fig. 6
figure 6

EDS spectrum of the CS-g-PAN/Fe3O4 nanocomposite (1) along with its elemental mapping for a fresh sample.

Vibrating sample magnetometry (VSM) analysis of the CS-g-PAN/Fe3O4 nanocomposite

Figure 7 illustrates the magnetization curve of magnetic CS-g-PAN/Fe3O4 nanomaterial, providing a detailed characterization of their magnetic behavior. A distinct ferromagnetic response is observed in the CS-g-PAN/Fe3O4 nanocomposite, with a saturation magnetization value of 15.1 emu/g. This behavior is consistent with the previous reports on Fe3O4-containing nanocomposites, especially when the average particle diameter is below 17 nm. The observed MNPs are therefore reliable , contributing to their ability to respond to an external magnetic feild, particularly within the context of CS-g-PAN/Fe3O4 nanomaterial.

Fig. 7
figure 7

Hysteresis curves of the Fe3O4 and CS-g-PAN/Fe3O4 nanomaterial (1).

Brunauer–Emmett–Teller (BET) surface area analysis and Barrett–Joyner–Halenda (BJH) pore size analysis of the CS-g-PAN/Fe3O4 nanocomposite

The N2 adsorption-desorption porosimetry technique was utilized to determine various quantitative aspects of the CS-g-PAN/Fe3O4 nanomaterial’s porous nature, including surface area, pore diameter, and total pore volume. The N2 adsorption-desorption isotherm and BJH pore volume of the catalyst are illustrated in Fig. S9, respectively. The Brunauer-Emmett-Teller (BET) surface area of the catalyst was approximately 59.60 m².g-1, indicating a relatively high surface area compared to the pristine chitosan76. The average pore width sizes were calculated using different methods, yielding values of 100.28 Å using the 4V/A by BET method, 104.94 Å using the BJH adsorption method, and 108.60 Å using the BJH desorption method. These results suggest that the MNPs have contributed to the formation of a suitable surface area, highlighting the potential of this nanomaterial for various applications.

Thermogravimetric analysis (TGA) and differential thermal analysis (DTA) of the CS-g-PAN/Fe3O4 nanomaterial

TGA is a widely used method for analyzing the thermal behavior of materials and identifying the stages of degradation or mass changes that occur due to temperature rising. The first main mass loss is observed at 66 °C, which is usually attributed to the loss of moisture or volatile solvents such as water or EtOH. Chitosan is hydrophilic due to the presence of amine and hydroxyl functional groups and can retain water in its structure through surface adsorption or hydrogen bonding. The weight loss at 289 °C is related to the initial degradation of the chitosan polymer as well as PAN chains. At this stage, glycosidic bonds in the chitosan structure break, and side groups, such as cyanide groups in the PAN, may begin to decompose. Indeed, the presence of PAN increases the degradation temperature compared to pure chitosan. The breakdown at 418 °C is related to a more complete degradation of the polymer structure and the decomposition of the main chains of chitosan and PAN. The temperature of 626 °C is related to the final destruction of organic and inorganic structures. At this stage, the organic parts of the material are completely decomposed and inorganic residues remain (Fig. S10).

Systematic investigation of the optimized conditions for the synthesis of DHPP and 4H-pyran derivatives

To study the synthesis of DHPP derivatives in the presence of CS-g-PAN/Fe3O4 nanocatalyst, a model reaction comprising of benzaldehyde (5a), ethyl acetoacetate (2a), hydrazine hydrate (3), and malononitrile (4) was chosen. Various influencing parameters, including catalyst and solvent type, catalyst loading, and temperature, were systematically studied. The results of these experiments have been summarized in Table 1. The obtained yield of the desired DHPP, 6-amino-4-(4-chlorophenyl)-3-methyl-2,4-dihydropyrano[2,3-c] pyrazole-5-carbonitrile (6a), was not significant when the model reaction was run in the absence of any catalyst under solvent-free conditions at room temperature or 80 oC (Table 1, entries 1 and 2). Subsequently, the model reaction was also carried out in the acetonitrile solvent, which also did not afford a significant yield of the desired product 6a (entry 3). When the CS-g-PAN/Fe3O4 catalyst was added to the model reaction under solvent-free conditions, the yield increased to approximately 50%. This enhancement is rationalized by increased local concentrations of the substrates and improved mass transfer, while the catalyst reduces the activation energy and favors the desired pathway (entry 4). In the next experiment, EtOH was used, as the solvent, for the model reaction in the presence of the catalyst (entry 5), resulting in increased efficiency of the catalyst at room temperature. To evaluate the effect of temperature, the reaction was also conducted at higher temperature. It was observed that increasing the temperature of the model reaction in EtOH to 80 °C improves the reaction progress, and more higher temperatures are not necessary (entry 6). Further optimization experiments were carried out to compare solvent-free conditions with other green solvents, including H2O and EtOH/H2O mixtures. The best yield of the desired product 6a (97%) was obtained in the EtOH/H₂O (1:1 v/v) mixture (entry 8). To optimize the amount of catalyst, various catalyst loadings ranging from 5.0 to 10.0 mg were used in the optimal solvent at different temperatures. It was found that 10.0 mg of CS-g-PAN/Fe3O4 nanocatalyst was suitable for the model reaction (entries 9–12). Finally, the individual components of the catalyst, Fe3O4 (inorganic component) and chitosan (organic component), were also investigated at 80 oC (entries 13 and 14). Experimental data demonstrated that the product yield in the presence of the CS-g-PAN/Fe3O4 catalyst was significantly improved compared to using either Fe3O4 or chitosan alone as catalysts, indicating a synergistic effect between the CS-g-PAN/Fe3O4 components. When the CS-g-PAN catalyst was magnetized with Fe3O4 nanoparticles, there was a substantial increase in its surface area, which contributed to the excellent efficiency observed with the CS-g-PAN/Fe3O4 catalyst.

Following the optimization process, the overall methodology at its optimized conditions was developed to other aldehydes. Various aldehydes containing different electron-donating groups (–OMe, –OH, –Me) or electron-withdrawing ones (‒NO2, ‒Cl, ‒Br, and ‒CN) were employed, leading to high yields in short reaction times, as presented in Table 2. The observation that electron-withdrawing groups (EWGs) on an aromatic ring generally accelerate reaction rates and enhance yields of the corresponding products compared to benzaldehyde or derivatives bearing electron-donating groups can be explained by considering the rate-determining step in reaction mechanism, which is a well-established principle in organic chemistry.

In the synthesis of 4H-pyran derivatives using the CS-g-PAN/Fe3O4 catalyst, the condensation of 2-nitrobenzaldehyde (5i), malononitrile (4), and dimedone (7) was selected as the model reaction to determine optimized conditions. Factors such as catalyst loading, solvent, temperature, and reaction time were examined. Initial attempts without a catalyst at 80–100 °C (Table 3, entries 1 and 2) and in MeCN (Table 3, entries 12),afforded minimal desired product 8i. Improved yields were observed in EtOH under reflux conditions, particularly with 10.0 mg of pristine chitosan. To imorove yield further, the reaction was tested with the CS-g-PAN/Fe3O4 catalyst under various conditions. The best result, 97% isolated yield of 8i, was achieved using 10.0 mg of CS-g-PAN/Fe3O4 in EtOH under reflux conditions (Table 3). These conditions were then applied to other aromatic and heterocyclic aldehydes, resulting in high to excellent yields in short reaction times. Aldehydes with electron-donating substituents required longer reaction times compared to those with electron-withdrawing groups, indicating that the rate-determining step is the Knoevenagel condensation (Table 4).

Proposed mechanism for the synthesis of DHPP and 2-amino-3-cyano-4H-pyran derivatives in the presence of CS-g-PAN/Fe3O4 nanocatalyst

The multifunctional heterogeneous catalyst, specified as CS-g-PAN/Fe3O4 nanocomposite, was employed to facilitate the synthesis of DHPP derivatives. The catalytic efficacy of this nanocomposite stems from the presence of simple or PAN-modified amine functional groups acting as Bronsted basic sites as well as hydroxyl functional groups in conjunction with Fe3+ and Fe2+ centers serving as Lewis acidic sites77. These active sites synergistically promote the activation of reactants.

According to the obtained results and literature data, a plausible mechanism for the formation of DHPPs is proposed as illustrated in Fig. 8. Initially, the carbonyl moieties of ethyl acetoacetate (2) undergo activation facilitated by both the hydroxyl and amine groups, via hydrogen bonding interactions as well as the Lewis acid sites present within the structure of CS-g-PAN/Fe3O4 catalyst17, 54, 78, 79. This activation makes the carbonyl group more susceptible to nucleophilic attack by hydrazine hydrate. Subsequent elimination of water and EtOH molecules yields intermediate I, containing the pyrazolone ring system.

Concurrently, intermediate II, –identified as 2-phenylidenemalononitrile– is generated through a Knoevenagel condensation between the catalyst-activated aromatic aldehyde and malononitrile. Subsequently, a Michael addition reaction occurs between the catalyst-activated intermediates I and II to afford intermediate III. This intermediate then undergoes enolization and intramolecular cyclization to produce the intermediate IV.

Finally, tautomerization of the intermediate IV yields the desired DHPP derivatives 6a-p. Following this step, the CS-g-PAN/Fe3O4 catalyst is then regenerated and available for subsequent catalytic cycles.

A plausible mechanism for the synthesis of 2-amino-3-cyano-4H-pyran derivatives is also illustrated in Fig. 9. According to the obtained results and previous studies77, the aromatic aldehyde is activated by the acidic sites of the catalyst and subsequently reacts with malononitrile, which is activated by the catalyst’s basic sites to form intermediate I (arylidiene malononitrile) via a Knoevenagel condensation. In the second stage, the keto form of dimedone (7) can be in equilibrium with its nucleophilic enol form supported by both hydroxyl and the amine groups as well as Fe cations of the catalyst, allowing it to react with intermediate I through a Michael addition to generate intermediate II. Through a catalyst-assisted intramolecular cyclization process and the tautomerization of intermediate II, the desired products 8a–j are formed80. Finally, the CS-g-PAN/Fe₃O₄ nanocatalyst is returned to the reaction cycle for further use.

Fig. 8
figure 8

A suggested mechanism for the synthesis of dihydropyrano[2,3-c]pyrazole derivatives 6a-p catalyzed by the CS-g-PAN/Fe3O4 nanocomposite (1).

Fig. 9
figure 9

A suggested mechanism for the synthesis of 2-amino-3-cyano 4H-pyran 8a-i derivatives catalyzed by the CS-g-PAN/Fe3O4 nanocomposite (1).

Investigating of the recyclability and reusability of CS-g-PAN/Fe3O4 nanocatalyst

The principles of green chemistry emphasize the importance of recyclability and reusability of catalysts. While homogeneous catalysts often exhibit higher efficiency, heterogeneous catalysts are favored for their ease of separation and reuse. In this part of our study, the reusability of CS-g-PAN/Fe3O4 nanocomposite was evaluated using two model MCRs.

Owing to its magnetic properties, the catalyst 1 was efficiently separated from the reaction mixture using an external magnet after each reaction cycle. Then, the catalyst was thoroughly washed with distilled water and EtOH (96%) to remove any residual impurities, followed by drying. The data presented in Fig. 10 demonstrate that the catalyst retained its catalytic activity over at least five consecutive cycles, with no significant decrease in performance for the synthesis of compounds 8a and 6k derivatives. To further assess the stability and structural integrity of the reused catalyst, Fourier-transform infrared spectroscopy (FT-IR) analysis was conducted. The FT-IR spectrum of the reused nanocatalyst exhibited no detectable changes in its composition, closely matching that of the fresh catalyst. This observation confirms the stability and recoverability of CS-g-PAN/Fe₃O₄ nanocomposite as a robust and reusable catalyst for organic reactions (Fig. S11).

Fig. 10
figure 10

The results of recyclability and reusability of the CS-g-PAN/Fe3O4 nanocatalyst in the model reaction 8a (diagram I) and 6k (diagram II).

Comparison of CS-g-PAN/Fe3O4 catalyst with recently reported protocols for the synthesis of 6a and 8a

Ultimately, the effectiveness of the CS-g-PAN/Fe3O4 nanocatalyst was assessed in comparison to previously reported protocols. As outlined in Table 5, the CS-g-PAN/Fe3O4 nanocatalyst developed in this study exhibits notable efficiency in the rapid synthesis of DHPPs and 4H-pyran derivatives. Additionally, an individual characteristic of this catalyst is its capability to facilitate the formation of these products under environmental friendly conditions and green chemistry principles.

Conclusion

A novel magnetic biopolymer-based nanomaterial was developed through the modification of chitosan (CS) with polyacrylonitrile (PAN) and subsequent magnetization via the in-situ incorporation of Fe3O4 MNPs to afford corresponding CS-g-PAN/Fe3O4 nanocomposite. The resulting CS-g-PAN/Fe3O4 nanocomposite was thoroughly characterized using a variety of spectroscopic, microscopic and analytical techniques. The obtained nanocomposite demonstrated exceptional catalytic activity in the efficient synthesis of dihydropyrano[2,3-c]pyrazole and 2-amino-3-cyano-4H-pyran derivatives via MCRs strategy. High yields of the desired products were achieved within short reaction times, without the need for laborious work-up procedures. Furthermore, the prepared nanocatalyst exhibited excellent reusability, maintaining its catalytic performance over five consecutive cycles in both MCRs without any substantial loss of its activity.

Table 1 Optimizing of different parameters for the model reaction in the synthesis of 6a catalyzed by the CS-g-PAN/Fe3O4 nanoparticles (1)a.
Table 2 The scope of synthesis of DHPP 6a-p derivatives under optimized conditions using the CS-g-PAN/Fe3O4 nanocatalyst (1).a
Table 3 Optimizing of different parameters for the model reaction in the synthesis of 8i catalysed by the CS-g-PAN/Fe3O4 nanoparticles (1)a.
Table 4 The scope of synthesis of different derivatives of 4H-pyran 8a-j through the MCR strategy catalyzed by the CS-g-PAN/Fe3O4 nanocatalyst (1) under the optimized conditions.a
Table 5 Comparison of the catalytic efficiency of CS-g-PAN/ Fe3O4 nanocatalyst with some previously reported heterogeneous catalysts for synthesis of 6a and 8a.