<?xml version="1.0" encoding="us-ascii"?>
<?xml-stylesheet type="text/xsl" href="mathml.xsl"?>
<html xmlns="http://www.w3.org/1999/xhtml">
































































<head>
<style type="text/css">
body {
  html,background: #fff;
  color: black;
  background-color: white;
}

h1 {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}


.display {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
</style>
<title>MathML Examples</title>
</head>
<body>
<h1>MathML Examples</h1>
<h2 class="display">William F. Hammond</h2>
<p class="display">Copyright &#xA9; 2001 William F. Hammond</p>

<p>
This is an XHTML document with MathML markup prepared using the basic
layer of GELLMU and the XML namespaces regime for extending the basic
tagset of XHTML.
</p>
<p>
The following relation is sometimes called the <em>parallelogram law</em>.
</p>
<math xmlns="http://www.w3.org/1998/Math/MathML" class="display" mode="display"><mrow>
 <mrow>
  <msup><mrow><mfenced open="||" close="||"><mrow><mi>a</mi></mrow></mfenced></mrow><mrow><mn>2</mn></mrow></msup>
  <mo>+</mo>
  <msup><mrow><mfenced open="||" close="||"><mrow><mi>b</mi></mrow></mfenced></mrow><mrow><mn>2</mn></mrow></msup>
 </mrow><mo>=</mo><mrow>
  <mfrac><mrow><mn>1</mn></mrow><mrow><mn>2</mn></mrow></mfrac>
  <mo> </mo>
  <mfenced open="{" close="}"><mrow>
   <msup><mrow><mfenced open="||" close="||"><mrow><mi>a</mi><mo>+</mo> <mi>b</mi></mrow></mfenced></mrow><mrow><mn>2</mn></mrow></msup>
   <mo>+</mo>
   <msup><mrow><mfenced open="||" close="||"><mrow><mi>a</mi><mo>-</mo><mi>b</mi></mrow></mfenced></mrow><mrow><mn>2</mn></mrow></msup>
  </mrow></mfenced>
 </mrow>
</mrow></math>

<p>Balancers should be stretched when appropriate.  Here the simple
fraction
<math xmlns="http://www.w3.org/1998/Math/MathML" mode="inline"><mrow><mrow><mn>1</mn><mo>/</mo><mn>2</mn></mrow></mrow></math>
is multiplied with a complex fraction.
</p>
<math xmlns="http://www.w3.org/1998/Math/MathML" class="display" mode="display"><mrow>
 <mfrac><mrow><mn>1</mn></mrow><mrow><mn>2</mn></mrow></mfrac>
 <mo> </mo>
 <mfenced open="{" close="}"><mrow>
  <mfrac><mrow>
   <mfrac><mrow><mi>a</mi></mrow><mrow><mi>b</mi></mrow></mfrac>
  </mrow><mrow>
   <mfrac><mrow><mi>c</mi></mrow><mrow><mi>d</mi></mrow></mfrac>
  </mrow></mfrac>
 </mrow></mfenced>
</mrow></math>

<p>This is MathML markup of the formula for the roots of the quadratic
polynomial
<math xmlns="http://www.w3.org/1998/Math/MathML" mode="inline"><mrow><mtext>&#xA0;</mtext>
<mi>a</mi><mo> </mo><msup><mrow><mi>x</mi></mrow><mrow><mn>2</mn></mrow></msup><mo>+</mo><mi>b</mi><mo> </mo><mi>x</mi><mo>+</mo><mi>c</mi></mrow></math> .
</p>
<math xmlns="http://www.w3.org/1998/Math/MathML" class="display" mode="display"><mrow>
 <mi>x</mi>
 <mo>=</mo>
 <mfrac><mrow>
  <mrow><mo>-</mo><mi>b</mi></mrow>
  <mo>&#xB1;</mo>
  <msup><mrow>
   <mfenced><mrow><msup><mrow><mi>b</mi></mrow><mrow><mn>2</mn></mrow></msup><mo>-</mo><mn>4</mn><mo> </mo><mi>a</mi><mo> </mo><mi>c</mi></mrow></mfenced>
  </mrow><mrow>
   <mn>1</mn><mo>/</mo><mn>2</mn>
  </mrow></msup>
 </mrow><mrow>
  <mn>2</mn><mo> </mo><mi>a</mi>
 </mrow></mfrac>
</mrow></math>

<p>This is MathML markup for a 2 &#xD7; 2 matrix.</p>
<math xmlns="http://www.w3.org/1998/Math/MathML" class="display" mode="display"><mrow>
<mi>A</mi><mo>=</mo><mfenced open="[" close="]"><mrow>
<mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable>
</mrow></mfenced></mrow></math>

<p>Taylor's Theorem:</p>
<math xmlns="http://www.w3.org/1998/Math/MathML" class="display" mode="display"><mrow>
 <mrow>
  <mo>f</mo><mfenced><mrow><mi>x</mi></mrow></mfenced>
 </mrow><mo>=</mo><mrow>
 <msubsup><mo>&#x2211;</mo><mrow>
   <mrow><mi>j</mi></mrow><mo>=</mo><mrow><mn>0</mn></mrow>
  </mrow>
   <mi>&#x221E;</mi>
  </msubsup><mrow><mspace/>
   <mfenced open=" " close=" "><mrow>
    <mfrac><mrow><msup><mrow><mo>f</mo></mrow><mrow><mfenced><mrow><mi>j</mi></mrow></mfenced></mrow></msup><mfenced><mrow><mi>0</mi></mrow></mfenced></mrow><mrow><mi>j</mi><mo>!</mo></mrow></mfrac>
    <mo> </mo>
    <msup><mrow><mi>x</mi></mrow><mrow><mi>j</mi></mrow></msup>
   </mrow></mfenced>
  </mrow>
 </mrow>
</mrow></math>

<p>This is a form of the Weierstrass infinite product expansion of the
gamma function.</p>
<math xmlns="http://www.w3.org/1998/Math/MathML" class="display" mode="display"><mrow>
 <mrow>
  <msubsup><mo>&#x222B;</mo><mrow><mn>0</mn></mrow><mi>&#x221E;</mi></msubsup><mrow>
   <msup><mrow><mi>t</mi></mrow><mrow><mi>x</mi></mrow></msup> <mo> </mo> <msup><mrow><mi>e</mi></mrow><mrow><mi>-t</mi></mrow></msup> <mo> </mo>
   <mfrac><mrow><mi>dt</mi></mrow><mi>t</mi></mfrac>
  </mrow>
 </mrow>
 <mo>=</mo>
 <mfenced open=" " close=" "><mrow>
  <mfrac><mrow><mn>1</mn></mrow><mrow><mi>x</mi></mrow></mfrac> <mo> </mo>
  <msubsup><mo>&#x220F;</mo><mrow><mrow><mi>k</mi><mo>=</mo><mn>1</mn></mrow></mrow><mi>&#x221E;</mi></msubsup><mrow>
   <mrow>
    <mfrac><mrow>
     <msup><mrow><mfenced><mrow><mn>1</mn><mo>+</mo><mfrac><mrow><mn>1</mn></mrow><mrow><mi>k</mi></mrow></mfrac></mrow></mfenced></mrow><mrow><mi>x</mi></mrow></msup>
    </mrow><mrow>
     <mfenced><mrow><mn>1</mn><mo>+</mo><mfrac><mrow><mi>x</mi></mrow><mrow><mi>k</mi></mrow></mfrac></mrow></mfenced>
    </mrow></mfrac>
   </mrow>
  </mrow>
 </mrow></mfenced>
</mrow></math>

<p>
Dirac's <math xmlns="http://www.w3.org/1998/Math/MathML" mode="inline"><mrow><mi>&#x03B4;</mi></mrow></math>-function, which is actually a distribution in the
sense of L. Schwartz rather than a function, is characterized by the
property that for every <math xmlns="http://www.w3.org/1998/Math/MathML" mode="inline"><mrow><msup><mi>C</mi><mi>&#x221E;</mi></msup></mrow></math>
function <math xmlns="http://www.w3.org/1998/Math/MathML" mode="inline"><mrow><mi>f</mi></mrow></math> with compact support one has:
</p>
<math xmlns="http://www.w3.org/1998/Math/MathML" class="display" mode="display"><mrow>
 <mrow>
  <msubsup><mo>&#x222B;</mo><mrow><mrow><mo>-</mo><mi>&#x221E;</mi></mrow></mrow><mi>&#x221E;</mi></msubsup><mrow><mi>f</mi><mi>&#x03B4;</mi></mrow>
 </mrow><mo>=</mo><mrow>
  <mo>f</mo><mfenced><mrow><mn>0</mn></mrow></mfenced>
 </mrow>
 <mtext>&#xA0;.</mtext>
</mrow></math>
<p>In particular, when <math xmlns="http://www.w3.org/1998/Math/MathML" mode="inline"><mrow><mi>f</mi></mrow></math> is the characteristic function
<math xmlns="http://www.w3.org/1998/Math/MathML" mode="inline"><mrow><msub><mi>I</mi><mi>S</mi></msub></mrow></math> of a set <math xmlns="http://www.w3.org/1998/Math/MathML" mode="inline"><mrow><mi>S</mi></mrow></math>:
</p>
<math xmlns="http://www.w3.org/1998/Math/MathML" class="display" mode="display"><mrow>
 <mrow>
  <msubsup><mo>&#x222B;</mo><mrow><mi>S</mi></mrow><mi></mi></msubsup><mrow><mi>&#x03B4;</mi></mrow>
 </mrow><mo>=</mo><mrow>
  <mfenced open="{" close=""><mrow>
   <mtable>
    <mtr>
     <mtd><mn>1</mn></mtd>
     <mtd><mtext>&#xA0;if&#xA0;</mtext><mi>S</mi><mtext>&#xA0;contains&#xA0;</mtext><mn>0</mn><mtext>.</mtext></mtd>
    </mtr>
    <mtr>
     <mtd><mn>0</mn></mtd>
     <mtd><mtext>&#xA0;otherwise.</mtext></mtd>
    </mtr>
   </mtable>
  </mrow></mfenced>
 </mrow>
</mrow></math>
</body>
</html>
<!-- GELLMU version 0.7.3c (01-Apr-2002) -->
