Fred has already pointed you to the documentation on this.
There are two approaches that would probably work for you. The first
is to use MathJax's ignoreClass and processClass values to control the
tex2jax processing (assuming your input is TeX). Set processClass to
include the "math" class, and add class="tex2jax_ignore" to the BODY
element in your document (or put a <div class="tex2jax_ignore"> around
the contents of the page). This will cause tex2jax to only look for
math in the containers that have class="math".
Alternatively, if you are able to recognize the mathematics yourself
already, you could decide not to use tex2jax at all, and mark the
mathematics directly using the <script> tags that MathJax uses for
storing the math on the page. Use <script type="math/tex">...</
script> for in-line math and <script type="math/tex;
mode=display">...</script> for display math. You can put these inside
your class="math" spans and divs if you want. You could also include
<span class="MathJax_Preview">...</span> just before the <script
type="math/tex"> script (with no intervening tags, text, or
whitespace) to include a preview for before MathJax processes the page
(MathJax will remove it as it goes). That could be just the original
TeX code, or something else that marks where your mathematics will
appear.
See
http://www.mathjax.org/docs/2.0/model.html
and in particular
http://www.mathjax.org/docs/2.0/model.html#how-mathematics-is-stored-in-the-page
for details.
Davide