<?xml version="1.0"?>

<?xml-stylesheet type="text/xsl" href="../../../xsl/template.xsl"?>

<html  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:html="http://www.w3.org/1999/xhtml">

<head>
<title>Linear Heteroassociator \ Tutorials \ Library \ CroftSoft</title>
</head>

<body bgcolor="#ffffff">

<h2 align="center">Linear Heteroassociator</h2>
<p align="center">
<a target="_blank" href="http://www.croftsoft.com/people/david/">
David Wallace Croft</a>
</p>
<p align="center">
2005-02-16
</p>

<p align="justify">
This was an excercise that I worked through with the help of
<nobr>
<a target="_blank" href="http://www.utdallas.edu/~golden/">Dr. Richard M. Golden</a>
</nobr>
in his course Neural Net Mathematics.
</p>

<h2>
Identities
</h2>

<html:ol>

<html:li>
<html:p>
Vector Norm Squared to Dot Product<html:br />
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>
    <msup>
      <mrow>
	    <mo>&#x2016;</mo>
        <mi><html:b>x</html:b></mi>
	    <mo>&#x2016;</mo>
	  </mrow>
	  <mn>2</mn>
	</msup>
	<mo>=</mo>
	<msup>
      <mi><html:b>x</html:b></mi>
      <mo>T</mo>
    </msup>
	<mo>*</mo>
	<mi><html:b>x</html:b></mi>
  </mrow>
</math>
</html:p>  
</html:li>

<html:li>
Vector Derivative
<html:p>
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>  
    <mfrac>
      <mrow>
        <mo>&#x2202;</mo>
        <mo>(</mo>
        <msup><mi><html:b>x</html:b></mi><mo>T</mo></msup>
        <mo>*</mo>
        <mi><html:b>x</html:b></mi>
        <mo>)</mo>
      </mrow>
      <mrow><mo>&#x2202;</mo><mi><html:b>x</html:b></mi></mrow>
    </mfrac>
    <mo>=</mo>
    <mn>2</mn>
    <mo>*</mo>
    <msup>
      <mi><html:b>x</html:b></mi>
      <mo>T</mo>
    </msup>
  </mrow>
</math>
</html:p>
</html:li>

</html:ol>

<html:h2>
Linear Heteroassociator
</html:h2>

<html:p align="justify">
For this exercise, we use a simple neural network with 3 inputs and 2 outputs.
The network will be trained with 4 stimulus patterns.
</html:p>

<html:ol start="3">

<html:li>
Linear Heteroassociator
<html:p>
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <!-- r_i = W * s_i -->
  <mrow>
    <msub>
      <mi><html:b>r</html:b></mi><mrow><mi>i</mi><mspace/><mi>2x1</mi></mrow>
    </msub>
    <mo>=</mo>
    <msub><mi><html:b>W</html:b></mi><mi>2x3</mi></msub>
    <mo>*</mo>
    <msub><mi><html:b>s</html:b></mi><mrow><mi>i</mi><mspace/><mi>3x1</mi></mrow></msub>
  </mrow>
</math>
  </html:p>
</html:li>

<html:li>
  There are 4 stimulus patterns.
  <html:p>
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>
    <mi>n</mi><mo>=</mo><mn>4</mn>  
  </mrow>
</math>
  </html:p>
</html:li>
  
<html:li>
  The 4 3x1 stimulus vectors make a 3x4 matrix.
  <html:p>
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>
    <msub><mi><html:b>S</html:b></mi><mi>3x4</mi></msub>
    <mo>=</mo>
    <msub>
      <mrow>
      <mo>[</mo>
      <mtable>
        <mtr>
        <mtd><msub><mi><html:b>s</html:b></mi><mn>1</mn></msub></mtd>
        <mtd><msub><mi><html:b>s</html:b></mi><mn>2</mn></msub></mtd>
        <mtd><msub><mi><html:b>s</html:b></mi><mn>3</mn></msub></mtd>
        <mtd><msub><mi><html:b>s</html:b></mi><mn>4</mn></msub></mtd>
        </mtr>
      </mtable>
      <mo>]</mo>
      </mrow>
      <mi>3x4</mi>
    </msub>    
  </mrow>
</math>
  <html:br />
  </html:p>
</html:li>
  
<html:li>
  The 4 2x1 response vectors make a 2x4 matrix.
  <html:p>
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>
    <msub><mi><html:b>R</html:b></mi><mi>2x4</mi></msub>
    <mo>=</mo>
    <msub>
      <mrow>
      <mo>[</mo>
      <mtable>
        <mtr>
        <mtd><msub><mi><html:b>r</html:b></mi><mn>1</mn></msub></mtd>
        <mtd><msub><mi><html:b>r</html:b></mi><mn>2</mn></msub></mtd>
        <mtd><msub><mi><html:b>r</html:b></mi><mn>3</mn></msub></mtd>
        <mtd><msub><mi><html:b>r</html:b></mi><mn>4</mn></msub></mtd>
        </mtr>
      </mtable>
      <mo>]</mo>
      </mrow>
      <mi>2x4</mi>
    </msub>    
  </mrow>
</math>
  <html:br />
  </html:p>
</html:li>

<html:li>
The combined response matrix.
<html:p>
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>
    <msub><mi><html:b>R</html:b></mi><mi>2x4</mi></msub>
    <mo>=</mo>
    <msub><mi><html:b>W</html:b></mi><mi>2x3</mi></msub>
    <mo>*</mo>
    <msub><mi><html:b>S</html:b></mi><mi>3x4</mi></msub>
  </mrow>
</math>
</html:p>
</html:li>
  
</html:ol>

<html:h2>
Objective Function
</html:h2>

<html:p align="justify">
To train the weight matrix, the objective function is to be minimized.
</html:p>

<html:ol start="8">

<html:li>
For a given stimulus pattern (<msub><mi><html:b>s</html:b></mi><mi>i</mi></msub>),
the difference (<msub><mi><html:b>d</html:b></mi><mi>i</mi></msub>)
between the output desired (<msub><mi><html:b>o</html:b></mi><mi>i</mi></msub>)
and the actual response (<msub><mi><html:b>r</html:b></mi><mi>i</mi></msub>).
<html:p>
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>
    <msub><mi><html:b>d</html:b></mi><mi>i</mi></msub>
    <mo>=</mo>
    <msub><mi><html:b>o</html:b></mi><mi>i</mi></msub>
    <mo>-</mo>
    <msub><mi><html:b>r</html:b></mi><mi>i</mi></msub>
  </mrow>
</math>
</html:p>
</html:li>
  
<html:li>
Minimize the average square error.
<html:p>
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>
    <mi>l</mi>
    <mfenced>
      <mi><html:b>W</html:b></mi>
    </mfenced>
    <mo>=</mo>
    <msup>
      <mi>n</mi>
      <mn>-1</mn>
    </msup>
    <munderover>
      <mo form="prefix" movablelimits="false">&#931;</mo>
      <mrow>
        <mi>i</mi>
        <mo>=</mo>
        <mn>1</mn>
      </mrow>
      <mrow>
        <mi>n</mi>
      </mrow>
    </munderover>
    <msup>
      <mrow>
	    <mo>&#x2016;</mo>
	    <msub>
          <mi><html:b>o</html:b></mi>
          <mi>i</mi>
        </msub>
	    <mo>-</mo>
	    <msub>
          <mi><html:b>r</html:b></mi>
          <mi>i</mi>
        </msub>
	    <mo>&#x2016;</mo>
	  </mrow>
	  <mn>2</mn>
	</msup>
  </mrow>
</math>
</html:p>

</html:li>

<html:li>
Substitute <msub><mi><html:b>d</html:b></mi><mi>i</mi></msub>.
<html:p>
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>
    <mi>l</mi>
    <mfenced>
      <mi><html:b>W</html:b></mi>
    </mfenced>
    <mo>=</mo>
    <msup>
      <mi>n</mi>
      <mn>-1</mn>
    </msup>
    <munderover>
      <mo form="prefix" movablelimits="false">&#931;</mo>
      <mrow>
        <mi>i</mi>
        <mo>=</mo>
        <mn>1</mn>
      </mrow>
      <mrow>
        <mi>n</mi>
      </mrow>
    </munderover>
    <msup>
      <mrow>
	    <mo>&#x2016;</mo>
	    <msub>
          <mi><html:b>d</html:b></mi>
          <mi>i</mi>
        </msub>
	    <mo>&#x2016;</mo>
	  </mrow>
	  <mn>2</mn>
	</msup>
  </mrow>
</math>
</html:p>
</html:li>
  
<html:li>
Use the dot product identity.
<html:p>
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>
    <mi>l</mi>
    <mfenced>
      <mi><html:b>W</html:b></mi>
    </mfenced>
    <mo>=</mo>
    <msup>
      <mi>n</mi>
      <mn>-1</mn>
    </msup>
    <munderover>
      <mo form="prefix" movablelimits="false">&#931;</mo>
      <mrow>
        <mi>i</mi>
        <mo>=</mo>
        <mn>1</mn>
      </mrow>
      <mrow>
        <mi>n</mi>
      </mrow>
    </munderover>
    <mo>(</mo>
    <msup>
      <msub><mi><html:b>d</html:b></mi><mi>i</mi></msub>
      <mo>T</mo>
    </msup>
    <mo>*</mo>
	<msub><mi><html:b>d</html:b></mi><mi>i</mi></msub>
	<mo>)</mo>
  </mrow>
</math>
</html:p>

</html:li>

<html:li>
The 4 2x1 difference vectors form a 2x4 matrix.
<html:p>
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>
    <msub><mi><html:b>D</html:b></mi><mi>2x4</mi></msub>
    <mo>=</mo>
    <msub>
      <mrow>
        <mo>[</mo>
        <mtable>
        <mtr>
        <mtd><msub><mi><html:b>d</html:b></mi><mn>1</mn></msub></mtd>
        <mtd><msub><mi><html:b>d</html:b></mi><mn>2</mn></msub></mtd>
        <mtd><msub><mi><html:b>d</html:b></mi><mn>3</mn></msub></mtd>
        <mtd><msub><mi><html:b>d</html:b></mi><mn>4</mn></msub></mtd>
        </mtr>
        </mtable>
        <mo>]</mo>
      </mrow>
      <mi>2x4</mi>
    </msub>    
  </mrow>
</math>
</html:p>
  
</html:li>

<html:li>
Convert the matrix to a vector by stacking columns.
<html:p>
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>
    <msub><mi><html:b>d</html:b></mi><mi>8x1</mi></msub>
    <mo>=</mo>
    <mo>vec</mo><mo>(</mo><mi><html:b>D</html:b></mi><mo>)</mo>
  </mrow>
</math>
</html:p>
  
</html:li>

<html:li>
Replace the sum of 4 dot products with one big dot product.
<html:p>
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>
    <mi>l</mi>
    <mfenced>
      <mi><html:b>W</html:b></mi>
    </mfenced>
    <mo>=</mo>
    <msup>
      <mi>n</mi>
      <mn>-1</mn>
    </msup>
    <mo>*</mo>
    <msubsup>
      <mi><html:b>d</html:b></mi>
      <mi>1x8</mi>
      <mo>T</mo>
    </msubsup>
    <mo>*</mo>
	<msub><mi><html:b>d</html:b></mi><mi>8x1</mi></msub>
  </mrow>
</math>
</html:p>
</html:li>

<html:li>
Transpose the weight matrix and convert it to a vector.
<html:p>
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>
    <msub><mi><html:b>w</html:b></mi><mi>6x1</mi></msub>
    <mo>=</mo>
    <mo>vec</mo><mo>(</mo><msup><mi><html:b>W</html:b></mi><mo>T</mo></msup><mo>)</mo>
  </mrow>
</math>
</html:p>
  
</html:li>

<html:li>
Rewrite the objective function as a scalar function of a vector.
<html:p>
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>
    <mi>l</mi>
    <mfenced>
      <mi><html:b>w</html:b></mi>
    </mfenced>
    <mo>=</mo>
    <msup>
      <mi>n</mi>
      <mn>-1</mn>
    </msup>
    <mo>*</mo>
    <msubsup>
      <mi><html:b>d</html:b></mi>
      <mi>1x8</mi>
      <mo>T</mo>
    </msubsup>
    <mo>*</mo>
	<msub><mi><html:b>d</html:b></mi><mi>8x1</mi></msub>
  </mrow>
</math>
  </html:p>
</html:li>

</html:ol>

<html:h2>
Gradient Descent
</html:h2>

<html:p>
Imagine a blind man in a land with many hills and valleys.
He wants to get to the lowest point in the area.
With each step, he uses his staff to tap around himself
to determine the slope of the land at his current position.
He then takes a step downward.
He eventually reaches the bottom of a valley.
</html:p>

<html:ol start="17">

<html:li>
The gradient descent weight update rule with learning rate &#x03b1;.
<html:p>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msub><mi><html:b>w</html:b></mi><mrow><mi>t</mi><mo>+</mo><mn>1</mn></mrow></msub>
<mo>=</mo>
<msub><mi><html:b>w</html:b></mi><mi>t</mi></msub>
<mo>-</mo>
<mi>&#x03b1;</mi>
<mo>*</mo>
    <mfrac>
      <mrow>
        <mo>&#x2202;</mo><mi>l</mi><mo>(</mo><mi><html:b>w</html:b></mi><mo>)</mo>
      </mrow>
      <mrow><mo>&#x2202;</mo><mi><html:b>w</html:b></mi></mrow>
    </mfrac>
</mrow>
</math>
</html:p>
</html:li>
  
<html:li>
Chain Rule
<html:p>  
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <!-- chain rule -->  
  <mrow>
    <msub>
    <mrow>
    <mo>[</mo>
    <mfrac>
      <mrow>
        <mo>&#x2202;</mo><mi>l</mi><mo>(</mo><mi><html:b>w</html:b></mi><mo>)</mo>
      </mrow>
      <mrow><mo>&#x2202;</mo><mi><html:b>w</html:b></mi></mrow>
    </mfrac>
    <mo>]</mo>
    </mrow>
    <mi>1x6</mi>
    </msub>
    <mo>=</mo>
    <msub>
    <mrow>
    <mo>[</mo>
    <mfrac>
      <mrow>
        <mo>&#x2202;</mo><mi>l</mi><mo>(</mo><mi><html:b>d</html:b></mi><mo>)</mo>
      </mrow>
      <mrow><mo>&#x2202;</mo><mi><html:b>d</html:b></mi></mrow>
    </mfrac>
    <mo>]</mo>
    </mrow>
    <mi>1x8</mi>
    </msub>
    <mo>*</mo>
    <msub>
    <mrow>
    <mo>[</mo>
    <mfrac>
      <mrow>
        <mo>&#x2202;</mo><mi><html:b>d</html:b></mi><mo>(</mo><mi><html:b>r</html:b></mi><mo>)</mo>
      </mrow>
      <mrow><mo>&#x2202;</mo><mi><html:b>r</html:b></mi></mrow>
    </mfrac>
    <mo>]</mo>
    </mrow>
    <mi>8x8</mi>
    </msub>
    <mo>*</mo>
    <msub>
    <mrow>
    <mo>[</mo>
    <mfrac>
      <mrow>
        <mo>&#x2202;</mo><mi><html:b>r</html:b></mi><mo>(</mo><mi><html:b>w</html:b></mi><mo>)</mo>
      </mrow>
      <mrow><mo>&#x2202;</mo><mi><html:b>w</html:b></mi></mrow>
    </mfrac>
    <mo>]</mo>
    </mrow>
    <mi>8x6</mi>
    </msub>
  </mrow>
</math>
</html:p>  
</html:li>

<html:li>
First Term
<html:p>  
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>  
    <mfrac>
      <mrow>
        <mo>&#x2202;</mo><mi>l</mi><mo>(</mo><mi><html:b>d</html:b></mi><mo>)</mo>
      </mrow>
      <mrow><mo>&#x2202;</mo><mi><html:b>d</html:b></mi></mrow>
    </mfrac>
    <mo>=</mo>
    <mfrac>
    <mrow>
    <mo>&#x2202;</mo>
    <mo>(</mo>
    <msup>
      <mi>n</mi>
      <mn>-1</mn>
    </msup>
    <mo>*</mo>
    <msubsup>
      <mi><html:b>d</html:b></mi>
      <mi>1x8</mi>
      <mo>T</mo>
    </msubsup>
    <mo>*</mo>
	<msub><mi><html:b>d</html:b></mi><mi>8x1</mi></msub>
	<mo>)</mo>
	</mrow>
      <mrow><mo>&#x2202;</mo><mi><html:b>d</html:b></mi></mrow>
	</mfrac>
  </mrow>
</math>
</html:p>  
</html:li>

<html:li>
Pull the constant out of the derivative.
<html:p>  
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>  
    <mfrac>
      <mrow>
        <mo>&#x2202;</mo><mi>l</mi><mo>(</mo><mi><html:b>d</html:b></mi><mo>)</mo>
      </mrow>
      <mrow><mo>&#x2202;</mo><mi><html:b>d</html:b></mi></mrow>
    </mfrac>
    <mo>=</mo>
    <msup>
      <mi>n</mi>
      <mn>-1</mn>
    </msup>
    <mo>*</mo>
    <mfrac>
    <mrow>
    <mo>&#x2202;</mo>
    <mo>(</mo>
    <msubsup>
      <mi><html:b>d</html:b></mi>
      <mi>1x8</mi>
      <mo>T</mo>
    </msubsup>
    <mo>*</mo>
	<msub><mi><html:b>d</html:b></mi><mi>8x1</mi></msub>
	<mo>)</mo>
	</mrow>
      <mrow><mo>&#x2202;</mo><mi><html:b>d</html:b></mi></mrow>
	</mfrac>
  </mrow>
</math>
</html:p>  
</html:li>

<html:li>
Use the derivative identity.
<html:p>  
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>  
    <mfrac>
      <mrow>
        <mo>&#x2202;</mo><mi>l</mi><mo>(</mo><mi><html:b>d</html:b></mi><mo>)</mo>
      </mrow>
      <mrow><mo>&#x2202;</mo><mi><html:b>d</html:b></mi></mrow>
    </mfrac>
    <mo>=</mo>
    <msup>
      <mi>n</mi>
      <mn>-1</mn>
    </msup>
    <mo>*</mo>
    <mo>(</mo>
    <mn>2</mn>
    <mo>*</mo>
    <msup><mi><html:b>d</html:b></mi><mo>T</mo></msup>
    <mo>)</mo>
  </mrow>
</math>
</html:p>  
</html:li>

<html:li>
Second Term
<html:p>  
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>  
    <mfrac>
      <mrow>
        <mo>&#x2202;</mo><mi><html:b>d</html:b></mi>
        <mo>(</mo><mi><html:b>r</html:b></mi><mo>)</mo>
      </mrow>
      <mrow><mo>&#x2202;</mo><mi><html:b>r</html:b></mi></mrow>
    </mfrac>
    <mo>=</mo>
    <mfrac>
      <mrow>
        <mo>&#x2202;</mo>
        <mo>(</mo>
        <mi><html:b>o</html:b></mi>
        <mo>-</mo>
        <mi><html:b>r</html:b></mi>
        <mo>)</mo>
      </mrow>
      <mrow><mo>&#x2202;</mo><mi><html:b>r</html:b></mi></mrow>
	</mfrac>
	<mo>=</mo>
	<mo>-</mo>
	<msub><mi><html:b>I</html:b></mi><mi>8x8</mi></msub>
  </mrow>
</math>
</html:p>  
</html:li>

<html:li>
Response to a Single Stimulus Pattern
<html:p>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
  <msub>
    <mi><html:b>r</html:b></mi>
    <mi>i</mi>
  </msub>
  <mo>=</mo>
  <mo>[</mo>
  <mtable>
    <mtr>
      <mtd>
        <msub>
          <mi>r</mi>
          <mrow><mi>i</mi><mn>1</mn></mrow>
        </msub>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
        <msub>
          <mi>r</mi>
          <mrow><mi>i</mi><mn>2</mn></mrow>
        </msub>
      </mtd>
    </mtr>
  </mtable>
  <mo>]</mo>
  <mo>=</mo>
  <mo>[</mo>
  <mtable>
    <mtr>
      <mtd>
        <msubsup><mi><html:b>w</html:b></mi><mn>1</mn><mo>T</mo></msubsup>
        <mo>*</mo>
        <msub><mi><html:b>s</html:b></mi><mi>i</mi></msub>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
        <msubsup><mi><html:b>w</html:b></mi><mn>2</mn><mo>T</mo></msubsup>
        <mo>*</mo>
        <msub><mi><html:b>s</html:b></mi><mi>i</mi></msub>
      </mtd>
    </mtr>
  </mtable>
  <mo>]</mo>
  <mo>=</mo>
  <mo>[</mo>
  <mtable>
    <mtr>
      <mtd>
		<msub><mi>w</mi><mn>11</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>i1</mn></msub>
		<mo>+</mo>
		<msub><mi>w</mi><mn>12</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>i2</mn></msub>
		<mo>+</mo>
		<msub><mi>w</mi><mn>13</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>i3</mn></msub>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
		<msub><mi>w</mi><mn>21</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>i1</mn></msub>
		<mo>+</mo>
		<msub><mi>w</mi><mn>22</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>i2</mn></msub>
		<mo>+</mo>
		<msub><mi>w</mi><mn>23</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>i3</mn></msub>
      </mtd>
    </mtr>
  </mtable>
  <mo>]</mo>
</mrow>
</math>
</html:p>  
</html:li>

<html:li>
Combined Response Vector as a Function of the Weights
<html:p>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
  <mi><html:b>r</html:b></mi>
  <mo>=</mo>
  <mrow>
  <mo>[</mo>
  <mtable>
    <mtr>
      <mtd>
        <msub>
          <mi>r</mi>
          <mrow><mn>11</mn></mrow>
        </msub>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
        <msub>
          <mi>r</mi>
          <mrow><mn>12</mn></mrow>
        </msub>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
        <msub>
          <mi>r</mi>
          <mrow><mn>21</mn></mrow>
        </msub>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
        <msub>
          <mi>r</mi>
          <mrow><mn>22</mn></mrow>
        </msub>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
        <msub>
          <mi>r</mi>
          <mrow><mn>31</mn></mrow>
        </msub>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
        <msub>
          <mi>r</mi>
          <mrow><mn>32</mn></mrow>
        </msub>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
        <msub>
          <mi>r</mi>
          <mrow><mn>41</mn></mrow>
        </msub>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
        <msub>
          <mi>r</mi>
          <mrow><mn>42</mn></mrow>
        </msub>
      </mtd>
    </mtr>
  </mtable>
  <mo>]</mo>
  </mrow>
  <mo>=</mo>
  <mo>[</mo>
  <mtable>
    <mtr>
      <mtd>
        <msubsup><mi><html:b>w</html:b></mi><mn>1</mn><mo>T</mo></msubsup>
        <mo>*</mo>
        <msub><mi><html:b>s</html:b></mi><mn>1</mn></msub>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
        <msubsup><mi><html:b>w</html:b></mi><mn>2</mn><mo>T</mo></msubsup>
        <mo>*</mo>
        <msub><mi><html:b>s</html:b></mi><mn>1</mn></msub>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
        <msubsup><mi><html:b>w</html:b></mi><mn>1</mn><mo>T</mo></msubsup>
        <mo>*</mo>
        <msub><mi><html:b>s</html:b></mi><mn>2</mn></msub>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
        <msubsup><mi><html:b>w</html:b></mi><mn>2</mn><mo>T</mo></msubsup>
        <mo>*</mo>
        <msub><mi><html:b>s</html:b></mi><mn>2</mn></msub>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
        <msubsup><mi><html:b>w</html:b></mi><mn>1</mn><mo>T</mo></msubsup>
        <mo>*</mo>
        <msub><mi><html:b>s</html:b></mi><mn>3</mn></msub>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
        <msubsup><mi><html:b>w</html:b></mi><mn>2</mn><mo>T</mo></msubsup>
        <mo>*</mo>
        <msub><mi><html:b>s</html:b></mi><mn>3</mn></msub>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
        <msubsup><mi><html:b>w</html:b></mi><mn>1</mn><mo>T</mo></msubsup>
        <mo>*</mo>
        <msub><mi><html:b>s</html:b></mi><mn>4</mn></msub>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
        <msubsup><mi><html:b>w</html:b></mi><mn>2</mn><mo>T</mo></msubsup>
        <mo>*</mo>
        <msub><mi><html:b>s</html:b></mi><mn>4</mn></msub>
      </mtd>
    </mtr>
  </mtable>
  <mo>]</mo>
  <mo>=</mo>
  <mrow>
  <mo>[</mo>
  <mtable>
    <mtr>
      <mtd>
		<msub><mi>w</mi><mn>11</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>11</mn></msub>
		<mo>+</mo>
		<msub><mi>w</mi><mn>12</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>12</mn></msub>
		<mo>+</mo>
		<msub><mi>w</mi><mn>13</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>13</mn></msub>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
		<msub><mi>w</mi><mn>21</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>11</mn></msub>
		<mo>+</mo>
		<msub><mi>w</mi><mn>22</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>12</mn></msub>
		<mo>+</mo>
		<msub><mi>w</mi><mn>23</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>13</mn></msub>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
		<msub><mi>w</mi><mn>11</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>21</mn></msub>
		<mo>+</mo>
		<msub><mi>w</mi><mn>12</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>22</mn></msub>
		<mo>+</mo>
		<msub><mi>w</mi><mn>13</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>23</mn></msub>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
		<msub><mi>w</mi><mn>21</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>21</mn></msub>
		<mo>+</mo>
		<msub><mi>w</mi><mn>22</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>22</mn></msub>
		<mo>+</mo>
		<msub><mi>w</mi><mn>23</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>23</mn></msub>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
		<msub><mi>w</mi><mn>11</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>31</mn></msub>
		<mo>+</mo>
		<msub><mi>w</mi><mn>12</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>32</mn></msub>
		<mo>+</mo>
		<msub><mi>w</mi><mn>13</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>33</mn></msub>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
		<msub><mi>w</mi><mn>21</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>31</mn></msub>
		<mo>+</mo>
		<msub><mi>w</mi><mn>22</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>32</mn></msub>
		<mo>+</mo>
		<msub><mi>w</mi><mn>23</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>33</mn></msub>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
		<msub><mi>w</mi><mn>11</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>41</mn></msub>
		<mo>+</mo>
		<msub><mi>w</mi><mn>12</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>42</mn></msub>
		<mo>+</mo>
		<msub><mi>w</mi><mn>13</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>43</mn></msub>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
		<msub><mi>w</mi><mn>21</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>41</mn></msub>
		<mo>+</mo>
		<msub><mi>w</mi><mn>22</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>42</mn></msub>
		<mo>+</mo>
		<msub><mi>w</mi><mn>23</mn></msub>
		<mo>*</mo>
		<msub><mi>s</mi><mn>43</mn></msub>
      </mtd>
    </mtr>
  </mtable>
  <mo>]</mo>
  </mrow>
</mrow>
</math>
</html:p>  
</html:li>

<html:li>
Third Term
<html:p>  
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>  
    <mfrac>
      <mrow>
        <mo>&#x2202;</mo><mi><html:b>r</html:b></mi>
        <mo>(</mo><mi><html:b>w</html:b></mi><mo>)</mo>
      </mrow>
      <mrow><mo>&#x2202;</mo><mi><html:b>w</html:b></mi></mrow>
    </mfrac>
    <mo>=</mo>
    <mfrac>
      <mrow>
        <mo>&#x2202;</mo>
        <msup>
        <mrow>
        <mo>[</mo>
        <mtable>
          <mtr>
            <mtd><msub><mi>r</mi><mn>11</mn></msub></mtd>
            <mtd><msub><mi>r</mi><mn>12</mn></msub></mtd>
            <mtd><msub><mi>r</mi><mn>21</mn></msub></mtd>
            <mtd><msub><mi>r</mi><mn>22</mn></msub></mtd>
            <mtd><msub><mi>r</mi><mn>31</mn></msub></mtd>
            <mtd><msub><mi>r</mi><mn>32</mn></msub></mtd>
            <mtd><msub><mi>r</mi><mn>41</mn></msub></mtd>
            <mtd><msub><mi>r</mi><mn>42</mn></msub></mtd>
          </mtr>
        </mtable>
        <mo>]</mo>
        </mrow>
        <mo>T</mo>
        </msup>
      </mrow>
      <mrow>
        <mo>&#x2202;</mo>
        <msup>
        <mrow>
        <mo>[</mo>
        <mtable>
          <mtr>
            <mtd><msub><mi>w</mi><mn>11</mn></msub></mtd>
            <mtd><msub><mi>w</mi><mn>12</mn></msub></mtd>
            <mtd><msub><mi>w</mi><mn>13</mn></msub></mtd>
            <mtd><msub><mi>w</mi><mn>21</mn></msub></mtd>
            <mtd><msub><mi>w</mi><mn>22</mn></msub></mtd>
            <mtd><msub><mi>w</mi><mn>23</mn></msub></mtd>
          </mtr>
        </mtable>
        <mo>]</mo>
        </mrow>
        <mo>T</mo>
        </msup>
      </mrow>
    </mfrac>
  </mrow>
</math>
</html:p>  
</html:li>

<html:li>
Third Term as an 8x6 Matrix
<html:p>  
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>  
    <mfrac>
      <mrow>
        <mo>&#x2202;</mo><mi><html:b>r</html:b></mi>
        <mo>(</mo><mi><html:b>w</html:b></mi><mo>)</mo>
      </mrow>
      <mrow><mo>&#x2202;</mo><mi><html:b>w</html:b></mi></mrow>
    </mfrac>
    <mo>=</mo>
    <msub>
      <mrow>
        <mo>[</mo>
        <mtable>
          <mtr>
            <mtd><msub><mi>s</mi><mn>11</mn></msub></mtd>
            <mtd><msub><mi>s</mi><mn>12</mn></msub></mtd>
            <mtd><msub><mi>s</mi><mn>13</mn></msub></mtd>
            <mtd><mn>0</mn></mtd>
            <mtd><mn>0</mn></mtd>
            <mtd><mn>0</mn></mtd>
          </mtr>
          <mtr>
            <mtd><mn>0</mn></mtd>
            <mtd><mn>0</mn></mtd>
            <mtd><mn>0</mn></mtd>
            <mtd><msub><mi>s</mi><mn>11</mn></msub></mtd>
            <mtd><msub><mi>s</mi><mn>12</mn></msub></mtd>
            <mtd><msub><mi>s</mi><mn>13</mn></msub></mtd>
          </mtr>
          <mtr>
            <mtd><msub><mi>s</mi><mn>21</mn></msub></mtd>
            <mtd><msub><mi>s</mi><mn>22</mn></msub></mtd>
            <mtd><msub><mi>s</mi><mn>23</mn></msub></mtd>
            <mtd><mn>0</mn></mtd>
            <mtd><mn>0</mn></mtd>
            <mtd><mn>0</mn></mtd>
          </mtr>
          <mtr>
            <mtd><mn>0</mn></mtd>
            <mtd><mn>0</mn></mtd>
            <mtd><mn>0</mn></mtd>
            <mtd><msub><mi>s</mi><mn>21</mn></msub></mtd>
            <mtd><msub><mi>s</mi><mn>22</mn></msub></mtd>
            <mtd><msub><mi>s</mi><mn>23</mn></msub></mtd>
          </mtr>
          <mtr>
            <mtd><msub><mi>s</mi><mn>31</mn></msub></mtd>
            <mtd><msub><mi>s</mi><mn>32</mn></msub></mtd>
            <mtd><msub><mi>s</mi><mn>33</mn></msub></mtd>
            <mtd><mn>0</mn></mtd>
            <mtd><mn>0</mn></mtd>
            <mtd><mn>0</mn></mtd>
          </mtr>
          <mtr>
            <mtd><mn>0</mn></mtd>
            <mtd><mn>0</mn></mtd>
            <mtd><mn>0</mn></mtd>
            <mtd><msub><mi>s</mi><mn>31</mn></msub></mtd>
            <mtd><msub><mi>s</mi><mn>32</mn></msub></mtd>
            <mtd><msub><mi>s</mi><mn>33</mn></msub></mtd>
          </mtr>
          <mtr>
            <mtd><msub><mi>s</mi><mn>41</mn></msub></mtd>
            <mtd><msub><mi>s</mi><mn>42</mn></msub></mtd>
            <mtd><msub><mi>s</mi><mn>43</mn></msub></mtd>
            <mtd><mn>0</mn></mtd>
            <mtd><mn>0</mn></mtd>
            <mtd><mn>0</mn></mtd>
          </mtr>
          <mtr>
            <mtd><mn>0</mn></mtd>
            <mtd><mn>0</mn></mtd>
            <mtd><mn>0</mn></mtd>
            <mtd><msub><mi>s</mi><mn>41</mn></msub></mtd>
            <mtd><msub><mi>s</mi><mn>42</mn></msub></mtd>
            <mtd><msub><mi>s</mi><mn>43</mn></msub></mtd>
          </mtr>
        </mtable>
        <mo>]</mo>
      </mrow>
      <mi>8x6</mi>      
    </msub>
  </mrow>
</math>
</html:p>  
</html:li>

<html:li>
Third Term as a Matrix of Vectors
<html:p>  
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>  
    <mfrac>
      <mrow>
        <mo>&#x2202;</mo><mi><html:b>r</html:b></mi>
        <mo>(</mo><mi><html:b>w</html:b></mi><mo>)</mo>
      </mrow>
      <mrow><mo>&#x2202;</mo><mi><html:b>w</html:b></mi></mrow>
    </mfrac>
    <mo>=</mo>
    <msub>
      <mrow>
        <mo>[</mo>
        <mtable>
          <mtr>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>1</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>1</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>2</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>2</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>3</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>3</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>4</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>4</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
          </mtr>
        </mtable>
        <mo>]</mo>
      </mrow>
      <mi>8x6</mi>      
    </msub>
  </mrow>
</math>
</html:p>  
</html:li>

<html:li>
Combine the three terms.
<html:p>  
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <!-- chain rule -->  
  <mrow>  
    <mfrac>
      <mrow>
        <mo>&#x2202;</mo><mi>l</mi><mo>(</mo><mi><html:b>w</html:b></mi><mo>)</mo>
      </mrow>
      <mrow><mo>&#x2202;</mo><mi><html:b>w</html:b></mi></mrow>
    </mfrac>
    <mo>=</mo>
    <msub>
    <mrow>
    <mo>[</mo>
    <msup>
      <mi>n</mi>
      <mn>-1</mn>
    </msup>
    <mo>*</mo>
    <mo>(</mo>
    <mn>2</mn>
    <mo>*</mo>
    <msup><mi><html:b>d</html:b></mi><mo>T</mo></msup>
    <mo>)</mo>
    <mo>]</mo>
    </mrow>
    <mi>1x8</mi>
    </msub>
    <mo>*</mo>
    <mrow>
    <mo>[</mo>
	<mo>-</mo>
	<msub><mi><html:b>I</html:b></mi><mi>8x8</mi></msub>
    <mo>]</mo>
    </mrow>
    <mo>*</mo>
    <msub>
      <mrow>
        <mo>[</mo>
        <mtable>
          <mtr>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>1</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>1</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>2</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>2</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>3</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>3</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>4</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>4</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
          </mtr>
        </mtable>
        <mo>]</mo>
      </mrow>
      <mi>8x6</mi>      
    </msub>
  </mrow>
</math>
</html:p>  
</html:li>

<html:li>
Move the constants and drop the identity matrix.
<html:p>  
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>
    <msub>
    <mrow>
    <mo>[</mo>
    <mfrac>
      <mrow>
        <mo>&#x2202;</mo><mi>l</mi><mo>(</mo><mi><html:b>w</html:b></mi><mo>)</mo>
      </mrow>
      <mrow><mo>&#x2202;</mo><mi><html:b>w</html:b></mi></mrow>
    </mfrac>
    <mo>]</mo>
    </mrow>
    <mi>1x6</mi>
    </msub>
    <mo>=</mo>
    <mn>-2</mn>
    <mo>*</mo>
    <msup>
      <mi>n</mi>
      <mn>-1</mn>
    </msup>
    <mo>*</mo>
    <msubsup><mi><html:b>d</html:b></mi><mi>1x8</mi><mo>T</mo></msubsup>
    <mo>*</mo>
    <msub>
      <mrow>
        <mo>[</mo>
        <mtable>
          <mtr>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>1</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>1</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>2</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>2</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>3</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>3</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>4</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>4</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
          </mtr>
        </mtable>
        <mo>]</mo>
      </mrow>
      <mi>8x6</mi>      
    </msub>
  </mrow>
</math>
</html:p>  
</html:li>

<html:li>
The Weight Update Rule
<html:p>  
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>
    <msub><mi><html:b>w</html:b></mi><mrow><mi>t</mi><mo>+</mo><mn>1</mn></mrow></msub>
    <mo>=</mo>
    <msub><mi><html:b>w</html:b></mi><mi>t</mi></msub>
    <mo>+</mo>
    <mn>2</mn>
    <mo>*</mo>
    <mi>&#x03b1;</mi>
    <mo>*</mo>
    <msup>
      <mi>n</mi>
      <mn>-1</mn>
    </msup>
    <mo>*</mo>
    <msubsup><mi><html:b>d</html:b></mi><mi>1x8</mi><mo>T</mo></msubsup>
    <mo>*</mo>
    <msub>
      <mrow>
        <mo>[</mo>
        <mtable>
          <mtr>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>1</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>1</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>2</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>2</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>3</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>3</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>4</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
          </mtr>
          <mtr>
            <mtd>
              <msubsup><mn><html:b>0</html:b></mn><mi>1x3</mi><mo>T</mo></msubsup>
            </mtd>
            <mtd>
              <msubsup>
                <mi><html:b>s</html:b></mi>
                <mrow><mn>4</mn><mspace/><mi>1x3</mi></mrow><mo>T</mo>
              </msubsup>
            </mtd>
          </mtr>
        </mtable>
        <mo>]</mo>
      </mrow>
      <mi>8x6</mi>      
    </msub>
  </mrow>
</math>
</html:p>  
</html:li>

</html:ol>

<h2>
Links
</h2>

<p>
<ul>
<li>
<a target="_blank"
  href="http://www.w3.org/TR/REC-html40/sgml/entities.html">
Character Entity References in HTML 4</a>
</li>
<li>
<a target="_blank"
  href="http://en.wikipedia.org/wiki/Exponential_function">
Exponentional Function</a>
</li>
<li>
<a target="_blank"
  href="http://www.mozilla.org/projects/mathml/demo/basics.xhtml">
MathML Basics</a>
</li>
<li>
<a target="_blank"
  href="http://www.w3.org/TR/2003/REC-MathML2-20031021/chapter2.html">
MathML Fundamentals</a>
</li>
</ul>
</p>

</body>
</html>