\documentclass{article}

\usepackage{makeidx}
\makeindex

\begin{document}

To solve various problems in Physics \index{Physics} it can useful to express any arbitrary piecewise-smooth function as a Fourier Series \index{Fourier Series} composed of multiple sine and cosine funcions.

\printindex

\end{document}
