The use of $$ is not supported in LaTeX.  They should instead be wrapped in an equation* environment unless they are referenced in the text in which a numbered equation environment is needed.