<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Analogical Engine</title>
	<atom:link href="http://analogical-engine.com/wordpress/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://analogical-engine.com/wordpress</link>
	<description>A math and haskell blog</description>
	<lastBuildDate>Fri, 01 Oct 2010 15:00:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Littlewood&#8211;Richardson Numbers</title>
		<link>http://analogical-engine.com/wordpress/?p=608</link>
		<comments>http://analogical-engine.com/wordpress/?p=608#comments</comments>
		<pubDate>Fri, 01 Oct 2010 14:31:45 +0000</pubDate>
		<dc:creator>Robin</dc:creator>
				<category><![CDATA[Robin]]></category>

		<guid isPermaLink="false">http://analogical-engine.com/wordpress/?p=608</guid>
		<description><![CDATA[The Littlewood&#8211;Richardson rule describes how to take the product of two Schur functions:

The Schur functions are an important basis for the ring of symmetric functions which arise in many different branches of mathematics. We don&#8217;t have time to discuss them in detail here.
The coefficients  are known as the Littlewood&#8211;Richardson numbers. They admit many nice [...]]]></description>
			<content:encoded><![CDATA[<p>The Littlewood&#8211;Richardson rule describes how to take the product of two Schur functions:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_ffbfe285b411bdf24baa2615b9270123.png"  class="tex" align="absmiddle" title=" s_\mu s_\nu = \sum C^\lambda_{\mu \nu} s_\lambda " /></center><br />
The <em>Schur functions</em> are an important basis for the ring of symmetric functions which arise in many different branches of mathematics. We don&#8217;t have time to discuss them in detail here.</p>
<p>The coefficients <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_6b1572a5f983727aa611f0414cfe5aec.png"  class="tex" align="absmiddle" title="\textstyle C^\lambda_{\mu \nu}"/> are known as the <em>Littlewood&#8211;Richardson</em> numbers. They admit many nice combinatorial descriptions. We shan&#8217;t give any proof today, but we will give some examples.</p>
<p>Let <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_e1bacdcd567fd1167a967507c8e0a692.png"  class="tex" align="absmiddle" title="\textstyle \lambda = (4,3,2)"/>, <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_6d4d39d0df2b1f267e994506863d8a02.png"  class="tex" align="absmiddle" title="\textstyle \mu = (2,1)"/> and <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_b07349e5bfc4b1757ce460cf5936742f.png"  class="tex" align="absmiddle" title="\textstyle \nu = (3,2,1)"/>.</p>
<p><img src="http://analogical-engine.com/wordpress/wp-content/uploads/2010/10/partitions.jpg" /></p>
<p>The binary string associated to <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_b2f3fed2fa473a3321ffaec4b1ee52aa.png"  class="tex" align="absmiddle" title="\textstyle \lambda"/> is <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_11c4c091877e94dd417ae1a63e6773fe.png"  class="tex" align="absmiddle" title="\textstyle 1101010"/>, the binary string associated to <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_88873f30877b3a1b2369b6d9314709cc.png"  class="tex" align="absmiddle" title="\textstyle \mu"/> is <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_54def1acf7bc7618e9ab839eed9f5ecb.png"  class="tex" align="absmiddle" title="\textstyle 0101011"/>, and the binary string associated to <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_04d36f0d113478f94cb7087ff6a15128.png"  class="tex" align="absmiddle" title="\textstyle \nu"/> is <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_1c2dca9ceab0c7e6afb5605b87ea411b.png"  class="tex" align="absmiddle" title="\textstyle 1010101"/>. A one represents a horizontal step and a zero represents a vertical step. We are thinking of all three partitions as sitting inside a <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_8e12f1560f08ddde519ddd0812e22bd0.png"  class="tex" align="absmiddle" title="\textstyle 4"/> by <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_cfef4dae7cdb082d6d9989a80fe59f20.png"  class="tex" align="absmiddle" title="\textstyle 3"/> box.</p>
<p>In this case we have that <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_d559c754ec0d66c5bc203d170d0d92eb.png"  class="tex" align="absmiddle" title="\textstyle C^\lambda_{\mu \nu}=2"/> and The corresponding Littlewood&#8211;Richardson puzzles are:</p>
<p><img src="http://analogical-engine.com/wordpress/wp-content/uploads/2010/10/puzzles.jpg" /></p>
<p>The red dots should be thought of as &#8220;right moving particles&#8221; and the blue dots as &#8220;left moving particles&#8221;, with time flowing up the page. The black dots are &#8220;holes&#8221; in the underlying triangular lattice. </p>
<p>When free to do so, a red particle takes one step the right, and a blue particle takes one step to the left.</p>
<p><img src="http://analogical-engine.com/wordpress/wp-content/uploads/2010/10/free.jpg" /></p>
<p>The partition, <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_b2f3fed2fa473a3321ffaec4b1ee52aa.png"  class="tex" align="absmiddle" title="\textstyle \lambda"/> is on the bottom of the triangle read left to right, with ones represented as red dots and zeros by blue dots. The partition <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_88873f30877b3a1b2369b6d9314709cc.png"  class="tex" align="absmiddle" title="\textstyle \mu"/> is on the right of the triangle read top to bottom, with ones represented as red dots and zeros by black dots. The partition <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_04d36f0d113478f94cb7087ff6a15128.png"  class="tex" align="absmiddle" title="\textstyle \nu"/> is on the left of the triangle read bottom to top with ones represented by black dots and zeros represented by blue dots.</p>
<p>When both a left mover and a right mover &#8220;want&#8221; to occupy the same location, either the red particle gets &#8220;scattered&#8221; by the blue particle, or the blue particle gets &#8220;scattered&#8221; by the red. </p>
<p><img src="http://analogical-engine.com/wordpress/wp-content/uploads/2010/10/scattering.jpg" /></p>
<p>It is possible for a single blue particle to get scattered by multiple red particles, and simmilarly for a single red particle to get scattered by multiple red particles. </p>
<p><img src="http://analogical-engine.com/wordpress/wp-content/uploads/2010/10/scattering2.jpg" /></p>
<p>It is not however possible for both a blue and a red particle to scatter though each other. The following configuration is forbidden:</p>
<p><img src="http://analogical-engine.com/wordpress/wp-content/uploads/2010/10/forbidden.jpg" /></p>
<p>For completeness, here are the corresponding Littlewood&#8211;Richardson tableaux:</p>
<p><img src="http://analogical-engine.com/wordpress/wp-content/uploads/2010/10/tableaux.jpg" /></p>
<p>Define the LR-word of a skew tableau to be the sequence of entries read from right to left, top to bottom. The LR-word of the first tableau is <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_39f4c6b44bbeb68a261dd6a2c9d46181.png"  class="tex" align="absmiddle" title="\textstyle 112132"/>. The LR-word of the second tableau is <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_f229366af72247f2fbcfb3e4397979a7.png"  class="tex" align="absmiddle" title="\textstyle 112231"/>.</p>
<p>In addition to the usual rule for skew-tableau, that is weakly increasing along rows, and strictly increasing along the columns, in order to qualify a Littlewood&#8211;Richardson tableau it must satisfy the following additional property: For every <em>initial subword</em> of the LR-word of the tableau, and for each <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_f5b17f7b4de99471d43c8dab6c240e35.png"  class="tex" align="absmiddle" title="\textstyle i"/>, there must be at least as many occurences of<br />
the label <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_f5b17f7b4de99471d43c8dab6c240e35.png"  class="tex" align="absmiddle" title="\textstyle i"/> as the label <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_85b0b101635fc30ec13c198e779b4686.png"  class="tex" align="absmiddle" title="\textstyle i+1"/>.</p>
]]></content:encoded>
			<wfw:commentRss>http://analogical-engine.com/wordpress/?feed=rss2&amp;p=608</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Infinite Dimensions II</title>
		<link>http://analogical-engine.com/wordpress/?p=598</link>
		<comments>http://analogical-engine.com/wordpress/?p=598#comments</comments>
		<pubDate>Fri, 24 Sep 2010 09:26:36 +0000</pubDate>
		<dc:creator>Robin</dc:creator>
				<category><![CDATA[Robin]]></category>

		<guid isPermaLink="false">http://analogical-engine.com/wordpress/?p=598</guid>
		<description><![CDATA[Today we&#8217;re going to diagonalize an infinite dimensional Linear operator. Recall that we are working over &#8220;some funny function space&#8221;, with inner product defined by:

The operator  represents &#8220;multiplication by &#8221;

The operator  represents  times &#8220;differentiation by &#8221;

The operator we are going to diagonalize today is:

This is the Hamiltonian for the Quantum Harmonic Oscillator [...]]]></description>
			<content:encoded><![CDATA[<p>Today we&#8217;re going to diagonalize an infinite dimensional Linear operator. Recall that we are working over &#8220;some funny function space&#8221;, with inner product defined by:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_c0f4cd9794124b2c6706f5102a033fbe.png"  class="tex" align="absmiddle" title=" \langle \psi, \phi \rangle = \int_{-\infty}^\infty \psi(x) \overline{\phi(x)} dx " /></center><br />
The operator <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_2aaac4d5be2ad4e99cef52aaad619db4.png"  class="tex" align="absmiddle" title="\textstyle q"/> represents &#8220;multiplication by <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_902af0c8c0f6d2420d0758ae016cdae6.png"  class="tex" align="absmiddle" title="\textstyle x"/>&#8221;<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_08be8fbab5ff1e73eb09f50dfa6188df.png"  class="tex" align="absmiddle" title=" q[f(x)] = x f(x) " /></center><br />
The operator <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_2832e1ccfec7aa02e4f153328f12b45c.png"  class="tex" align="absmiddle" title="\textstyle p"/> represents <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_f5b17f7b4de99471d43c8dab6c240e35.png"  class="tex" align="absmiddle" title="\textstyle i"/> times &#8220;differentiation by <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_902af0c8c0f6d2420d0758ae016cdae6.png"  class="tex" align="absmiddle" title="\textstyle x"/>&#8221;<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_b992627eab417a0efbd5abf5eb197632.png"  class="tex" align="absmiddle" title=" p[f(x)] = i \frac{d}{dx} f(x) = i f'(x) " /></center><br />
The operator we are going to diagonalize today is:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_fe86ea269a5b94b79f6eef488d8cce09.png"  class="tex" align="absmiddle" title=" \boxed{H = \frac{1}{2}(q^2 + p^2)} " /></center><br />
This is the Hamiltonian for the <em>Quantum Harmonic Oscillator</em> but you don&#8217;t need to know that.</p>
<p>The first thing that you might instinctively try to do is use the formula for the difference of perfect square to write:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_dae7238bef47dd92e331f131ff80ea06.png"  class="tex" align="absmiddle" title=" p^2 + q^2 = (p + iq)(p - iq) " /></center><br />
The only problem with this is that the operators <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_2832e1ccfec7aa02e4f153328f12b45c.png"  class="tex" align="absmiddle" title="\textstyle p"/> and <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_2aaac4d5be2ad4e99cef52aaad619db4.png"  class="tex" align="absmiddle" title="\textstyle q"/> <em>do not commute</em>. In actual fact, what we have is:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_b4e63a0f1efa5f9ced7927c5242953f6.png"  class="tex" align="absmiddle" title=" \boxed{[q,p] = i} " /></center><br />
To see this, take a test function <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_6bf39fc6650bc99c2917d0d32bb781a9.png"  class="tex" align="absmiddle" title="\textstyle \psi(x)"/> and compute:</p>
<p><center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_ba922cc2c723b213a9bb6c3b1e714dbc.png"  class="tex" align="absmiddle" title="<br />
\; qp [\psi(x)] - pq [\psi(x)]<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_a526f7446ce36227dc5f0e46f42d1ddf.png"  class="tex" align="absmiddle" title="<br />
= - x i \frac{d}{dx}\psi(x) + i \frac{d}{dx} x \psi(x)<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_3b3542691064c8f972cc2fbfcd20fa15.png"  class="tex" align="absmiddle" title="<br />
= - x i \psi'(x) + i \psi(x) + i x \psi'(x)<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_4c5a649f3034a7af2fc4d0d531fe07d6.png"  class="tex" align="absmiddle" title="<br />
= i \psi(x)<br />
" /></center><br />
Nevertheless, it is still useful to define the operators:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_c9794c8a22816bff07108686d449e22e.png"  class="tex" align="absmiddle" title=" a = \frac{1}{\sqrt 2}(q + i p) " /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_0bd04a16c4f9f186a459b2f5e3718ca2.png"  class="tex" align="absmiddle" title=" a^\dagger = \frac{1}{\sqrt 2}(q - i p) " /></center><br />
A quick calculation reveals that:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_f3a5c2bf8226a6b4d8e5d71b567f39cb.png"  class="tex" align="absmiddle" title="<br />
a^\dagger a  = \frac{1}{2} (q - ip)(q + ip)<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_7022bf8de6c50da3f55a2964e7e818a0.png"  class="tex" align="absmiddle" title="<br />
= \frac{1}{2} (q^2 + p^2 - ipq + iqp)<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_ff89baa81723039bc8fc45fbedf6b43c.png"  class="tex" align="absmiddle" title="<br />
= \frac{1}{2} (q^2 + p^2 + i[q,p] )<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_2febea89e9e291e503b4ad2cfa56567d.png"  class="tex" align="absmiddle" title="<br />
= H - \frac{1}{2}<br />
" /></center><br />
So its not so bad. The eigenfunctions of <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_5f37c5bbc1f41a335797c184249117af.png"  class="tex" align="absmiddle" title="\textstyle a^\dagger a"/> are exactly the same as the eigenfunctions of <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_0bbafa6bbc879970ef25c2bef8e6d723.png"  class="tex" align="absmiddle" title="\textstyle H"/>, only the eigenvalues are shifted by a half. For notational convenience, we shall define:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_f909f0fb163fa4ecdc3c0bbe1030e959.png"  class="tex" align="absmiddle" title=" \boxed{\tilde{H} = a^\dagger a} " /></center><br />
Now, lets see how <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_f02a0e14b24124bad4f6acb41ded3626.png"  class="tex" align="absmiddle" title="\textstyle a"/> and <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_0720b952555700cca38ea19e22669f21.png"  class="tex" align="absmiddle" title="\textstyle a^\dagger"/> commute:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_f8755fd9a8bbbac8a2fb75f889a460d3.png"  class="tex" align="absmiddle" title="<br />
[a, a^\dagger]  = \frac{1}{2} [q + i p, q - ip]<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_4e9e9a8dc29267da2f03209b9897cda5.png"  class="tex" align="absmiddle" title="<br />
= \frac{1}{2}[q,-ip] + \frac{1}{2}[i p,q]<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_39063147c4b6bfc464f13060377a1198.png"  class="tex" align="absmiddle" title="<br />
= -i [q,p]<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_f093217d77f9a7e24d48c3fc02d7ee0d.png"  class="tex" align="absmiddle" title="<br />
= 1<br />
" /></center></p>
<p>Interesting&#8230; This &#8220;almost commuting&#8221; property of <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_f02a0e14b24124bad4f6acb41ded3626.png"  class="tex" align="absmiddle" title="\textstyle a"/> and <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_0720b952555700cca38ea19e22669f21.png"  class="tex" align="absmiddle" title="\textstyle a^\dagger"/> has many useful consequences. For example:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_1dc669f90be45678f47f473c30aacaaf.png"  class="tex" align="absmiddle" title="<br />
[\tilde{H}, a^\dagger] &amp; =  a^\dagger a a^\dagger - a^\dagger a^\dagger a<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_ca9e41d5e9c2fc695d5a97b5bca9b7d6.png"  class="tex" align="absmiddle" title="<br />
= a^\dagger [a, a^\dagger]<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_6b27555a16778a78e5654d1714aa0bf3.png"  class="tex" align="absmiddle" title="<br />
= a^\dagger<br />
" /></center><br />
As a consquence of this, if <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_05dabad19df4526a0a471bbb856606f8.png"  class="tex" align="absmiddle" title="\textstyle v"/> is an eigenfunction of <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_dd5498c66cb33ec7a371de0f9893e2ec.png"  class="tex" align="absmiddle" title="\textstyle \tilde{H}"/> with eigenvalue <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_b2f3fed2fa473a3321ffaec4b1ee52aa.png"  class="tex" align="absmiddle" title="\textstyle \lambda"/> then we have:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_2134ef5647a481ef1f34a9c624eb9003.png"  class="tex" align="absmiddle" title="<br />
\tilde{H} a^\dagger v &amp; =  a^\dagger \tilde{H} v + a^\dagger v<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_f6e3de35a70944f6bdf7d0b45594da32.png"  class="tex" align="absmiddle" title="<br />
= \lambda a^\dagger v + a^\dagger v<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_c48e4395e7de1ec669f48f4e6a66e474.png"  class="tex" align="absmiddle" title="<br />
= (\lambda + 1) a^\dagger v<br />
" /></center><br />
In other words <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_f194ec26e7cf6ccd32d57b30515c6991.png"  class="tex" align="absmiddle" title="\textstyle a^\dagger v"/> is an eigenfunction of <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_dd5498c66cb33ec7a371de0f9893e2ec.png"  class="tex" align="absmiddle" title="\textstyle \tilde{H}"/> with eigenvalue <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_f72b6c3f56810d8846714e2e098c7614.png"  class="tex" align="absmiddle" title="\textstyle (\lambda +1)"/>. For this reason <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_0720b952555700cca38ea19e22669f21.png"  class="tex" align="absmiddle" title="\textstyle a^\dagger"/> is called a <em>raising operator</em>. Similarly we have:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_bc50ab60d439c91596a613fb6ea6da86.png"  class="tex" align="absmiddle" title="<br />
[\tilde{H}, a] &amp; = a^\dagger a a  - a a^\dagger a<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_6d1fb1bb488c11b570926faa0cf2391c.png"  class="tex" align="absmiddle" title="<br />
= [a^\dagger,a] a<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_bf92b172d21590a9349d3563d10d0e6f.png"  class="tex" align="absmiddle" title="<br />
= - a<br />
" /></center><br />
This implies that if <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_05dabad19df4526a0a471bbb856606f8.png"  class="tex" align="absmiddle" title="\textstyle v"/> eigenvalue of <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_dd5498c66cb33ec7a371de0f9893e2ec.png"  class="tex" align="absmiddle" title="\textstyle \tilde{H}"/> with eigenvalue <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_b2f3fed2fa473a3321ffaec4b1ee52aa.png"  class="tex" align="absmiddle" title="\textstyle \lambda"/> then:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_3b3b12173898c5d17d829cff941ac9ed.png"  class="tex" align="absmiddle" title="<br />
\tilde{H} a v = a \tilde{H} v - av<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_3bc70aab3c32b050e548fb11415242c1.png"  class="tex" align="absmiddle" title="<br />
= a \lambda v - av<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_5195fd4fa502dd76d513a4d78151a0ea.png"  class="tex" align="absmiddle" title="<br />
= (\lambda - 1) a v<br />
" /></center><br />
For this reson <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_f02a0e14b24124bad4f6acb41ded3626.png"  class="tex" align="absmiddle" title="\textstyle a"/> is called a <em>lowering operator</em>.</p>
<p>Now, you may be surprised to learn that we already have an eigenfunction for <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_0bbafa6bbc879970ef25c2bef8e6d723.png"  class="tex" align="absmiddle" title="\textstyle H"/>, namely our good friend the Gaussian from last week. Lets see:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_6732d567b160790b65eb58dbb4f73e65.png"  class="tex" align="absmiddle" title="<br />
H[e^{-x^2/2}]<br />
 = \frac{1}{2}(x^2 + (-i)^{2} \frac{d^2}{dx^2}) e^{-x^2/2}<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_eac724a996600822a5fbd02ba4e6b48b.png"  class="tex" align="absmiddle" title=" = \frac{1}{2}<br />
\left ( x^2 e^{-x^2/2} - \frac{d}{dx} (-x e^{-x^2/2}) \right )<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_5942a431ebda0159f521ac353c5f67e8.png"  class="tex" align="absmiddle" title="<br />
= \frac{1}{2}\left ( x^2 e^{-x^2/w} + e^{-x^2/2} - x^2 e^{-x^2/2} \right)<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_5864af23607ed87f88a69be52adc2003.png"  class="tex" align="absmiddle" title="<br />
=  \frac{1}{2} e^{-x^2/2}<br />
" /></center><br />
Pretty cool, huh?</p>
<p>We can now construct infinitely many eigenvectors for <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_0bbafa6bbc879970ef25c2bef8e6d723.png"  class="tex" align="absmiddle" title="\textstyle H"/> by repeatedly applying the raising operator: <center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_819a571ea378b2803d3a62e48f0ec0cc.png"  class="tex" align="absmiddle" title=" a^\dagger = q - ip = x + \frac{d}{dx} " /></center><br />
That is, for any <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_e42c705ac16741153a33e4d74a4e7610.png"  class="tex" align="absmiddle" title="\textstyle n"/>, the following is an eigenfunction of <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_0bbafa6bbc879970ef25c2bef8e6d723.png"  class="tex" align="absmiddle" title="\textstyle H"/> (with eigenvalue <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_329ae1af84846279cd95c1013f1540ef.png"  class="tex" align="absmiddle" title="\textstyle (n+\frac{1}{2})"/>:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_79529daeff19f3314cdd3431f04fb7b5.png"  class="tex" align="absmiddle" title="f_n(x) = \left (x + \frac{d}{dx}\right)^n[e^{-x^2/2}] " /></center><br />
One can check that the eigenfunctions are always of the form:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_9e29512ac290bf2f8e846f21b182caa5.png"  class="tex" align="absmiddle" title=" f_n(x) = p_n(x) e^{-x^2/2} " /></center><br />
The polynomials <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_c7f02e0e7edbf8ba696d30d4e28bb13b.png"  class="tex" align="absmiddle" title="\textstyle p_n(x)"/> are known as the <em>Hermite Polynomials</em> and we shall have more to say about them soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://analogical-engine.com/wordpress/?feed=rss2&amp;p=598</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Infinite Dimensions</title>
		<link>http://analogical-engine.com/wordpress/?p=579</link>
		<comments>http://analogical-engine.com/wordpress/?p=579#comments</comments>
		<pubDate>Thu, 16 Sep 2010 19:23:27 +0000</pubDate>
		<dc:creator>Robin</dc:creator>
				<category><![CDATA[Robin]]></category>

		<guid isPermaLink="false">http://analogical-engine.com/wordpress/?p=579</guid>
		<description><![CDATA[We have spent a lot of time studying linear transformations on finite dimensional vector spaces. This week, lets have a look at some infinite dimensional vector spaces for a change.
One of the most common infinite dimensional vector spaces you are likely to encounter is known as . The &#8220;L&#8221; stands for Lebesgue, and upto some [...]]]></description>
			<content:encoded><![CDATA[<p>We have spent a lot of time studying linear transformations on finite dimensional vector spaces. This week, lets have a look at some infinite dimensional vector spaces for a change.</p>
<p>One of the most common infinite dimensional vector spaces you are likely to encounter is known as <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_618fb2dded05268940b85213455b3551.png"  class="tex" align="absmiddle" title="\textstyle \mathcal{L}^2"/>. The &#8220;L&#8221; stands for Lebesgue, and upto some subtleties about sets of measure zero, <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_618fb2dded05268940b85213455b3551.png"  class="tex" align="absmiddle" title="\textstyle \mathcal{L}^2"/> may be thought of as the space of <em>square integrable functions</em>. </p>
<p>A function:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_023ab5c3f32a11f08c76002fb60cb973.png"  class="tex" align="absmiddle" title=" f : \mathbb{R} \to \mathbb{C} " /></center><br />
is said to be <em>square integrable</em> if:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_2129473a6b519d9ed632e2efd4c028c1.png"  class="tex" align="absmiddle" title=" \int_{-\infty}^\infty f(x) \overline{f(x)} dx &lt; \infty " /></center><br />
Remember that since we are working with complex valued functions:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_88b85fa2da36ef76bf1f78345bf3869e.png"  class="tex" align="absmiddle" title=" f(x) \overline{f(x)} = |f(x)|^2 " /></center></p>
<p>A function is square integrable if when you take the square of the absolute value of the function then the area under the curve is finite. This is important if we want to normalize the function in order to think of it as some kind of probability distribution.</p>
<p>Unfortunately, most of your &#8220;everyday&#8221; functions, such as polynomials and exponentials are <em>not</em> square integrable, which can make it difficult to develop intuition about this space of functions.</p>
<p>One example of a square integrable function which you may be familiar with from probability theory is the <em>Gaussian</em>:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_407a444df72f9b985ff96fce8583a6a9.png"  class="tex" align="absmiddle" title=" g(x) = e^{-x^2/2} " /></center></p>
<p>There is a little trick for showing that the Gaussian is square integrable, which involves first taking the square, and then switching to polar co-ordinates and integrating by parts. Let us define:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_1afa544de7a1c4750af1aed7fbadde3f.png"  class="tex" align="absmiddle" title=" I = \int_{-\infty}^\infty e^{-x^2/2} dx " /></center><br />
Then, recalling that in polar co-ordinates, the formula for the area element is given by:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_5f7b3bc5b09bdbdc483cc7556845ebac.png"  class="tex" align="absmiddle" title=" dA = r dr d\theta " /></center><br />
We have:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_4fff6408b7f80cd11b5f7344b64adcea.png"  class="tex" align="absmiddle" title="<br />
I^2  = \left ( \int_{-\infty}^\infty e^{-x^2/2} dx \right )\left ( \int_{-\infty}^\infty e^{-x^2/2} dx\right )<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_31aa5eede940297315605ca2a0e3ed18.png"  class="tex" align="absmiddle" title="<br />
= \int_{-\infty}^\infty \int_{-\infty}^\infty e^{-(x^2 + y^2)/2} dx dy<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_dd4a93ff59481935c87e5e4eb565fd9d.png"  class="tex" align="absmiddle" title="<br />
= \int_0^{2\pi} \int_0^\infty e^{-r^2/2} r dr d\theta<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_61e99d16ef93580a9af9050a40185583.png"  class="tex" align="absmiddle" title="<br />
= \int_0^{2 \pi} \left [ - e^{-r^2/2}\right ]_0^\infty d\theta<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_91aaad54273a1830748677fb812e4d7c.png"  class="tex" align="absmiddle" title="<br />
= \int_0^{2 \pi} 1 d\theta<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_2f733df4fd5e6803b5c934c14cd50442.png"  class="tex" align="absmiddle" title="<br />
= \left [ \theta \right ]_0^{2 \pi}<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_1990b5ae13e807376a914a5ba371cc9e.png"  class="tex" align="absmiddle" title="<br />
= 2 \pi<br />
" /></center><br />
It follows that:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_6f389bcba026581d6b4c9d42c1525180.png"  class="tex" align="absmiddle" title=" \int_{-\infty}^\infty e^{-x^2/2} dx = \sqrt{2 \pi} " /></center><br />
and the Gaussian is indeed square integrable. Note that since a probability distribution must have total area equal to one, probabilists usually like to normalize Gaussian as:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_88ed29561b95180f714cf17de34736e1.png"  class="tex" align="absmiddle" title=" g(x) = \frac{1}{\sqrt{2 \pi}} e^{-x^2/2} " /></center><br />
This is also called the <em>normal distribution</em>.</p>
<p>We shall see later that if <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_0c74328217e2b4c8ca3d1ff5551194ae.png"  class="tex" align="absmiddle" title="\textstyle p(x)"/> is any polynomial in <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_902af0c8c0f6d2420d0758ae016cdae6.png"  class="tex" align="absmiddle" title="\textstyle x"/>, then the function <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_cc9daf3250b16796d4a2d22a29c30a6d.png"  class="tex" align="absmiddle" title="\textstyle p(x) e^{-x^2/2}"/> is still square integrable. In fact, if we allow for infinite sums, there is a sense in which we can extract a basis from this, but it would require too much functional analysis to make this statement precise just now.</p>
<p>Next, the space <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_618fb2dded05268940b85213455b3551.png"  class="tex" align="absmiddle" title="\textstyle \mathcal{L}^2"/> of square integrable functions can be given an inner product as follows:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_b2047e90c81e14a2d4c5e89566cd4757.png"  class="tex" align="absmiddle" title=" \langle \psi, \phi \rangle = \int \psi(x) \overline{\phi(x)} dx " /></center></p>
<p>All we need now is some linear operators. Lets start with the <em>Fourier transform</em>:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_c6e307afbf7ddee6a6786cf2a4646de8.png"  class="tex" align="absmiddle" title=" \mathcal{F} [\psi(x)] = \hat{\psi}(y) = \int_{-\infty}^\infty \psi(x) e^{-ixy} dx " /></center></p>
<p>Even though the Fourier transform is a map from <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_618fb2dded05268940b85213455b3551.png"  class="tex" align="absmiddle" title="\textstyle \mathcal{L}^2"/> back to itself, we use the variable <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_902af0c8c0f6d2420d0758ae016cdae6.png"  class="tex" align="absmiddle" title="\textstyle x"/> to denote functions the domain of <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_d2256333b7cd78c5e83d95bac524cb36.png"  class="tex" align="absmiddle" title="\textstyle \mathcal{F}"/> and the variable <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_4fc81c1b0515abbab26d0c3788903f84.png"  class="tex" align="absmiddle" title="\textstyle y"/> to denote functions in the image.</p>
<p>Actually, the Fourier transform can be defined on a much larger class of functions than just the square integrable ones. One way to think about it is to imagine that the exponential functions <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_1b493065f51bca5667cb6193714dcd7e.png"  class="tex" align="absmiddle" title="\textstyle e^{-iy x}"/> form some kind of &#8220;pseudo-basis&#8221; indexed by the real parameter <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_4fc81c1b0515abbab26d0c3788903f84.png"  class="tex" align="absmiddle" title="\textstyle y"/>. Now <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_12e9dc67b9d0a9ae43fd7559a6d3ef3c.png"  class="tex" align="absmiddle" title="\textstyle \hat{\psi}(y)"/> is the &#8220;component&#8221; of <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_6bf39fc6650bc99c2917d0d32bb781a9.png"  class="tex" align="absmiddle" title="\textstyle \psi(x)"/> in the &#8220;direction&#8221; of <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_11f0a729ae14eb9de9474043ded04762.png"  class="tex" align="absmiddle" title="\textstyle e^{-iyx}"/> using the inner product defined above.</p>
<p>As another example of a linear transformation on an infinite dimensional vector space, let us define <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_2aaac4d5be2ad4e99cef52aaad619db4.png"  class="tex" align="absmiddle" title="\textstyle q"/> to be the operator &#8220;multiplication by <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_902af0c8c0f6d2420d0758ae016cdae6.png"  class="tex" align="absmiddle" title="\textstyle x"/>&#8220;. In otherwords:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_c6f342ffe20902d6a01f989544bd2973.png"  class="tex" align="absmiddle" title=" q[f(x)] = xf(x) " /></center><br />
Similarly, let us define <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_2832e1ccfec7aa02e4f153328f12b45c.png"  class="tex" align="absmiddle" title="\textstyle p"/> to be <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_f5b17f7b4de99471d43c8dab6c240e35.png"  class="tex" align="absmiddle" title="\textstyle i"/> times the operator &#8220;differentiation by <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_902af0c8c0f6d2420d0758ae016cdae6.png"  class="tex" align="absmiddle" title="\textstyle x"/>&#8220;. That is:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_e4fc89fdcb29939733fc5c95c06278e2.png"  class="tex" align="absmiddle" title=" p[f(x)] = i\frac{d}{dx} f(x) = if'(x) " /></center></p>
<p>Unfortunately these operators are not well-defined in the sense that they always send square-integrable functions to square-integrable functions. They are examples of what functional analysts call &#8220;unbounded operators&#8221; but we&#8217;re not going to worry about this too much. </p>
<p>Working with infinite dimensional vector spaces requires a certain suspension of disbelief. So, while we&#8217;re entertaining somewhat sketchy possibilities, let us note that the operator <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_2832e1ccfec7aa02e4f153328f12b45c.png"  class="tex" align="absmiddle" title="\textstyle p"/> is diagonalizable, with eigenvectors given by the exponential functions:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_cf473f2ac997417714aabf59dc1032c4.png"  class="tex" align="absmiddle" title=" p[e^{-iax}] = i\frac{d}{dx} e^{-iax} = a e^{-iax} " /></center></p>
<p>Of course, the exponential functions are most certainly <em>not</em> square integrable, but don&#8217;t worry, it gets worse. The <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_2aaac4d5be2ad4e99cef52aaad619db4.png"  class="tex" align="absmiddle" title="\textstyle q"/> operator is diagonalizable with eigenvectors given by the <em>Dirac delta function</em>.<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_149eabd736987b1e9e68cf77122d205a.png"  class="tex" align="absmiddle" title=" q[ \delta(x - a)] = x \delta(x - a) = a \delta(x - a) " /></center></p>
<p>The Dirac delta function <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_69a7f6c9c947ca62b71ad79d39fba112.png"  class="tex" align="absmiddle" title="\textstyle \delta(x - a)"/> is a curious creature which is defined to be zero everywhere except for at the point <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_a25a31a8f77b4afe4cee14092738dd71.png"  class="tex" align="absmiddle" title="\textstyle x = a"/>, whilst somehow managing to have total integral equal to one. Its defining propery is that for any function <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_d623ab31763d16f248e3ef5354642d23.png"  class="tex" align="absmiddle" title="\textstyle f(x)"/> we have:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_34c284bbeae40111ca8d9447432ba55a.png"  class="tex" align="absmiddle" title=" \int_{-\infty}^\infty \delta(x-a) f(x) dx = f(a) " /></center></p>
<p>If you like, you can imagine it as an infinitely tall, infinitely thin spike centered at the point <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_34b3a8cad4223663888c6aead2c76401.png"  class="tex" align="absmiddle" title="\textstyle x=a"/>, arising as the limit of a sequences of Gaussians getting taller and thinner, taller and thinner, as the standard deviation goes to zero. All this can be made rigorous using the notion of <em>Schwarz distribution</em> but that would be another story&#8230;</p>
<p>Despite its non-existance, the direct delta function is a very uesful beast. The important point to take away is that, almost by definition, the Fourier transform of the Dirac delta function is the exponential function:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_4eba13310b7ed4432e25e933a27b533c.png"  class="tex" align="absmiddle" title=" \mathcal{F}[\delta(x-a)] = \int_{-\infty}^{\infty} \delta(x - a) e^{-i y x} dx = e^{-i y a} " /></center><br />
In other words, the Fourier transform is an intertwinner between the operators <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_2832e1ccfec7aa02e4f153328f12b45c.png"  class="tex" align="absmiddle" title="\textstyle p"/> and <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_2aaac4d5be2ad4e99cef52aaad619db4.png"  class="tex" align="absmiddle" title="\textstyle q"/><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_a5d27f69b879b8f91d1a57d9b3e7f51a.png"  class="tex" align="absmiddle" title=" p \circ \mathcal{F} = \mathcal{F} \circ q " /></center></p>
<p>If you didn&#8217;t understand that, then don&#8217;t worry. All you really need to know is that the two functions <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_2832e1ccfec7aa02e4f153328f12b45c.png"  class="tex" align="absmiddle" title="\textstyle p"/> and <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_2aaac4d5be2ad4e99cef52aaad619db4.png"  class="tex" align="absmiddle" title="\textstyle q"/> are very important in Quantum mechanics and are lots of fun to play around with. </p>
<p>To be continued&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://analogical-engine.com/wordpress/?feed=rss2&amp;p=579</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Infinitesimal Rotations</title>
		<link>http://analogical-engine.com/wordpress/?p=537</link>
		<comments>http://analogical-engine.com/wordpress/?p=537#comments</comments>
		<pubDate>Thu, 09 Sep 2010 20:51:46 +0000</pubDate>
		<dc:creator>Robin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://analogical-engine.com/wordpress/?p=537</guid>
		<description><![CDATA[It is well known that the exponential  has power series expansion:


It is slightly less well-known that the exponential operator can also be applied to matrix. Consider the following anti-symmetric matrix:

Since , and  we have:




And what do you know? Its our favourite rotation matrix! 
But wait, there&#8217;s more&#8230; Let  and consider  we [...]]]></description>
			<content:encoded><![CDATA[<p>It is well known that the exponential <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_5b5b5a9b8992f4d9aa7b26c9bec185a9.png"  class="tex" align="absmiddle" title="\textstyle \exp(z)"/> has power series expansion:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_5869cc2841e09ec81a0f8a2f4bbb30c8.png"  class="tex" align="absmiddle" title="<br />
\exp(z) &amp; = 1 + z + \frac{z^2}{2!} + \frac{z^3}{3!} + \cdots<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_7c2df9462a7c6633c575682b3e363511.png"  class="tex" align="absmiddle" title="<br />
= \sum_k \frac{z^k}{k!}<br />
" /></center><br />
It is slightly less well-known that the exponential operator can also be applied to matrix. Consider the following anti-symmetric matrix:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_e42e5a0faf783ff5dfc5d78b40b37bf8.png"  class="tex" align="absmiddle" title=" H = \left (<br />
\begin{array}{cc}<br />
0 &amp; -1 \\<br />
1 &amp; 0<br />
\end{array} \right ) " /></center></p>
<p>Since <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_e40f646c087e1965d1fe327f57b4f3cb.png"  class="tex" align="absmiddle" title="\textstyle H^2 = -I"/>, and <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_3314c871dc81779924cada8fe02406bc.png"  class="tex" align="absmiddle" title="\textstyle H^3 = -H"/> we have:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_8f788c1c07c462800fe53f8e5bf07be1.png"  class="tex" align="absmiddle" title="<br />
\exp(Ht) = 1 + Ht + \frac{H^2t^2}{2!} + \frac{H^3t^3}{3!} + \cdots<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_9833fb8c44e292f699c9ad2146346a75.png"  class="tex" align="absmiddle" title="<br />
= \left (<br />
\begin{array}{cc}<br />
1 &amp; 0 \\<br />
0 &amp; 1<br />
\end{array} \right )<br />
+<br />
\left (<br />
\begin{array}{cc}<br />
0 &amp; -t \\<br />
t &amp; 0<br />
\end{array} \right )<br />
+<br />
\left (<br />
\begin{array}{cc}<br />
- \frac{t^2}{2!} &amp; 0 \\<br />
0 &amp; - \frac{t^2}{2!}<br />
\end{array} \right )<br />
+<br />
\left (<br />
\begin{array}{cc}<br />
0 &amp; \frac{t^3}{3!} \\<br />
- \frac{t^3}{3!} &amp; 0<br />
\end{array} \right )<br />
+ \cdots<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_bf18c43b4bf4e6b9f0e46c35c670a79f.png"  class="tex" align="absmiddle" title="<br />
=<br />
\left (<br />
\begin{array}{cc}<br />
\sum_k \frac{(-1)^k t^{2k}}{(2k)!}&amp; -\sum_k \frac{(-1)^k t^{2k+1}}{(2k+1)!} \\<br />
\sum_k \frac{(-1)^k t^{2k+1}}{(2k+1)!} &amp; \sum_k \frac{(-1)^k t^{2k}}{(2k)!}<br />
\end{array} \right )<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_d20b03daa2a96b17737827001871ec9e.png"  class="tex" align="absmiddle" title="<br />
=<br />
\left (<br />
\begin{array}{cc}<br />
\cos(t) &amp; -\sin(t) \\<br />
\sin(t) &amp; \cos(t)<br />
\end{array} \right )<br />
" /></center><br />
And what do you know? Its our favourite rotation matrix! </p>
<p>But wait, there&#8217;s more&#8230; Let <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_3154306e12103fca3a551fc218311447.png"  class="tex" align="absmiddle" title="\textstyle U(t) = \exp(Ht)"/> and consider <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_828110d27268b9046fe3c28349733c61.png"  class="tex" align="absmiddle" title="\textstyle U'(t)"/> we have:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_8acef12a4d5b03ba23a081bb67f34078.png"  class="tex" align="absmiddle" title="<br />
U'(t) =<br />
\left (<br />
\begin{array}{cc}<br />
\frac{d}{dt} \cos(t) &amp; -\frac{d}{dt} \sin(t) \\<br />
\frac{d}{dt} \sin(t) &amp; \frac{d}{dt}  \cos(t)<br />
\end{array} \right )<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_a0bf272388ec65f2976de455ff828110.png"  class="tex" align="absmiddle" title="<br />
=<br />
\left (<br />
\begin{array}{cc}<br />
-\sin(t) &amp; -\cos(t) \\<br />
\cos(t) &amp; -\sin(t)<br />
\end{array} \right )<br />
" /></center><br />
But we also have:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_abb4e46e0eadc0cfe71532a5a79b908c.png"  class="tex" align="absmiddle" title=" U'(t) = \frac{d}{dt} \exp(Ht) = H \exp(Ht) " /></center></p>
<p>And indeed:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_9cb093b54528d348b509fc6f2343c8e9.png"  class="tex" align="absmiddle" title=" \left ( \begin{array}{cc}<br />
0 &amp; -1 \\<br />
1 &amp; 0<br />
\end{array} \right )<br />
\left ( \begin{array}{cc}<br />
\cos(t) &amp; -\sin(t) \\<br />
\sin(t) &amp; \cos(t)<br />
\end{array} \right )<br />
=<br />
\left (<br />
\begin{array}{cc}<br />
-\sin(t) &amp; -\cos(t) \\<br />
\cos(t) &amp; -\sin(t)<br />
\end{array} \right )<br />
" /></center></p>
<p>This is, of course a special case of something much more general. The set of <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_e42c705ac16741153a33e4d74a4e7610.png"  class="tex" align="absmiddle" title="\textstyle n"/> by <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_e42c705ac16741153a33e4d74a4e7610.png"  class="tex" align="absmiddle" title="\textstyle n"/> anti-symmetric matrices form a <em>Lie algebra</em> with the commutator as bracket. </p>
<p>The exponential of an anti-symmetric matrix is always orthogonal. That is, the associated <em>Lie group</em> is the group of orthogonal matrices. </p>
<p>A Lie group is also a smooth manifold, and as such has a tangent space. The tangent space at the identity is precicely the Lie algebra.</p>
<p>Expanding <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_ca1abae45f6242d36809dd1ccf9568e8.png"  class="tex" align="absmiddle" title="\textstyle \sin"/> and <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_411871e825476c8f47b4caeaacd7878b.png"  class="tex" align="absmiddle" title="\textstyle \cos"/> to first order, we get:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_912916e1d6e271894f71f4fa7b3b8f55.png"  class="tex" align="absmiddle" title="<br />
\left ( \begin{array}{cc} \cos(d\theta) &amp; -\sin(d \theta) \\ \sin(d\theta) &amp; \cos(d\theta) \end{array} \right)<br />
= \left ( \begin{array}{cc} 1 &amp; -d\theta \\ d\theta &amp; 1 \end{array} \right)<br />
= 1 + d\theta H<br />
" /></center></p>
<p>In other words, the matrix:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_e0b0fde4d6cc5a86a3612492ebf88da9.png"  class="tex" align="absmiddle" title=" H = \left ( \begin{array}{cc} 0 &amp; -1 \\ 1 &amp; 0 \end{array} \right ) " /></center><br />
lives in the Lie algebra of the orthogonal group and can be thought of as an <em>infintesimal generator</em> for the two by two rotations.</p>
<p>Now consider the action of <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_e4a15e75075c071f56651c53b094c246.png"  class="tex" align="absmiddle" title="\textstyle U(t)"/> on the following matrix representing a hyperbola in projective space:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_30ecd57212d2cfc3380238eac0eacfc0.png"  class="tex" align="absmiddle" title="<br />
M = \left ( \begin{array}{ccc}<br />
1 &amp; 0 &amp; 0 \\<br />
0 &amp; -1 &amp; 0 \\<br />
0 &amp; 0 &amp; -1<br />
\end{array} \right )<br />
" /></center></p>
<p>As we saw earlier:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_a51eeed8af209c53e6d9921f8ed18e3e.png"  class="tex" align="absmiddle" title=" M(t) = U(t)^T M U(t) = \left(<br />
\begin{array}{ccc}<br />
 \cos (2 t ) &amp; -\sin (2 t ) &amp; 0 \\<br />
 -\sin (2 t ) &amp; -\cos (2 t ) &amp; 0 \\<br />
 0 &amp; 0 &amp; -1<br />
\end{array}<br />
\right) " /></center></p>
<p>What happens if we differentiate this action? Of course we have:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_a19bc8520708c420cc3865baacbf4eb2.png"  class="tex" align="absmiddle" title="<br />
M'(t) &amp; = \left ( \begin{array}{ccc}<br />
 \frac{d}{dt} \cos (2 t ) &amp; - \frac{d}{dt}\sin (2 t ) &amp; 0 \\<br />
 - \frac{d}{dt}\sin (2 t ) &amp; - \frac{d}{dt}\cos (2 t ) &amp; 0 \\<br />
 0 &amp; 0 &amp; 0<br />
\end{array} \right )<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_d11ced348feab934549ad95580d7d34e.png"  class="tex" align="absmiddle" title="<br />
= \left (<br />
\begin{array}{ccc}<br />
 -2\sin (2 t ) &amp; -2\cos (2 t ) &amp; 0 \\<br />
 -2\cos (2 t ) &amp; 2 \sin (2 t ) &amp; 0 \\<br />
 0 &amp; 0 &amp; 0<br />
\end{array}<br />
\right)<br />
" /></center></p>
<p>But we also have:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_fd5a04eb175fceda447bcc552304db67.png"  class="tex" align="absmiddle" title=" M'(t) = U(t)^T M U'(T) + U'(t)^T M U(t) " /></center><br />
Now, keeping in mind that <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_dfb40bdfa6211e4802b403eff041c63d.png"  class="tex" align="absmiddle" title="\textstyle H^T = -H"/>, and that <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_0bbafa6bbc879970ef25c2bef8e6d723.png"  class="tex" align="absmiddle" title="\textstyle H"/> commutes with <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_e4a15e75075c071f56651c53b094c246.png"  class="tex" align="absmiddle" title="\textstyle U(t)"/>, this gives us:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_ee1e50e58b0a74ab6e3280092e767a0a.png"  class="tex" align="absmiddle" title="<br />
M'(t) &amp; = U(t)^T M H U(t) - U(t) H M U(t)<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_4aebf3cd4266085d18657a238c96680c.png"  class="tex" align="absmiddle" title="<br />
= M(t) H - H M(t)<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_487d2215e1fc297eb7ee9248f7e15343.png"  class="tex" align="absmiddle" title="<br />
= [M(t), H]<br />
" /></center></p>
<p>Indeed:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_b116b552af153135743a29cfbed79f8d.png"  class="tex" align="absmiddle" title="<br />
M(t) H - H M(t) =<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_33f9371d090f263ab900ac32a5ed421d.png"  class="tex" align="absmiddle" title="<br />
\left(<br />
\begin{array}{cc}<br />
 \cos (2 t ) &amp; -\sin (2 t ) \\<br />
 -\sin (2 t ) &amp; -\cos (2 t ) \\<br />
\end{array} \right )<br />
\left ( \begin{array}{cc}<br />
0 &amp; -1  \\<br />
1 &amp; 0  \\<br />
\end{array} \right )<br />
-<br />
\left ( \begin{array}{cc}<br />
0 &amp; -1  \\<br />
1 &amp; 0  \\<br />
\end{array} \right )<br />
\left(<br />
\begin{array}{cc}<br />
 \cos (2 t ) &amp; -\sin (2 t )  \\<br />
 -\sin (2 t ) &amp; -\cos (2 t )  \\<br />
\end{array} \right)<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_8c8faf905338713d3a1a937d857bd3de.png"  class="tex" align="absmiddle" title="<br />
= \left(<br />
\begin{array}{cc}<br />
 -\sin (2 t ) &amp; -\cos (2 t ) \\<br />
 -\cos(2 t ) &amp; \sin (2 t ) \\<br />
\end{array} \right )<br />
- \left ( \begin{array}{cc}<br />
 \sin (2 t ) &amp; \cos (2 t ) \\<br />
 \cos(2 t ) &amp; -\sin (2 t ) \\<br />
\end{array} \right )<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_c2653a5f1dd8caad01abed85f2e7ee94.png"  class="tex" align="absmiddle" title="<br />
= \left(<br />
\begin{array}{cc}<br />
 -2\sin (2 t ) &amp; -2\cos (2 t ) \\<br />
 -2\cos(2 t ) &amp; 2\sin (2 t ) \\<br />
\end{array} \right )<br />
" /></center></p>
<p>Its interesting to see that when <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_e4a15e75075c071f56651c53b094c246.png"  class="tex" align="absmiddle" title="\textstyle U(t)"/> acts by conjugation, the derivative of this action is the commutator with the infintessimal generator <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_0bbafa6bbc879970ef25c2bef8e6d723.png"  class="tex" align="absmiddle" title="\textstyle H"/>.</p>
]]></content:encoded>
			<wfw:commentRss>http://analogical-engine.com/wordpress/?feed=rss2&amp;p=537</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Matrices and Determinants</title>
		<link>http://analogical-engine.com/wordpress/?p=519</link>
		<comments>http://analogical-engine.com/wordpress/?p=519#comments</comments>
		<pubDate>Thu, 02 Sep 2010 08:37:46 +0000</pubDate>
		<dc:creator>Robin</dc:creator>
				<category><![CDATA[Robin]]></category>

		<guid isPermaLink="false">http://analogical-engine.com/wordpress/?p=519</guid>
		<description><![CDATA[Let  denote an invertible  matrix, and let  denote its inverse.
Suppose that we are given a column vector  and that we wish to solve the equation  for the unknown vector .
Since  is invertible with inverse , this is equivalent to:

In co-ordinates:

This would be great if we had a nice expression [...]]]></description>
			<content:encoded><![CDATA[<p>Let <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_a8a36b86d245c75ec4b10560a67d8b0a.png"  class="tex" align="absmiddle" title="\textstyle \mathbf{A}"/> denote an invertible <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_1077d168bfce02996f08041b62210f9c.png"  class="tex" align="absmiddle" title="\textstyle n \times n"/> matrix, and let <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_cd4c6752ad4658e5a006b8c841afc1a7.png"  class="tex" align="absmiddle" title="\textstyle \mathbf{B}"/> denote its inverse.<br />
Suppose that we are given a column vector <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_4172af815921cb0ad447077477bb4b2a.png"  class="tex" align="absmiddle" title="\textstyle \mathbf{y}"/> and that we wish to solve the equation <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_a04ea2926736b028ade9c3329ce1f662.png"  class="tex" align="absmiddle" title="\textstyle \mathbf{A} \mathbf{x} = \mathbf{y}"/> for the unknown vector <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_454f589db729ecde5b17d277cc9e6ac1.png"  class="tex" align="absmiddle" title="\textstyle \mathbf{x}"/>.</p>
<p>Since <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_a8a36b86d245c75ec4b10560a67d8b0a.png"  class="tex" align="absmiddle" title="\textstyle \mathbf{A}"/> is invertible with inverse <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_cd4c6752ad4658e5a006b8c841afc1a7.png"  class="tex" align="absmiddle" title="\textstyle \mathbf{B}"/>, this is equivalent to:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_91f6e762b545be5fdf7d9bb48aa09009.png"  class="tex" align="absmiddle" title=" \mathbf{x} = \mathbf{B} \, \mathbf{y} " /></center><br />
In co-ordinates:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_1ba8659ac42d49c75c3a60fd3bc4685d.png"  class="tex" align="absmiddle" title=" x_k = \sum_j b_{kj} \, y_j " /></center><br />
This would be great if we had a nice expression for the inverse of a matrix.</p>
<p>Now, let <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_660e0c890ce56967405cb36f21dcee62.png"  class="tex" align="absmiddle" title="\textstyle \{ \mathbf{c_1}, \mathbf{c_2}, \ldots \mathbf{c_n} \}"/> denote the columns of <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_a8a36b86d245c75ec4b10560a67d8b0a.png"  class="tex" align="absmiddle" title="\textstyle \mathbf{A}"/>.<br />
That is:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_15094984b5459d47ead931ebec676ea6.png"  class="tex" align="absmiddle" title=" \mathbf{c_k} = \begin{bmatrix} a_{1k} \\ a_{2k}  \\ \cdots \\ a_{nk}  \end{bmatrix}  " /></center><br />
If <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_2e88b63d41a16d2bb7194a76e9e2ac00.png"  class="tex" align="absmiddle" title="\textstyle \{\mathbf{e_1}, \mathbf{e_2}, \ldots, \mathbf{e_n}\}"/> denotes the standard basis then:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_01ed5de944eb93389c96ec67d485b246.png"  class="tex" align="absmiddle" title=" \mathbf{c_k} = \mathbf{A} \, \mathbf{e_k} " /></center><br />
That is, the columns of the matrix <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_a8a36b86d245c75ec4b10560a67d8b0a.png"  class="tex" align="absmiddle" title="\textstyle \mathbf{A}"/> are the images of the standard basis vectors.</p>
<p>Another way of looking at the problem is as follows. By definition, we have:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_c1dc07646045e5e8b737d3c45ab719d1.png"  class="tex" align="absmiddle" title=" \mathbf{y} = y_1 \mathbf{e_1} + y_2 \mathbf{e_2} + \cdots + y_n \mathbf{e_n} " /></center><br />
To solve the equation <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_a04ea2926736b028ade9c3329ce1f662.png"  class="tex" align="absmiddle" title="\textstyle \mathbf{A} \mathbf{x} = \mathbf{y}"/> for <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_902af0c8c0f6d2420d0758ae016cdae6.png"  class="tex" align="absmiddle" title="\textstyle x"/> we must find unknowns <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_fe3516d5b77094861d2e7e532b281d0d.png"  class="tex" align="absmiddle" title="\textstyle \{x_1, x_2, \ldots, x_n \}"/> such that:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_520571d09c49b5774c3c4532fc7a999c.png"  class="tex" align="absmiddle" title=" \mathbf{y} = x_1 \mathbf{c_1} + x_2 \mathbf{c_2} + \cdots x_n \mathbf{c_n} " /></center></p>
<p>In other words, we are trying to find the co-ordinates of the vector <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_4172af815921cb0ad447077477bb4b2a.png"  class="tex" align="absmiddle" title="\textstyle \mathbf{y}"/> in terms of a new basis.</p>
<p>Recalling now that the determinant is multi-linear and anti-symmetric, consider the expression:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_8d75a9b87f350df8b65557f0064fa76f.png"  class="tex" align="absmiddle" title="<br />
\det  \left [ \begin{array}{c|c|c|c|c|c|c} \mathbf{c_1} &amp; \ldots &amp; \mathbf{c_{i-1}} &amp; \mathbf{y} &amp; \mathbf{c_{i+1}} &amp; \ldots &amp; \mathbf{c_n} \end{array} \right ] \\<br />
= \det  \left [ \begin{array}{c|c|c|c|c|c|c} \mathbf{c_1} &amp; \ldots &amp; \mathbf{c_{i-1}} &amp; \sum_k x_k \, \mathbf{c_k} &amp; \mathbf{c_{i+1}} &amp; \ldots &amp; \mathbf{c_n} \end{array} \right ]<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_aecfc3bbe6d11fc9dfdfeaee944045b8.png"  class="tex" align="absmiddle" title="<br />
= \sum_k x_k  \det  \left [ \begin{array}{c|c|c|c|c|c|c} \mathbf{c_1} &amp; \ldots &amp; \mathbf{c_{i-1}} &amp; \mathbf{c_k} &amp; \mathbf{c_{i+1}} &amp; \ldots &amp; \mathbf{c_n} \end{array} \right ]<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_b1808719b8cbb544d873d7546bb53d66.png"  class="tex" align="absmiddle" title="<br />
= x_i \det \mathbf{A}<br />
" /></center></p>
<p>Let us now rewrite the equation <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_20cb1dc71539b8fcaee907abe1a5ba55.png"  class="tex" align="absmiddle" title="\textstyle \mathbf{Ax} = \mathbf{y}"/> as the following &#8220;formal&#8221; determinant <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_46ba8c5d27a21b5b73b8f121bab67478.png"  class="tex" align="absmiddle" title="\textstyle \mathbf{F}"/>, which has entries in the first row the standard basis vectors, and additional &#8220;projective symbol&#8221; <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_b13f008a34144f2dae3c587ce58bc312.png"  class="tex" align="absmiddle" title="\textstyle \mathbf{z}"/>:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_39dd19b4e1f8371c64ee537915a2da20.png"  class="tex" align="absmiddle" title=" \mathbf{F} = \det \left [ \begin{array}{c:c:c:c|c} \mathbf{e_1} &amp; \mathbf{e_2} &amp; \cdots &amp; \mathbf{e_n} &amp; \mathbf{z} \\<br />
\hline<br />
a_{11} &amp; a_{12} &amp; . &amp; a_{1n} &amp; y_1 \\<br />
a_{21} &amp; a_{22} &amp; . &amp; a_{2n} &amp; y_2 \\<br />
. &amp; . &amp; . &amp; . &amp; . \\<br />
a_{n1} &amp; a_{n2} &amp; . &amp; a_{nn} &amp; y_n \\<br />
\end{array} \right ] " /></center></p>
<p>Expanding along the top row, whilst making use of the previous remark (and being careful with the signs), we get:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_031b149720f543cb76610c09b7dcccbf.png"  class="tex" align="absmiddle" title="<br />
= \sum_k (-1)^{k+1} \det \left [ \begin{array}{c|c|c|c|c|c|c} \mathbf{c_1} &amp; \ldots &amp; \mathbf{c_{k-1}} &amp; \mathbf{c_{k+1}} &amp; \ldots &amp; \mathbf{c_n} &amp; \mathbf{y} \end{array} \right ]\mathbf{e_k} + (-1)^{n+1}\det \mathbf{A} \, \mathbf{z}<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_d1990e37cfe87e32897203c936d15b70.png"  class="tex" align="absmiddle" title="= (-1)^{n+1} \sum_k \det \left [ \begin{array}{c|c|c|c|c|c|c} \mathbf{c_1} &amp; \ldots &amp; \mathbf{c_{k-1}} &amp; \mathbf{y}&amp; \mathbf{c_{k+1}} &amp; \ldots &amp; \mathbf{c_n}  \end{array} \right ]\mathbf{e_k} + (-1)^{n+1}\det \mathbf{A} \, \mathbf{z}<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_9fc0ab159e29798f48ce9d80c568ba96.png"  class="tex" align="absmiddle" title="= (-1)^{n+1} \sum_k x_k \det(\mathbf{A}) \mathbf{e_k} + (-1)^{n+1}\det \mathbf{A} \, \mathbf{z}<br />
" /></center><br />
which after &#8220;deprojectivizing&#8221; gives us exactly the vector <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_454f589db729ecde5b17d277cc9e6ac1.png"  class="tex" align="absmiddle" title="\textstyle \mathbf{x}"/> which we were searching for. </p>
<p>Next, by expanding <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_6a8e7996758f33f35cd3dfa11d0a23ad.png"  class="tex" align="absmiddle" title="\textstyle \det \left [ \begin{array}{c|c|c|c|c|c|c} \mathbf{c_1} &amp; \ldots &amp; \mathbf{c_{k-1}} &amp; \mathbf{y}&amp; \mathbf{c_{k+1}} &amp; \ldots &amp; \mathbf{c_n}  \end{array} \right ]"/> along the <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_a73c0468d1a75e62937f3584d3c8f9dc.png"  class="tex" align="absmiddle" title="\textstyle k"/>-th column, we obtain:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_0579cd2030c2c1c923bf0584899c21fa.png"  class="tex" align="absmiddle" title="x_k = \sum_i (-1)^{i+k} y_i \mathbf{A_{ik}} " /></center><br />
where <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_b344dde6cc74406aaecea4f5a913921a.png"  class="tex" align="absmiddle" title="\textstyle \mathbf{A_{rc}}"/> denotes the determinant of the minor obtained from <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_a8a36b86d245c75ec4b10560a67d8b0a.png"  class="tex" align="absmiddle" title="\textstyle \mathbf{A}"/> by removing the <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_26d7cc6fb84986e4f3e88a49ec0cd3ce.png"  class="tex" align="absmiddle" title="\textstyle r"/>-th row and the <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_9703681c7f7276e704bfa3e7ab57776d.png"  class="tex" align="absmiddle" title="\textstyle c"/>-th column. From which we recover the well-known formula for the inverse of a matrix:</p>
<p><center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_5b4848a78ceb283d9d2f127ebfe4ca26.png"  class="tex" align="absmiddle" title=" \mathbf{A^{-1}} = \left (\frac{(-1)^{i+j}\mathbf{A_{ji}}}{\mathbf{\det(A)}} \right )_{i,j=1 \ldots n} " /></center></p>
]]></content:encoded>
			<wfw:commentRss>http://analogical-engine.com/wordpress/?feed=rss2&amp;p=519</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Special Relativity and Hyperbolae</title>
		<link>http://analogical-engine.com/wordpress/?p=510</link>
		<comments>http://analogical-engine.com/wordpress/?p=510#comments</comments>
		<pubDate>Fri, 27 Aug 2010 09:46:48 +0000</pubDate>
		<dc:creator>Robin</dc:creator>
				<category><![CDATA[Robin]]></category>

		<guid isPermaLink="false">http://analogical-engine.com/wordpress/?p=510</guid>
		<description><![CDATA[The matrix for the Lorenz Transformation, in one space dimension and one time dimension (with ) is given by:

I shan&#8217;t derive this matrix from the &#8220;principle of relativity&#8221; which states that the laws of physics are identical in all inertial frames of reference, for this has been done very well elsewhere, and is not the [...]]]></description>
			<content:encoded><![CDATA[<p>The matrix for the Lorenz Transformation, in one space dimension and one time dimension (with <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_c5ad2a2df22accd24f9bd271422cd3a3.png"  class="tex" align="absmiddle" title="\textstyle c=1"/>) is given by:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_fa7116039919ab6afd7b02827b6e2c07.png"  class="tex" align="absmiddle" title=" L_v = \left (  \begin{array}{cc} \frac{1}{\sqrt{1 - v^2}} &amp; \frac{v}{\sqrt{1 - v^2}} \\ \frac{v}{\sqrt{1 - v^2}} &amp; \frac{1}{\sqrt{1 - v^2}} \end{array}\right ) " /></center></p>
<p>I shan&#8217;t derive this matrix from the &#8220;principle of relativity&#8221; which states that the laws of physics are identical in all inertial frames of reference, for this has been done very well elsewhere, and is not the purpose of this post.</p>
<p>Let us return instead to our good friend, the two by two rotation matrix, in order to make a few observations:</p>
<p><center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_8e909f1e9a96a3d28cd80852e9b68472.png"  class="tex" align="absmiddle" title=" R_\theta = \left ( \begin{array}{cc} \cos(\theta) &amp; - \sin(\theta) \\ \sin(\theta) &amp; \cos(\theta) \end{array}\right )" /></center></p>
<p>Consider a right angled triangle with sides lengths <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_a7ad1d6aefffa48b9d709397066fa26c.png"  class="tex" align="absmiddle" title="\textstyle 1"/>, <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_902af0c8c0f6d2420d0758ae016cdae6.png"  class="tex" align="absmiddle" title="\textstyle x"/> and <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_f68cfb76ba5c31d63082d1f165cc32ff.png"  class="tex" align="absmiddle" title="\textstyle \sqrt{1+x^2}"/>. If you remember the definition of your basic trigonometric functions, as well as Pythagorus&#8217; theorem, then you will &#8220;see&#8221; that we have:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_4837419209c68aeeb12d580113a06ee1.png"  class="tex" align="absmiddle" title="<br />
\cos(\arctan(x)) = \frac{1}{\sqrt{1 + x^2}}<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_ca90638c102b8b96065fd9db7dc24f76.png"  class="tex" align="absmiddle" title="<br />
\sin(\arctan(x)) = \frac{x}{\sqrt{1 + x^2}}<br />
" /></center></p>
<p>This gives us the following alternative parameterization for the rotation matrices, where <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_7bd8999fc84276a5459dae4f310c5c76.png"  class="tex" align="absmiddle" title="\textstyle v = \tan(\theta)"/>:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_e7d48b223fe6274b4775eee51281bb4e.png"  class="tex" align="absmiddle" title=" R_v = \left (  \begin{array}{cc} \frac{1}{\sqrt{1 + v^2}} &amp; \frac{-v}{\sqrt{1 + v^2}} \\ \frac{v}{\sqrt{1 + v^2}} &amp; \frac{1}{\sqrt{1 + v^2}} \end{array}\right ) " /></center><br />
It looks rather like the Lorenz transformation, doesn&#8217;t it? Though not quite.</p>
<p>If you recall now the definition of the hyperbolic trigonometric functions, you will &#8220;see&#8221; that <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_5ecf4d9b0baf6fb0ce4ce96475dbc0b6.png"  class="tex" align="absmiddle" title="\textstyle \cos(i x) = \cosh(x)"/> and <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_d6245252fcf3c0fdcf9b393d2f77d168.png"  class="tex" align="absmiddle" title="\textstyle \sin(i x) = i \sin(x)"/>, and as a consequence, we have:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_26013ad42b2f43451520b1d961de6fd3.png"  class="tex" align="absmiddle" title="<br />
\cosh(\tanh^{-1}(x))  = \frac{1}{\sqrt{1-x^2}} \\<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_114952ec8d0b39397498c6ec3922b92c.png"  class="tex" align="absmiddle" title="<br />
\sinh(\tanh^{-1}(x))  = \frac{x}{\sqrt{1-x^2}}<br />
" /></center></p>
<p>This in turn gives us an alternative parameterization for the Lorenz Transformation, where <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_05e9f2375371043133e9b6792af1eca9.png"  class="tex" align="absmiddle" title="\textstyle v = \tan(\phi)"/>:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_68dd3657998211cf4bca04655a8dd2ed.png"  class="tex" align="absmiddle" title="L_\phi = \left ( \begin{array}{cc} \cosh(\phi) &amp; \sinh(\phi) \\ \sinh(\phi) &amp; \cosh(\phi) \end{array}\right )" /></center></p>
<p>The upshot of this is that if you are willing to work over <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_13294f3420f06a745fb6ed147290ae11.png"  class="tex" align="absmiddle" title="\textstyle \mathbb{C}"/> rather than over <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_172ede9afb99e2d99596ac03ad392623.png"  class="tex" align="absmiddle" title="\textstyle \mathbb{R}"/>, and to think of your space dimension as purely real, and your time dimension as purely imaginary, then applying a &#8220;Lorenz boost&#8221; to your frame of reference is equivalent to rotating through an imaginary angle.</p>
<p><center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_d70feb9c76f98eadf52a871e34437966.png"  class="tex" align="absmiddle" title="<br />
\left ( \begin{array}{cc} \cos(i \theta) &amp; - \sin(i \theta) \\ \sin(i \theta) &amp; \cos(i \theta) \end{array}\right )<br />
\left ( \begin{array}{c} x \\ i t \end{array} \right )  =<br />
\left ( \begin{array}{c} x \cos(i \theta) - i t \sin(i \theta) \\<br />
x \sin(i \theta) + i t \cos(i \theta) \end{array} \right )<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_b1591e2227c4a6feb77992f4aeedc514.png"  class="tex" align="absmiddle" title="<br />
= \left ( \begin{array}{c} x \cosh(\theta) + t \sinh(\theta) \\<br />
i(x \sinh(\theta) + t \cosh(\theta)) \end{array} \right )<br />
" /></center></p>
<p>In the same way that a regular rotation maps circles to circles in two space dimensions, a &#8220;hyperbolic rotation&#8221; sends hyperbolae to hyperbolae in one space dimension and one time dimension. The following mathematica code will let you play around with this idea.</p>
<pre>

points = {{1, 0}, {2, 0}, {3, 0}, {4, 0}};

A[theta_] := {{Cos[theta], -Sin[theta]}, {Sin[theta], Cos[theta]}};
B[v_] := {{1/Sqrt[1 - v^2], v/Sqrt[1 - v^2]}, {v/Sqrt[1 - v^2],
    1/Sqrt[1 - v^2]}};

Plot[y /. Table[Solve[x^2 + y^2 == k^2, y], {k, 5}], {x, -5, 5},
  PlotRange -> {-5, 5}, AspectRatio -> 1];
Manipulate[
 Show[%, ListPlot[points . A[theta], PlotStyle -> PointSize[0.025],
   PlotRange -> {{-5, 5}, {-5, 5}}, AxesOrigin -> {0, 0},
   AspectRatio -> 1]], {{theta, 0}, -Pi, Pi}]

Plot[y /. Table[Solve[x^2 - y^2 == k^2, y], {k, 0, 8}], {x, -10, 10},
  PlotRange -> {-10, 10}, AspectRatio -> 1];
Manipulate[
 Show[%, ListPlot[points . B[theta], PlotStyle -> PointSize[0.025],
   PlotRange -> {{-5, 5}, {-5, 5}}, AxesOrigin -> {0, 0},
   AspectRatio -> 1]], {{theta, 0}, -0.9, 0.9}]
</pre>
<p>Since a particle moving at the speed of light is represented in this picture by the degenerate hyperbola which form the asymptotes of the rest of the family, it is clear now why the speed of light is constant in all inertial frames of reference.</p>
<p>But what&#8217;s really going on here? Let <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_334683435e2029fd139fea61402bd257.png"  class="tex" align="absmiddle" title="\textstyle A"/> be the matrix representing a Minkowski bilinear form with one space dimension and one time dimension:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_d12b9f274845635d64298d3c08388ef3.png"  class="tex" align="absmiddle" title=" A = \left ( \begin{array}{cc} 1 &amp; 0 \\ 0 &amp; -1 \end{array} \right ) " /></center><br />
Then any matrix <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_0a76b55ddf84640d7dfe9adc0373a994.png"  class="tex" align="absmiddle" title="\textstyle M"/> of the form:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_e445f1f1ae27ca68f012d04e05cd46d0.png"  class="tex" align="absmiddle" title=" M = \frac{1}{\sqrt{1 - v^2}} \left (  \begin{array}{cc} 1 &amp; v \\ v &amp; 1 \end{array}\right ) " /></center><br />
will have the property that:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_e6f3f65fb2801d9dc10486f3f4f6291e.png"  class="tex" align="absmiddle" title=" M^T A M = A " /></center></p>
<p>Compare this to the Euclidean case, in which the bilinear form is represented by the identity matrix. Now we have that any matrix of the form:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_493b70daee1dd62b03c8de7aa1ba154f.png"  class="tex" align="absmiddle" title=" N = \left ( \begin{array}{cc} \cos(\theta) &amp; - \sin(\theta) \\ \sin(\theta) &amp; \cos(\theta) \end{array}\right )" /></center><br />
has the property that:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_3228a154acab9a7023ec0d51fd48e767.png"  class="tex" align="absmiddle" title=" N^T I N = I " /></center></p>
<p>In co-ordinates, if <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_dc82410ac281f99f608b2199b5320898.png"  class="tex" align="absmiddle" title="\textstyle v_1 = (x_1, y_1)"/> and <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_05f442a1efeb456ad99b971916758a54.png"  class="tex" align="absmiddle" title="\textstyle v_2 = (x_2, y_2)"/> represent two different particles in two dimensional space, then the Euclidean inner product is usually represented as:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_c5bf4bde0b85ac10037f194c5ae53985.png"  class="tex" align="absmiddle" title=" \langle v_1, v_2 \rangle = x_1 x_2 + y_1 y_2 " /></center></p>
<p>In the Minkowski picture, where time is imaginary, a &#8220;point&#8221; represents a particle located at a given position in one dimensional space, at a given time. The &#8220;inner product&#8221; of two &#8220;points&#8221; <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_01d5c730f9b34b3dee37b2153a2f6d9e.png"  class="tex" align="absmiddle" title="\textstyle p_1 = (x_1, i t_1)"/> and <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_0c90f1f4934cd8324ed8b83e1fdc6fcc.png"  class="tex" align="absmiddle" title="\textstyle p_2 = (x_2, i t_2)"/> is given by:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_cab87d198627ec59ae10ecefea4387da.png"  class="tex" align="absmiddle" title=" \langle p_1, p_2 \rangle = x_1 x_2 + i^2 t_1 t_2 = x_1 x_2 - t_1 t_2 " /></center></p>
]]></content:encoded>
			<wfw:commentRss>http://analogical-engine.com/wordpress/?feed=rss2&amp;p=510</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Conic Sections and Projective Space</title>
		<link>http://analogical-engine.com/wordpress/?p=497</link>
		<comments>http://analogical-engine.com/wordpress/?p=497#comments</comments>
		<pubDate>Fri, 20 Aug 2010 08:07:05 +0000</pubDate>
		<dc:creator>Robin</dc:creator>
				<category><![CDATA[Robin]]></category>

		<guid isPermaLink="false">http://analogical-engine.com/wordpress/?p=497</guid>
		<description><![CDATA[I&#8217;m sure you&#8217;ve all seen the equation of a circle before:

You&#8217;ve probably also seen the equation of a hyperbola:

Or perhaps you&#8217;re more familliar with seeing the asymptotes at 45 degree angles to the co-ordinate axes, as in:

All these are special cases of the most general quadratic equation, which can be written in the following projective [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure you&#8217;ve all seen the equation of a circle before:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_a1af88bf615cef7714d92ef22248eaa4.png"  class="tex" align="absmiddle" title=" x^2 + y^2 = 1" /></center><br />
You&#8217;ve probably also seen the equation of a hyperbola:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_312979e90466acda744b680d27d28518.png"  class="tex" align="absmiddle" title=" xy = 1" /></center><br />
Or perhaps you&#8217;re more familliar with seeing the asymptotes at 45 degree angles to the co-ordinate axes, as in:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_0a1e68e6676b94bf54e79e1b999c12b7.png"  class="tex" align="absmiddle" title=" x^2 - y^2 = 1" /></center></p>
<p>All these are special cases of the most general quadratic equation, which can be written in the following projective form:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_15324bb5fdcd8022b29e22fb4a7017c2.png"  class="tex" align="absmiddle" title="<br />
\left [ \begin{array}{ccc}x &amp; y &amp; 1 \end{array} \right ]<br />
\left [ \begin{array}{ccc} a_{11} &amp; a_{12} &amp; a_{13} \\<br />
a_{12} &amp; a_{22} &amp; a_{23} \\ a_{13} &amp; a_{23} &amp; a_{33} \end{array} \right]<br />
\left [ \begin{array}{c} x \\ y \\ 1\end{array} \right]<br />
=0<br />
" /></center></p>
<p>Note that the <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_cfef4dae7cdb082d6d9989a80fe59f20.png"  class="tex" align="absmiddle" title="\textstyle 3"/> by <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_cfef4dae7cdb082d6d9989a80fe59f20.png"  class="tex" align="absmiddle" title="\textstyle 3"/> matrix in the middle is symmetric. As an example, the Family of circles centered at the origin, with radius <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_974e0463130e5947611ae15b86c3d5ee.png"  class="tex" align="absmiddle" title="\textstyle R"/> are associated to the family of matrices of the form:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_3e53f7bb57358c4f66c7649ba807e65a.png"  class="tex" align="absmiddle" title=" A_R = \left [ \begin{array}{ccc}<br />
1 &amp; 0 &amp; 0 \\ 0 &amp; 1 &amp; 0 \\ 0 &amp; 1 &amp; -R^2 \end{array} \right] " /></center></p>
<p>The first form of the hyperbola, with asymptotes parallel to the co-ordinate axes, corresponds to the matrix:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_e292dcf7ab54995fdcc7678eb0271611.png"  class="tex" align="absmiddle" title=" A_R = \left [ \begin{array}{ccc}<br />
0 &amp; 1/\sqrt 2 &amp; 0 \\ 1/\sqrt 2 &amp; 0 &amp; 0 \\ 0 &amp; 1 &amp; -1 \end{array} \right] " /></center><br />
while the second hyperbola, with asymptotes at 45 degrees, corresponds to the matrix:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_b7d15d372c54b3ce4e446b0f37365820.png"  class="tex" align="absmiddle" title=" A_R = \left [ \begin{array}{ccc}<br />
1 &amp; 0 &amp; 0 \\ 0 &amp; -1 &amp; 0 \\ 0 &amp; 1 &amp; -1 \end{array} \right] " /></center></p>
<p>More generally, the matrix associated to a hyperbola whose axes have been tilded by an angle of <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_249a6ec9781319f963006534aa9b5763.png"  class="tex" align="absmiddle" title="\textstyle \theta"/> clockwise from the diagonal is:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_8199036b2e389f50e3964c5e9248394a.png"  class="tex" align="absmiddle" title="<br />
\left(<br />
\begin{array}{ccc}<br />
 \cos (\theta ) &amp; \sin (\theta ) &amp; 0 \\<br />
 -\sin (\theta ) &amp; \cos (\theta ) &amp; 0 \\<br />
 0 &amp; 0 &amp; 1<br />
\end{array}<br />
\right)<br />
\left(<br />
\begin{array}{ccc}<br />
 1 &amp; 0 &amp; 0 \\<br />
 0 &amp; -1 &amp; 0  \\<br />
 0 &amp; 0 &amp; -1<br />
\end{array}<br />
\right)<br />
\left(<br />
\begin{array}{ccc}<br />
 \cos (\theta ) &amp; -\sin (\theta ) &amp; 0 \\<br />
 \sin (\theta ) &amp; \cos (\theta ) &amp; 0 \\<br />
 0 &amp; 0 &amp; 1<br />
\end{array}<br />
\right)<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_0f033f7e147d8b31a305807cbd2d09e8.png"  class="tex" align="absmiddle" title="<br />
=\left(<br />
\begin{array}{ccc}<br />
 \cos ^2(\theta )-\sin ^2(\theta ) &amp; -2 \cos (\theta ) \sin<br />
   (\theta ) &amp; 0 \\<br />
 -2 \cos (\theta ) \sin (\theta ) &amp; \sin ^2(\theta )-\cos<br />
   ^2(\theta ) &amp; 0 \\<br />
 0 &amp; 0 &amp; -1<br />
\end{array}<br />
\right) \\<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_cf91c55879dbe4503a7787ff5ab98c48.png"  class="tex" align="absmiddle" title=" = \left(<br />
\begin{array}{ccc}<br />
 \cos (2 \theta ) &amp; -\sin (2 \theta ) &amp; 0 \\<br />
 -\sin (2 \theta ) &amp; -\cos (2 \theta ) &amp; 0 \\<br />
 0 &amp; 0 &amp; -1<br />
\end{array}<br />
\right)<br />
" /></center></p>
<p>The following mathematica code will let you play around with these rotations.</p>
<pre>
   v = Transpose[{{x, y, 1}}];
   similtude[A_, M_] := Transpose[M].A.M
   equation[A_] := Solve[similtude[A, v][[1]][[1]] == 0, y]

   R[theta_] := {{Cos[theta], -Sin[theta], 0},
                 {Sin[theta], Cos[theta], 0},
                 {0, 0, 1}};
   H = {{1,0,0},{0,-1,0},{0,0,-1}}
   W[theta_] := similtude[H, R[theta]]

   Manipulate[
     Plot[Evaluate[y /. equation[W[theta]]], {x, -4, 4},
       PlotRange -> {{-4, 4}, {-4, 4}},
       AspectRatio -> 1],
   {{theta, 0}, -Pi, Pi}]
</pre>
<p>A few remarks about the code. In Mathematica square brackets are reserved for passing arguments into functions, curly brackets for defining lists, and normal round brackets for grouping terms in algebraic expressions. </p>
<p>Double square backets are used for indexing elements of a list. Matrices are represented as lists of list.  The first list is the first row, the second list is the second row, etc&#8230;</p>
<p>The matrix multiplication operator is simply a dot. When defining your own functions, the variables which can be passed into a function must be followed by an underscore. </p>
<p>The built in functions, <tt>Transpose</tt> and <tt>Solve</tt> do more or less what you would expect. The only subtlety is that the output of <tt>Solve</tt> is a <em>transformation rule</em>. The <tt>/.</tt> notation replaces the left hand side with the right hand side in the transformation rule.</p>
<p>The built in function <tt>Plot</tt> is responnsible for drawing static plots. Leaving a parameter free (in this case the angle <tt>theta</tt>) and wrapping it inside the <tt>Manipulate</tt> command allows you to vary the parameter with the mouse and view the resulting animation. </p>
<p>Recall that translation can be thought of an operation in projective space represented by the matrix:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_57e79103952806eb504d57c0d7b007e1.png"  class="tex" align="absmiddle" title=" T_{a,b} = \left [ \begin{array}{ccc}<br />
1 &amp; 0 &amp; a \\ 0 &amp; 1 &amp; b \\ 0 &amp; 0 &amp; 1<br />
\end{array}\right ] " /></center></p>
<p>Now, starting from the matrix for a circle of radius one, centered at the origin:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_d3a0b3c14e5e61a0a146fe70a7af0d65.png"  class="tex" align="absmiddle" title=" A = \left [ \begin{array}{ccc}<br />
1 &amp; 0 &amp; 0 \\ 0 &amp; 1 &amp; 0 \\ 0 &amp; 0 &amp; -1 \end{array} \right] " /></center><br />
and applying the following similarity transform:</p>
<p><center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_c601066c9dce3503d0c4762f3435940e.png"  class="tex" align="absmiddle" title="<br />
\left [ \begin{array}{ccc}<br />
1 &amp; 0 &amp; 0 \\ 0 &amp; 1 &amp; 0 \\ -a &amp; -b &amp; 1<br />
\end{array}\right ]<br />
\left [ \begin{array}{ccc}<br />
1 &amp; 0 &amp; 0 \\ 0 &amp; 1 &amp; 0 \\ 0 &amp; 0 &amp; -1 \end{array} \right]<br />
\left [ \begin{array}{ccc} 1 &amp; 0 &amp; -a \\<br />
0 &amp; 1 &amp; -b \\ 0 &amp; 0 &amp; 1 \end{array} \right]<br />
" /></center><br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_7b6226d4f321ac5e0fd692913b639312.png"  class="tex" align="absmiddle" title=" = \left [ \begin{array}{ccc} 1 &amp; 0 &amp; -a \\<br />
0 &amp; 1 &amp; -b \\ -a &amp; -b &amp; -1+a^2+b^2 \end{array} \right] " /></center><br />
We obtain the matrix for a circle of radius one, centered at the point <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_dd8cee86595367b201967f19388ea8c4.png"  class="tex" align="absmiddle" title="\textstyle (a,b)"/>. The following code will let you play around with this:</p>
<pre>
  T[a_, b_] = {{1, 0, -a}, {0, 1, -b}, {0, 0, 1}};
  CC = {{1,0,0},{0,1,0},{0,0,-1}}
  M[a_, b_] := similtude[C, T[a, b]]
  Manipulate[
    Plot[Evaluate[y /. equation[CC]], {x, -2, 2},
      PlotRange -> {{-2, 2}, {-2, 2}}, AspectRatio -> 1],
  {{a, 0}, -1, 1}, {{b, 0}, -1, 1}]
</pre>
<p>Now for the fun part. Let us define the following &#8220;projective rotation&#8221;<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_f8de22bafd6347d28eb1089bb7d33531.png"  class="tex" align="absmiddle" title="<br />
\left(<br />
\begin{array}{ccc}<br />
 \cos (\theta ) &amp; 0 &amp; -\sin (\theta ) \\<br />
 0 &amp; 1 &amp; 0 \\<br />
 \sin (\theta ) &amp; 0 &amp; \cos (\theta )<br />
\end{array}<br />
\right)<br />
" /></center></p>
<p>Using this, we can smoothly deform a circle into a hyperbola. Check it out:</p>
<pre>
   P[theta_] := {{Cos[theta], 0, -Sin[theta]}, {0, 1, 0},
                 {Sin[theta], 0, Cos[theta]}};
   S[theta_] := similtude[CC, P[theta]]

   Manipulate[
     Plot[Evaluate[y /. equation[S[theta]]], {x, -10, 10},
       PlotRange -> {{-10, 10}, {-10, 10}},
       AspectRatio -> 1],
   {{theta, 0}, -Pi, Pi}]
</pre>
<p>But what&#8217;s really going on here geometrically? The following three dimensional quadratic equation describes a mathematical cone (which is more like a pair of icecream cones, touching at their tips):<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_cddcc7321f2b5864afcfd65f537311da.png"  class="tex" align="absmiddle" title="<br />
\left [ \begin{array}{ccc}x &amp; y &amp; z \end{array} \right ]<br />
\left [ \begin{array}{ccc} 1 &amp; 0 &amp; 0 \\<br />
0 &amp; 1 &amp; 0 \\ 0 &amp; 0 &amp; -1 \end{array} \right]<br />
\left [ \begin{array}{c} x \\ y \\ z\end{array} \right]<br />
=0<br />
" /></center></p>
<p>By setting <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_8f34ffc8d291ab7e98c7b9d22d8a1901.png"  class="tex" align="absmiddle" title="\textstyle z=1"/> we are effectively taking the intersection with a plane. As you may know, all quadrics can be obtained by intersecting a cone with some given plane (hence the term conic section). The <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_8f34ffc8d291ab7e98c7b9d22d8a1901.png"  class="tex" align="absmiddle" title="\textstyle z=1"/> plane gives a circle, while the <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_ceb2873bb1a7194eadebcbc4f18cedcb.png"  class="tex" align="absmiddle" title="\textstyle x=1"/> plane gives a hyperbola. Our &#8220;projective rotation&#8221; smoothly rotates the <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_8b9ecb7cb61a65a78326afff6f6e8fea.png"  class="tex" align="absmiddle" title="\textstyle z"/> axis to the <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_902af0c8c0f6d2420d0758ae016cdae6.png"  class="tex" align="absmiddle" title="\textstyle x"/> axis.</p>
]]></content:encoded>
			<wfw:commentRss>http://analogical-engine.com/wordpress/?feed=rss2&amp;p=497</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Translations as Projective Transformations</title>
		<link>http://analogical-engine.com/wordpress/?p=463</link>
		<comments>http://analogical-engine.com/wordpress/?p=463#comments</comments>
		<pubDate>Wed, 11 Aug 2010 18:03:55 +0000</pubDate>
		<dc:creator>Robin</dc:creator>
				<category><![CDATA[Robin]]></category>

		<guid isPermaLink="false">http://analogical-engine.com/wordpress/?p=463</guid>
		<description><![CDATA[You probably already know that in two dimensional space, the geometric act of rotating a vector through a given angle can be represented algebraically by the matrix:

You might have also asked yourself &#8220;What about translation?&#8221; That&#8217;s a nice geometric operation, how can we represent it algebraically in terms of matrices? 
The problem with translation is [...]]]></description>
			<content:encoded><![CDATA[<p>You probably already know that in two dimensional space, the geometric act of rotating a vector through a given angle can be represented algebraically by the matrix:</p>
<p><center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_8e98baaacd3e09cba6e7e2238baa6418.png"  class="tex" align="absmiddle" title=" R_{\theta} = \left [ \begin{array}{cc} \cos(\theta) &amp;amp; -\sin(\theta) \\ \sin(\theta) &amp;amp; \cos(\theta) \end{array} \right ] " /></center></p>
<p>You might have also asked yourself &#8220;What about translation?&#8221; That&#8217;s a nice geometric operation, how can we represent it algebraically in terms of matrices? </p>
<p>The problem with translation is that it doesn&#8217;t preserve the origin, and is thus not a linear transformation. It is however a <em>projective transformation</em>, and so by working in projective space it is still possible to think of translations in terms of matrix operations. This is a common trick used in computer graphics packages such as openGL.</p>
<p>There are many different ways to think about two dimensional projective space. Geometrically it is the set of lines in three dimensional space which pass through the origin. Topologically its the two dimensional sphere with antipodal points identified. Think of the fact that a line through the origin in <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_6d70801d717fb3ff972f9c86f078b0dd.png"  class="tex" align="absmiddle" title="\textstyle \mathbb{R}^3"/> intersects the unit sphere in exactly two points. </p>
<p>Algebraically, it is the set of triples <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_f53fa04fd7efaedcf91c73a1119acc42.png"  class="tex" align="absmiddle" title="\textstyle [x:y:z]"/> under the equivalence relation <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_1eb80ee3eb663d6c724b57dc12d693ea.png"  class="tex" align="absmiddle" title="\textstyle [\lambda x: \lambda y: \lambda z] \sim [x:y:z]"/> for all <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_d3d853c4a00dba6587c3a5ef954aa9ca.png"  class="tex" align="absmiddle" title="\textstyle \lambda \neq 0"/>.</p>
<p>Another useful way to think about projective two-space is as regular two dimensional space with an additional &#8220;circle* at infinity&#8221;, that is an additional point at infinity for every possible direction which you might head out in from the origin. Imagine the hyperplane <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_8f34ffc8d291ab7e98c7b9d22d8a1901.png"  class="tex" align="absmiddle" title="\textstyle z=1"/> sitting inside <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_6d70801d717fb3ff972f9c86f078b0dd.png"  class="tex" align="absmiddle" title="\textstyle \mathbb{R}^3"/> and notice how any line passing through the origin, which does not lie in the two dimensional subspace spanned by the <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_902af0c8c0f6d2420d0758ae016cdae6.png"  class="tex" align="absmiddle" title="\textstyle x"/> and <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_4fc81c1b0515abbab26d0c3788903f84.png"  class="tex" align="absmiddle" title="\textstyle y"/> directions, intersects this plane in exactly one point.</p>
<p>Working with the algebraic definition, a two dimensional <em> projective transformation</em> is just a <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_cfef4dae7cdb082d6d9989a80fe59f20.png"  class="tex" align="absmiddle" title="\textstyle 3"/> by <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_cfef4dae7cdb082d6d9989a80fe59f20.png"  class="tex" align="absmiddle" title="\textstyle 3"/> matrix acting on projective co-ordinates. The equivalence relation on the underlying projective space implies that two matrices which differ only by a scalar multiple represent the same projective transformation.  </p>
<p>Suppose that we want to send the arbitrary point <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_4696ca2211e49bb96a9dd67b9392257b.png"  class="tex" align="absmiddle" title="\textstyle (x,y)"/> to the new point <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_e799d26fda468c1b66669580566e4d1c.png"  class="tex" align="absmiddle" title="\textstyle (x + 3, y-2)"/> which is shifted across two steps and down three steps. </p>
<p>The first step is to embed the two dimensional plane, which we are really interested in, into the somewhat more abstract and difficult to understand two dimensional projective space, where we are going to perform our transformation. This is accomplished by the map:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_6b54204fa8d7e122406fb7f2fc18b866.png"  class="tex" align="absmiddle" title=" (x,y) \mapsto [x:y:1] " /></center></p>
<p>The &#8220;inverse&#8221; of this embedding is the map:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_20a5c9ef12d7a07976c9e2f01e0faea6.png"  class="tex" align="absmiddle" title=" [x:y:z] \mapsto (x/z, y/z) " /></center><br />
I say &#8220;inverse&#8221; in inverted commas, because this map is not defined everywhere. In particular its not defined when <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_bdb434601a4c6c556a3a2c189af78eb3.png"  class="tex" align="absmiddle" title="\textstyle z=0"/>.</p>
<p>Alternatively, if you have trouble visualizing projective space, just imagine embedding <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_017721952ae0ac7b7cf1ddcc43e0defe.png"  class="tex" align="absmiddle" title="\textstyle \mathbb{R}^2"/> into <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_6d70801d717fb3ff972f9c86f078b0dd.png"  class="tex" align="absmiddle" title="\textstyle \mathbb{R}^3"/> as the hyperplane given by the equation <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_8f34ffc8d291ab7e98c7b9d22d8a1901.png"  class="tex" align="absmiddle" title="\textstyle z=1"/>. The only thing we&#8217;re really missing in this picture is the &#8220;circle at infinity&#8221; which will be important later when we consider quadrics, but does not really matter just now while we are only concerned with translation operators (which send infinity to infinity anyhow). </p>
<p>Consider now the following projective transformation:<br />
<center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_1f023805ffb30a7b2beecc91bafe33f9.png"  class="tex" align="absmiddle" title=" M = \left [ \begin{array}{ccc} 1 &amp;amp; 0  &amp;amp; 2 \\ 0  &amp;amp; 1  &amp;amp; -3 \\ 0  &amp;amp; 0  &amp;amp; 1 \end{array} \right ] " /></center><br />
(or if you prefer, just think of it as a regular three dimensional transformation, which happens to map the hyperplane <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_8f34ffc8d291ab7e98c7b9d22d8a1901.png"  class="tex" align="absmiddle" title="\textstyle z=1"/> back to itself)</p>
<p>If we apply this to the image of our point under our funny embedding, then we get:</p>
<p><center><img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_afdec3824d0a9f02f3b9dcebe58779a2.png"  class="tex" align="absmiddle" title=" \left [ \begin{array}{ccc} 1  &amp;amp; 0 &amp;amp; 2 \\ 0  &amp;amp; 1  &amp;amp; -3 \\ 0  &amp;amp; 0  &amp;amp; 1 \end{array} \right ] \left [ \begin{array}{c} x \\ y \\ 1 \end{array} \right ] =<br />
\left [ \begin{array}{c} x + 2 \\ y - 3 \\ 1 \end{array} \right ]<br />
 " /></center></p>
<p>Et Voila! After taking the inverse of the embedding, this is exactly the image of the point that we were looking for.</p>
<p>* As correctly pointed out by Cale Gibbard, its not actually a circle at infinity, but a projective line. If two people head out in opposite directions along the <img src="http://analogical-engine.com/wordpress/wp-content/cache/tex_4ea3f9726d1e2aafbf5c644d530fc4a4.png"  class="tex" align="absmiddle" title="\textstyle x,y"/> plane they will reach the same point at infinity.</p>
]]></content:encoded>
			<wfw:commentRss>http://analogical-engine.com/wordpress/?feed=rss2&amp;p=463</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back from the Dead</title>
		<link>http://analogical-engine.com/wordpress/?p=454</link>
		<comments>http://analogical-engine.com/wordpress/?p=454#comments</comments>
		<pubDate>Thu, 05 Aug 2010 20:41:25 +0000</pubDate>
		<dc:creator>Robin</dc:creator>
				<category><![CDATA[Robin]]></category>

		<guid isPermaLink="false">http://analogical-engine.com/wordpress/?p=454</guid>
		<description><![CDATA[This blog has been dead for some time, but since I am now officially on the job market, I have decided to re-open it. I plan to post something new at least once a week.
]]></description>
			<content:encoded><![CDATA[<p>This blog has been dead for some time, but since I am now officially on the job market, I have decided to re-open it. I plan to post something new at least once a week.</p>
]]></content:encoded>
			<wfw:commentRss>http://analogical-engine.com/wordpress/?feed=rss2&amp;p=454</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Data Mining</title>
		<link>http://analogical-engine.com/wordpress/?p=450</link>
		<comments>http://analogical-engine.com/wordpress/?p=450#comments</comments>
		<pubDate>Wed, 27 Jan 2010 22:42:49 +0000</pubDate>
		<dc:creator>Robin</dc:creator>
				<category><![CDATA[Links]]></category>
		<category><![CDATA[Robin]]></category>

		<guid isPermaLink="false">http://analogical-engine.com/wordpress/?p=450</guid>
		<description><![CDATA[For anybody who is interested, here are two online video lecture series from Stanford University:
Statistical Aspects of Data Mining
Machine Learning
Also, the data set for the netflix prize.
]]></description>
			<content:encoded><![CDATA[<p>For anybody who is interested, here are two online video lecture series from Stanford University:</p>
<p><a href="http://www.youtube.com/watch?v=zRsMEl6PHhM">Statistical Aspects of Data Mining</a></p>
<p><a href="http://www.youtube.com/watch?v=UzxYlbK2c7E">Machine Learning</a></p>
<p>Also, the <a href="http://archive.ics.uci.edu/ml/datasets/Netflix+Prize">data set</a> for the <a href="http://www.netflixprize.com/">netflix prize</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://analogical-engine.com/wordpress/?feed=rss2&amp;p=450</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

