\documentclass[a4paper,oneside]{saip}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% defaults, keep as is, don't add anything that changes the document's defaults.
\usepackage{helvet}          % to have better matching fonts between Latex and Word (Title/Headings)
\usepackage{times}           % to have better matching fonts between Latex and Word (bulk text)
\usepackage{courierten}   % to have better matching fonts between Latex and Word (monospaced)
\usepackage[T1]{fontenc} % needed to deal with these fonts

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% common packages needed, add or comment as needed
\usepackage{graphicx}  %to include figures
\usepackage{url}
\usepackage{geometry} %	need: 
\geometry{%showframe, 
top=40.0mm, bottom=27.0mm, left=25.0mm, right=25.0mm}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% optional packages, you can add others as well for your own needs
%\usepackage{xcolor}
%\usepackage{algorithm2e}
%\usepackage[version=4]{mhchem} %for isotopes and all with \ce{^{15}_{8}O_{7}}
%\usepackage{amsmath}
%\usepackage{amssymb}
%\usepackage{stmaryrd}
%\usepackage{mathrsfs}
%\usepackage{mathabx}
%\usepackage{upgreek}
%\usepackage{comment}
%\usepackage{verbatim}
%\usepackage{}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% DO NOT USE the hyperref package, your PDF will be included in a bigger document and the links will be broken.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}


\title{Solving the One-dimensional Schr\"{o}dinger equation using a set of Daubechies wavelet scaling functions}

\author{Obiageli Ezenwachukwu$^{1}$, Prof. Moritz Braun$^{1}$}

\affil{$^1$Department of Physics, University of South Africa, P O Box 392, 0003, UNISA, South Africa}
%\affil{$^2$Department2, Institution2, City2, Country2}

%only put the email of the main corresponding author, not of all authors.
\email{\url{46124586@mylife.unisa.ac.za}}



\begin{abstract}
In this contribution basis sets derived from Daubechies wavelets scaling functions[1] are used to solve the one-dimensional Schr\"odinger equation on the interval $[-x_{\rm max}:x_{\rm max}]$. We present the results for  the harmonic oscillator as
function of the number $N$ of intervals. Double logarithmic fits of the energy error against  $N$ are also shown. Fast convergence is found.\\
Finally further applications to the three-dimensional Schr\"odinger equation also with a view to density functional calculations are discussed.
\end{abstract}


\section{Introduction}
In solving the Kohn-Sham equations for the orbitals,
the choice of a basis set decides strongly the accuracy of a code \cite{Genovese2008,Deutsch2011}.
Daubechies wavelet scaling functions have most of the properties that are desired of a basis set to be  used for the simulation of isolated or inhomogeneous \cite{Genovese2008} systems such as molecules and materials.
They are compactly supported, being non-zero only within a \cite{Genovese2008,A.I.Neelov2006}finite interval. Making it well-suited for approximating data with sharp discontinuities.
Their orthogonality ensures that the basis set is well-behaved and stable, \cite{A.I.Neelov2006}leading to accurate results in DFT calculations.
Also they have the ability to accurately represent polynomial functions, and their regularity or smoothness make them a powerful and efficient basis set for DFT \cite{Deutsch2011} calculations, enabling accurate and computationally feasible simulations of electronic structure. 


%\section{Theory} 
\subsection{Definition of Daubechies wavelet scaling functions}
The provision of a systematic and localized basis set by wavelet scaling functions makes it crucial for achieving both high accuracy \cite{A.I.Neelov2006} and computational efficiency, \cite{Genovese2008,Deutsch2011} reducing computational cost.
When the best wavelet scaling function adapted to data is chosen, the data is sparsely represented. This sparse coding makes wavelet scaling functions an excellent tool in the field of \cite{Graps1995} data compression.
Wavelet scaling could be used in other applied fields of science such as in astronomy, acoustics, nuclear engineering, sub-band coding, signal and image processing, neurophysiology, magnetic resonance imaging, \cite{Genovese2008,Graps1995} speech discrimination, and optics. They can also be used in fractals, turbulence, earthquake-prediction, radar, human vision, and pure mathematics \cite{Deutsch2011} applications such as solving partial differential equations.
Scientists had wanted more appropriate functions than the sines and cosines which comprise the bases of Fourier analysis, to approximate fluctuating, intermittent signals \cite{Graps1995} and sharp spikes.
Because some of these other functions are non-local and they are stretched to infinity. They lack merits in approximating data with sharp discontinuities.
Data sparsely represented needs an excellent tool for its compression, and wavelet scaling are adapted to such data.

Using maximally symmetric Daubechies wavelet scaling function $\phi$ of order $16(8)$, as per figure
below:
\begin{figure} %H
	\begin{center}
		\includegraphics[width=6cm]{phi.png}
	\end{center}
	\label{fig:Fig 1}
	\caption{Daubechies wavelet scaling function}
\end{figure}
This function vanishes outside of [-7,8].
The Daubechies scaling basis function is defined as:\cite{A.I.Neelov2006,Deutsch2011}
\begin{equation}\label{eqn1} 
	f_{i}^{h}(x) = \frac{1}{\sqrt{h}} \phi 
	\left(
	\frac{x}{h}+\frac{x_{max}}{h} -i
	\right)
\end{equation}
In the equation \ref{eqn1} above, $h$ is the distance between the scaling functions.\\
Calculations were done using Python, Numpy and PyWavelets.
For us to use such functions on a finite interval we need to modify some of the basis functions, such that  they  become  
periodic on  $-x_{max}$ to $x_{max}$.\\ 
The overlap matrix

\begin{equation}
	u_{ij} = \int_{-x_{max}}^{x_{max}} g_{i}(x)g_{j}(x)dx 
\end{equation}
is mostly sparse. Evaluating the $u_{ij}$ we use the trapezoidal rule with $n_{i} = 15000$ intervals for each interval $h$ after using cubic spline interpolation on the Daubechies scaling functions.
The $n_{i}$ is the number of integration intervals.
The potential energy matrix 
\begin{equation}
	v_{ij} = \int_{-x_{max}}^{x_{max}} g_{i}(x) x^{2} g_{j}(x)dx 
\end{equation}
is evaluated in a similar way. \\
The kinetic energy matrix
\begin{equation}
	k_{ij} = \int_{-x_{max}}^{x_{max}} \acute{g}_{i}(x) \acute{g}_{j}(x) dx
\end{equation}
is evaluated by first calculating the derivative of the respective basis functions.
Thus we obtain the Hamiltonian matrix as

\begin{equation}
	h_{ij} = k_{ij} + v_{ij} .
\end{equation}

\subsection{Harmonic Oscillator}
The Schr\"{o}dinger equation of one-dimensional harmonic oscillator is given by;
\begin{equation}
	-\frac{d^{2}\psi_n(x)}{dx^{2}} + x^{2}\psi_n(x) = E\psi_n(x)
\end{equation}
Energy eigenvalues of the quantum harmonic oscillator are
\begin{equation}
	E_{v} = 2v+1
\end{equation}
We are interested in the ground state energy which is $1$. Here we use the $x_{max} =6$.\\

\section{Results of Calculations of the Harmonic Oscillator}

The ground state energy errors for the harmonic oscillator are given in the table $1$ below.
\begin{table}[h]
\begin{center}
	\begin{tabular}{l|l}
		\hline \hline
		$N$ & $\delta E$ \\
		\hline	
		$6$ & $0.00415612$ \\
		$12$ & $6.54564790\times 10^{-6}$ \\
		$18$ & $4.90738339\times 10^{-8}$  \\
		$24$ & $1.15641696\times 10^{-9}$ \\
		$30$ & $6.16224849\times 10^{-11} $ \\
		$36$ & $9.40092448\times 10^{-12}$ \\
		\hline
		\end{tabular}
\end{center}
\caption{Ground State Energy for Harmonic Oscillator}		
\end{table}
$N$ stands for the number of intervals between zero and $x_{max}$, we have a total $2N$ intervals.
The $\delta E$ simply stands for the error of the ground state energy i.e.$E-1$
The full calculation takes place on $[-x_{max},x_{max}]$.		


\subsection{Discussion and conclusion}
We can see that as the number of intervals increased so $\delta E$ decreased, converging towards $1$, the correct value for the ground state energy for harmonic oscillator. 
This shows that Daubechies wavelet scaling as basis functions converge quickly.
We see $\delta E$  decreasing consistently  with increasing $N$.		
In the figure 2 above, log $\delta E$ is plotted versus log $N$.
The straight line is the least square fit. 
\begin{figure} %H	
	\begin{center}
		\includegraphics[width=6cm]{plotHOfit.png}
	\end{center}
	\label{fig:Fig 2}	
	\caption{Least square fit}	
\end{figure}

We intend to study small molecules less than or equal $10$   in the periodic table.
The Nodes are to be derived from molecular information in .xyz files.
Schr\"odinger-like equations are solved based on Density Functional approach, and the code is under development. 	



\section{Acknowledgements}
Obiageli Ezenwachukwu acknowledges support from UNISA (University of South Africa).


\bibliographystyle{IEEEtran}
%\bibliographystyle{unsrt}
\bibliography{PhDRef}
\end{document}


IEEEtran

