
%Introduction to typesetting mathematical formulas in LaTeX.
%         
   \documentclass[12pt]{article}
       \usepackage{amsmath}
       \begin{document}
Notice that the exact placement of curly brackets is important:
       \begin{equation}
       \sqrt2x \text{ is not the same as } \sqrt{2x}.
       \end{equation}
One can easily produce fractions, symbols for differentiation and
integration, and so on:
  	\[
	  \frac{d}{dx}\left( \int_{0}^{x} f(u)\,du\right)=f(x).
	\] 

Moreover, if you know how to use the symbolic algebra package Maple V,
you can get it to produce \LaTeX{} code.  The following \LaTeX{} formula
\[
{\frac {d}{dx}}\arctan(\sin({x}^{2}))=-2\,{\frac {\cos({x}^{2})x}{-2+
\left (\cos({x}^{2})\right )^{2}}}
\]

is produced by the Maple V instruction:
\begin{verbatim}
latex(Diff(arctan(sin(x^2)),x)=simplify(diff(arctan(sin(x^2)),x)));
\end{verbatim}

I just copied the output into this document by using the mouse, and added
the \verb=\]= and \verb=\]= for math mode.
       \end{document}                 
                   
