So I need a footnote after an equation and I found this solution:
\documentclass{scrreprt}
\usepackage{mathtools}
\newtagform{fn}{(}{)\footnotemark}
\begin{document}
\section{Example 1}
\usetagform{fn}
\begin{equation}
E=mc^2
\end{equation}\footnotetext{Footnote}
\usetagform{default}
\section{Example 2}
\end{document}
However this adds extra spacing after the equation as shown in the picture below. How can I avoid this?