Introduction

The selective and quantitative detection of metal ions is of great importance in chemical, biological, and environmental science [1]. Magnesium is the eighth most abundant element on the crust of earth and is distributed widely in living bodies such as cells and bones [2, 3]. And it also exerts a large variety of biological functions, such as catalytic roles in enzyme activation or inhibition, regulatory roles by modulating cell proliferation, and cell cycle progression/differentiation [4]. The normal content of magnesium ion (Mg2+) in the human body is 0.8∼1.0 mmol L−1. It would have a serious impact on vascular function, endangering the human health, if Mg2+ intake is imbalanced in the human body [5, 6]. Therefore, detection and determination techniques of Mg2+ have been attracting many scientists in various fields.

Although many methods have been previously reported for Mg2+ determination, there are still some challenges for the development of analytical methods for the sensing of Mg2+ with simple yet effective features. Over the past few years, several methods to determine the amount of Mg2+ such as inductively coupled plasma-mass spectrometry (ICP-MS), atomic absorption spectroscopy (AAS) [7], electrochemical method [8], and fluorescent method [911] have been developed, in which fluorescent method is prominent due to its highly sensitivity. The 8-hydroxyquinoline and coumarin derivatives have been reported as effective Mg2+ fluorescent indicators [9, 10]. Naruta and coworkers synthesized a porphyrin analogue with an embedded 1,10-phenanthroline moiety and found that this complex could be exploited as a Mg2+-responsive fluorescent chemosensors based on the photo-induced electron transfer (PET) quenching process [11]. However, the reported fluorescent methods demonstrated poor selectivity for Mg2+ over Ca2+. So these fluorescent indicators are useful only where the concentrations of Mg2+ are much higher than those of Ca2+, as well as the organic indicators could be facile manipulated has been rarely studied and remains a challenging goal [12]. Thus, it is very important to develop a simple, rapid, highly selective, and sensitive methods for Mg2+ detection.

Toward achieving this goal, colorimetric sensors are very promising due to their simplicity, cost-effectiveness, and rapid detection times [13]. In particular, gold nanoparticles (AuNPs)-based colorimetric assays attracted a great deal of interest in chemo/biosensing [14, 15], mainly due to the size- and shape-dependent optical properties and large absorption coefficients [16, 17]. Aggregation of the AuNPs will result in color changes of the colloidal solution from red to blue. The clear change in color results can be easily distinguished by the naked eye and not require complicated instruments, making it suitable for point-of-care (POC) diagnostics [1820]. Compared to fluorimetry sensing strategies, AuNPs-based colorimetric assay show comparable sensitivity because of the high extinction coefficient of AuNPs. Recently Mao’s group [21] reported the synthesis of cysteine-capped AuNPs and its colorimetric determination of Mg2+, but the synthesis process requires ligand exchange, resulting in the complexity of the preparation of AuNPs. Many else techniques have also been developed for the synthesis of AuNPs, most of them were often produced by the chemical reduction in the presence of suitable reducing agents and organic stabilizing molecules [22]. The reducing agents in many cases have toxic characteristics, further complicating the application of AuNPs in biosystem [23, 24]. Therefore, the development of new “green” methods to synthesize AuNPs without the reducing agents is an interesting area of study. Recently, the green synthesis of AuNPs have been considerably studied by using harmless biocompatible molecules, such as proteins [25], peptides [26], and amino acids [27] as stabilizing and reducing agents. The use of these benign alternatives is ideal for biological applications because of their assured eco-friendly property [28]. To our knowledge, the development of a rapid, facile, and green approach to synthesize stable, environment-friendly AuNPs still remains a hot research topic.

Microwave (MW) radiation has been reported to be a useful heating source for speeding up chemical reactions in 1986 [2931]. Thereafter, MW-assisted techniques have attracted considerable attention owing to their distinct and fascinating advantages of uniform heating, rapid reaction, low energy of consumption, cost-effectiveness, and environmentally friendly feature. In this work, we have prepared pectinase (PE)-protected Au nanoparticles (PE-AuNPs) by a simple MW-assisted and green synthetic route. To the best of our knowledge, this is the first report for synthesis pectinase-protected AuNPs through a simple reaction. Further, resultant PE-AuNPs exhibited high selectivity and sensitivity toward Mg2+ over other metal ions and due to aggregation of PE-AuNPs caused by Mg2+, resulted in a rapid color change from red to blue. The practicality of this colorimetric assay was further validated by detecting Mg2+ in water samples.

Experimental Section

Apparatus and Instruments

The UV–vis absorption spectra were acquired on a U-2910 double-beam UV-visible spectrophotometer (Hitachi, Tokyo Japan) with 1 cm quartz cell. The infrared (IR) spectra were performed on a Nicolet Magna 550 spectrometer (Thermo, Nicolet). Transmission electron microscopy (TEM) images were collected with a JEOL JEM-2100 high-resolution transmission electron microscope (Tokyo, Japan) at an accelerating voltage of 200 kV. The size distribution and zeta potentials of the particles were obtained using a Malvern Instruments Nano-ZS90 Zetasizer. X-ray photoelectron spectroscopy (XPS) data were conducted on an AXIS ULTRA DLD electron spectrometer (Shimadzu, Japan). Thermogravimetric analysis (TGA) were carried out using a Perkin-Elmer Diamond TG/DTA. The pH values of solutions were measured with a pH meter (FE20, Shanghai Mettler Instrument Company, Ltd., China). A Midea M1-L213B domestic microwave oven (Qingdao, China) was used to synthesize the AuNPs.

Chemicals

Hydrogen tetrachloroaurate(III) trihydrate (HAuCl4·3H2O, >99.9 %) was purchased from Aldrich (Milwaukee, WI). Pectinase (PE) was obtained from Sigma (St. Louis, MO). Sodium hydroxide (NaOH, >96 %), tris(hydroxymethyl)aminomethane (Tris), and HCl were from Shanghai Aladdin Reagent Co., Ltd. (Shanghai, China). Magnesium chloride and all other metal salts (analytical reagent grade) were purchased from Beijing Chemical Co. (Beijing, China). Tris-HCl buffers (pH 2.0–10.0) were prepared by mixing 0.05 M Tris and 0.05 M HCl. All chemicals were of analytical reagent grade or better. All solutions were freshly prepared using deionized water having a resistivity of no less than 18.2 MΩ cm−1 (Milli-Q, Bedford, MA).

Preparation and Purification of PE-AuNPs

All glassware was thoroughly washed with aqua regia (HNO3/HCl, 1:3) and rinsed extensively with Milli-Q water prior to use. In a typical microwave-assisted synthesis experiment, briefly, 1.0 mL of 32.5 mg mL−1 pectinase solution was added to 1.0 mL of 10 mM HAuCl4 solution at room temperature, and then 0.10 mL of 1.0 M NaOH solution was added. After the mixture was MW radiated (200 W) for 3 min, the color of the solution changed from light-yellow to wine red. Finally, the resulting mixture was cooled slowly to temperature and purified by centrifugation (10,000 rpm, 2 min), the wine red supernatant containing the PE-AuNPs was collected. A cellulose ester dialysis membrane (MWCO 3000 Da) was then used to purify PE-AuNPs. The as-obtained purified PE-AuNPs solution was stored at 4 °C until required for further use. The molar extinction coefficient at 523 nm for (20.0 ± 1.4) nm spherical PE-AuNPs is 8.72 × 108 M−1 cm−1; thus, the molar concentration of PE-AuNPs was calculated to be approximately 7.56 nM according to the Lambert Beer’s law [32].

Sensitivity and Selectivity Measurements of Mg2+ Detection

A high concentration stock solution of Mg2+ (1.0 M) was prepared and used to obtain standard solutions with different concentrations through a serial dilution. An aliquot of PE-AuNPs (7.56 nM, 50 μL) was added to Tris-HCl buffers (50 mM, pH 4.0, 2.0 mL). Ten microliters solutions with various concentrations of Mg2+ were added and mixed thoroughly, then the mixture was left to react at room temperature for 10 min. Finally, the color change and the corresponding UV–vis absorption spectra were observed. The following metal ions (K+, Li+, NH4 +, Cd2+, Mn2+, Ba2+, Zn2+, Pb2+, Hg2+, Ca2+, Al3+, Cu2+, Fe3+, Co2+, Na+) at the above-mentioned conditions were used to evaluate the selectivity of this colorimetric assay. In these tests, the concentrations of the other metal ions were 10-fold higher than that of Mg2+. All experiments were performed in triplicate.

Colorimetric Detection of Mg2+ in Water Samples

Tap water and lake water samples obtained from our laboratory and the Fen He Lake. All the collected samples were filtered three times through a 0.2-μm membrane to remove any suspended particles before use. One hundred microliters water samples were added into the Tris-HCl buffers (pH 4.0) with 50 μL PE-AuNPs solutions for detection. The standard Mg2+ solutions (100 μL) was spiked into the tap water or lake water (100 μL) as stock solutions for the recovery tests. The resulting solutions were further mixed with PE-AuNPs solutions (7.56 nM, 50 μL). After a 10-min incubation period, the UV–vis absorption spectra were recorded.

Results and Discussion

Synthesis and Characterization of PE-AuNPs

Figure 1a portrays the UV–vis absorption spectra of the PE-AuNPs, pectinase, and the mixture of HAuCl4 and pectinase. A strong distinct absorption peak at 523 nm is observed in the spectrum of PE-AuNPs (curve a), which differs from that of pure pectinase (curve b) and MW irradiated pectinase (curve c). In addition, the mixture of HAuCl4 and pectinase after MW irradiation (curve d) displays no distinct absorption peak at 523 nm. Combined the wine red color of the PE-AuNPs solution as sown in the inset of Fig. 1a, which is apparently different with the other yellow solutions, it reveals that the pectinase-protected gold nanoparticles has been successfully obtained. NaOH plays an important role in the synthesis of PE-AuNPs, because it has been reported that the reaction “4AuCl4 + 12OH−·→ 3O2 + 6H2O + 4Au + 16Cl” could release 2.799 E°/V of energy [33]. So Au(III) could be easily reduced to Au(I) or Au(0) by pectinase at basic pH conditions. A simple sketch of the PE-AuNPs preparation process is shown in Scheme 1.

Fig. 1
figure 1

a UV–vis absorption spectra of (a) PE-AuNPs, (b) pure pectinase, (c) MW irradiated pectinase, (d) the mixture of HAuCl4 and pectinase after MW irradiation. Inset shows the images of these production. b PE-AuNPs synthesized in different volume ratios of pectinase to HAuCl4 with 1:3, 1:2, 1:1, 2:1, and 3:1 (curves ae). c PE-AuNPs synthesized from different MW irradiation times: 1–6 min (curves ae)

Scheme 1
scheme 1

Schematic representation of the colorimetric assay of Mg2+ ion based on the green synthesis of PE-AuNPs

Several protocols were carried out before finding a successful synthetic route. The optimization of the synthesis conditions, including the volume ratio of the initial reagents pectinase to HAuCl4 and the reaction time. Control experiments were carried out with the volume ratio of pectinase to HAuCl4 (PE-to-Au) with 1:3, 1:2, 1:1, 2:1, and 3:1. Figure 1b shows the UV–vis absorption spectra of the products synthesized from different PE-to-Au ratios. The absorption band at 523 nm is strongest at a PE-to-Au ratio 1:1. Figure 1c shows the UV–vis absorption spectra of PE-AuNPs synthesized under different MW irradiation times (1, 2, 3, 4, 5, and 6 min). It is observed that the PE-AuNPs product after MW irradiation 3 min shows higher absorption intensity at 523 nm. One of the most important characteristics of gold nanoparticles is surface plasmon resonance (SPR), which is the result from the collective oscillation of the conduction electrons across the nanoparticle. The gold nanoparticles interacted with incident electromagnetic fields, leading to the excitation of SPR, which prompted intense light absorption at about 520 nm. The SPR absorbance is highly sensitive to the size, sharp, and dielectric constant. The SPR absorbances of PE-AuNPs synthesized under PE-to-Au ratios 1:3, 1:2, 2:1, and 3:1 and MW irradiation times 1, 2, 4, 5, and 6 min, respectively, were weaker than these of PE-to-Au ratio 1:1 and MW irradiation times 3 min. This could be attributed that only very few of PE-AuNPs were formed under PE-to-Au ratios 1:3 and 1:2 and MW irradiation times 1 and 2 min. Larger size PE-AuNPs were synthesized when PE-to-Au ratio was higher than 1:1 and MW irradiation time was higher than 3 min, which resulted in decreased absorbance at 523 nm and slight red-shift of SPR band. As such, PE-to-Au ratio 1:1 and 3.0 min MW irradiation were applied to our subsequent MW-assisted synthesis of PE-AuNPs.

Various spectroscopic techniques were employed for characterization of the MW-assisted as-synthesized PE-AuNPs product. The typical TEM image of the PE-AuNPs (Fig. 2a) shows an average diameter of about 20.0 ± 1.4 nm. The dynamic light scattering analysis (DLS) of PE-AuNPs shows that the average diameter is 30.1 nm (Fig. 2c), which was slightly larger than that obtained from TEM, mainly due to the fact that TEM measures only metallic core size, whereas in DLS, the average hydrodynamic diameter of PE-AuNPs can also be calculated for the attached water molecules by light scattering through the sample [34, 35].

Fig. 2
figure 2

a, b TEM images of PE-AuNPs without and with Mg2+. c, d DLS analysis of without and with Mg2+

To evaluate the attachment of PE onto the surface of Au, the surface composition of as-prepared PE-AuNPs was investigated by FT-IR. Figure 3a displays the IR spectra of the pure PE and AuNPs samples. The absorption bands of pectinase at 3413, 2935, 1654, and 1406 cm−1 were mainly ascribed to -OH, -CH, -C=O, -C–N stretching vibrations, respectively. Compared with the spectrum of pure pectinase, the main absorption bands of the PE-AuNPs were located at 3429, 2935, 1645, and 1410 cm−1, which indicated that the basic structure of PE still maintained after modifying the PE-AuNPs. It should be noted that these absorption bands of PE-AuNPs were slightly differ from pure pectinase, mainly because PE-AuNPs changes the surface bond force constant of these groups [36]. An obvious peak observed at 2860 cm−1 in the spectrum of pectinase, which is attributed to the -H-C=O stretching motions, disappeared in that of PE-AuNPs. Meanwhile, there appeared a distinct absorption band at 1570 cm−1 in the spectrum of PE-AuNPs, which is due to the asymmetrical stretching vibration of COO. So we proposed that pectinase participated in the HAuCl4 reduction reaction via the -H-C=O group that turned into COO group along with the formation of PE-AuNPs. The shift of characteristic peaks of pectinase at 1116, 618, and 520 cm−1 confirmed furtherly that pectinase as a stabilizer has been attached on the surface of PE-AuNPs.

Fig. 3
figure 3

a IR spectra of the pure pectinase (black line) and the PE-AuNPs (red line). b TGA of PE-AuNPs (red line) and pectinase (blue line)

TGA is commonly employed to provide the information of the Au core and stabilizer ratio of the gold nanoparticles directly. The PE-AuNPs was estimated by TGA at a heating rate of 10 °C min−1 as shown in Fig. 3b. The results show that there was a tiny weight loss at a temperature below 160 °C, which is attributed to evaporation of water. The pectinase was found to decompose and fall off from the surface of PE-AuNPs in the temperature range from 160 to 526 °C, and the weight loss from 526 to 660 °C is attributed to the combustion of pectinase, corresponding to the weight loss of 75.3 wt%, namely, the proportion of gold was 20.8 wt%.

Principle of Colorimetric Assay of Mg2+

Figure 4a shows UV–vis absorption spectra of PE-AuNPs with and without 3.19 mM Mg2+. It is obviously observed that the maximum absorption peak of PE-AuNPs bathochromic-shift from 523 to 665 nm with the addition of Mg2+. The solution color of PE-AuNPs turned to blue from wine red as shown in the inset of Fig. 4a, indicating the formation of PE-AuNPs aggregates. In addition, further evidence for Mg2+-induced aggregation of PE-AuNPs was supported by TEM images and DLS results. Figure 2b shows the TEM image of PE-AuNPs after addition of Mg2+ ion. It can be seen that the morphology and sizes of PE-AuNPs were greatly influenced by the addition of Mg2+, which results in a change in their state from monodisperse to polydisperse. The average hydrodynamic diameter of PE-AuNPs was drastically increased from 30.1 to 268 nm by the addition of Mg2+ ion, yielding the PE-AuNPs aggregation via the complex formation between PE-AuNPs and Mg2+ ions. A zeta potential can be used to derive information concerning the surface charge and the local environment of nanoparticles. In this study, we measured the zeta potentials of PE-AuNPs before and after the addition of Mg2+ ion (Fig. S1). A significant increase in the zeta potential from −26.9 to −8.42 mV indicated the augment of the surface potential of PE-AuNPs, which also induced aggregation [37]. The TEM, DLS, and zeta potential analysis results were in agreement with the red-shift of the absorption spectra and the color change of PE-AuNPs after the addition of Mg2+ ion.

Fig. 4
figure 4

a UV–vis absorption spectra of PE-AuNPs without and with Mg2+; insert is images of PE-AuNPs without and with Mg2+. b, c The XPS measurement of PE-AuNPs before and after the addition of Mg2+

X-ray photoelectron spectroscopy (XPS) analysis was carried out to determine the valence of Au in the PE-AuNPs. The XPS survey spectrum (Fig. 4b) shows two prominent peaks at about 84.5 and 88.0 eV (black curve), which are assigned to Au 4f7/2 and Au 4f5/2 for PE-AuNPs, respectively. Then the Au 4f spectrum of the PE-AuNPs could be further deconvoluted into two distinct components (red and blue curves) centered at binding energies of 84.0 and 85.3 eV, which could be identified as Au(0) and Au(I)38, respectively. These two bands indicated that the most of the gold within the nanoparticles is Au(0), and with a handful of Au(I) surrounded by pectinase, which might stabilize the PE-AuNPs. As shown in Fig. 4c, upon interaction with Mg2+, the peak area for Au(I) in the PE-AuNPs disappeared greatly, illustrating that Mg2+ induced further reduction of Au(I) to Au(0), then aggregation of gold nanoparticles occurred. This is consistent with the above research results. And this phenomenon can be further reflected in the scheme of the colorimetric assay of Mg2+ ion (Scheme 1).

Optimization of Colorimetric Assay of Mg2+

Since the electrostatic repulsion plays an important role on the dispersion of AuNPs, parameters (e.g., solution pH, incubation time, the amount of AuNPs, etc.) that affect the electrostatic repulsion may have effects on the aggregation behavior of PE-AuNPs [15]. Thus, the effect of these parameters on UV–vis absorption spectra of PE-AuNPs upon adding Mg2+ was investigated in this study. With the increase of the concentration of Mg2+, the absorbance of PE-AuNPs at 523 nm decreases gradually and the absorbance at longer wavelength (665 nm) correspondingly increases. So a systematic study was performed by monitoring the ratio of absorbance values at 665 and 523 nm (A 665/A 523). A lower absorbance ratio indicates that PE-AuNPs disperse well in the solution, and a greater extent of PE-AuNPs aggregates has a higher absorbance ratio.

To obtain the optimum conditions of the colorimetric assay, the effect of the amounts of PE-AuNPs on A 665/A 523 were first studied and the corresponding results were displayed in Fig. S2. The results demonstrate that the A 665/A 523 obviously increases with the increase of PE-AuNPs dosage until it reaches the highest at 50 μL. Since PE-AuNPs solution is sol system, too large amounts of PE-AuNPs was not conducive to its stability. Thus, 50 μL PE-AuNPs was selected for the subsequent work.

The pH value of the system is a crucial factor that affects the degree of aggregation of PE-AuNPs. Hence, the effect of pH on the A 665/A 523 of PE-AuNPs was investigated in the absence and presence of Mg2+. As seen from Fig. S3, the A 665/A 523 of PE-AuNPs without Mg2+ has negligible change over the pH range of 4.0–10.0, indicating that the PE-AuNPs are stable when pH > 4.0. However, the value of A 665/A 523 is higher under pH 2.0 and 3.0, which indicates that the stability of PE-AuNPs is a bit poor in extremely acidic medium. With the addition of Mg2+ in the PE-AuNPs system, the result exhibits that the value of A 665/A 523 is higher than that without Mg2+ over the pH range of 2.0–10.0. In addition, the value of A 665/A 523 in the presence of Mg2+ reached maximum at pH 4.0. Therefore, pH 4.0 was chosen for Mg2+ detection.

To investigate the aggregation kinetics of PE-AuNPs in the presence of Mg2+, the changes of A 665/A 523 value with incubation time ranging from 30 s to 30 min were also studied as shown in Fig. S4. It can be found that the A 665/A 523 value increases very rapidly with the incubation time varying from 30 s to 10 min and begins to tend to stable when the incubation time exceeds 10 min, which reflects that Mg2+ would easily cause the complete aggregation of PE-AuNPs within 10 min. Consequently, we choose 10 min as the incubation time for Mg2+ detection.

Selectivity of the Colorimetric Assay

To determine the selectivity of the proposed colorimetric method against Mg2+, other metal ions such as K+, Li+, NH4 +, Cd2+, Mn2+, Ba2+, Zn2+, Pb2+, Hg2+, Ca2+, Al3+, Cu2+, Fe3+, Co2+, Na+, and Mg2+ were tested in the assay. In these tests, the concentrations of other metal ions were 10-fold higher than that of Mg2+ ion. As manifested in Fig. 5, both the corresponding UV-visible spectra and photographic images indicate that none of these metal ions could cause a conspicuous aggregation as Mg2+ did. Only Mg2+ ion effectively induced the aggregation of PE-AuNPs with a red-shift in the SPR peak from 523 to 665 nm, giving a color change from wine red to blue that could be observed with the naked eye. The results confirmed that proposed colorimetric assay has a perfect selectivity toward Mg2+ ion.

Fig. 5
figure 5

Selectivity of the colorimetric assay. a UV-visible absorption spectra of PE-AuNPs before and after the addition of various metal ions (K+, Li+, NH4 +, Cd2+, Mn2+, Ba2+, Zn2+, Pb2+, Hg2+, Ca2+, Al3+, Cu2+, Fe3+, Co2+, Na+, Mg2+). b The plot of A 665/A 523 versus various metal ions. Inset is the corresponding photographic images of PE-AuNPs without and with various metal ions

Colorimetric Detection of Mg2+ Ion

To testify the sensitivity of the proposed colorimetric assay, we tested several Mg2+ solutions which had concentrations between 4.85 × 10−9 μM and 1.6 × 104 μM. The absorption spectra of PE-AuNPs solutions and photographs of the corresponding solutions were recorded. As shown in Fig. 6a, upon increasing Mg2+ concentration, the UV–vis absorbance curves show red-shift and broaden gradually, and a peak emerges slowly at longer wavelength 665 nm. Meanwhile, the color of the PE-AuNPs solutions gradually changes from wine red to blue, the lowest detection concentration with the naked eye is 0.52 μM, which is 1000 times lower than the normal content of Mg2+ in the human body. The absorbance ratio (A 665/A 523) as a function of the concentration of Mg2+ is plotted in Fig. 6b, c. There were two good linear relationships between the A 665/A 523 value and Mg2+ concentration over the ranges of 5.34 × 10−7 to 51.4 μM and 5.12 × 102 to 3.19 × 103 μM. And the correlated coefficient r 2 is 0.996 and 0.998, respectively. The relative standard deviation (RSD) is 3.0 % for six repeated measurements of 0.48 mM Mg2+. The limit of detection (LOD) for Mg2+ ions at a signal-to-noise ratio (S/N) of 3 has been calculated to be 4.0 × 10−9 μM with UV–vis spectrophotometer, which is much lower than that of the other reported Mg2+ chemosensor methods [3841] as shown in Table 1. Most importantly, compared with other methods for Mg2+ ion detection, this colorimetric assay shows not only better performance but also cost-effective and user- and eco-friendly property.

Fig. 6
figure 6

a UV–vis absorption spectra of PE-AuNPs after addition of various concentrations of Mg2+. Insert is the absorbance ratio (A 665/A 523) versus the concentration of Mg2+. b, c There were two linear relationships between the absorbance ratio (A 665/A 523) and Mg2+ concentration

Table 1 Comparison of this work with some established Mg2+ detection methods

Analysis of Mg2+ in Real Samples

The proposed colorimetric assay was applied to Mg2+ determinations in several tap water, lake water, and deionized water samples, and the analytical results are listed in Table 2. Moreover, the recovery tests for Mg2+ were performed by adding known amounts of Mg2+ standards in the real samples. The amounts of added Mg2+ ion were then evaluated by using the proposed colorimetric assay. The results of recovery of the samples are also summarized in Table 2. The recovery values ranged from 96.5 to 103.2 %, with the relative standard deviation (RSD) lower than 3.9 %, revealing the present PE-AuNPs-based colorimetric assay can be used for detection Mg2+ in environmental samples. The recovery tests also demonstrate that the proposed colorimetric assay offers an excellent, accurate, and precise method for the determination of Mg2+ ion.

Table 2 Determination of Mg2+ in water samples using the proposed assay

Conclusion

In summary, a simple and “green” approach for the synthesis of pectinase-protected gold nanoparticles has been developed for the first time. Moreover, the obtained PE-AuNPs was subsequently used as an ultra-sensitive and highly selective colorimetric assay for detection of Mg2+ ion. The study results show that Mg2+ can induce the aggregation of PE-AuNPs, which made a visual color change from red to blue and a red-shift in the SPR peak from 523 to 665 nm. The proposed colorimetric assay of Mg2+ could be operated by both the naked eye and UV–vis spectrophotometry. The lowest detection concentration with the naked eye is 0.52 μM. The detection limit is 4.0 × 10−9 μM with UV–vis spectrophotometer. The proposed Mg2+ detection assay offers several advantages compared with other reported methods. For instance, the Mg2+ recognition can be easily observed by eye and thus does not require advanced instruments. Moreover, the colorimetric assay also shows better performance, cost-effective, and user- and eco-friendly property. Our work provided a novel gold nanoparticles, which is a promising nanomaterials for colorimetric assay, and it can be extensively applied in bioanalysis and biomedical field.