1 Introduction

MeFe2O4 nanostructures (Me = Fe, Ni) are considered to be one of the most important nano ferrites due to their potential for various applications. One of the key aspects of spinel ferrite class is nickel ferrite [1], which has generated a lot of research interest. Nichel ferrite [2] adopted inverse spinel structure and possesses a saturation magnetization (Ms) of 23.604 eV/g and a coercivity (Hc) of 207.92Oe [1]. Experimentally, the direct transition optical band gap (Eg) is reported to be 4 eV, while for indirect transition, it was 2 eV [2].

Due to its exceptional properties, it is used in a widespread range of applications, such as: electrocatalytic, non-volatile memory, nanofibrillate, nano-biomass, low dielectric losses power applications [3,4,5,6,7]. As a result, different types of nano-structures based on Ni ferrite have been developed in the last few years using several techniques [8,9,10,11].

TiO2 is a non-toxic oxide, chemically stable against photo- corrosion with high oxidizing power [9]. However, TiO2 has some limitations for use in photocatalytic applications. It has a wide band gap Eg (3.0 eV for rutile, 3.2 eV for anatase), responding only to ultraviolet (UV) irradiation that corresponds to the wavelength of 390 nm for photoactivation. Some modifications for the solar irradiation response of TiO2 should be enhanced to reduce its Eg. Lately, the formation of a composite of TiO2 with magnetic MFe2O4 is a gorgeous field of study because MeFe2O4 (Me: Fe, Ni) nanoparticles have too narrow Eg to be a good sensitizer for wide Eg semiconductors (CoFe2O4: 1.10 eV, ZnFe2O4: 1.9 eV, NiFe2O4: 1.56 eV) [12,13,14]. They revealed astonishing trends such as suitable tunable band positions, numerous redox states, low cost, thermal stability in addition to the easiness of preparation [15,16,17,18,19].

Depending on the external magnetic field intensity, composites made of ferromagnetic materials display faster rates of pollutant degradation [20]. It has also been renowned that easy electron migration through the interface arises when the alignment of magnetic moments produced by the composite is the same for all constituent parts [21]. Additionally, it has been anticipated that charge-carrier recombination can be repressed by modifying the electron spin polarization states of the photocatalysts through doping, morphology changes and modifying the structure. Using spin-orbital or hyperfine coupling, such magnetic semiconductors allow for the flipping of the electron's spin state [22]. Most crucially, the photocatalytic composite that is formed of magnetic material is easy to recover once the photocatalytic process is terminated. A magnetic photocatalyst is effortlessly acquired where it can be reused for water treatment procedures [23, 24] since the gained material can easily be contaminated. MeFe2O4/TiO2 is essential and commonly employed in photocatalytic applications due to its ability to degrade organic hazardous chemicals [11, 13, 20,21,22].

Resistive switching (RS)-based memristor devices have been used in many different applications because of their superior switching performance [25,26,27,28]. Given that TiO2 is a potential model material to explore several nameless meristive phenomena [29, 30], the simple RS device structure makes them appropriate for use in the development of advanced computers and future technologies (metal–insulator-metal) and high efficiency with low power consumption [31, 32]. Positive exceptional electrical features that are not reachable with conventional oxide-oxide or ferrite-ferrite nanocomposites can be attained by merging two distinct material classes into a nanocomposite [33]. The RS phenomenon is presently present in many materials, such as transition metal oxides [34, 35] and perovskite oxides [36, 37].

In this piece of work, NiFe2O4, TiO2 nanoparticles and their nanocomposite were prepared using simple, fast and low cost technique. We also aimed to better understand their physical, optical, and electronic structures to estimate their proper applications.

2 Experimental techniques

2.1 Constituents

Nickel nitrate, iron nitrate, Ti isopropoxide, ethanol, and urea with chemical formula (Ni(NO)20.6H2O, 99%), (Fe(NO3)3·9H2O, 99%), (Ti{OCH(CH3)2}4), (C2H5OH, 99%) and (CH4N2O, 98%), were brought from Sigma Aldrich.

2.2 Sample preparation

2.2.1 Fabrication of NiFe2O4

Flash auto-combustion was used to fabricate nickel ferrite nanoparticles. The starting concentrations of the precursors, such as nickel (0.1 M), and iron (0.2 M) nitrates, matched the specific ferrite’s stoichiometric ratio. This precursor was combined with urea (0.7 M) through a powder phase; after that, the resultant mixture was stirred vigorously while judicious drops of deionized water were incorporated to get the dissolved mixture. The nitrates: urea mixture was heated to 250 °C in order to start the process of breaking down the urea into ammonia, where ferrites could form. This equation could potentially be used to explain the following steps for the composition of NiFe2O4:

$$Ni {{(NO}_{3})}_{2}.6{H}_{2}O+{2Fe({NO}_{3})}_{3}.9{H}_{2}O +C{H}_{4}{N}_{2}O\stackrel{500 C}{\to }Ni{Fe}_{2}{O}_{4}\downarrow$$
(1)

After the precipitation, the final powder has been calcined for 2 h at 500 °C at a rate of 5 °C/min.

2.2.2 Preparation of TiO2

TiO2 nanoparticles were created by the sol–gel technique [38] by mixing 50 ml of an aqueous solution (25 ml deionized water, 25 ml ethanol) with 5 ml of Ti isopropoxide. After that, the mixture was continuously disturbed for thirty minutes. The final solution was then allowed to age for a full day. Subsequently, the precipitate was collected using a centrifuge and allowed to dry at 50 °C. Last but not least, the powder was calcined for two hours at 550 °C at a rate of 5 °C per minute.

2.2.3 Synthesis of NiFe2O4/TiO2 nanocomposite

Following these steps, a NiFe2O4/TiO2 nanocomposite was made with the same ratio. A 30-min ultrasonication process was used to combine 0.2 g of NiFe2O4 with 50 ml of ethanol and water. Next, the mixture was subjected to a dropwise addition of 50 ml of Ti isopropoxide, followed by two hours of ultrasonication. and then aging for 24 h. Centrifugation was then used to separate the final product from the precipitate. NiFe2O4/TiO2 nanocomposite was obtained by heating the powder in a furnace for two hours at 550 °C.

2.3 Samples’ analysis

Structural study has been achieved via X-ray diffractometer (using the Proker D8 advanced X-ray diffractometer, which has CuKα radiation). Fourier-transform infrared spectroscopy (FT-IR) (Perkin Elmer) has been utilized to identify the function groups in range 400–4000 cm−1. The samples shape has been inspected through FESEM (field emission scanning electron microscopy) (Sigma 300VP operated at 15 kV) with Energy-dispersive X-ray (EDX). A UV–visible spectrophotometer (Jasco (V-630) spectrometer) has been utilized to investigate the optical properties of the obtained samples. Magnetic behaviors have been examined through VSM (Vibrating Sample Magnetometer, Lakeshore 7410S), in addition to a homemade device that measures the magnetic susceptibility to various intensities of field. For the dielectric sample measurements, the powder was pressed in a uniaxial press at 5*108 N/m2 and coated with conducting silver paint at both surfaces to assure Ohmic contacts. Furthermore, dielectric properties related to the investigated samples were measured using the LCR bridge (HIOKI, 3532-50).

3 Results and discussion

Figure 1 shows the XRD of the investigated nanoparticles NiFe2O4, TiO2 and their composite NiFe2O4/TiO2. According to ICDD card number 01-080-0072, NiFe2O4 was prepared in a single phase cubic spinel structure. The diffraction peaks of NiFe2O4 were observed at 2θ values 30.26º, 35.66º, 37.28º, 43.33º, 53.82º, 57.36º, 62.98º, 71.53º, 74.58º, and 75.53º, according to (220), (311), (222), (400), (422), (511), (440), (320), (533), and (622), respectively. The data for TiO2 was indexed with the ICDD card number 01-076-1937. The main diffraction peak was observed at 2θ ≈ 25.307º corresponding to (210). The TiO2 exhibited orthorhombic structure. The XRD pattern of the NiFe2O4 /TiO2 composite is shown in Fig. 1 and indicates the presence of two phases of NiFe2O4 and TiO2 simultaneously. The absence of a third phase approves the good physical mixing of compounds to form the nanocomposite without any chemical reactions. The lattice parameters of Ni ferrite were calculated according to the following equation based on the cubic structure:

Fig. 1
figure 1

XRD of the samples NiFe2O4, TiO2 and NiFe2O4/TiO2

$$\frac{1}{{d}^{2}}=\left({h}^{2}+ {k}^{2}+ {l}^{2} \right)\frac{1}{{a}^{2}}$$
(1)

The lattice parameters of the orthorhombic TiO2 were calculated from Eq. (2).

$$\frac{1}{{d}^{2}}=\frac{{h}^{2}}{{a}^{2}}+ \frac{{k}^{2}}{{b}^{2}}+ \frac{{l}^{2}}{{c}^{2}}$$
(2)

The lattice parameters of the investigated samples were reported in Table 1.

Table 1 The lattice parameters, the theoretical density (Dx), the dislocation density (δ) and the crystallite size of the samples NiFe2O4, TiO2 and NiFe2O4/TiO2

The crystallite sizes of NiFe2O4, TiO2, and NiFe2O4/TiO2 were calculated using the well-known Scherer’s equation: [39]

$$L =\frac{0.9 \lambda }{\beta {\text{cos}}\theta }$$
(3)

where L refers to the average crystallite size, λ denotes the wave length of the X-ray radiation (λ = 1.5406 Å), β is the corrected full width at half maximum intensity of the peak, and θ is the Bragg angle. Table 1 contains the values of the crystallite size of the investigated samples. Equation (4) was used to calculate the theoretical density (Dx) of the investigated samples.

$${{\text{D}}}_{{\text{X}}} =\frac{ZM}{{N}_{A}V}$$
(4)

where V is the unit cell volume, M denotes the molecular weight, Z is the number of molecules in a unit cell, and NA is Avogadro’s number. The values of Dx were reported in Table 1.

The dislocation density (δ) is related to the total defects in the samples and was calculated using Eq. (5) and listed in Table 1.

$$\updelta =\frac{1}{{{\text{L}}}^{2}}$$
(5)

FTIR spectroscopy of TiO2, NiFe2O4 and NiFe2O4/TiO2 nanocomposite was investigated. As revealed in Fig. 2, for the FTIR spectrum related to NiFe2O4, there are two noticeable absorption bands familiar to the spinel ferrite structure at 433 and 620 cm−1 which are associated with the stretching vibration mode of the M–O bond at the octahedral in addition to tetrahedral sites correspondingly [40]. The band of absorption around 1074 cm−1 was associated with a Fe3+ and O2 stretching vibration bond owing to existence of Fe3+ions on the tetrahedral site according to the inverse spinel structure of NiFe2O4 [41]. Furthermore, the band around 1400 cm−1 was credited with -CH2 asymmetric band. In the TiO2 spectrum, the bands around 568 and 901 cm−1 were corresponding to stretching vibration mode associated with Ti-O-Ti [42, 43]. For the FTIR spectra of NiFe2O4/TiO2 nanocomposite the distinctive bands of NiFe2O4 and TiO2 approving the attendance of NiFe2O4 and TiO2 NPs in nanocomposite. The absorption band around 1630 and 3500 cm−1 was also associated with the O–H band, which is assigned to O–H bending as well as stretching vibrational modes owing to the adsorbed water molecule [44].

Fig. 2
figure 2

FTIR of the prepared samples

FESEM of the investigated samples is shown in Fig. 3. The FESEM image of the NiFe2O4 is illustrated in Fig. 3a, and the particles have irregular shapes. TiO2 particles have spherical shapes, as illustrated in Fig. 3b. The shapes of the particles NiFe2O4 and TiO2 are presented in Fig. 3c for the NiFe2O4/TiO2 nanocomposite.

Fig. 3
figure 3

FESEM of the samples a NiFe2O4, b TiO2, and c NiFe2O4/TiO2

Figure 4 illustrates the EDX of the investigated samples. The atomic % and weight % of the elements of the samples were illustrated in the inset tables in Fig. 4. The data obtained from the EDX illustrates that the investigated samples, NiFe2O4, TiO2, and NiFe2O4/TiO2, were prepared with the same chemical formula. The presence of carbon elements in Fig. 4b is a result of the carbon tape where TiO2 was put on it inside the FESEM.

Fig. 4
figure 4

EDX of the samples a NiFe2O4, b TiO2, and c NiFe2O4/TiO2

Figure 5 shows the absorbance of the UV–Vis. spectrum of TiO2, NiFe2O4, and NiFe2O4/TiO2 nanocomposite in the interior of 200–1000 nm. According to this spectrum, all the samples absorb intensely the wavelengths of 200–350 nm (ultraviolet light). By comparing the absorbance spectra of pure TiO2 and NiFe2O4 NPs with NiFe2O4/TiO2 nanocomposite, there is a red shift. This indicates the complexation between TiO2 and NiFe2O4 NPs. Figure 6a and b investigated the absorption coefficient (α) and extinction coefficient (K) related to the prepared specimen and given through the ensuing equations [40].

$$\alpha =\frac{2.303A}{l}$$
(6)
$$K=\frac{\alpha \lambda }{4\pi }$$
(7)

where A is the absorbance, λ is wavelength, and l represents the specimen thickness.

Fig. 5
figure 5

Absorbance of UV–Vis spectrum of TiO2, NiFe2O4, in addition to NiFe2O4/TiO2

Fig. 6
figure 6

a Absorption coefficient and b Extinction coefficient of TiO2, NiFe2O4, and NiFe2O4/TiO2 nanocomposite

Figure 6a. shows a clear peak around λ ≈ 240 nm for all the prepared samples, which is related to ππ* transitions [41]. Figure 6b shows a notable rise in the extinction coefficient (K) of the investigated samples. The extinction coefficient gives information about the light portion that has been absorbed, scattered, or otherwise lost for every unit length of the dispersion medium.

Figure 7a and b displays Tauc plot for the direct and indirect transitions of TiO2, NiFe2O4, and NiFe2O4/TiO2 nanocomposite. The values of energy related to band gap were assumed from the Tauc relations, that have been calculated through these equations [42, 43]:

$$(\alpha hv{)}^{2}=A\left(hv-{E}_{g}\right) \qquad \text{On behalf of direct transitions}$$
(8)
$$(\alpha hv{)}^{0.5}=A\left(hv-{E}_{g}\right) \qquad \text{On behalf of indirect transitions}$$
(9)

where A, α in addition to hν signify constants, absorption coefficient, and photon energy, respectively.

Fig. 7
figure 7

a Direct and b indirect transition of TiO2, NiFe2O4, and NiFe2O4/TiO2 nanocomposite

The energy band values of TiO2, NiFe2O4, and NiFe2O4/TiO2 nanocomposite are approximately 3.4, 2.3, and 2.5, respectively, for the indirect transition, which obviously reveals that the presence of NiFe2O4 makes the NiFe2O4/TiO2 nanocomposite further sensitive to light than pure TiO2. In light of the outcomes shown in Table 2, for values related to direct and indirect energy band gap transitions, we noticed that the transition between valence and conduction bands associated with prepared samples follows indirect transitions.

Table 2 Values of direct and indirect band gap transition energies of TiO2, NiFe2O4, and NiFe2O4/TiO2 nanocomposite

Finally, based on the above argument, NiFe2O4 nanoparticles have the capability of reducing the absorption edge related to TiO2 in the visible light range, thus enhancing the photocatalytic performance of TiO2 nanoparticles in the visible region.

The value of the real dielectric constant (ε/) was calculated according to the following equation:

$${\varepsilon }^{/}= \frac{Cd}{{\varepsilon }_{o A}},$$
(10)

where d refers to the thickness of the pellet, C is the capacitance of the sample, A is the pellet cross-sectional area and εo is the permittivity in free space (εo = 8.86 × 10–12 F/m). Figure 8 illustrates the dependence of the dielectric constant (ε/) on the absolute temperature for NiFe2O4/TiO2. In the first temperature region (300–500 K), ε/ is nearly independent on the temperature. While in the second temperature region (500–600 K), ε/ increases with raising the temperature due to the sufficient thermal energy to liberate the dipoles to be aligned with the applied field, thereby the polarization and ε/ increased. Figure 8a shows that the correlation between the ε/ values and the frequency, ε/ decreases with increasing frequency. At very high frequencies, the electric dipoles are not able to follow the frequency of the applied field, so ε/ decreases. The dependence of the dielectric constant on the frequency originates from the presence of different types of polarization, such as ionic, space charge, electronic, and dipolar polarizations [45]. At low frequencies, ε/ values are high due to the participation of dipolar and space charge polarization. At high frequencies, the electronic and ionic polarization participate in the low dielectric constant. Space charge polarization is the result of charges being deposited at grain boundaries by an electric field applied at low frequencies. This results in a large number of capacitances, which raise the dielectric constant. Because the charge exchange quickens in higher frequency regions, less polarization is obtained [46]. As a result, the dielectric constant values are reduced and almost constant. The comparative study of ε/ and T(K) for the samples NiFe2O4 and NiFe2O4 /TiO2 is shown in Fig. 8b. It was observed that the ε/ values of NiFe2O4 /TiO2 is larger than that of pure NiFe2O4. The presence of TiO2 in the NiFe2O4 /TiO2 increases the dielectric constant due to enhancement of the polarization from the conduction mechanism as a result of the charges hopping between various ions leading to the increase in the space charge polarization [45]. Moreover, the interfacial polarization is initiated the interfaces between grain of different compositions of the nanocomposite.

Fig. 8
figure 8

a The dependence of ε/ on the absolute temperature. b A comparative study of ε/ for NiFe2O4 and NiFe2O4/TiO2 as a function of temperature

Figure 9 shows the dependence of ac conductivity on the reciprocal of T for the composite NiFe2O4/TiO2. The investigated samples have a semiconductor like behavior due to the ac conductivity increases with raising the temperature. The values of σac obey the Arrhenius equation [44]:

$${\varvec{\sigma}}=\boldsymbol{ }{{\varvec{\sigma}}}_{{\varvec{o}}\boldsymbol{ }}{\mathbf{e}\mathbf{x}\mathbf{p}\boldsymbol{ }}^{\frac{-{\varvec{E}}}{{\varvec{k}}{\varvec{T}}}},$$
(11)

where T denotes the absolute temperature, E refers to the activation energy, and k is the Boltzmann’s constant. The values of the activation energies were calculated and reported in Table 3. The values of activation energies indicate the semiconductor like behavior. The values of E of NiFe2O4/TiO2 composite are less than that of Ni ferrite due to the presence of semiconductor TiO2 particles. The NiFe2O4/TiO2 sample exhibits an increase in ac conductivity due to an increase in space charge carriers and their mobility. The decrease in the activation energy of the NiFe2O4/TiO2 composite recommends the use of these materials in heavy metal photodegradation.

Fig. 9
figure 9

The relation between ac conductivity and the reciprocal of absolute temperature for the composite NiFe2O4/TiO2 at different frequencies

Table 3 The values of activation energies EI (at high temperature region) and EII (at low temperature region) for the samples

The variation of the molar magnetic susceptibility (χM) with T at different magnetic field intensities (H = 1010 Oe, 1340 Oe, and 1660 Oe) for NiFe2O4 and NiFe2O4/TiO2 composite is shown in Fig. 10a and b. A sensible decrease in (χM) with increasing temperature is detected until a certain temperature (Tc) after which it reaches its minimum value. The inset of the figure shows δχM/δT from which the Curie temperature Tc is depicted.

Fig. 10
figure 10

a, b Variation of χM with the absolute temperature T at different magnetic field intensities. c Variation of χM for pure Ni ferrite and its composite with the absolute temperature T at 1660 Oe

From Fig. 10C, it was obvious that the molar magnetic susceptibility (χM) of nanocomposite is smaller than that of Ni ferrite. On the other hand, both effective moments and Curie temperatures for the nanocomposite were larger than for the pure nano Ni ferrite.

The Curie–Weiss law [40] was for compliance at the high-temperature region. Accordingly, the Curie temperature (Tc), Curie–Weiss constant (θ), and the effective magnetic moment (μB) are detected from the paramagnetic region of the relation between χ−1M and absolute temperature (not present here) by applying the subsequent formulas [47]. Table 4 tabulates the computed data.

$${\text{C }} = {1}/{\text{slope}} \qquad\upmu_{{{\text{eff}}}} = { 2}.{83} \surd {\text{C}}{.}$$
(12)
Table 4 Shows the Curie temperature Tc, Weiss constant (θ), and the effective magnetic moment (μB) for our samples

The tabulated data shows that the Curie temperature Tc decreases as TiO2 is added to the pure Ni ferrite, but the effective magnetic moment (μB) increases.

The value of Tc represents the strength of characteristic magnetic interactions, i.e., A-B exchange interactions, between the cations present at the tetrahedral and octahedral lattice sites in Ni ferrite, so the thermal energy required to regulate the spin alignment decreases, thus decreasing the Curie temperature [48, 49] due to weakness in the A-B exchange interaction as TiO2 was added.

The composite has a ferrimagnetic nature at room temperature, it can be described by a model of indirect double exchange, which is explained by oxygen vacancies and the exchange interaction between the 3d orbitals of Ti3+ and Ti4+ at the interface [42].

The magnetic hysteresis curves at 300 K are typical of ferrimagnetic materials. In general, the shape and width of the hysteresis loop depend on some factors, such as chemical composition, cation distribution, porosity, grain size, etc. Figure 11a and b illustrates the magnetization versus external magnetic field (M–H) hysteresis loop which is determined with an external applied magnetic field ranging between − 20 and 20 kOe. the Ms value that corresponds to 20 kOe is 23.604 emu/g.

Fig. 11
figure 11

a, b Illustrates magnetization versus external magnetic field steps are not monotonic

From the hysteresis loop, Ms, remnant magnetization (Mr), Hc, squareness (Mr/Ms), experimental magnetic moments (nB), and anisotropy constant (K) are illustrated in Table 5.

Table 5 Shows the saturation magnetization (Ms), remnant magnetization (Mr), coercivity (Hc), squareness (Mr/Ms), experimental magnetic moments (nB), and anisotropy constant (K)

Stoner–Wohlfarth relation were used to calculate the anisotropy constant ‘K’ as follows [50]:

$$K=\frac{{H}_{C}\times {M}_{S}}{0.96}$$
(13)

At room temperature, the experimental magnetic moment nB is calculated from the saturation magnetization (MS) value as mentioned in the previous work [47, 51] as follows:

$${n}_{B}=\frac{{M}_{w}\times {M}_{s}}{5585}$$
(14)

The table makes it evident that the magnetic parameters of the NiFe2O4/TiO2 composite have lower values compared with the pure nanoferrite sample. The lower value of saturation magnetization could result from the existence of spin canting, which was reported in several nanometer-sized [52] in addition to the frustrated spin structure at the interfaces. Since the squareness ratio < 0.5 is mostly ascribed to the formation of a multi-domain MD structure, then (Mr/Ms) values refer to the particles interact by magneto static interactions (Mr/Ms < 0.5), comparison with the reported literature will be an added value, especially for the room temperature parameters.

4 Conclusion

Flash combustion synthesis was used to prepare nanoparticles of NiFe2O4, while TiO2 nanoparticles were synthesized using sol–gel method. The nanocomposite magnetic catalyst obtained from a combination between both NiFe2O4 and TiO2 nanoparticles. Results from FESEM, FTIR, and XRD show that TiO2 and NiFe2O4 NPs were successfully synthesized. The NiFe2O4/TiO2 composite's XRD pattern is depicted and demonstrates the simultaneous existence of two phases, NiFe2O4 and TiO2. From the optical study, we concluded that the addition of NiFe2O4 makes the nanocomposite more sensitive to light than pure TiO2. As the value of Eg decreased from 3.4 to 2.5 eV, and the activation energy of the NiFe2O4/TiO2 nanocomposite reached 0.85 and 0.69 at 400 kHz, we recommended the use of these materials in heavy metal photodegradation. The magnetic hysteresis curves at 300 K are typical of ferrimagnetic materials for NiFe2O4 and its nanocomposite with TiO2. This pointed to the facility of reuse this catalyst after magnetic decantation of treated water.