Displayed equationsFormatting equations in LaTeXIn-line equations

In-line equations

For example, here are three essentially equivalent ways to code in LaTeX the same anti-derivative formula from calculus as an in-line equation. In the first case, mathematics mode is delimited by dollar signs.

This is an in-line $\int \frac{d\theta}{1+\theta^2} =
\tan^{-1}\theta+C$ equation.

In the next case, mathematics mode is delimited by the \( and \) pair.

This is an in-line \(\int\frac{d\theta} {1+\theta^2}= 
\tan^{-1} \theta+C\) equation. 

In the third case, mathematics environment is delimited by the \begin{math} and \end{math} pair.

This is an in-line \begin{math}\int\frac 
{d\theta}{1+\theta^2} = \tan^{-1} 
\theta+ C\end{math} equation. 

The advantage of using a dollar sign to delimit mathematics mode is that it is easy to type. On the other hand, using different opening and closing delimiters facilitates error detection and correction.

The output, as formatted by LaTeX, looks like this:

inline equation

Here are a few points to note about this example.


logo The Math 696 course pages were last modified April 5, 2005.
These pages are copyright © 1995-2005 by Harold P. Boas. All rights reserved.
 
Displayed equationsFormatting equations in LaTeXIn-line equations