1 Introduction

Tungsten trioxide \(WO_3\) has long been considered a good choice for new and innovative applications, such as a photo-catalyst [1, 2], photo-electrodes [3, 4], gas sensors [5, 6] and electrochromic devices [5,6,7,8,9]. Some researchers who studied thin films transmission and reflection spectra have established advanced numerical and analytical methods [10]. They take into account both the absorbance of distinct areas and the angles of incidence on the sample. Similarly, researchers established the Transfer Matrix Method as a robust analytical tool in optics. The researchers can use the TMM to study the propagation of electromagnetic waves, acoustic waves, optical wave structures [11], and elastic waves through a material. This method is especially effective for studying transmission and reflection phenomena in multilayered systems [12]. Recent explorations extend the application of TMM to study the optical properties of thin films [13] complex dynamical systems, such as in plasma physics, revealing fractional soliton solutions [14], and offering comparative analyses of nonlinear phenomena like those described in the Vakhnenko-Parkes and Schrödinger equations [15, 16]. This work presents a TMM-based model for calculating the spectrum of the transmission coefficient, reflection coefficient, and refractive index of tungsten trioxide thin film coated on a glass substrate.

Section 2 discusses the experimental details of the preparation of tungsten trioxide. Section 3 defines the transfer matrix method for a thin film deposited on a glass slab, which helps us calculate the optical parameters such as transmission coefficient, reflection coefficients, and refractive index. Then in Sect. 4, the results obtained by using the TMM technique are discussed, and lastly, in Sect. 5 the conclusion is presented.

2 Experimental deailts

We purchased the tungsten trioxide \((WO_3)\) powder with a purity of \(99.98 \%\) from Sigma Aldrich to use as a starting material for thin film deposition. Before deposition, we cleaned the glass substrate using acetone and deionized water. We then placed two grams of tungsten oxide powder on a molybdenum boat and initiated the vacuum system to achieve the optimal pressure. Upon reaching a base pressure of \(5.4 \times 10^{-5}\) mbar, we passed a current of (50–60)A through the molybdenum boat. The resistive heating caused the tungsten oxide powder to evaporate and deposit onto the glass substrate positioned on the substrate holder, approximately 535 cm away from the source material. The deposition process lasted for 15 min. We used a surface profilometer to measure the thickness of the film, which was nearly \(8.56\times 10^{-7}\) m. We also estimated the thin film’s thickness using the maxima and minima values of the transmittance. We calculated the optical thickness using the following relation:

$$\begin{aligned} l = \frac{\lambda _{\min }\ \lambda _{\max }}{4\ n_f\ (\lambda _{\max }-\lambda _{\min })} \end{aligned}$$
(1)

Here, l is the optical thickness of the thin film. Whereas \(\lambda _{\min }\) and \(\lambda _{\max }\) represent the wavelengths corresponding to the adjacent minimum and maximum in the transmittance spectrum of Fig. 2. The \(n_f\) is the refractive index of the glass corresponding to the \(\lambda _{\min }\).

3 The transfer matrix method (TMM) formulism

The transfer matrix (TM) \(M^{1\rightarrow 2}\) is derived for a single interface between two media based on the requirements of the continuity of tangential components of electric \(\vec {E}\) and magnetic \(\vec {H}\) fields. The TM elements give the magnitude of transmission amplitudes and reflection for electric and magnetic fields. The tangential components of the field vectors \(\vec {E}\) and \(\vec { H }\) have the same boundary conditions on both sides of the contact. We have the relationship between the electric field components across the interface given by:

$$\begin{aligned} {\begin{pmatrix} E_2^r \\ E_2^l \end{pmatrix} = M^{1 \rightarrow 2} \begin{pmatrix} E_1^r \\ E_1^l \end{pmatrix} \ \quad M^{1 \rightarrow 2} = \frac{1}{2} \begin{pmatrix} 1 + \frac{\mu _2 k_{1z}}{\mu _1 k_{2z}} & 1 - \frac{\mu _2 k_{1z}}{\mu _1 k_{2z}} \\ 1 - \frac{\mu _2 k_{1z}}{\mu _1 k_{2z}} & 1 + \frac{\mu _2 k_{1z}}{\mu _1 k_{2z}} \end{pmatrix} } \end{aligned}$$
(2)

Here, the matrix \(M^{1\rightarrow 2}\) is a TM of order \(2\times 2\) related to a single interface’s electric field components. Where the term \(k_{iz}\) is a component of wave vector normal to the interface, for the case of normal incidence \(k_{iz}=n_i(\frac{\omega }{c}) Cos(\theta _1)\) becomes \(k_{iz}=n_i(\frac{\omega }{c})\). The following are the amplitudes of transmission and reflection:

$$\begin{aligned} {t_{1 \rightarrow 2} = \frac{\det (M^{1 \rightarrow 2})}{M_{22}^{1 \rightarrow 2}} \qquad \qquad \qquad \quad r_{1 \rightarrow 2} = -\frac{M_{21}^{1 \rightarrow 2}}{M_{22}^{1 \rightarrow 2}} } \end{aligned}$$
(3)

The Eq. (3). presents the Fresnel equations for a single interface. This formalism can be easily extended to the multi-layered system as well. For example, a system of thin film coated on a substrate is presented in Fig. 1, Where the PEM wave is represented by its electric field vector \(\vec {E}\) components, and the magnetic field \(\vec {H}\) components, along with its propagation vector \(\vec {k}\), indicating the direction of propagation. A plus sign "+" next to \(\vec {E}\), \(\vec {H}\), and \(\vec {k}\) indicates components of forward-moving waves propagating to the right, while a minus sign "-" denotes components of backward-moving waves propagating to the left.

Fig. 1
figure 1

Schematic diagram illustrating the interaction of a Plane Electromagnetic Wave with a Thin Film of thickness \(l_1\), is coated on a glass substrate of thickness \(l_2\)

\(\vec {E}\) Components denoted by "\(\times\)" illustrate the direction and amplitude of the electric field. \(\vec {H}\) Components are represented by blue arrows, showing the direction and amplitude of the magnetic field perpendicular to \(\vec {E}\). The propagation vector \(\vec {k}\) is shown as red arrows, demonstrating the waves’ travel direction through and reflection from the material interfaces. The interaction at each interface between the materials results in a partial reflection and a transmission illustrated by \(\vec {k}\) vectors. The above system requires five matrices that relate the electric field components of the PEM wave across the whole system. The three are the transfer matrices \(M^{1\rightarrow 2}\), \(M^{2\rightarrow 3}\) and \(M^{3\rightarrow 4}\) for 1st 2nd and 3rd interfaces, respectively. For the other two, a new matrix termed propagation matrix \(M^{p}\) must be introduced to account for wave propagation inside the thin film and substrate.

$$\begin{aligned} {M^{pj} = \begin{pmatrix} e^{ik_{jz} l} & 0 \\ 0 & e^{-ik_{jz} l} \end{pmatrix} }\end{aligned}$$
(4)

However, we are interested in the transfer matrix of the entire structure, which is given by simple multiplication of the individual matrices

$$\begin{aligned} {\begin{pmatrix} E_5^r \\ E_5^l \end{pmatrix} = M^{1 \rightarrow 2} \cdot M^{p2} \cdot M^{2 \rightarrow 3} \cdot M^{p3} \cdot M^{3 \rightarrow 4} \begin{pmatrix} E_1^r \\ E_1^l \end{pmatrix}} \end{aligned}$$
(5)

The matrices \(M^{i \rightarrow j}\) are given in Eq. (2), and the diagonal matrices \(M^{pj}\) are given in Eq. (4). We may write the above Eq. (5) as:

$$\begin{aligned} {\begin{pmatrix} E_5^r \\ E_5^l \end{pmatrix} = M^{\text {system}} \begin{pmatrix} E_1^r \\ E_1^l \end{pmatrix}} \end{aligned}$$
(6)

Here, \(M^{system}\) is the transfer matrix for the entire structure. We can calculate the transmission and reflection amplitudes, which are provided by Eq. (3), as follows:

$$\begin{aligned} {t_{\text {system}} = \frac{\det (M^{\text {system}})}{M_{22}^{\text {system}}}, \quad r_{\text {system}} = -\frac{M_{21}^{\text {system}}}{M_{22}^{\text {system}}}} \end{aligned}$$
(7)

The transmission and reflection coefficients are calculated using the matrix \((M^{\hbox {system}})\) as follows.

$$\begin{aligned} {T = \frac{\mu _1}{\mu _4} \frac{{\text {Re}}(k_{4z})}{{\text {Re}}(k_{1z})} |t_{\text {system}}|^2 \qquad \qquad \quad R = |r_{\text {system}}|^2} \end{aligned}$$
(8)

4 Results and discussion

The TMM is applied to find out the transmission spectra, reflection spectra, and the refractive index of tungsten trioxide thin-film of thickness \(8.56\times 10^{-7}\) m coated on a glass substrate. The permeability of this thin film is \(\mu _2=1\), and the permittivity is frequency-dependent, given by

$$\begin{aligned} {\varepsilon _2(\omega ) = \varepsilon _\infty + \frac{(\varepsilon _{st} - \varepsilon _\infty ) \omega _0}{\omega _0^2 - \omega ^2 - i\gamma \omega }} \end{aligned}$$
(9)

The refractive index for tungsten trioxide is also wavelength-dependent and is given as

$$\begin{aligned} {n_2=\sqrt{\epsilon _2(\omega )}} \end{aligned}$$
(10)

Here \(\omega\) represents angular frequency, \(\varepsilon _\infty\) is permittivity at a very high frequency, \(\varepsilon _{st}\) is the permittivity at a very low frequency, and the resonance frequency is \(\omega _0\) for weakly interacting materials \(\gamma \approx 0\). The substrate is a glass of thickness \(l_2=3\) mm with a refractive index \(n_3=1.51\), the permeability and permittivity are \(\mu _3=1\) and \(\epsilon _3={n_3}^2\) respectively. The initial and final media are taken as air having the refractive indices \(n_1=n_4=1\). The values of permeability and permittivity for these media are \(\epsilon _1=\epsilon _4=\mu _1=\mu _4=1\).

The transmission spectra of the thin film were simulated using the relation Eq.(8) for transmission coefficient, and the Lorentz Model i.e. Equation(9) is used for dielectrics. We simulated the Transmission Spectra numerically. Figure 2 shows the transmission coefficient of \(WO_3\) thin film coated on a glass substrate where the red line is for our experimental results and the black line is by using the TMM approach. Both our theoretical and experimental results agreed well with each other. There is no transmission for the wavelengths of ultraviolet radiation as the glass absorbs the UV spectrum of PEM waves. The transmission starts at the wavelength 340 nm. Before this wavelength, there was no transmission. Figure 3 is the Reflectance versus Wavelength of the thin film of \(WO_3\) using the TMM approach. Furthermore, we have also calculated the refractive index of the sample \(WO_3\) versus Wavelength using the TMM approach; these results are shown in Fig. 4. As the theoretical results presented in this paper agree with the experimental results, this method, TMM, is a powerful and convenient method to study the optical characteristics of different optical materials.

Fig. 2
figure 2

Comparison of theoretical and experimental transmittance spectra versus Wavelength for Tungsten Trioxide \(WO_3\). Theoretical data (black) is calculated using the Transfer Matrix Method (TMM), while the experimental results are obtained from Spectroscopic measurements

Fig. 3
figure 3

Reflectance spectra versus Wavelength of Tungsten Trioxide (\(WO_3\)), determined using the Transfer Matrix Method (TMM)

Fig. 4
figure 4

Variation of the Refractive Index (n) versus Wavelength of Tungsten Trioxide (\(WO_3\)), analyzed using the Transfer Matrix Method (TMM)

5 Conclusion

Using the Transfer Matrix Method (TMM), we successfully simulated the transmittance of tungsten trioxide \(WO_3\) thin films coated on glass substrates. The theoretical results show a high degree of agreement with experimental observations, underscoring the accuracy of the TMM in modeling such systems. We have also calculated reflectance and refractive indices across different wavelengths. Despite these promising results, future work could explore the impact of varying film thickness and substrate materials and include the absorption factor to validate further and expand the TMM’s applicability. These findings enhance our understanding of the optical properties of \(WO_3\) films and pave the way for optimized designs in photonic applications.