First what is an index fund?

According to Investopedia, an index fund is a portfolio of stocks or bonds designed to mimic the composition and performance of a financial market index such as the S&P 500.