I want to do something that sounds simple. I want to create an external file where I will store my equations. Then I would like to be able to these equations and input them in a document without writing them all over again.
For example I would like something like that:
equations.tex
\begin{equation}
F = ma
\label{newton2ndLaw}
\end{equation}
\begin{equation}
det(A-\lambda I)=0
\label{eigValProb}
\end{equation}
And so on. Then I would go on and use the above file in a document.
document.tex
%other \usepackages ...
\usepackage{Magic package that does what I want}
\useeqlibrary{equations.tex} %I just made up this command
\begin{document}
Lorem Ipsum text
\begin{equation}
\geteq{eigValProb} %made up this command also
\label{anequationlabel}
\end{equation}
\end{document}
During compilation the equation TeX code would be inserted automatically in the document. Something like: "Type once, use many times, keep code clean". Does anyone of you have anything in mind?

\labelas the referencing scheme for inclusion, then this is not a duplicate. Please give some feedback. – Werner Jan 10 '14 at 01:07