You may not have realised that Moodle has a built-in TeX filter that allows you to display mathematical notation. Simply surround your TeX code with double dollar signs. For example:
\($\int{\frac{1}{x}}dx=\ln|x|+C\)$
is displayed as:
\(\int{\frac{1}{x}}dx=\ln|x|+C\)
This works in any of Moodle's HTML editors, so you can add maths:
when composing a web page,
in quiz questions, reponses and feedbacks,
in assignment instructions,
in forum posts,
... and many other places.
Note: if you actually want to show two adjacent dollar signs, use three of them!