Invariance Theory: The Heat Equation and the Atiyah-Singer Index Theorem