<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Foxmaths! 2.0</title>
	<atom:link href="http://foxmath.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://foxmath.wordpress.com</link>
	<description>Musings of a Non-linear Operator</description>
	<lastBuildDate>Sun, 27 Sep 2009 05:36:55 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='foxmath.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/9a5f6ef044466e90e79d4aeb7f41e43d?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Foxmaths! 2.0</title>
		<link>http://foxmath.wordpress.com</link>
	</image>
			<item>
		<title>Number Coverings</title>
		<link>http://foxmath.wordpress.com/2009/09/27/number-coverings/</link>
		<comments>http://foxmath.wordpress.com/2009/09/27/number-coverings/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 05:35:04 +0000</pubDate>
		<dc:creator>Fox</dc:creator>
				<category><![CDATA[Maths]]></category>

		<guid isPermaLink="false">http://foxmath.wordpress.com/?p=530</guid>
		<description><![CDATA[Pick a number. Let that number be 127. We say that a number &#8216;covers&#8217; 127 if it contains the digits of 127, in order. Though not necessarily together. So, 127, of course, covers 127. 701220212987 also covers 127. 301742 does not.
Question: Given a k-digit number, how many n-digit numbers cover that k-digit number?
My first thought [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foxmath.wordpress.com&blog=2434257&post=530&subd=foxmath&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Pick a number. Let that number be 127. We say that a number &#8216;covers&#8217; 127 if it contains the digits of 127, in order. Though not necessarily together. So, 127, of course, covers 127. 701220212987 also covers 127. 301742 does not.</p>
<p>Question: Given a k-digit number, how many n-digit numbers cover that k-digit number?</p>
<p>My first thought was this. If an (n+1)-digit number covers a k-digit number, the covering either occurs in the last n-many digits, or the covering includes the first digit. 1209 vs 4127, for example. Suppose that f(n,k) is the number of n-digit numbers that cover a k-digit number. If, in the (n+1)-digit number, the covering includes the first digit, then that digit is fixed since it must be the same as the first digit of the k-digit number, and the remaining n-many digits must must cover the remaining (k-1)-many digits, of which there are f(n,k-1) ways to do. If, in the (n+1)-digit number, the covering does not include the first digit, then that first digit can be anything except for 0, and whatever the first digit of the k-digit number is &#8211; thus giving 8 choices for that first digit. Since the first digit isn&#8217;t included in the covering, then the k-digit number must be covered by the remaining n-many digits, of which there are f(n,k) ways to do so.</p>
<p>This suggests the recurrence,</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=f%28n%2B1%2Ck%29+%3D+1%2Af%28n%2Ck-1%29+%2B+8%2Af%28n%2Ck%29++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='f(n+1,k) = 1*f(n,k-1) + 8*f(n,k)  ' title='f(n+1,k) = 1*f(n,k-1) + 8*f(n,k)  ' class='latex' /></p>
<p>But this is, in fact, wrong.</p>
<p>The problem is that if you take an (n+1)-digit number, and pop off the highest digit, you are not guaranteed that what remains is an n-digit number. Consider 10029, for example. Pop off the 1, and you&#8217;re left with 29. Same goes for popping off the first digit of the k-digit number. But if f(n,k) is counting numbers based on a given length, this causes a problem.</p>
<p>The solution is to look at the problem from the other side. If you take an (n+1)-digit number and pop off the lowest digit, you are always guaranteed that the result is an n-digit number. 10030, popping off the lowest digit, gives 1003, a 5-digit number becoming a 4-digit number. Looking at the problem this way, you never run into the same issue.</p>
<p>So, let&#8217;s apply the same logic, except from the back.</p>
<p>Given an (n+1)-digit number, either the last digit is involved in covering the k-digit number, or it is not. If it is not, then the first n-many digits form an n-digit number that covers the k-digit number, and the last digit of the (n+1)-digit number can be anything. This suggests f(n,k)*9 ways of going about this, f(n,k) choices for the first n-many digits, and 9 choices for the last digit. If the last digit is involved in the k-digit number covering, then that last digit must be the same as the last digit of the k-digit number, which means there is 1 choice for it. That, and the first n-many digits of the number must cover the first (k-1) digits of the k-digit number. This suggests f(n,k-1)*1 ways of going about this. This leads to the recurrence,</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=f%28n%2B1%2Ck%29+%3D+f%28n%2Ck%29%2A9+%2B+f%28n%2Ck-1%29++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='f(n+1,k) = f(n,k)*9 + f(n,k-1)  ' title='f(n+1,k) = f(n,k)*9 + f(n,k-1)  ' class='latex' /></p>
<p>This solves our 0-padding problem, and is in fact correct.</p>
<p>But, this isn&#8217;t enough. Notice that in our recurrence, we call f for a lesser value of n, as well as a lesser value of k. We need some initial conditions, fixed values of f that the higher values reference. For example, F(n+1) = F(n) + F(n-1) is not the Fibonacci numbers, until we define F(1) = 1 and F(2) = 1.</p>
<p>In our case, notice that f(n,k) = 1 if n = k. Given a k-digit number, there is only one k-digit number that covers it. Namely, itself.</p>
<p>This isn&#8217;t quite enough &#8211; it gives an initial condition for n. Basically, if we keep calculating f(n,k) for lower values of n, we can stop when we have n = k. But we need an initial condition for k, as well. If we calculate f(n,k) for lower values of k in the same way, for fixed n, when would we stop?</p>
<p>Consider f(n,0). That is, the number of n-digit numbers that cover a 0-digit number. That doesn&#8217;t sound like it makes much sense, but notice that, in a sense, -any- n-digit number covers a 0-digit number. So f(n,0) is just the number of n-digit numbers. How many is that? The first digit can be anything but 0, leaving 9 choices, and we have 10 choices for the remaining (n-1)-many digits. Thus,</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=f%28n%2C0%29+%3D+9%2A10%5E%7Bn-1%7D++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='f(n,0) = 9*10^{n-1}  ' title='f(n,0) = 9*10^{n-1}  ' class='latex' /></p>
<p>For convenience, let us define f(0,0) = 1. That is, there is 1 way to cover a 0-digit number with a 0-digit number. And that is to do nothing at all. This is in-keeping with our f(k,k) = 1 restriction.</p>
<p>And this is enough. Bringing everything together, we have</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=f%28n%5C%2C%2C+k%29+%3D+%5Cleft%5C%7B+%5Cbegin%7Barray%7D%7Bc+l%7D+1+%26+if%5C+n+%3D+k+%5C%5C+9%2A10%5E%7Bn-1%7D+%26+if%5C+k+%3D+0+%5C%2C%2C%5C++n+%3E+0++%5C%5C+9%2Af%28n-1%5C%2C%2Ck%29+%2B+f%28n-1%5C%2C%2Ck-1%29+%26+else+%5Cend%7Barray%7D+%5Cright.++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='f(n\,, k) = \left\{ \begin{array}{c l} 1 &amp; if\ n = k \\ 9*10^{n-1} &amp; if\ k = 0 \,,\  n &gt; 0  \\ 9*f(n-1\,,k) + f(n-1\,,k-1) &amp; else \end{array} \right.  ' title='f(n\,, k) = \left\{ \begin{array}{c l} 1 &amp; if\ n = k \\ 9*10^{n-1} &amp; if\ k = 0 \,,\  n &gt; 0  \\ 9*f(n-1\,,k) + f(n-1\,,k-1) &amp; else \end{array} \right.  ' class='latex' /></p>
<p>Coding that up relatively quickly in a small ruby script, we find that there are 26010 many 7-digit numbers that cover any given 4-digit number.</p>
<p>Which is interesting. Though not half as interesting as the derivation of that recursive function, I think.</p>
<p>Now, you could theoretically solve for the closed form of f(n,k), but it looks relatively nasty. Something much more interesting is to define the following function.</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=F%28x%2Ck%29+%3D+%5Csum_%7Bn%3Dk%7D%5E%5Cinfty+f%28n%2Ck%29%2Ax%5En++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='F(x,k) = \sum_{n=k}^\infty f(n,k)*x^n  ' title='F(x,k) = \sum_{n=k}^\infty f(n,k)*x^n  ' class='latex' /></p>
<p>The idea is that we take all the numbers f(n,k), for a given k, and string them out as the coefficients of a sum of powers of x. Then, even though we can&#8217;t express f(n,k) in a nice, convenient way, you can show using the above recurrence that</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=F%28x%2Ck%29+%3D+%28%5Cfrac%7B1-x%7D%7B1-10x%7D%29%7B%28%5Cfrac%7Bx%7D%7B1-9x%7D%29%7D%5Ek++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='F(x,k) = (\frac{1-x}{1-10x}){(\frac{x}{1-9x})}^k  ' title='F(x,k) = (\frac{1-x}{1-10x}){(\frac{x}{1-9x})}^k  ' class='latex' /></p>
<p>Which, at the very least, is interesting in its simplicity. To find the value of f(n,k), simply take the coefficient on the <img src='http://l.wordpress.com/latex.php?latex=x%5En+&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='x^n ' title='x^n ' class='latex' /> term of the series expansion of F(x,k). All the information of that sequence, wrapped up in one convenient function. Neat : )</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/foxmath.wordpress.com/530/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/foxmath.wordpress.com/530/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/foxmath.wordpress.com/530/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/foxmath.wordpress.com/530/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/foxmath.wordpress.com/530/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/foxmath.wordpress.com/530/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/foxmath.wordpress.com/530/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/foxmath.wordpress.com/530/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/foxmath.wordpress.com/530/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/foxmath.wordpress.com/530/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foxmath.wordpress.com&blog=2434257&post=530&subd=foxmath&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://foxmath.wordpress.com/2009/09/27/number-coverings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ba88256294685a37696941d5205eaef?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Fox</media:title>
		</media:content>
	</item>
		<item>
		<title>New Year! School, That Is</title>
		<link>http://foxmath.wordpress.com/2009/09/15/new-year-school-that-is/</link>
		<comments>http://foxmath.wordpress.com/2009/09/15/new-year-school-that-is/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 05:08:54 +0000</pubDate>
		<dc:creator>Fox</dc:creator>
				<category><![CDATA[Administration]]></category>

		<guid isPermaLink="false">http://foxmath.wordpress.com/?p=527</guid>
		<description><![CDATA[So, I got back from Alaska. A &#8230; long time ago. Pictures will be forthcoming. After that, it was pretty much straight back to CMU. And back into the thick of things.
Theoretically, this semester was supposed to be easy. Four classes: Intro to Psychology, Special Topics in Thermal Physics, Probabilistic Simulations, and a graduate course [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foxmath.wordpress.com&blog=2434257&post=527&subd=foxmath&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So, I got back from Alaska. A &#8230; long time ago. Pictures will be forthcoming. After that, it was pretty much straight back to CMU. And back into the thick of things.</p>
<p>Theoretically, this semester was supposed to be easy. Four classes: Intro to Psychology, Special Topics in Thermal Physics, Probabilistic Simulations, and a graduate course in Discrete Mathematics.</p>
<p>Four courses. Nothing, compared to things I&#8217;ve done previously.</p>
<p>So, my prolonged silence might cause you to ask &#8230; what happened?</p>
<p>And what happened, for the most part, seems to be this. I agreed to TA a section of Calculus in 3D. That sucks up a large percentage of my time, grading and preparing. Discrete Mathematics, by the nature of the course, takes a -tremendous- amount of time. I basically spent a week thinking about 3 problems and didn&#8217;t get anywhere, only to get them all in the last two days before it was due. Those two by themselves seem to be the largest contributors, plus scads and scads of psych reading, which is driving me nuts.</p>
<p>But &#8230; so much math. Fascinating, exciting, beautiful math.</p>
<p>Some problems I&#8217;d like to discuss, when I have the time, would be &#8230;</p>
<p>Suppose you were to color the edges of a <a href="http://en.wikipedia.org/wiki/Complete_graph">complete graph</a> on n vertices with  k many different colors. Let f(k) be the largest value such that you can color the complete graph on f(k) vertices with k colors &#8211; such that no three edges form a monochromatic triangle. The problem is to show that <img src='http://l.wordpress.com/latex.php?latex=f%28k%29+%3C+e%2Ak%21+&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f(k) &lt; e*k! ' title='f(k) &lt; e*k! ' class='latex' />. I relish, absolutely relish, interesting constants falling out in unexpected places.</p>
<p>Similar setup, but in this case show that <img src='http://l.wordpress.com/latex.php?latex=f%28k%2B1%29+%5Cgeq+3%2Af%28k%29+%2B+f%28k-2%29+&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f(k+1) \geq 3*f(k) + f(k-2) ' title='f(k+1) \geq 3*f(k) + f(k-2) ' class='latex' />. This is very, very long &#8230; but very rewarding.</p>
<p>One problem I&#039;ve been trying to write up, for a very long time (and my inability to complete it basically started this trend towards little to no writing), is calculating Graham&#039;s Number &#8211; one of the largest numbers ever put to practical use. It is big. So big you can&#039;t really comprehend it in terms of value. And yet &#8230; we can calculate it! And that, in my opinion, is very exciting.</p>
<p>Plus! Some interesting recursions, and some simulation tricks &#8230; We&#039;re doing some very interesting things in thermal I would love to share, but I&#039;m struggling with the &#039;how&#039;, without teaching thermal physics from the ground up. I&#039;m sure I will figure something out. But, in any case &#8230; interesting maths ahead.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/foxmath.wordpress.com/527/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/foxmath.wordpress.com/527/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/foxmath.wordpress.com/527/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/foxmath.wordpress.com/527/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/foxmath.wordpress.com/527/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/foxmath.wordpress.com/527/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/foxmath.wordpress.com/527/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/foxmath.wordpress.com/527/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/foxmath.wordpress.com/527/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/foxmath.wordpress.com/527/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foxmath.wordpress.com&blog=2434257&post=527&subd=foxmath&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://foxmath.wordpress.com/2009/09/15/new-year-school-that-is/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ba88256294685a37696941d5205eaef?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Fox</media:title>
		</media:content>
	</item>
		<item>
		<title>Vacation Vacation</title>
		<link>http://foxmath.wordpress.com/2009/07/30/vacation-vacation/</link>
		<comments>http://foxmath.wordpress.com/2009/07/30/vacation-vacation/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 06:43:21 +0000</pubDate>
		<dc:creator>Fox</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[alaska]]></category>
		<category><![CDATA[vacation]]></category>

		<guid isPermaLink="false">http://foxmath.wordpress.com/2009/07/30/vacation-vacation/</guid>
		<description><![CDATA[I&#8217;m taking a vacation from my vacation &#8230; going to Alaska for a week or so! No maths until I get back, and hopefully some new maths then. Feel free to leave any interesting math problems. Or, perhaps, where you would go and what you would do if you could travel through time and space. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foxmath.wordpress.com&blog=2434257&post=523&subd=foxmath&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;m taking a vacation from my vacation &#8230; going to Alaska for a week or so! No maths until I get back, and hopefully some new maths then. Feel free to leave any interesting math problems. Or, perhaps, where you would go and what you would do if you could travel through time and space. I&#8217;ll see you all on the other side! With pictures.</p>
 Tagged: alaska, vacation <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/foxmath.wordpress.com/523/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/foxmath.wordpress.com/523/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/foxmath.wordpress.com/523/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/foxmath.wordpress.com/523/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/foxmath.wordpress.com/523/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/foxmath.wordpress.com/523/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/foxmath.wordpress.com/523/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/foxmath.wordpress.com/523/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/foxmath.wordpress.com/523/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/foxmath.wordpress.com/523/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foxmath.wordpress.com&blog=2434257&post=523&subd=foxmath&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://foxmath.wordpress.com/2009/07/30/vacation-vacation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ba88256294685a37696941d5205eaef?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Fox</media:title>
		</media:content>
	</item>
		<item>
		<title>Many Integrations By Parts</title>
		<link>http://foxmath.wordpress.com/2009/07/24/many-integrations-by-parts/</link>
		<comments>http://foxmath.wordpress.com/2009/07/24/many-integrations-by-parts/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 19:28:42 +0000</pubDate>
		<dc:creator>Fox</dc:creator>
				<category><![CDATA[Maths]]></category>

		<guid isPermaLink="false">http://foxmath.wordpress.com/?p=521</guid>
		<description><![CDATA[In the spirit of the previous post, one thing that you do in calculus of variations &#8211; a lot &#8211; is integration by parts. It&#8217;s incredible how useful that one trick is. See, they teach you these things in calculus for a reason!
But, I was fiddling around yesterday, and got this nice result, applying many [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foxmath.wordpress.com&blog=2434257&post=521&subd=foxmath&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In the spirit of the previous post, one thing that you do in calculus of variations &#8211; a lot &#8211; is integration by parts. It&#8217;s incredible how useful that one trick is. See, they teach you these things in calculus for a reason!</p>
<p>But, I was fiddling around yesterday, and got this nice result, applying many integrations by parts. For integers n, m,</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=%5Cint_%7B0%7D%5E%7B1%7D+x%5En%281-x%29%5Em+dx+%3D+%5Cfrac%7Bn%21m%21%7D%7B%28n%2Bm%2B1%29%21%7D++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='\int_{0}^{1} x^n(1-x)^m dx = \frac{n!m!}{(n+m+1)!}  ' title='\int_{0}^{1} x^n(1-x)^m dx = \frac{n!m!}{(n+m+1)!}  ' class='latex' /></p>
<p>Which I thought was kind of nice.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/foxmath.wordpress.com/521/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/foxmath.wordpress.com/521/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/foxmath.wordpress.com/521/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/foxmath.wordpress.com/521/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/foxmath.wordpress.com/521/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/foxmath.wordpress.com/521/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/foxmath.wordpress.com/521/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/foxmath.wordpress.com/521/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/foxmath.wordpress.com/521/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/foxmath.wordpress.com/521/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foxmath.wordpress.com&blog=2434257&post=521&subd=foxmath&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://foxmath.wordpress.com/2009/07/24/many-integrations-by-parts/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ba88256294685a37696941d5205eaef?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Fox</media:title>
		</media:content>
	</item>
		<item>
		<title>Calculus of Variations and the Italian Challenge</title>
		<link>http://foxmath.wordpress.com/2009/07/24/calculus-of-variations-and-the-italian-challenge/</link>
		<comments>http://foxmath.wordpress.com/2009/07/24/calculus-of-variations-and-the-italian-challenge/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 19:25:13 +0000</pubDate>
		<dc:creator>Fox</dc:creator>
				<category><![CDATA[Maths]]></category>

		<guid isPermaLink="false">http://foxmath.wordpress.com/?p=518</guid>
		<description><![CDATA[One thing I did this summer was a course on the so called &#8216;Calculus of Variations&#8217;. A good example question would go something like this.
Consider the set of all functions y, continuous with continuous derivatives, such that y(0) = 0, and y(1) = 1. Find the function y that minimizes the value of

J is called [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foxmath.wordpress.com&blog=2434257&post=518&subd=foxmath&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>One thing I did this summer was a course on the so called &#8216;Calculus of Variations&#8217;. A good example question would go something like this.</p>
<p>Consider the set of all functions y, continuous with continuous derivatives, such that y(0) = 0, and y(1) = 1. Find the function y that minimizes the value of</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=J%28y%29+%3D+%5Cint_%7B0%7D%5E1+y%28x%29%5E2+%2B+y%27%28x%29%5E2+dx++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='J(y) = \int_{0}^1 y(x)^2 + y&#039;(x)^2 dx  ' title='J(y) = \int_{0}^1 y(x)^2 + y&#039;(x)^2 dx  ' class='latex' /></p>
<p>J is called a functional, taking a function and returning a real number.</p>
<p>Taking, for example, y(x) = x (notice that it satisfies the smoothness requirements, and the boundary conditions), the above integral comes out to 4/3. So we know that the minimum value of the integral is, at most, 4/3.</p>
<p>Suppose you thought that the minimzing function were a quadratic polynomial, <img src='http://l.wordpress.com/latex.php?latex=y%28x%29+%3D+a%2Ax%5E2+%2B+b%2Ax+%2B+c+&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='y(x) = a*x^2 + b*x + c ' title='y(x) = a*x^2 + b*x + c ' class='latex' />. The smoothness conditions are necessarily satisfied. For y(0) = 0, that requires c = 0. y(1) = a + b, so y(1) = 1 requires b = 1 &#8211; a. So we&#8217;re looking for a function of the form <img src='http://l.wordpress.com/latex.php?latex=y%28x%29+%3D+a%2Ax%5E2+%2B+%281+-+a%29%2Ax+&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='y(x) = a*x^2 + (1 - a)*x ' title='y(x) = a*x^2 + (1 - a)*x ' class='latex' />. If you evaluate the integral for that function, you get</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=J%28a%2Ax%5E2+%2B+%281+-+a%29%2Ax%29+%3D+%5Cfrac%7B4%7D%7B3%7D+-+%5Cfrac%7Ba%7D%7B6%7D+%2B+%5Cfrac%7B11%2Aa%5E2%7D%7B30%7D++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='J(a*x^2 + (1 - a)*x) = \frac{4}{3} - \frac{a}{6} + \frac{11*a^2}{30}  ' title='J(a*x^2 + (1 - a)*x) = \frac{4}{3} - \frac{a}{6} + \frac{11*a^2}{30}  ' class='latex' /></p>
<p>If you minimize the above expression with respect to a, you find that the minimum value occurs when a = 5/22, and that J(y) = 347/264, or approximately 1.314, ever so slightly less than 4/3. So,</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=y%28x%29+%3D+%5Cfrac%7B5%2Ax%5E2+%2B+17%2Ax%7D%7B22%7D++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='y(x) = \frac{5*x^2 + 17*x}{22}  ' title='y(x) = \frac{5*x^2 + 17*x}{22}  ' class='latex' /></p>
<p>performs slightly better than y(x) = x &#8230; but that isn&#8217;t enough to show it&#8217;s an absolute minimizer.</p>
<p>You could continue on in this way, checking other functions but &#8211; let&#8217;s be honest. You&#8217;re really shooting blindly, because you don&#8217;t know the form of the function. Expanding out polynomial minimizers, it may lead you to the taylor expansion of the actual minimizer, but it would be messy and unsatisfying.</p>
<p>Using techniques in the Calculus of Variations, you can solve the problem with some degree of elegance. Elegance that I won&#8217;t put forth in detail here &#8211; I really just meant for this to be a brief introduction. But you can turn such a minimization problem into an associated differential equation problem. The nice thing about this is that, in comparison to these beasts, differential equations are relatively well understood. The associated problem is as follows. If y(x) minimizes J(y), then y(x) must satisfy this differential eqation problem, with boundary conditions y(0) = 0, y(1) = 1,</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=y%27%27%28x%29+%3D+y%28x%29++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='y&#039;&#039;(x) = y(x)  ' title='y&#039;&#039;(x) = y(x)  ' class='latex' /></p>
<p>You can solve that using your favorite technique to yield the function,</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=y%28x%29+%3D+%5Cfrac%7Be%5Ex+-+e%5E%7B-x%7D%7D%7Be+-+e%5E%7B-1%7D%7D++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='y(x) = \frac{e^x - e^{-x}}{e - e^{-1}}  ' title='y(x) = \frac{e^x - e^{-x}}{e - e^{-1}}  ' class='latex' /></p>
<p>Evaluating J(y), this yields</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=J%28+%5Cfrac%7Be%5Ex+-+e%5E%7B-x%7D%7D%7Be+-+e%5E%7B-1%7D%7D+%29+%3D+%5Cfrac%7Be%5E2+%2B+1%7D%7Be%5E2+-+1%7D+%5Capprox+1.31304...++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='J( \frac{e^x - e^{-x}}{e - e^{-1}} ) = \frac{e^2 + 1}{e^2 - 1} \approx 1.31304...  ' title='J( \frac{e^x - e^{-x}}{e - e^{-1}} ) = \frac{e^2 + 1}{e^2 - 1} \approx 1.31304...  ' class='latex' /></p>
<p>And this, you can show, is the absolute minimizer of J. Notice, interestingly, the quadratic solution was actually quite close to being the real minimizer. Neat!</p>
<p>Now, you can do all kinds of nice things with this. For example, describing shapes with functions, you can find the shape a hanging cable of fixed length assumes. You can find the curve that minimizes the amount of time it takes to slide a bead along a wire of that curve (the assumption here is, sliding under gravity). And suppose you were an ancient African queen, promised howevermuch land you could encompass with a bull hide, you might be interested in maximizing the total area you could encompass with a fixed amount of material. Many many things.</p>
<p>Of course, Mathematicians always have to go and take things to the next level, which brings me to the Italian Challenge. Now, as the story was presented to me, in Italy, they have these tests for professorships at universities. However, if the administration has a particular candidate in mind, they&#8217;ll tailor the test for their strengths. Some candidate must&#8217;ve been an expert at calculus of variations, because we have the following problem.</p>
<p>Consider the set of <img src='http://l.wordpress.com/latex.php?latex=C%5E1%5B0%2C1%5D+&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='C^1[0,1] ' title='C^1[0,1] ' class='latex' /> functions, continuous with a continuous first derivative, over the range of x from 0 to 1. We also have the restriction that y(0) = 0, and y(1) = 1. Given</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=J%28y%29+%3D+%5Cint_%7B0%7D%5E1+e%5E%7B-y%27%28x%29%7D+%2B+y%28x%29%5E2+dx++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='J(y) = \int_{0}^1 e^{-y&#039;(x)} + y(x)^2 dx  ' title='J(y) = \int_{0}^1 e^{-y&#039;(x)} + y(x)^2 dx  ' class='latex' /></p>
<p>Prove that J(y) has no minimizer of that set of functions.</p>
<p>I&#8217;m fascinated. In essence, given any function y(x), you can always find a function w(x) such that J(y) is greater than J(w).</p>
<p>This is interesting on a number of levels. Notice, for instance, that each term of the integrand is positive. Thus we know that, for any function y(x), J(y) is strictly greater than 0. So the values of J are bound from below, but have no minimum! Very interesting.</p>
<p>The associated differential equation problem goes as follows. If y(x) minimizes J(y), y(x) must satisfy y(0) = 0, y(1) = 1, and</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=2%2Ay%28x%29+%3D+-%5Cfrac%7Bd%7D%7Bdx%7D%28+e%5E%7B-y%27%28x%29%7D+%29++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='2*y(x) = -\frac{d}{dx}( e^{-y&#039;(x)} )  ' title='2*y(x) = -\frac{d}{dx}( e^{-y&#039;(x)} )  ' class='latex' /></p>
<p>Notice, interestingly, you&#8217;re not guaranteed that y&#8221;(x) exists or is continuous.</p>
<p>But, if J(y) has no mimimizer, and we know that if y(x) minimizes J(y) it satisfies that differential equation, there must be something wrong with that differential equation. It can&#8217;t have a solution &#8211; because then J(y) has a minimizer. But why?</p>
<p>I don&#8217;t know&#8230;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/foxmath.wordpress.com/518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/foxmath.wordpress.com/518/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/foxmath.wordpress.com/518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/foxmath.wordpress.com/518/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/foxmath.wordpress.com/518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/foxmath.wordpress.com/518/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/foxmath.wordpress.com/518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/foxmath.wordpress.com/518/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/foxmath.wordpress.com/518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/foxmath.wordpress.com/518/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foxmath.wordpress.com&blog=2434257&post=518&subd=foxmath&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://foxmath.wordpress.com/2009/07/24/calculus-of-variations-and-the-italian-challenge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ba88256294685a37696941d5205eaef?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Fox</media:title>
		</media:content>
	</item>
		<item>
		<title>A Nice Substitution</title>
		<link>http://foxmath.wordpress.com/2009/07/21/a-nice-substitution/</link>
		<comments>http://foxmath.wordpress.com/2009/07/21/a-nice-substitution/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 21:54:27 +0000</pubDate>
		<dc:creator>Fox</dc:creator>
				<category><![CDATA[Maths]]></category>

		<guid isPermaLink="false">http://foxmath.wordpress.com/?p=510</guid>
		<description><![CDATA[I wasn&#8217;t always a math person. I used to be much more into reading books. I would read just about anything. Fast, too. But then &#8230; I stopped. I remember, the first book I bought but distinctly didn&#8217;t read was P.D. James&#8217; Death of an Expert Witness. I picked it up again yesterday, years after [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foxmath.wordpress.com&blog=2434257&post=510&subd=foxmath&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I wasn&#8217;t always a math person. I used to be much more into reading books. I would read just about anything. Fast, too. But then &#8230; I stopped. I remember, the first book I bought but distinctly didn&#8217;t read was P.D. James&#8217; <em>Death of an Expert Witness</em>. I picked it up again yesterday, years after the fact, and so far &#8230; it&#8217;s not bad. Maybe I will get into this &#8216;reading&#8217; thing again.</p>
<p>But, a small calculation is in order, one that has been bothering me.</p>
<p>Consider the function,</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=f%28x%29+%3D+x%5E%7Bx%5E%7Bx%5E%7Bx%5E%7B...%7D%7D%7D%7D++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='f(x) = x^{x^{x^{x^{...}}}}  ' title='f(x) = x^{x^{x^{x^{...}}}}  ' class='latex' /></p>
<p>An infinite power tower of x&#8217;s. I&#8217;ve done some things with this function before, but not this, I believe.</p>
<p>It is certainly questionable, what such a power tower actually means. For the purpose of this calculation, we imagine taking a number x, then raising x to that power, then raising x to the resulting power, then raising x again, etc. This creates a sequence of finite power towers, and we define f(x) to be the limit of that sequence, as the height of the tower goes to infinity.</p>
<p>For some values of x, clearly this sequence diverges to infinity. 2 to the 2nd, etc, etc, etc, rapidly becomes unmanagable. 2^2^2^2^2 has 19729 digits. f(x) for values such as these can be taken as infinite.</p>
<p>But! Over some x, f(x) is actually well defined, finite, seemingly smooth, and many other nice things as well. Consider f(1), which equals 1. f(0) is another matter all together&#8230;</p>
<p>That being so, what is the maximal x for which f(x) is finite, and what is f(x) at that point?</p>
<p>My thinking went something like this: I have no idea. But it might be kind of cool to calculate the derivative of f(x).</p>
<p>Looking at the definition of f(x), there&#8217;s one substitution that&#8217;s just itching to be made.</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=f%28x%29+%3D+x%5E%7Bf%28x%29%7D++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='f(x) = x^{f(x)}  ' title='f(x) = x^{f(x)}  ' class='latex' /></p>
<p>If we have an infinite power tower of x&#8217;s, and drop one off (the bottom most), we still have an infinite power tower of x&#8217;s, and the substitution can be made. The rest is standard implicit differentiation.</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=ln%28+f%28x%29+%29+%3D+f%28x%29%2Aln%28x%29++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='ln( f(x) ) = f(x)*ln(x)  ' title='ln( f(x) ) = f(x)*ln(x)  ' class='latex' /></p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=f%27%28x%29+%3D+%5Cfrac%7B+f%28x%29%5E2%2Fx+%7D%7B1+-+f%28x%29%2Aln%28x%29%7D++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='f&#039;(x) = \frac{ f(x)^2/x }{1 - f(x)*ln(x)}  ' title='f&#039;(x) = \frac{ f(x)^2/x }{1 - f(x)*ln(x)}  ' class='latex' /></p>
<p>While the above isn&#8217;t really a nice looking function, it&#8217;s certainly much more reasonable that having infinitely tall towers flopping about.</p>
<p>And it does suggest something interesting. Notice, being a rational function, if the denominator goes to zero, f&#8217;(x) is going to explode to infinity. If that happens, f(x) is going to, effectively, explode as well.</p>
<p>At the very least, if the denominator goes to zero &#8230; it would be bad. This all suggests it might have some bearing on our problem. Letting the denominator go to zero, we can solve for f(x) at that point as</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=f%28x%29+%3D+1%2Fln%28x%29++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='f(x) = 1/ln(x)  ' title='f(x) = 1/ln(x)  ' class='latex' /></p>
<p>This, along with our initial definition of f(x), gives us something to work with.</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=ln%28+f%28x%29+%29+%3D+f%28x%29%2Aln%28x%29++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='ln( f(x) ) = f(x)*ln(x)  ' title='ln( f(x) ) = f(x)*ln(x)  ' class='latex' /></p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=ln%28+1%2Fln%28x%29+%29+%3D+ln%28x%29%2Fln%28x%29++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='ln( 1/ln(x) ) = ln(x)/ln(x)  ' title='ln( 1/ln(x) ) = ln(x)/ln(x)  ' class='latex' /></p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=ln%28+ln%28x%29+%29+%3D+-1++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='ln( ln(x) ) = -1  ' title='ln( ln(x) ) = -1  ' class='latex' /></p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=ln%28x%29+%3D+1%2Fe++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='ln(x) = 1/e  ' title='ln(x) = 1/e  ' class='latex' /></p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=x+%3D+e%5E%7B1%2Fe%7D++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='x = e^{1/e}  ' title='x = e^{1/e}  ' class='latex' /></p>
<p>So, at the above x value, the derivative blows up, and the function goes to infinity. Interestingly, our condition on the denominator of f&#8217;(x) also gives us an easy way of calculating f(x) at that point.</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=f%28x%29+%3D+1%2Fln%28x%29++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='f(x) = 1/ln(x)  ' title='f(x) = 1/ln(x)  ' class='latex' /></p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=f%28e%5E%7B1%2Fe%7D%29+%3D+1%2F%281%2Fe%29++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='f(e^{1/e}) = 1/(1/e)  ' title='f(e^{1/e}) = 1/(1/e)  ' class='latex' /></p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=f%28e%5E%7B1%2Fe%7D%29+%3D+e++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='f(e^{1/e}) = e  ' title='f(e^{1/e}) = e  ' class='latex' /></p>
<p>And, fiddling with Mathematica seems to confirm all this.</p>
<p>But &#8230; what&#8217;s bothering me is that I feel like I did too much work. The first time I saw this problem, this quiet little Asian kid whipped out the e^(1/e) like it was a trivial and self evident result. Was he seeing something that I&#8217;m not seeing? I don&#8217;t know&#8230;</p>
<p>I think it&#8217;s worth thinking about, in any case. Not too long, perhaps, but worth thinking about. And now, back to murder and mayhem. After all, isn&#8217;t that what summer is all about?</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/foxmath.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/foxmath.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/foxmath.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/foxmath.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/foxmath.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/foxmath.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/foxmath.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/foxmath.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/foxmath.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/foxmath.wordpress.com/510/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foxmath.wordpress.com&blog=2434257&post=510&subd=foxmath&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://foxmath.wordpress.com/2009/07/21/a-nice-substitution/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ba88256294685a37696941d5205eaef?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Fox</media:title>
		</media:content>
	</item>
		<item>
		<title>Open to Interpretation</title>
		<link>http://foxmath.wordpress.com/2009/07/11/open-to-interpretation/</link>
		<comments>http://foxmath.wordpress.com/2009/07/11/open-to-interpretation/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 17:32:41 +0000</pubDate>
		<dc:creator>Fox</dc:creator>
				<category><![CDATA[Maths]]></category>

		<guid isPermaLink="false">http://foxmath.wordpress.com/?p=506</guid>
		<description><![CDATA[This is a more open ended thing. I&#8217;m trying to cram and finish a presentation in these last couple of days, so I don&#8217;t have much time for my own maths. But, looking at this picture, lifted from Mathworld, 

What are some questions that immediately spring to mind? One in particular springs out at me.
Increasingly, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foxmath.wordpress.com&blog=2434257&post=506&subd=foxmath&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This is a more open ended thing. I&#8217;m trying to cram and finish a presentation in these last couple of days, so I don&#8217;t have much time for my own maths. But, looking at this picture, lifted from Mathworld, </p>
<p><a href="http://foxmath.files.wordpress.com/2009/07/polygoncircumscribing_1000.gif"><img src="http://foxmath.files.wordpress.com/2009/07/polygoncircumscribing_1000.gif?w=255&#038;h=255" alt="PolygonCircumscribing_1000" title="PolygonCircumscribing_1000" width="255" height="255" class="aligncenter size-full wp-image-507" /></a></p>
<p>What are some questions that immediately spring to mind? One in particular springs out at me.</p>
<p>Increasingly, I find that being able to ask interesting questions is as important a skill, if not more so, than being able to answer them.</p>
<p>So, interesting math questions &#8211; go.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/foxmath.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/foxmath.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/foxmath.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/foxmath.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/foxmath.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/foxmath.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/foxmath.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/foxmath.wordpress.com/506/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/foxmath.wordpress.com/506/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/foxmath.wordpress.com/506/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foxmath.wordpress.com&blog=2434257&post=506&subd=foxmath&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://foxmath.wordpress.com/2009/07/11/open-to-interpretation/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ba88256294685a37696941d5205eaef?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Fox</media:title>
		</media:content>

		<media:content url="http://foxmath.files.wordpress.com/2009/07/polygoncircumscribing_1000.gif" medium="image">
			<media:title type="html">PolygonCircumscribing_1000</media:title>
		</media:content>
	</item>
		<item>
		<title>Questionable Integration: An Interesting Calculation</title>
		<link>http://foxmath.wordpress.com/2009/07/06/questionable-integration-an-interesting-calculation/</link>
		<comments>http://foxmath.wordpress.com/2009/07/06/questionable-integration-an-interesting-calculation/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 18:06:26 +0000</pubDate>
		<dc:creator>Fox</dc:creator>
				<category><![CDATA[Maths]]></category>

		<guid isPermaLink="false">http://foxmath.wordpress.com/?p=496</guid>
		<description><![CDATA[As I was walking home from lunch today, burdened by thoughts of simulated annealing, and cross-entropy minimization, I happened to look down as I was crossing a bridge. And on the road below, a pair of boys, side by side, in matching uniforms and backpacks, looked to be walking toward school. But, right as I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foxmath.wordpress.com&blog=2434257&post=496&subd=foxmath&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>As I was walking home from lunch today, burdened by thoughts of simulated annealing, and cross-entropy minimization, I happened to look down as I was crossing a bridge. And on the road below, a pair of boys, side by side, in matching uniforms and backpacks, looked to be walking toward school. But, right as I looked, a telephone pole stood right between us, blocking my few of the inner half of each boy &#8211; it looked like one boy, stretched to the point of absurdity. And yet still realistic. Then the moment passed.</p>
<p>I love moments like that. Tiny, fleeting things. Seeing the world, slightly skewed. I remember one time, riding my bike, coming up behind a bird sitting in the middle of the road. The bird took off, flying away from me. But, for a moment, my eyes fixed on his tail, and I imagine we hit the exact same velocity for that one second. It was like the entire world blurred away, leaving me and the bird moving as one. And then it was over.</p>
<p>And that has absolutely nothing to do with what I&#8217;d like to talk about today.</p>
<p>Consider the function frac(x). frac removes the integer part of x, leaving the fractional part. So frac(5.25) = 0.25. Of course, frac(0.25) = 0.25, as well. frac(pi) = pi &#8211; 3, giving the fractional part by just subtracting off the integer part. Clearly, frac(n) = 0, for any integer n. This becomes important.</p>
<p>For x from 0 to 10 looks like this,</p>
<p><a href="http://foxmath.files.wordpress.com/2009/07/fracx.jpg"><img class="aligncenter size-full wp-image-497" title="FracX" src="http://foxmath.files.wordpress.com/2009/07/fracx.jpg?w=360&#038;h=230" alt="FracX" width="360" height="230" /></a></p>
<p>The problem today is to evaluate the following integral.</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=F+%3D+%5Cint_%7B0%7D%5E%7B1%7D+frac%28%5Cfrac%7B1%7D%7Bx%7D%29+dx++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='F = \int_{0}^{1} frac(\frac{1}{x}) dx  ' title='F = \int_{0}^{1} frac(\frac{1}{x}) dx  ' class='latex' /></p>
<p>I love naming constants F. F, for fox. There is supposedly a physicist who, in all his papers, names all his constants variations on &#8216;k&#8217;.</p>
<p>frac(1/x) looks like the following.</p>
<p><a href="http://foxmath.files.wordpress.com/2009/07/frac1overx.jpg"><img class="aligncenter size-full wp-image-498" title="Frac1OverX" src="http://foxmath.files.wordpress.com/2009/07/frac1overx.jpg?w=360&#038;h=230" alt="Frac1OverX" width="360" height="230" /></a></p>
<p>As x gets bigger, 1/x goes from one integer to the next faster and faster &#8211; hence the faster transitions in frac(1/x) seen as x goes to 0. But, can we calculate the area under these multitudinous curves? And is it anything nice at all?</p>
<p>And the answer is, interestingly &#8211; yes. The first step is to divide the curve up into more managable parts.</p>
<p>Just as with frac(x), there is a discontinuity every time 1/x is an integer &#8211; these discontinuities define each of the individual curves in the graph. We can thus break the integral around these discontinuities. Integrating for when 1/x is between 1 and 2, between 2 and 3, 3 and 4, etc. In each of these intervals, frac(1/x) is a continuous curve.</p>
<p>In terms of x then, this breaks the integral into the intervals 1/2 to 1, 1/3 to 1/2, 1/4 to 1/3, etc.</p>
<p>Thus, the first transformation of the integral is this.</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=%5Cint_%7B0%7D%5E%7B1%7D+frac%28%5Cfrac%7B1%7D%7Bx%7D%29+dx+%3D+%5Csum_%7Bn+%3D+1%7D%5E%5Cinfty+%5Cint_%7B%5Cfrac%7B1%7D%7Bn%2B1%7D%7D%5E%7B+%5Cfrac%7B1%7D%7Bn%7D+%7D+frac%28%5Cfrac%7B1%7D%7Bx%7D%29+dx++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='\int_{0}^{1} frac(\frac{1}{x}) dx = \sum_{n = 1}^\infty \int_{\frac{1}{n+1}}^{ \frac{1}{n} } frac(\frac{1}{x}) dx  ' title='\int_{0}^{1} frac(\frac{1}{x}) dx = \sum_{n = 1}^\infty \int_{\frac{1}{n+1}}^{ \frac{1}{n} } frac(\frac{1}{x}) dx  ' class='latex' /></p>
<p>So, let&#8217;s consider just the integral over one of the intervals.</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=%5Cint_%7B%5Cfrac%7B1%7D%7Bn%2B1%7D%7D%5E%7B+%5Cfrac%7B1%7D%7Bn%7D+%7D+frac%28%5Cfrac%7B1%7D%7Bx%7D%29+dx++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='\int_{\frac{1}{n+1}}^{ \frac{1}{n} } frac(\frac{1}{x}) dx  ' title='\int_{\frac{1}{n+1}}^{ \frac{1}{n} } frac(\frac{1}{x}) dx  ' class='latex' /></p>
<p>What is frac(1/x) over one of these intervals? If int(x) is the integer part of a number, int(pi) = 3, for example, we have the relation that x = int(x) + frac(x). Or, in this case, 1/x = int(1/x) + frac(1/x). Over one of these intervals, 1/x goes from n to n+1, but the integer part of 1/x is simply n. We conveniently can ignore what happens exactly at the endpoints. This gives us, using the previous relation, 1/x = n + frac(1/x), or frac(1/x) = 1/x &#8211; n, which we can immediately put to good use.</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=%5Cint_%7B%5Cfrac%7B1%7D%7Bn%2B1%7D%7D%5E%7B+%5Cfrac%7B1%7D%7Bn%7D+%7D+%28%5Cfrac%7B1%7D%7Bx%7D+-+n%29+dx+%3D+ln%28n%2B1%29+-+ln%28n%29+-+%5Cfrac%7B1%7D%7Bn%2B1%7D++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='\int_{\frac{1}{n+1}}^{ \frac{1}{n} } (\frac{1}{x} - n) dx = ln(n+1) - ln(n) - \frac{1}{n+1}  ' title='\int_{\frac{1}{n+1}}^{ \frac{1}{n} } (\frac{1}{x} - n) dx = ln(n+1) - ln(n) - \frac{1}{n+1}  ' class='latex' /></p>
<p>So we get,</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=F+%3D+%5Csum_%7Bn+%3D+1%7D%5E%5Cinfty+%28+ln%28n%2B1%29+-+ln%28n%29+-+%5Cfrac%7B1%7D%7Bn%2B1%7D+%29++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='F = \sum_{n = 1}^\infty ( ln(n+1) - ln(n) - \frac{1}{n+1} )  ' title='F = \sum_{n = 1}^\infty ( ln(n+1) - ln(n) - \frac{1}{n+1} )  ' class='latex' /></p>
<p>This by itself is relatively nice, but we can do better. Consider the partial summation,</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=F_N+%3D+%5Csum_%7Bn+%3D+1%7D%5E%7BN-1%7D+%28+ln%28n%2B1%29+-+ln%28n%29+-+%5Cfrac%7B1%7D%7Bn%2B1%7D+%29++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='F_N = \sum_{n = 1}^{N-1} ( ln(n+1) - ln(n) - \frac{1}{n+1} )  ' title='F_N = \sum_{n = 1}^{N-1} ( ln(n+1) - ln(n) - \frac{1}{n+1} )  ' class='latex' /></p>
<p>We can then calculate F as the limit of F<sub>N</sub>, letting N go to infinity. But, expressing the partial sum, we can rearrange it in a nice way, noting the presence of a <a href="http://mathworld.wolfram.com/TelescopingSum.html">telescoping sum</a>, and grouping the sums of reciprocals, in a nice way.</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=F_N+%3D+ln%28N%29++-+%5Csum_%7Bn%3D2%7D%5E%7BN%7D+%5Cfrac%7B1%7D%7Bn%7D++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='F_N = ln(N)  - \sum_{n=2}^{N} \frac{1}{n}  ' title='F_N = ln(N)  - \sum_{n=2}^{N} \frac{1}{n}  ' class='latex' /></p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=F_N+%3D+1+%2B+ln%28N%29++-+%5Csum_%7Bn%3D1%7D%5E%7BN%7D+%5Cfrac%7B1%7D%7Bn%7D++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='F_N = 1 + ln(N)  - \sum_{n=1}^{N} \frac{1}{n}  ' title='F_N = 1 + ln(N)  - \sum_{n=1}^{N} \frac{1}{n}  ' class='latex' /></p>
<p>Note the addition of the 1+, to make the harmonic sum complete from 1 to N. Thus, jumping back to F, we have,</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=F+%3D+lim_%7BN+%5Crightarrow+%5Cinfty%7D+F_N++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='F = lim_{N \rightarrow \infty} F_N  ' title='F = lim_{N \rightarrow \infty} F_N  ' class='latex' /></p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=F+%3D+1+%2B+lim_%7BN+%5Crightarrow+%5Cinfty%7D+%28+ln%28N%29+-+%5Csum_%7Bn%3D1%7D%5EN+%5Cfrac%7B1%7D%7Bn%7D+%29++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='F = 1 + lim_{N \rightarrow \infty} ( ln(N) - \sum_{n=1}^N \frac{1}{n} )  ' title='F = 1 + lim_{N \rightarrow \infty} ( ln(N) - \sum_{n=1}^N \frac{1}{n} )  ' class='latex' /></p>
<p>And &#8230; that&#8217;s pretty much all you can do. Except for one more very nice thing. As N goes to infinity, ln(N) and the harmonic sum to N become very close, their difference approaching a constant. This constant was first noticed, and given a name, a very long time ago &#8211; the <a href="http://mathworld.wolfram.com/Euler-MascheroniConstant.html">Euler-Mascheroni Constant</a>. I find it fascinating that ln(n) and the harmonic sum grow almost equivalently like that, and that constant has long been of interest to me, because I can never find a satisfying way of calculating it. But, this gives us</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=%5Cgamma+%3D+lim_%7BN+%5Crightarrow+%5Cinfty%7D+%5Csum_%7Bn%3D1%7D%5EN+%5Cfrac%7B1%7D%7Bn%7D+-+ln%28N%29+%5Capprox+0.577215664...++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='\gamma = lim_{N \rightarrow \infty} \sum_{n=1}^N \frac{1}{n} - ln(N) \approx 0.577215664...  ' title='\gamma = lim_{N \rightarrow \infty} \sum_{n=1}^N \frac{1}{n} - ln(N) \approx 0.577215664...  ' class='latex' /></p>
<p>And this lets us bring everything together nicely,</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=F+%3D+%5Cint_%7B0%7D%5E%7B1%7D+frac%28%5Cfrac%7B1%7D%7Bx%7D%29+dx+%3D+1+-+%5Cgamma++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='F = \int_{0}^{1} frac(\frac{1}{x}) dx = 1 - \gamma  ' title='F = \int_{0}^{1} frac(\frac{1}{x}) dx = 1 - \gamma  ' class='latex' /></p>
<p>An interesting calculation.</p>
<p>And now, I must study.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/foxmath.wordpress.com/496/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/foxmath.wordpress.com/496/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/foxmath.wordpress.com/496/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/foxmath.wordpress.com/496/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/foxmath.wordpress.com/496/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/foxmath.wordpress.com/496/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/foxmath.wordpress.com/496/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/foxmath.wordpress.com/496/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/foxmath.wordpress.com/496/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/foxmath.wordpress.com/496/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foxmath.wordpress.com&blog=2434257&post=496&subd=foxmath&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://foxmath.wordpress.com/2009/07/06/questionable-integration-an-interesting-calculation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ba88256294685a37696941d5205eaef?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Fox</media:title>
		</media:content>

		<media:content url="http://foxmath.files.wordpress.com/2009/07/fracx.jpg" medium="image">
			<media:title type="html">FracX</media:title>
		</media:content>

		<media:content url="http://foxmath.files.wordpress.com/2009/07/frac1overx.jpg" medium="image">
			<media:title type="html">Frac1OverX</media:title>
		</media:content>
	</item>
		<item>
		<title>Real Number Picking: An Interesting Calculation</title>
		<link>http://foxmath.wordpress.com/2009/07/05/real-number-picking-an-interesting-calculation/</link>
		<comments>http://foxmath.wordpress.com/2009/07/05/real-number-picking-an-interesting-calculation/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 06:30:53 +0000</pubDate>
		<dc:creator>Fox</dc:creator>
				<category><![CDATA[Maths]]></category>

		<guid isPermaLink="false">http://foxmath.wordpress.com/?p=490</guid>
		<description><![CDATA[Let x be a random real number, uniformly distributed between 0 and 1. For sanity&#8217;s sake, and since it does not effect the calculations, we&#8217;ll say that x is never 0.
x defined as such, it has a very nice property. Given two numbers a and b in the interval (0,1], assuming that a is less [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foxmath.wordpress.com&blog=2434257&post=490&subd=foxmath&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Let x be a random real number, uniformly distributed between 0 and 1. For sanity&#8217;s sake, and since it does not effect the calculations, we&#8217;ll say that x is never 0.</p>
<p>x defined as such, it has a very nice property. Given two numbers a and b in the interval (0,1], assuming that a is less than b, the probability that a &lt; x &lt; b is given by P(a &lt; x &lt; b) = b &#8211; a. For example, the probability that x is less than 0.5 is clearly 0.5, since half the interval is less than 0.5 &#8211; but also because P(0 &lt; x &lt; 1/2) = 1/2 &#8211; 0 = 1/2. This is me trying to explain probability theory, without explaining probability theory.</p>
<p>Given such a random number x, let [1/x] be 1/x rounded to the nearest integer. Now, the question is this: What is the probability that [1/x] is even?</p>
<p>To calculate the probability of something, we first have to break it down into a convenient set of events. If [1/x] is even, then one of the following must happen: It must equal 0, or 2, or 4, or &#8230; any even integer.</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=P+%3D+P%28+%5B%5Cfrac%7B1%7D%7Bx%7D%5D+%3D+0+%29+%2B+P%28+%5B%5Cfrac%7B1%7D%7Bx%7D%5D+%3D+2+%29+%2B+...+%3D++%5Csum_%7Bn+%3D+0%7D%5E%5Cinfty+P%28+%5B%5Cfrac%7B1%7D%7Bx%7D%5D+%3D+2%2An+%29++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='P = P( [\frac{1}{x}] = 0 ) + P( [\frac{1}{x}] = 2 ) + ... =  \sum_{n = 0}^\infty P( [\frac{1}{x}] = 2*n )  ' title='P = P( [\frac{1}{x}] = 0 ) + P( [\frac{1}{x}] = 2 ) + ... =  \sum_{n = 0}^\infty P( [\frac{1}{x}] = 2*n )  ' class='latex' /></p>
<p>So, let&#8217;s analyze those terms. First, it&#8217;s interesting to note that on x in (0,1], 1/x minimizes at 1. Thus, 1/x can never be rounded to 0. We&#8217;ve simplified our computation, at the very least by a single term.</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=P+%3D+%5Csum_%7Bn+%3D+1%7D%5E%5Cinfty+P%28+%5B%5Cfrac%7B1%7D%7Bx%7D%5D+%3D+2%2An+%29++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='P = \sum_{n = 1}^\infty P( [\frac{1}{x}] = 2*n )  ' title='P = \sum_{n = 1}^\infty P( [\frac{1}{x}] = 2*n )  ' class='latex' /></p>
<p>Second, what does it take for [1/x] = 2*n? 1/x must be within a half of 2*n, on either side. In other words, an equivalent event is 2*n &#8211; 1/2 &lt; 1/x &lt; 2*n + 1/2. If 1/x is in that range, it will be rounded to 2*n.</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=P+%3D+%5Csum_%7Bn+%3D+1%7D%5E%5Cinfty+P%28+2%2An+-+%5Cfrac%7B1%7D%7B2%7D+%3C+%5Cfrac%7B1%7D%7Bx%7D+%3C+2%2An+%2B+%5Cfrac%7B1%7D%7B2%7D+%29++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='P = \sum_{n = 1}^\infty P( 2*n - \frac{1}{2} &lt; \frac{1}{x} &lt; 2*n + \frac{1}{2} )  ' title='P = \sum_{n = 1}^\infty P( 2*n - \frac{1}{2} &lt; \frac{1}{x} &lt; 2*n + \frac{1}{2} )  ' class='latex' /></p>
<p>Taking the inequality and inverting it, we can re-express it in terms of x by itself &#8211; convenient, given our previous discussion of inequalities involving x.</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=P+%3D+%5Csum_%7Bn+%3D+1%7D%5E%5Cinfty+P%28+%5Cfrac%7B1%7D%7B2%2An+-+%5Cfrac%7B1%7D%7B2%7D%7D+%3E+x+%3E+%5Cfrac%7B1%7D%7B2%2An+%2B+%5Cfrac%7B1%7D%7B2%7D%7D+%29++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='P = \sum_{n = 1}^\infty P( \frac{1}{2*n - \frac{1}{2}} &gt; x &gt; \frac{1}{2*n + \frac{1}{2}} )  ' title='P = \sum_{n = 1}^\infty P( \frac{1}{2*n - \frac{1}{2}} &gt; x &gt; \frac{1}{2*n + \frac{1}{2}} )  ' class='latex' /></p>
<p>We can now use the stated formula for P(a &lt; x &lt; b) on this interval!</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=P+%3D+%5Csum_%7Bn+%3D+1%7D%5E%5Cinfty+%5Cfrac%7B1%7D%7B2%2An+-+%5Cfrac%7B1%7D%7B2%7D%7D+-+%5Cfrac%7B1%7D%7B2%2An+%2B+%5Cfrac%7B1%7D%7B2%7D%7D+%29++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='P = \sum_{n = 1}^\infty \frac{1}{2*n - \frac{1}{2}} - \frac{1}{2*n + \frac{1}{2}} )  ' title='P = \sum_{n = 1}^\infty \frac{1}{2*n - \frac{1}{2}} - \frac{1}{2*n + \frac{1}{2}} )  ' class='latex' /></p>
<p>And from there, the rest is algebra.</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=P+%3D+%5Csum_%7Bn+%3D+1%7D%5E%5Cinfty+%5Cfrac%7B2%7D%7B4%2An+-+1%7D+-+%5Cfrac%7B2%7D%7B4%2An+%2B+1%7D+%29++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='P = \sum_{n = 1}^\infty \frac{2}{4*n - 1} - \frac{2}{4*n + 1} )  ' title='P = \sum_{n = 1}^\infty \frac{2}{4*n - 1} - \frac{2}{4*n + 1} )  ' class='latex' /></p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=P+%3D+2%2A%28%5Cfrac%7B1%7D%7B3%7D+-+%5Cfrac%7B1%7D%7B5%7D+%2B+%5Cfrac%7B1%7D%7B7%7D+-+%5Cfrac%7B1%7D%7B9%7D+%2B+%5Cfrac%7B1%7D%7B11%7D+-+...%29++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='P = 2*(\frac{1}{3} - \frac{1}{5} + \frac{1}{7} - \frac{1}{9} + \frac{1}{11} - ...)  ' title='P = 2*(\frac{1}{3} - \frac{1}{5} + \frac{1}{7} - \frac{1}{9} + \frac{1}{11} - ...)  ' class='latex' /></p>
<p>I might&#8217;ve lied when I said it was simple algebra. The above series of fractions, alternating in sign, and with numerators of the odd numbers, is very close to being the <a href="http://en.wikipedia.org/wiki/Leibniz_formula_for_pi">Leibniz, or Gregory, formula for Pi</a>.</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=1+-+%5Cfrac%7B1%7D%7B3%7D+%2B+%5Cfrac%7B1%7D%7B5%7D+-+%5Cfrac%7B1%7D%7B7%7D+%2B+...+%3D+%5Cfrac%7B%5Cpi%7D%7B4%7D++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='1 - \frac{1}{3} + \frac{1}{5} - \frac{1}{7} + ... = \frac{\pi}{4}  ' title='1 - \frac{1}{3} + \frac{1}{5} - \frac{1}{7} + ... = \frac{\pi}{4}  ' class='latex' /></p>
<p>Applying that, we can reduce our summation, in a most incredible way,</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=P+%3D+2%2A%281+-+%5Cfrac%7B%5Cpi%7D%7B4%7D%29++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='P = 2*(1 - \frac{\pi}{4})  ' title='P = 2*(1 - \frac{\pi}{4})  ' class='latex' /></p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=P+%3D+2+-+%5Cfrac%7B%5Cpi%7D%7B2%7D++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='P = 2 - \frac{\pi}{2}  ' title='P = 2 - \frac{\pi}{2}  ' class='latex' /></p>
<p>How about that? Pi showing up, in interesting places, yet again. I invite you to try to explain, heuristically, what that pi is doing here, because it is certainly there, no mistake. A quick experiment on a million random numbers gives an experimental probability of 0.49224. The above calculated value is approximately 0.429204. Very good agreement!</p>
<p>And, an interesting calculation.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/foxmath.wordpress.com/490/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/foxmath.wordpress.com/490/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/foxmath.wordpress.com/490/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/foxmath.wordpress.com/490/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/foxmath.wordpress.com/490/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/foxmath.wordpress.com/490/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/foxmath.wordpress.com/490/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/foxmath.wordpress.com/490/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/foxmath.wordpress.com/490/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/foxmath.wordpress.com/490/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foxmath.wordpress.com&blog=2434257&post=490&subd=foxmath&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://foxmath.wordpress.com/2009/07/05/real-number-picking-an-interesting-calculation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ba88256294685a37696941d5205eaef?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Fox</media:title>
		</media:content>
	</item>
		<item>
		<title>Fourth of July, and the State of Mathematics</title>
		<link>http://foxmath.wordpress.com/2009/07/04/fourth-of-july-and-the-state-of-mathematics/</link>
		<comments>http://foxmath.wordpress.com/2009/07/04/fourth-of-july-and-the-state-of-mathematics/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 22:01:56 +0000</pubDate>
		<dc:creator>Fox</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Maths]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://foxmath.wordpress.com/?p=488</guid>
		<description><![CDATA[With everything that&#8217;s been going on lately, first Farrah Fawcett dying, then Michael Jackson died, then Billy Mays. Then Jeff Goldblum died, then Sarah Palin died. And Michael Jackson is still dead!
I know you must be thinking &#8211; Where did he go? Where has that Fox run off to? Where is that fantastic Mr. Fox?
In [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foxmath.wordpress.com&blog=2434257&post=488&subd=foxmath&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>With everything that&#8217;s been going on lately, first Farrah Fawcett dying, then Michael Jackson died, then Billy Mays. Then Jeff Goldblum died, then Sarah Palin died. And Michael Jackson is still dead!</p>
<p>I know you must be thinking &#8211; Where did he go? Where has that Fox run off to? Where is that fantastic Mr. Fox?</p>
<p>In what is not a non-sequitur, Roald Dahl hosted a TV show in the early 1960&#8217;s called Way Out. Sci-Fi, Fantasy, Horror, it was very much in the spirit of The Twilight Zone. I remember it most clearly for the opening sequence, which involved a hand coming up out of a grave and bursting into flames.</p>
<p>Actually, I don&#8217;t remember that at all &#8211; but I do remember my father describing that to me. Or, at the very least, that&#8217;s how I remember him describing it to me. One of those many things he&#8217;s said, almost in passing &#8211; but it all adds up over time. Building this image of a time, a world. Important things, small things. James Burke. TV shows. People, places. The Wounded Lion statue in Switzerland. So many things.</p>
<p>Important things.</p>
<p>And, I meant to write something about that on Father&#8217;s Day, and didn&#8217;t. Sorry, DadFox. You are best.</p>
<p>Of course, I&#8217;ve been meaning to write so much lately.</p>
<p>Which in turn begs the question &#8211; just what is it I -have- been doing?</p>
<p>I&#8217;m still in Pittsburgh right now, finishing off some math for the summer. Most notably a course in Calculus of Variations &#8211; which is some very interesting and exciting stuff &#8211; and a research project/experiment in using Monte Carlo techniques (as well as the Cross-Entropy Method, new exciting stuff) to try and solve &#8216;hard&#8217; graph theory problems. I will probably write about some of that, soon enough.</p>
<p>But, I would like to get back into the habit of writing. There are so many interesting things that need to be shared and explored.</p>
<p>For instance, consider the following game. Player A and Player B both have a die, and they are rolling them, each with a goal in mind. Player A wants to roll a 1, and then another 1, in order. Player B wants to roll a 1, and then a 2, in that order. They will continue to roll until they get their sequence, 11 and 12 respectively. The winner is whoever gets their sequence first. The question is &#8211; who is more likely to win? The obvious answer is that they are equally likely. Various arguments can be made, for example that the probability of rolling a 1 is equal to the probability of rolling a 2. However, since I&#8217;m asking the question, you should assume the obvious answer is wrong &#8211; and in fact, it is. On average, Player B needs 35 rolls to win, but Player A needs 42. Another reason I like this problem, aside from it being non-obvious, is that the answer is (in part, at least) 42.</p>
<p>One thing I&#8217;ve been thinking about a lot lately &#8211; and I think is a good starting point to get back into writing about maths &#8211; is this: Just what is math? I&#8217;ve been &#8216;doing math&#8217; for an awfully long time, and I&#8217;m still not sure I know what it is. I know I&#8217;ve gone through phases of knowing, thinking I&#8217;ve known &#8230; but certainty always fades, leaving the question, &#8220;But what do you <em>doooooo</em>?&#8221;</p>
<p>At first, math is taught as a tool. Basic arithmetic. Algebra. Calculus. Tools to solve certain kinds of problems. To answer certain kinds of questions.  How many sheep to I have? How many sheep do I need? What is the interest on this investment going to be? At this rate of increase, how long until our coastal cities are submerged in water? How much fuel do I need to put a man on the moon?</p>
<p>But, as you continue on &#8211; it&#8217;s the questions themselves that become important. Asked in slightly different ways, perhaps &#8211; what if we want to land on Mars, instead of the moon? What is the square root of negative sheep? Sometimes, the questions come, almost naturally, from the math itself &#8211; given a function, is there another function that has the first as a derivative? This leads, naturally, to the entirety of differential equations. Again, more tools to answer more questions. But, the questions continue &#8211; even in a branch of math as well studied as differential equations, it&#8217;s well known that most interesting differential equations cannot be solved analytically at all. Questions questions questions &#8211; always new questions. Bring your differential equation tools to bear on this little gem, which I may discuss sometime. I dare you.</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=y%27%27%28x%29+%3D+2%2Ay%28x%29%2Ae%5E%7By%27%28x%29%7D%2C+y%280%29+%3D+0%2C+y%281%29+%3D+1++&#038;bg=ffffff&#038;fg=000000&#038;s=2' alt='y&#039;&#039;(x) = 2*y(x)*e^{y&#039;(x)}, y(0) = 0, y(1) = 1  ' title='y&#039;&#039;(x) = 2*y(x)*e^{y&#039;(x)}, y(0) = 0, y(1) = 1  ' class='latex' /></p>
<p>The questions come faster than our ability to answer them, for the most part. Higher level math seems to be, from what I can tell, developing new ways of thinking about these questions &#8211; new tools, and frameworks to phrase them in, to try to get at an answer. But these new tools create more questions still.</p>
<p>After a while, it seems as though what math is isn&#8217;t the tools, it isn&#8217;t the arithmetic or the formulae, it&#8217;s the questions themselves. But, I feel as though it&#8217;s a symptom of something larger. The mere act of asking a question is a product of thinking about something in a certain way &#8211; expressing it in a certain framework. Processing an object, concept, or idea, in a way that allows the question to be asked.</p>
<p>And that, I think, is the core of mathematics. It&#8217;s a way of thinking about the world and processing it. And in my mind, it&#8217;s a fundamentally scientific way of thinking. Testing, exploring, and questioning.</p>
<p>A drunken physicist once told me that I wasn&#8217;t a scientist &#8211; I was a philosopher! Gauss, however, declared math to be the Queen of Sciences. I imagine it&#8217;s clear who I agree with.</p>
<p>But, at this point, I have veered so far off track it should be clear &#8211; I don&#8217;t know what math is. There is something I am very excited about. It&#8217;s &#8230; it&#8217;s thinking, it&#8217;s exploring. It&#8217;s fundamentally creative, inquisitive, and incredibly human. I identify it with math, but, as I think we can all agree, anyone who declares math to be anyone single thing is probably wrong.</p>
<p>I do not  know what math is &#8211; but I will continue to do whatever it is I <em>do</em> do, because I have an excellent time doing it.</p>
<p>Next up! When I get a chance, several interesting calculations.</p>
<p>Happy Fourth of July!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/foxmath.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/foxmath.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/foxmath.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/foxmath.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/foxmath.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/foxmath.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/foxmath.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/foxmath.wordpress.com/488/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/foxmath.wordpress.com/488/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/foxmath.wordpress.com/488/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=foxmath.wordpress.com&blog=2434257&post=488&subd=foxmath&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://foxmath.wordpress.com/2009/07/04/fourth-of-july-and-the-state-of-mathematics/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ba88256294685a37696941d5205eaef?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Fox</media:title>
		</media:content>
	</item>
	</channel>
</rss>