<?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>squareCircleZ &#187; Mathematics</title>
	<atom:link href="http://www.squarecirclez.com/blog/category/mathematics/feed" rel="self" type="application/rss+xml" />
	<link>http://www.squarecirclez.com/blog</link>
	<description>Mathematics, learning, computing, travel - and whatever...</description>
	<lastBuildDate>Mon, 08 Mar 2010 02:48:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Lines of primes</title>
		<link>http://www.squarecirclez.com/blog/lines-of-primes/4260</link>
		<comments>http://www.squarecirclez.com/blog/lines-of-primes/4260#comments</comments>
		<pubDate>Mon, 08 Mar 2010 02:48:23 +0000</pubDate>
		<dc:creator>zac</dc:creator>
				<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://www.squarecirclez.com/blog/?p=4260</guid>
		<description><![CDATA[<a href="http://www.squarecirclez.com/blog/lines-of-primes/4260"><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/03/primes.gif" alt="" title="primes" width="128" height="110" class="imgRt" /></a>Prime numbers seem to be randomly distributed &#8212; but perhaps there are patterns after all.


Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/largest-known-prime-243112609-1/2714' rel='bookmark' title='Permanent Link: Largest known prime: 2^43,112,609 &#8211; 1'>Largest known prime: 2^43,112,609 &#8211; 1</a></li>
<li><a href='http://www.squarecirclez.com/blog/friday-math-movie-math-illuminated/1156' rel='bookmark' title='Permanent Link: Friday Math Movie &#8211; Math Illuminated'>Friday Math Movie &#8211; Math Illuminated</a></li>
<li><a href='http://www.squarecirclez.com/blog/message-to-g8-environment-ministers/578' rel='bookmark' title='Permanent Link: Message to G8 Environment Ministers'>Message to G8 Environment Ministers</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Prime numbers have fascinated mathematicians for centuries. A prime number has exactly 2 factors &#8211; one and itself. The only even prime is 2, the rest are all odd. </p>
<p>The primes less than 100 are as follows: </p>
<p>2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97</p>
<p>There doesn&#8217;t appear to be a pattern in the distribution of primes.</p>
<p>How about the &quot;gap&quot; (spacing) between the primes? Is there a pattern in that?</p>
<p>1	2	2	4	2	4	2	4	6	2	6	4	2	4	6	6	2	6	4	2	6	4	6	8</p>
<p>There doesn&#8217;t appear to be a pattern in the gaps, either.</p>
<h3>Spiraling   </h3>
<p>Stanislaw Ulam was a Polish-American mathematician who was involved in the Manhattan Project during World War II.</p>
<p>One day he was bored in a meeting and  began to write numbers in a spiral. He started like this, moving in a clockwise direction. </p>
<table cellpadding="5" cellspacing="0">
<tr height="17">
<td>1 &rarr;</td>
<td>2 &darr;</td>
</tr>
<tr height="17">
<td>4 &larr; </td>
<td>3</td>
</tr>
</table>
<p>The next round continued the &quot;spiraling&quot; pattern, as follows. </p>
<table cellpadding="5" cellspacing="0">
<tr height="17">
<td>7</td>
<td>8</td>
<td>9</td>
<td>10</td>
</tr>
<tr height="17">
<td>6</td>
<td>1</td>
<td>2</td>
<td>11</td>
</tr>
<tr height="17">
<td>5</td>
<td>4</td>
<td>3</td>
<td>12</td>
</tr>
</table>
<p>He kept going (it must have been a long meeting),  then highlighted the prime numbers and found something interesting.</p>
<table cellspacing="0" cellpadding="5">
<tr height="17">
<td height="17"  style="background-color:#FFCC99">73</td>
<td>74</td>
<td>75</td>
<td>76</td>
<td>77</td>
<td>78</td>
<td style="background-color:#FFCC99">79</td>
<td>80</td>
<td>81</td>
<td>82</td>
</tr>
<tr height="17">
<td height="17">72</td>
<td style="background-color:#FFCC99">43</td>
<td>44</td>
<td>45</td>
<td>46</td>
<td style="background-color:#FFCC99">47</td>
<td>48</td>
<td>49</td>
<td>50</td>
<td style="background-color:#FFCC99">83</td>
</tr>
<tr height="17">
<td height="17" style="background-color:#FFCC99">71</td>
<td>42</td>
<td>21</td>
<td>22</td>
<td style="background-color:#FFCC99">23</td>
<td>24</td>
<td>25</td>
<td>26</td>
<td style="background-color:#FFCC99">51</td>
<td>84</td>
</tr>
<tr height="17">
<td height="17">70</td>
<td style="background-color:#FFCC99">41</td>
<td>20</td>
<td style="background-color:#FFCC99">7</td>
<td>8</td>
<td>9</td>
<td>10</td>
<td>27</td>
<td>52</td>
<td>85</td>
</tr>
<tr height="17">
<td height="17">69</td>
<td>40</td>
<td style="background-color:#FFCC99">19</td>
<td>6</td>
<td>1</td>
<td style="background-color:#FFCC99">2</td>
<td style="background-color:#FFCC99">11</td>
<td>28</td>
<td style="background-color:#FFCC99">53</td>
<td>86</td>
</tr>
<tr height="17">
<td height="17">68</td>
<td>39</td>
<td>18</td>
<td style="background-color:#FFCC99">5</td>
<td>4</td>
<td style="background-color:#FFCC99">3</td>
<td>12</td>
<td>29</td>
<td>54</td>
<td>87</td>
</tr>
<tr height="17">
<td height="17" style="background-color:#FFCC99">67</td>
<td>38</td>
<td style="background-color:#FFCC99">17</td>
<td>16</td>
<td>15</td>
<td>14</td>
<td style="background-color:#FFCC99">13</td>
<td>30</td>
<td>55</td>
<td>88</td>
</tr>
<tr height="17">
<td height="17">66</td>
<td style="background-color:#FFCC99">37</td>
<td>36</td>
<td>35</td>
<td>34</td>
<td>33</td>
<td>32</td>
<td style="background-color:#FFCC99">31</td>
<td>56</td>
<td style="background-color:#FFCC99">89</td>
</tr>
<tr height="17">
<td height="17">65</td>
<td>64</td>
<td>63</td>
<td>62</td>
<td style="background-color:#FFCC99">61</td>
<td>60</td>
<td style="background-color:#FFCC99">59</td>
<td>58</td>
<td style="background-color:#FFCC99">57</td>
<td>90</td>
</tr>
<tr height="17">
<td height="17">100</td>
<td>99</td>
<td>98</td>
<td style="background-color:#FFCC99">97</td>
<td>96</td>
<td>95</td>
<td>94</td>
<td>93</td>
<td>92</td>
<td style="background-color:#FFCC99">91</td>
</tr>
</table>
<p>Many of the  primes appear to line up when arranged in such a sprial.</p>
<p>Let&#8217;s go much bigger and see what happens. We observe there are many places where the primes form line segments, mostly at 45&deg;, but sometimes horizontal and vertical.</p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/03/prime-distribution.gif" alt="prime distribution - spiraling" width="345" height="271" /></p>
<p>You can see an <a href="http://www.utm.edu/staff/caldwell/book/images/UlamSpiral.png">even bigger display</a>, courtesy of <a href="http://www.primecurios.com/">Prime Curios</a>.</p>
<p>What I found interesting in the large picture is where primes are <strong>not</strong> &#8211; there are distinct blocks and patterns of white space where no primes occur. </p>
<p>This spiral appeared on the cover of Scientific American in March 1964 and continues to generate research interest to this day.</p>
<p>Check out more such prime number information in the book <a href="http://www.primecurios.com/">Prime Curios! The Dictionary of Prime Number Trivia</a>&nbsp; by Chris Caldwell and G. L. Honaker, Jr. </p>
<h3>Why do we care about primes?</h3>
<p>Apart from many other things, prime numbers are vital in the development of encryption algorithms, used in generating secure Internet transactions. </p>


<p>Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/largest-known-prime-243112609-1/2714' rel='bookmark' title='Permanent Link: Largest known prime: 2^43,112,609 &#8211; 1'>Largest known prime: 2^43,112,609 &#8211; 1</a></li>
<li><a href='http://www.squarecirclez.com/blog/friday-math-movie-math-illuminated/1156' rel='bookmark' title='Permanent Link: Friday Math Movie &#8211; Math Illuminated'>Friday Math Movie &#8211; Math Illuminated</a></li>
<li><a href='http://www.squarecirclez.com/blog/message-to-g8-environment-ministers/578' rel='bookmark' title='Permanent Link: Message to G8 Environment Ministers'>Message to G8 Environment Ministers</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.squarecirclez.com/blog/lines-of-primes/4260/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Financial math &#8211; how Citibank overcharges</title>
		<link>http://www.squarecirclez.com/blog/financial-math-how-citibank-overcharges/4246</link>
		<comments>http://www.squarecirclez.com/blog/financial-math-how-citibank-overcharges/4246#comments</comments>
		<pubDate>Mon, 01 Mar 2010 04:58:05 +0000</pubDate>
		<dc:creator>zac</dc:creator>
				<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://www.squarecirclez.com/blog/?p=4246</guid>
		<description><![CDATA[Credit card debt needs to be paid sometime. See how people get into hot water with fees and outrageous interest rates.


Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/online-banking-usability/292' rel='bookmark' title='Permanent Link: Online banking usability'>Online banking usability</a></li>
<li><a href='http://www.squarecirclez.com/blog/another-misleading-credit-card-advertisement/1365' rel='bookmark' title='Permanent Link: Another misleading credit card advertisement'>Another misleading credit card advertisement</a></li>
<li><a href='http://www.squarecirclez.com/blog/financial-literacy-for-students/1375' rel='bookmark' title='Permanent Link: Financial literacy for students'>Financial literacy for students</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Interest rates are starting to edge up as economic conditions improve.</p>
<p>But even in the traditionally high-interest rate countries (like Australia and New Zealand), banks lend at around 7 to 8% currently, while in much of the world, interest rates are at, or very near, 0%.</p>
<p>So it&#8217;s extraordinary (to me) how banks are allowed to charge such whopping amounts on credit card debt.</p>
<p>Here&#8217;s an excerpt from <a href="http://www.citibank.com.sg/SGGCB/APPS/portal/loadPopup.do?path=/popup/cc/minincome.htm">Citibank Singapore&#8217;s credit card fine print</a> (&#8220;RC&#8221; stands for &#8220;Ready Credit&#8221;).</p>
<p>I&#8217;ve highlighted some of the charges you&#8217;d be up for if you are (heaven forbid) just 1 day late with your payment.</p>
<p><b>Additional Information Box for Credit Card &amp; RC</b></p>
<table class="postTable">
<tr>
<td valign="middle" width="30%"><b>Over Limit Fee</b><br />
(Not applicable to Citibank Personal Business Gold Visa Card)</td>
<td valign="middle">If the current balance exceeds your limit, an <strong>over limit fee of $40</strong> shall be charged</td>
</tr>
<tr>
<td valign="middle" colspan="2"><b>CITIBANK CREDIT CARD</b></td>
</tr>
<tr>
<td valign="middle" width="30%">Repayment Grace Period</td>
<td valign="middle">25 days from the date of statement of accounts</td>
</tr>
<tr>
<td valign="middle" width="30%">Interest Charges</td>
<td valign="middle">
<p>The effective interest rate applicable will be:</p>
<p>a) the prevailing product interest rate of 2% per month (<strong>24% per annum</strong>); or</p>
<p>b) a promotional rate of 1.5% per month (18% per annum) which may be extended based on the good conduct of your account. Notwithstanding the above, <strong>Citibank reserves the right to cancel/vary this promotional rate at any time</strong> (including if your account becomes delinquent); or</p>
<p>c) an interest rate of 2.25% per month (<strong>27% per annum</strong>) in the event your account is twice or more past due <sup> </sup>within the last six months.  Citibank reserves the right to apply this interest rate. Your interest rate will revert to the prevailing product interest rate, as soon as your account is no longer twice or more past due within the last six months.<br />
Minimum interest charge &#8211; S$3</p>
</td>
</tr>
<tr>
<td valign="middle" width="30%">Cash Advance Charges</td>
<td valign="middle"><strong>S$15 or 5% of amount drawn, whichever is higher</strong></td>
</tr>
<tr>
<td valign="middle" width="30%">Late Fees</td>
<td valign="middle">
<p>a)  a <strong>fixed charge of S$50</strong>; and</p>
<p>b) a <strong>late payment interest charge</strong> computed in a manner similar to interest charges at a rate of <strong>0.1875%, 0.25% or 0.28125%</strong> per month based on an effective interest rate of <strong>18%, 24% or 27%</strong> per annum respectively, as applicable on your account.  The late payment interest charge will be shown in the monthly statement of account as part of the interest charge. </p>
</td>
</tr>
<tr>
<td valign="middle" width="30%">Minimum Payment</td>
<td valign="middle">1% of the current balance, plus the interest charges (including <strong>interest/service charges</strong> for any recurring/instalment payments), plus late payment charge or S$50 <strong>whichever is greater</strong>, plus <strong>any overdue amount in excess of the combined credit limit</strong> (if applicable) </td>
</tr>
</table>
<p>The kicker is they are allowed to vary the conditions as they go along.</p>
<p>And did you know if you have loans with other institutions, and you default with them, you can be charged a higher interest rate on this card? </p>
<p>The high interest rates are justified by the banks on the grounds they are lending to people who pose some risk. This is certainly the case in the US where it is still easy to get a credit card. In the Singapore case, there are income limits (normally S$30,000 per year fro locals and $60000 per year for foreigners) before you can apply for a card.</p>
<p>There are thousands of people in the US who are now owing more than they borrowed (using their credit cards) and the interest (and fees) are growing so fast, it&#8217;s sending them bankrupt, especially as the Global Financial Crisis results in job losses.</p>
<p>Oh, and what was the main cause of the financial crisis? Lending money to people who couldn&#8217;t afford it, and didn&#8217;t understand the risks, of course.</p>
<p>It used to be simple. Banks could only lend to people who had the means to pay it off and could secure the loan via some mortgage (this means if you stopped paying, the banks could sell your house.) It reduced excessive and risky lending. And I doubt we&#8217;ll see that situation again anytime soon.</p>
<p>To be fair, it&#8217;s not just Citibank. All credit card providers do this because they can, giving us a US economy with around 1 trillion in credit card debt.</p>
<p>See Frontline&#8217;s <a href="http://video.pbs.org/video/1342007771/chapter/4/">The Card Game</a>, from PBS.</p>
<p>Be careful what you sign.</p>


<p>Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/online-banking-usability/292' rel='bookmark' title='Permanent Link: Online banking usability'>Online banking usability</a></li>
<li><a href='http://www.squarecirclez.com/blog/another-misleading-credit-card-advertisement/1365' rel='bookmark' title='Permanent Link: Another misleading credit card advertisement'>Another misleading credit card advertisement</a></li>
<li><a href='http://www.squarecirclez.com/blog/financial-literacy-for-students/1375' rel='bookmark' title='Permanent Link: Financial literacy for students'>Financial literacy for students</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.squarecirclez.com/blog/financial-math-how-citibank-overcharges/4246/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The Gini Coefficient of wealth distribution</title>
		<link>http://www.squarecirclez.com/blog/the-gini-coefficient-of-wealth-distribution/4187</link>
		<comments>http://www.squarecirclez.com/blog/the-gini-coefficient-of-wealth-distribution/4187#comments</comments>
		<pubDate>Wed, 24 Feb 2010 05:48:39 +0000</pubDate>
		<dc:creator>zac</dc:creator>
				<category><![CDATA[Mathematics]]></category>
		<category><![CDATA[Travel & Culture]]></category>

		<guid isPermaLink="false">http://www.squarecirclez.com/blog/?p=4187</guid>
		<description><![CDATA[<a href="http://www.squarecirclez.com/blog/the-gini-coefficient-of-wealth-distribution/4187"><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/Gini_coefficient_th1.gif" alt="Gini Coefficient" title="Gini Coefficient" width="128" height="129" class="imgRt" /></a>One way to measure income equality is the Gini Coefficient.


Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/the-intmath-newsletter-functions-gini-coefficient-math-anxiety/4215' rel='bookmark' title='Permanent Link: IntMath Newsletter: Functions, Gini Coefficient, math anxiety'>IntMath Newsletter: Functions, Gini Coefficient, math anxiety</a></li>
<li><a href='http://www.squarecirclez.com/blog/database-of-happiness/1080' rel='bookmark' title='Permanent Link: Database of Happiness'>Database of Happiness</a></li>
<li><a href='http://www.squarecirclez.com/blog/singapores-population-bubble/808' rel='bookmark' title='Permanent Link: Singapore&#8217;s population bubble'>Singapore&#8217;s population bubble</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In a &#8220;perfect&#8221; society, everyone would share wealth (or income) evenly. (Don&#8217;t worry &#8211; this is an article about math, not communism!)</p>
<p>The <strong>Gini Coefficient</strong> is one way to measure how evenly the income (or wealth) is distributed throughout a country. </p>
<p>The Gini Coefficient is calculated as follows. We find out the income of all the people in a country and then express this information as a cumulative percentage of  people against the cumulative share of income earned. This gives us a<strong> Lorenz Curve</strong> which typically looks something like the following. </p>
<div class="imgCenter"><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/Gini_coefficient2.gif" alt="Gini Coefficient" title="Gini_coefficient" width="350" height="396" class="alignnone size-full wp-image-4188" /><br />
Image Credit: <a href="http://en.wikipedia.org/wiki/Gini_coefficient">Wikipedia</a> </div>
<p>In plain English, the graph above indicates the proportion of the income going to the poorest people, middle-income people and richest people.</p>
<p>There will always be rich and poor, but we are interested in how <strong>evenly</strong> wealth is distributed and most governments put effort into keeping this coefficient as low as possible.</p>
<p>The Gini Coefficient ranges between 0 and 1 (or it can also be expressed as a number from 0 to 100) and is given by the ratio of the areas:</p>
<p><img src="http://www.intmath.com/cgi-bin/mathtex.cgi?\mathrm {Gini Coefficient} = \dfrac{A}{A+B}" alt="Gini Coefficient" width="179" height="34" /> </p>
<p>If A = 0, it means the Lorenz Curve is actually the <strong>Line of Equality</strong>. In this case, the Gini Coefficient is 0 and it means there is &quot;perfect&quot; distribution of income (everyone earns the same amount).</p>
<p>If A is a very large area (making B very small), then the Gini Coefficient is large (almost 1) and it means there is very uneven distribution of income. Countries with a high Gini Coefficient are more likely to become <strong>unstable</strong>, since there is a large mass of poor people who are jealous of the small number of rich people.  </p>
<h3>What Does it Mean?  </h3>
<p>Let&#8217;s try to understand the above graph.</p>
<p>For example, say we have 10 people in a village and the income for the village is $100 per day. If every person shares this income evenly, they get $10 each per day.</p>
<p>So the income distribution would be as follows. (&quot;Cumulative&quot; just means add up the number you have so far for each step.) </p>
<table class="postTable">
<tr>
<th scope="col">Person</th>
<th scope="col">Proportion of population (%) </th>
<th scope="col">Cumulative proportion of population (%) </th>
<th scope="col">Income (%) </th>
<th scope="col">Cumulative income (%) </th>
</tr>
<tr>
<td>A</td>
<td>10%</td>
<td>10%</td>
<td>10%</td>
<td>10%</td>
</tr>
<tr>
<td>B</td>
<td>10%</td>
<td>20%</td>
<td>10%</td>
<td>20%</td>
</tr>
<tr>
<td>C</td>
<td>10%</td>
<td>30%</td>
<td>10%</td>
<td>30%</td>
</tr>
<tr>
<td>D</td>
<td>10%</td>
<td>40%</td>
<td>10%</td>
<td>40%</td>
</tr>
<tr>
<td>E</td>
<td>10%</td>
<td>50%</td>
<td>10%</td>
<td>50%</td>
</tr>
<tr>
<td>F</td>
<td>10%</td>
<td>60%</td>
<td>10%</td>
<td>60%</td>
</tr>
<tr>
<td>G</td>
<td>10%</td>
<td>70%</td>
<td>10%</td>
<td>70%</td>
</tr>
<tr>
<td>H</td>
<td>10%</td>
<td>80%</td>
<td>10%</td>
<td>80%</td>
</tr>
<tr>
<td>I</td>
<td>10%</td>
<td>90%</td>
<td>10%</td>
<td>90%</td>
</tr>
<tr>
<td>J</td>
<td>10%</td>
<td>100%</td>
<td>10%</td>
<td>100%</td>
</tr>
</table>
<p>So for this society with perfectly-distributed income, we could draw a graph of the <strong>cumulative proportuion of population </strong>(on the horizontal axis) against the <strong>cumulative percentage of income </strong>(on the vertical axis) as follows.</p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/lorenz-perfect-equal.gif" alt="Lorenz curve" width="474" height="300" /></p>
<p>In the above case, A = 0 so the Gini Coefficient is 0.</p>
<p>Now, people being people, some of the villagers decide they should be paid more because they work harder, or because they are older, or because they have more children, or whatever. So three of them (persons H, I and J) decide to keep 15% of the income each, and distribute the rest evenly among the others. However, that doesn&#8217;t work out evenly, so they decide the laziest 3 people in the village (persons A, B and C) should only get 5% of the income. Our table now looks like this: </p>
<table class="postTable">
<tr>
<th scope="col">Person</th>
<th scope="col">Proportion of population (%) </th>
<th scope="col">Cumulative proportion of population (%) </th>
<th scope="col">Income (%) </th>
<th scope="col">Cumulative income (%) </th>
</tr>
<tr>
<td>A</td>
<td>10%</td>
<td>10%</td>
<td style="background:#efefef">5%</td>
<td>5%</td>
</tr>
<tr>
<td>B</td>
<td>10%</td>
<td>20%</td>
<td style="background:#efefef">5%</td>
<td>10%</td>
</tr>
<tr>
<td>C</td>
<td>10%</td>
<td>30%</td>
<td style="background:#efefef">5%</td>
<td>15%</td>
</tr>
<tr>
<td>D</td>
<td>10%</td>
<td>40%</td>
<td>10%</td>
<td>25%</td>
</tr>
<tr>
<td>E</td>
<td>10%</td>
<td>50%</td>
<td>10%</td>
<td>35%</td>
</tr>
<tr>
<td>F</td>
<td>10%</td>
<td>60%</td>
<td>10%</td>
<td>45%</td>
</tr>
<tr>
<td>G</td>
<td>10%</td>
<td>70%</td>
<td>10%</td>
<td>55%</td>
</tr>
<tr>
<td>H</td>
<td>10%</td>
<td>80%</td>
<td style="background:#efefef">15%</td>
<td>70%</td>
</tr>
<tr>
<td>I</td>
<td>10%</td>
<td>90%</td>
<td style="background:#efefef">15%</td>
<td>85%</td>
</tr>
<tr>
<td>J</td>
<td>10%</td>
<td>100%</td>
<td style="background:#efefef">15%</td>
<td>100%</td>
</tr>
</table>
<p>Let&#8217;s graph it and see what it looks like.</p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/lorenz-not-very-equal.gif" alt="Lorenz Curve 2" width="475" height="300" /> </p>
<p>In summary, the bottom 30% of the population earns 15% of the income, while the top 30% earns 45% of the income. </p>
<p>I&#8217;ve shaded 2 regions in the above graph, region A (with light magenta shading) and region B (with light green shading).</p>
<p>Recall the Gini Coefficient is the ratio of the areas:</p>
<p><img src="http://www.intmath.com/cgi-bin/mathtex.cgi?\dfrac{A}{A+B}" alt="Gini Coefficient" width="47" height="34" />  </p>
<p>Area A = 0.095 (from calculating area B &#8211; one triangle and 2 trapezoids &#8211; and subtracting it from 0.5) </p>
<p>Area (A + B) = 0.5 (this is half of the rectangle) </p>
<p>So the Gini Coefficient in this case is:</p>
<p><img src="http://www.intmath.com/cgi-bin/mathtex.cgi?\dfrac{0.095}{0.5}=0.19" alt="Gini Coefficient" width="91" height="36" />  </p>
<p>Let&#8217;s take it another step. The three richer guys (H, I and J) have a fight and J wins. He demands 50% of the income and leaves it to H and I to distribute the rest.</p>
<p>Then H and I have a fight and I wins. He wants 33% and gives 10% to H and they decide to give what&#8217;s left (1% or $1 a day) to each of the rest of the village. </p>
<p>(Millions of people live on less than $1 per day.)</p>
<table class="postTable">
<tr>
<th scope="col">Person</th>
<th scope="col">Proportion of population (%) </th>
<th scope="col">Cumulative proportion of population (%) </th>
<th scope="col">Income (%) </th>
<th scope="col">Cumulative income (%) </th>
</tr>
<tr>
<td>A</td>
<td>10%</td>
<td>10%</td>
<td>1%</td>
<td>1%</td>
</tr>
<tr>
<td>B</td>
<td>10%</td>
<td>20%</td>
<td>1%</td>
<td>2%</td>
</tr>
<tr>
<td>C</td>
<td>10%</td>
<td>30%</td>
<td>1%</td>
<td>3%</td>
</tr>
<tr>
<td>D</td>
<td>10%</td>
<td>40%</td>
<td>1%</td>
<td>4%</td>
</tr>
<tr>
<td>E</td>
<td>10%</td>
<td>50%</td>
<td>1%</td>
<td>5%</td>
</tr>
<tr>
<td>F</td>
<td>10%</td>
<td>60%</td>
<td>1%</td>
<td>6%</td>
</tr>
<tr>
<td>G</td>
<td>10%</td>
<td>70%</td>
<td>1%</td>
<td>7%</td>
</tr>
<tr>
<td>H</td>
<td>10%</td>
<td>80%</td>
<td style="background:#efefef">10%</td>
<td>17%</td>
</tr>
<tr>
<td>I</td>
<td>10%</td>
<td>90%</td>
<td style="background:#efefef">33%</td>
<td>50%</td>
</tr>
<tr>
<td>J</td>
<td>10%</td>
<td>100%</td>
<td style="background:#efefef">50%</td>
<td>100%</td>
</tr>
</table>
<p>Now we have a very uneven income distribution. The bottom 70% of the population earn only 7% of the income, while the top 30% earn 93% of the income.</p>
<p>Here&#8217;s the graph.  </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/lorenz-uneven.gif" alt="Lorenz - uneven" width="475" height="300" /></p>
<p>The Gini Coefficient for this situation is very high: </p>
<p><img src="http://www.intmath.com/cgi-bin/mathtex.cgi?\dfrac{0.355}{0.5}=0.71" alt="Gini Coefficient" width="90" height="36" />  </p>
<p>Finally, let&#8217;s take the extreme case, where &#8220;Person J&#8221; becomes a dictator and decides <strong>all</strong> the income should go to him and everyone else gets nothing. </p>
<p>The cumulative income is 0% for Persons A to I, then it jumps up to 100% for Person J. Here&#8217;s the graph. </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/lorenz-none.gif" alt="Lorenz - none" width="475" height="300" /></p>
<p>This time area A is very large and the Gini Coefficient is: </p>
<p><img src="http://www.intmath.com/cgi-bin/mathtex.cgi?\dfrac{0.45}{0.5}=0.9" alt="Gini Coefficient" width="75" height="36" />  </p>
<p><strong>Why isn&#8217;t it equal to 1?</strong></p>
<p>The highest possible Gini Coefficient is 1 and this implies 1 person gets all the income.</p>
<p>In our story, we only have 10 people in our example population. If there were, say, 100 million people in the country, and one person had all the income, then the Gini Coefficient would be 0.999999, or very close to 1. </p>
<h3>Using Calculus to find the Gini Coefficient</h3>
<p>The above story is simplified and with a large data set, the Lorenz Curve will appear to be a curve, not a series of straight lines.</p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/lorenz-more-data-points.gif" alt="Lorenz Curve" width="475" height="300" />  </p>
<p>This time I have modeled the Lorenz curve using:</p>
<p>Cumulative share of income = (cumulative share of people)<sup>5</sup> </p>
<p>If we use  <em>I</em> (for income) and<em> P</em> (for people), this would be written </p>
<p><em>I = P</em><sup>5</sup></p>
<p>We find the area A using the following:</p>
<p><img src="http://www.intmath.com/cgi-bin/mathtex.cgi?\mathrm{area} \hspace {3}A=0.5 - \mathrm{area } \hspace {3}B = 0.5-\int_{0}^{1} P^5 dP" alt="Gini Coefficient" width="293" height="41" />  </p>
<p>This gives:</p>
<p><img src="http://www.intmath.com/cgi-bin/mathtex.cgi?0.5-\left[ \frac{P^6}{6}  \right]_{0}^{1} =0.5-0.16667=0.33333" alt="Gini Coefficient" width="281" height="45" /> </p>
<p>So the Gini Coefficient in this case is very high, at:</p>
<p><img src="http://www.intmath.com/cgi-bin/mathtex.cgi?\dfrac{0.3333}{0.5}=0.667" alt="Gini Coefficient" width="109" height="35" /> </p>
<h3>Gini Coefficients in Various Countries</h3>
<p>These are sorted highest to lowest.</p>
<table class="postTable">
<tr>
<th scope="col">Country</th>
<th scope="col">UN Gini Coefficient</th>
</tr>
<tr>
<td>Namibia</td>
<td>0.743</td>
</tr>
<tr>
<td>Sierra Leone </td>
<td>0.629</td>
</tr>
<tr>
<td>Haiti</td>
<td>0.592</td>
</tr>
<tr>
<td>South Africa </td>
<td>0.578</td>
</tr>
<tr>
<td>China</td>
<td>0.469</td>
</tr>
<tr>
<td>Singapore</td>
<td>0.425</td>
</tr>
<tr>
<td>United States </td>
<td>0.408</td>
</tr>
<tr>
<td>India</td>
<td>0.368</td>
</tr>
<tr>
<td>United Kingdom </td>
<td>0.360</td>
</tr>
<tr>
<td>Australia</td>
<td>0.352</td>
</tr>
<tr>
<td>Japan</td>
<td>0.249</td>
</tr>
<tr>
<td>Denmark</td>
<td>0.247</td>
</tr>
</table>
<p> China&#8217;s coefficient is quite high and this is causing a lot of concern. The Eastern provinces are now well-developed and responsible for most of the income growth, whereas the rural west is still quite poor.</p>
<p>You can see the full list here: <a href="http://en.wikipedia.org/wiki/List_of_countries_by_income_equality">Gini Coefficient by Country</a>.</p>
<h3>Singapore&#8217;s Case </h3>
<p>Here&#8217;s the coefficient for Singapore over the last decade. The rapid rise from 2002 and spike in 2007 weres due to several factors, including rapid population increases (through immigration) of higher-income people, and a subsequent boost in the overall economy.</p>
<p>The drop in 2008 and 2009 is due to the Global Financial Crisis, where many high-paying jobs either disappeared, or bonuses were slashed.  </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/gini-coefficient-singapore.gif" alt="" title="gini-coefficient-singapore" width="461" height="275" class="alignnone size-full wp-image-4191" /></p>
<p>Information  source for graph: <a href="http://www.straitstimes.com/BreakingNews/Singapore/Story/STIStory_492307.html">Straits Times</a> </p>
<h3>Further Reading</h3>
<p>There are plenty of interesting  links on this topic in <a href="Wikipedia">Wikipedia</a>.<a href="Wikipedia"></a> </p>
<p>You may also be interested in: <a href="http://www.squarecirclez.com/blog/database-of-happiness/1080">Database of Happiness</a>.</p>


<p>Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/the-intmath-newsletter-functions-gini-coefficient-math-anxiety/4215' rel='bookmark' title='Permanent Link: IntMath Newsletter: Functions, Gini Coefficient, math anxiety'>IntMath Newsletter: Functions, Gini Coefficient, math anxiety</a></li>
<li><a href='http://www.squarecirclez.com/blog/database-of-happiness/1080' rel='bookmark' title='Permanent Link: Database of Happiness'>Database of Happiness</a></li>
<li><a href='http://www.squarecirclez.com/blog/singapores-population-bubble/808' rel='bookmark' title='Permanent Link: Singapore&#8217;s population bubble'>Singapore&#8217;s population bubble</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.squarecirclez.com/blog/the-gini-coefficient-of-wealth-distribution/4187/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Functions</title>
		<link>http://www.squarecirclez.com/blog/functions/4174</link>
		<comments>http://www.squarecirclez.com/blog/functions/4174#comments</comments>
		<pubDate>Mon, 22 Feb 2010 13:50:20 +0000</pubDate>
		<dc:creator>zac</dc:creator>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://www.squarecirclez.com/blog/?p=4174</guid>
		<description><![CDATA[<a href="http://www.squarecirclez.com/blog/functions/4174"><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/functions_th.gif" alt="functions" title="functions" width="126" height="103" class="imgRt" /></a>The concept of functions causes a lot of confusion. This article attempts to make things a bit clearer.


Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/partial-differentiation-what-is-it-about/1862' rel='bookmark' title='Permanent Link: Partial differentiation &#8211; what is it about?'>Partial differentiation &#8211; what is it about?</a></li>
<li><a href='http://www.squarecirclez.com/blog/3d-grapher-with-contour-plot/3609' rel='bookmark' title='Permanent Link: 3D Grapher with contour plot'>3D Grapher with contour plot</a></li>
<li><a href='http://www.squarecirclez.com/blog/towards-more-meaningful-math-notation/661' rel='bookmark' title='Permanent Link: Towards more meaningful math notation'>Towards more meaningful math notation</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>A lot of people have difficulty with  <strong>functions</strong> in math. I suspect  it&#8217;s because function notation is not very learner-friendly.</p>
<p>Yousuf, one of my regular correspondents, got stuck on the following problem recently.</p>
<p><b>What is the area of the rectangle ADEB shown in the diagram?</b></p>
<p>The curve is the graph of <em>y</em> = 1/<em>x</em><sup>2</sup> (for positive <em>x</em>), and <em>r</em> is some arbitrary value of <em>x</em>.</p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/rectangle.gif" width="415" height="382" alt="rectangle" /> </p>
<p>We&#8217;ll come back to this question a little later. I suspect his problem with this question was due to a rusty conceptual understanding of functions.</p>
<h3>Functions Overview</h3>
<p>A function is simply an expression involving variable(s). </p>
<p>We usually write a function of the variable <em>x</em> using the notation: <em>f</em>(<em>x</em>). A function has at most 1 value for each value of <em>x</em>.</p>
<p>For example, if  <em>f</em>(<em>x</em>) = 5<em>x</em><sup>2</sup> + 3, we can find the value of the function if we choose <em>x </em>= 0 as follows.</p>
<p><em>f</em>(0) = 5(0)<sup>2</sup> + 3 = 5 &times; 0 + 3 = 3 </p>
<p>Now, this is a good example of the <strong>notation</strong> problem I was talking about at the beginning. We write &quot;<em>f</em>(0)&quot; (<em>f</em> bracket 0 bracket) to mean &quot;evaluate the function expression by substuting 0 every time we see an <em>x</em>&quot; and we see this on the left hand side of this equation.</p>
<p>But on the right hand side, I have written  &quot;5(0)<sup>2</sup>&quot; (5 bracket 0 bracket squared) and this means &quot;5 &times; 0<sup>2</sup>&quot;. We need to be careful with this &#8211; writing 2 different concepts with what is essentially the same notation. </p>
<p>It is a shame that function notation is so clumsy and causes problems for newbies. </p>
<p>Let&#8217;s look at some more examples for our function <em>f</em>(<em>x</em>) = 5<em>x</em><sup>2</sup> + 3. </p>
<p><em>f</em>(2) = 5(2)<sup>2</sup> + 3 = 5 &times; 4 + 3 = 23.</p>
<p><em>f</em>(10) = 5(10)<sup>2</sup> + 3 = 5 &times; 100 + 3 = 503.</p>
<p>If we were to substitute many more values of <em>x</em> and plot the dots on a graph, we would get the following:</p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/x2plus3.gif" alt="x^2 + 3" width="246" height="336" /> </p>
<p><strong>Note: </strong>On the vertical axis, I put <em>f</em>(<em>x</em>), but I could have also put &quot;<em>y</em>&quot;, since the convention in math is the vertical axis represents the function value. Often you&#8217;ll see it written <em>y = f</em>(<em>x</em>).</p>
<p>OK so far?</p>
<p>Now, let&#8217;s make things a bit more interesting. What is  <em>f</em>(<em>a</em>)? We just substitute <em>a</em>  everywhere there is an <em>x</em> in the original function, like we did before with the numbers:</p>
<p><em>f</em>(<em>a</em>) = 5(<em>a</em>)<sup>2</sup> + 3 = 5<em>a</em><sup>2</sup> + 3</p>
<p>Let&#8217;s do another. In this next case, <em>f</em>(<em>a</em> + 4), we are just replacing each <em>x</em> in the original function expression with <em>a</em> + 4. </p>
<p><em>f</em>(<em>a</em> + 4) = 5(<em>a</em> + 4)<sup>2</sup> + 3 = 5(<em>a</em><sup>2</sup> + 8<em>a</em> + 16) + 3 = 5<em>a</em><sup>2</sup> + 40<em>a</em> + 83</p>
<p>Of course, we need to be careful to expand out the brackets properly!</p>
<h3>A Different Function</h3>
<p>Let&#8217;s change our function to <img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/1onx2.gif" alt="1/(x^2)" width="69" height="36" style="position:relative;top:13px;" /> . </p>
<p>This is the curve we met in the question at the the beginning of this article. </p>
<p>If <em>x</em> = 1<em>, </em>we replace every <em>x</em> in our expression with 1 and we have:</p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/f1.gif" alt="f(1)" width="134" height="44" /></p>
<p>What <em>f</em>(1)  means on a graph is the distance from the <em>x-</em>axis to the graph is  1 unit. The function value is the <strong>height</strong> of the graph for that <em>x</em>-value.</p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/AB.gif" alt="AB" width="256" height="188" /></p>
<p>Now let&#8217;s do <em>f</em>(3<em>a</em>).</p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/f3a.gif" alt="f(3a)" width="148" height="41" />  </p>
<p>The value </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/1over9a2.gif" alt="1 / 9a^2" width="28" height="38"  /> </p>
<p>represents the height of the graph when <em>x</em> = 3<em>a.</em> We need to be careful with the brackets. </p>
<h3>Back to Our Problem </h3>
<p>Here&#8217;s the graph again:</p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/rectangle2.gif" width="249" height="189" alt="rectangle" /></p>
<p>So how do we find the area of the rectangle BADE? The <strong>width </strong>of the rectangle is quite straightforward, as the distance from <em>r</em> to <em>r</em> &minus; 1 is just 1 unit. But we need to find the height AD. </p>
<p>AD is just the function value <em>f</em>(<em>r</em>):</p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/fr.gif" alt="f(r)" width="117" height="43" /></p>
<p>So the area of the rectangle is just </p>
<p>Area = width &times; height =   <img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/1overr2.gif" alt="1/r^2" width="74" height="42" style="vertical-align:-15px" /></p>
<h3>What if we needed the height BC?</h3>
<p>We would just find the function value as follows.</p>
<p>BC = <img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/fnrminus1.gif" alt="f(r - 1)" width="135" height="44" style="vertical-align:-18px;" /></p>
<h3>Functions of 2 Variables</h3>
<p>The functions above only have one variable and they describe a curve in 2-D space.</p>
<p>To describe a 3-D surface, we need to  use 2 variables. </p>
<p>We write a function of 2 variables using this notation:</p>
<p><em>z = f</em>(<em>x,y</em>)</p>
<p>The &quot;<em>z</em>&quot; indicates the height of the surface for particular values of    <em>x</em> and <em>y</em>.</p>
<p>An example of a 3-dimensional surface is <em>z</em> = <em>x</em><sup>2</sup> + 3 sin<em> y.</em></p>
<p><em><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/x2plus3siny.gif" alt="x^2 + 3 sin y" width="413" height="259" /></em></p>
<h3>More Information </h3>
<p>See this  chapter for a lot more examples of functions: <a href="http://www.intmath.com/Functions-and-graphs/Functions-graphs-intro.php">Functions and Graphs</a>. (2 dimensional)</p>
<p>This is an introduction to <a href="http://www.intmath.com/Vectors/6_3-dimensional-space.php">3-dimensional Coordinate System.</a></p>
<p>See also <a href="http://www.squarecirclez.com/blog/towards-more-meaningful-math-notation/661">Towards more meaningful math notation</a> where I suggest an alternative to the current confusion. </p>


<p>Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/partial-differentiation-what-is-it-about/1862' rel='bookmark' title='Permanent Link: Partial differentiation &#8211; what is it about?'>Partial differentiation &#8211; what is it about?</a></li>
<li><a href='http://www.squarecirclez.com/blog/3d-grapher-with-contour-plot/3609' rel='bookmark' title='Permanent Link: 3D Grapher with contour plot'>3D Grapher with contour plot</a></li>
<li><a href='http://www.squarecirclez.com/blog/towards-more-meaningful-math-notation/661' rel='bookmark' title='Permanent Link: Towards more meaningful math notation'>Towards more meaningful math notation</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.squarecirclez.com/blog/functions/4174/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Friday Math movie &#8211; Addressing Population Myths</title>
		<link>http://www.squarecirclez.com/blog/friday-math-movie-addressing-population-myths/4060</link>
		<comments>http://www.squarecirclez.com/blog/friday-math-movie-addressing-population-myths/4060#comments</comments>
		<pubDate>Fri, 19 Feb 2010 00:14:04 +0000</pubDate>
		<dc:creator>zac</dc:creator>
				<category><![CDATA[Environment]]></category>
		<category><![CDATA[Math movies]]></category>
		<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://www.squarecirclez.com/blog/?p=4060</guid>
		<description><![CDATA[<a href="http://www.squarecirclez.com/blog/?p=4060"><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/population.gif" alt="population" title="population" width="128" height="79" class="imgRt" /></a>Here's some information about population trends.


Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/birth-dearth/30' rel='bookmark' title='Permanent Link: Birth dearth?'>Birth dearth?</a></li>
<li><a href='http://www.squarecirclez.com/blog/singapores-population-bubble/808' rel='bookmark' title='Permanent Link: Singapore&#8217;s population bubble'>Singapore&#8217;s population bubble</a></li>
<li><a href='http://www.squarecirclez.com/blog/friday-math-movie-peakwater/1270' rel='bookmark' title='Permanent Link: Friday Math Movie &#8211; PeakWater'>Friday Math Movie &#8211; PeakWater</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Demographics is the study of population statistics. It usually concentrates on socioeconomic factors such as age, income, sex, occupation, education, and family size. Demographics are an important part of marketing, since advertisers don&#8217;t want to waste money targeting the wrong market.</p>
<p>Today&#8217;s math movie is from <a href="http://www.prb.org/">Population Reference Bureau</a> and features Carl Haub, trying to address 3 myths about population growth.</p>
<blockquote><p>Myth 1: There was no population growth problem in the 1960s and 1970s.<br />
Myth 2: The world&#8217;s population is not growing and today&#8217;s problem is low birth rates.<br />
Myth 3: Europe will be predominately Muslim by 2050. </p></blockquote>
<p>His delivery is somewhat bumbling and a little pompous (and leads me to wonder what his agenda is), but the issues are important.</p>
<p><object width="425" height="349"><param name="movie" value="http://www.youtube.com/v/YIFR7M8WHTA&#038;rel=0&#038;border=1&#038;color1=0x6699&#038;color2=0x54abd6&#038;hl=en_US&#038;feature=player_embedded&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/YIFR7M8WHTA&#038;rel=0&#038;border=1&#038;color1=0x6699&#038;color2=0x54abd6&#038;hl=en_US&#038;feature=player_embedded&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="349"></embed></object></p>
<p>You may also be interested in: <a href="http://www.intmath.com/Exponential-logarithmic-functions/world-population-live.php">World Population &#8211; Live Update</a>.</p>


<p>Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/birth-dearth/30' rel='bookmark' title='Permanent Link: Birth dearth?'>Birth dearth?</a></li>
<li><a href='http://www.squarecirclez.com/blog/singapores-population-bubble/808' rel='bookmark' title='Permanent Link: Singapore&#8217;s population bubble'>Singapore&#8217;s population bubble</a></li>
<li><a href='http://www.squarecirclez.com/blog/friday-math-movie-peakwater/1270' rel='bookmark' title='Permanent Link: Friday Math Movie &#8211; PeakWater'>Friday Math Movie &#8211; PeakWater</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.squarecirclez.com/blog/friday-math-movie-addressing-population-myths/4060/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How math helps to choose the right marriage partner</title>
		<link>http://www.squarecirclez.com/blog/how-math-helps-to-choose-the-right-marriage-partner/4155</link>
		<comments>http://www.squarecirclez.com/blog/how-math-helps-to-choose-the-right-marriage-partner/4155#comments</comments>
		<pubDate>Wed, 17 Feb 2010 00:43:13 +0000</pubDate>
		<dc:creator>zac</dc:creator>
				<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://www.squarecirclez.com/blog/?p=4155</guid>
		<description><![CDATA[<a href="http://www.squarecirclez.com/blog/?p=4155"><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/wedding-rings_th.jpg" alt="wedding rings" title="wedding-rings" width="128" height="113" class="imgRt" /></a>One of life's toughest decisions is choosing the right mate. Math to the rescue.


Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/death-taxes-birth-marriage-and-blogging/814' rel='bookmark' title='Permanent Link: Death, taxes, birth, marriage and blogging'>Death, taxes, birth, marriage and blogging</a></li>
<li><a href='http://www.squarecirclez.com/blog/camera-purchase-decisions-how-math-helps/3805' rel='bookmark' title='Permanent Link: Camera purchase decisions &#8211; how math helps'>Camera purchase decisions &#8211; how math helps</a></li>
<li><a href='http://www.squarecirclez.com/blog/friday-math-movie-mixed-feelings-vision-through-the-tongue/1267' rel='bookmark' title='Permanent Link: Friday Math Movie &#8211; Mixed Feelings (Vision through the tongue)'>Friday Math Movie &#8211; Mixed Feelings (Vision through the tongue)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="imgRt" style="width:210px"><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/wedding-rings.jpg" alt="wedding rings" title="wedding-rings" width="200" height="300"  /><br />
[Image <a href="http://www.flickr.com/photos/toadiepoo/2251996753/">source</a>]</div>
<p>Say you are on a desert island and you know there are 3 girls of marriageable age on the island. You will meet them one-by-one and you need to choose the &#8220;best&#8221; one to marry. </p>
<p>If you propose to the first one you meet, there is a chance she is not the &#8220;best&#8221; one and you won&#8217;t have made the best choice. </p>
<p>Or, you could reject that first girl and see if the second one is better. If so you could propose to her, or perhaps reject her, hoping the last one is the best out of the 3. (Any girl you reject will never talk to you again.)</p>
<p>What is the best approach to maximize your chances of proposing to the &#8220;best&#8221; girl?</p>
<p>The following article analyzes the probability behind this problem. It&#8217;s rather tongue-in-cheek (meaning it is based on reasonable assumptions, but may not be the best way to choose your mate!)</p>
<p><a href="http://www.parabola.unsw.edu.au/vol45_no2/node2.html">The Marriage Problem: How to Choose?</a></p>
<p>[This is from the excellent <i><a href="http://www.parabola.unsw.edu.au/">Parabola</a></i> magazine, for "secondary schools", by University of New South Wales Mathematics and Statistics department.]</p>


<p>Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/death-taxes-birth-marriage-and-blogging/814' rel='bookmark' title='Permanent Link: Death, taxes, birth, marriage and blogging'>Death, taxes, birth, marriage and blogging</a></li>
<li><a href='http://www.squarecirclez.com/blog/camera-purchase-decisions-how-math-helps/3805' rel='bookmark' title='Permanent Link: Camera purchase decisions &#8211; how math helps'>Camera purchase decisions &#8211; how math helps</a></li>
<li><a href='http://www.squarecirclez.com/blog/friday-math-movie-mixed-feelings-vision-through-the-tongue/1267' rel='bookmark' title='Permanent Link: Friday Math Movie &#8211; Mixed Feelings (Vision through the tongue)'>Friday Math Movie &#8211; Mixed Feelings (Vision through the tongue)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.squarecirclez.com/blog/how-math-helps-to-choose-the-right-marriage-partner/4155/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is she beautiful? The new Golden Ratio</title>
		<link>http://www.squarecirclez.com/blog/is-she-beautiful-the-new-golden-ratio/4149</link>
		<comments>http://www.squarecirclez.com/blog/is-she-beautiful-the-new-golden-ratio/4149#comments</comments>
		<pubDate>Tue, 16 Feb 2010 00:36:57 +0000</pubDate>
		<dc:creator>zac</dc:creator>
				<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://www.squarecirclez.com/blog/?p=4149</guid>
		<description><![CDATA[<a href="http://www.squarecirclez.com/blog/is-she-beautiful-the-new-golden-ratio/4149"><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/shania-twain-th.gif" alt="marquardt" width="128" height="119" class="imgRt" /></a>Beauty is defined by a new "Golden Ratio", new research shows.


Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/is-phi-a-fibonacci-furphy/956' rel='bookmark' title='Permanent Link: Is Phi a Fibonacci furphy?'>Is Phi a Fibonacci furphy?</a></li>
<li><a href='http://www.squarecirclez.com/blog/the-intmath-newsletter-functions-gini-coefficient-math-anxiety/4215' rel='bookmark' title='Permanent Link: IntMath Newsletter: Functions, Gini Coefficient, math anxiety'>IntMath Newsletter: Functions, Gini Coefficient, math anxiety</a></li>
<li><a href='http://www.squarecirclez.com/blog/laughing-scale/999' rel='bookmark' title='Permanent Link: Laughing scale'>Laughing scale</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Canadian and US researchers found there were certain facial proportions that made some women more beautiful than others. </p>
<p>In the SMH article <a href="http://www.smh.com.au/lifestyle/beauty/shania-twain-more-beautiful-than-angelina-jolie-20091222-lb6h.html">Shania Twain more beautiful than Angelina Jolie?</a> we read   the researchers manipulated  the photos of certain women using Photoshop so the facial proportions were changed. Then warm-blooded males were asked to choose the photos that were most appealing. It turns out the &quot;ideal&quot; value (the one found to be more beautiful) for the following facial ratio was 36%: </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/ratio1.gif" alt="ratio" width="197" height="53" /></p>
<p>Another key ratio affecting our perception of beauty is the following: </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/ratio2.gif" alt="ratio" width="167" height="50" /></p>
<p>An ideal value for this ratio is 46%. </p>
<p>Apparently, the canadian singer Shania Twain has pretty much the perfect face. Let&#8217;s check out her proportions. In this image,  the eye to mouth distance is 72px, marking 36% of the facial height (200px).</p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/shania-twain_2.jpg" width="300" height="364" alt="shania twain" /></p>
<p>While the distance from her hairline to the bottom of her chin is quite easy to determine, and the center of the eyes is also quite clear, there is some uncertainty about the &quot;mouth&quot;. In the above photo, she is smiling. Even with the mouth closed, it&#8217;s not that exact where the &quot;mouth&quot; is. </p>
<p>Next, we look at the ratio of the distance betwen the eyes to facial width. The ratio 72:156 is equivalent to 46%, as claimed in the research. </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/shania-twain-3.jpg" alt="shania twain" width="300" height="364" /></p>
<p>Once again, there is some ambiguity. What do we take as the &quot;side&quot; of the face? The article says the face width is the distance &quot;between the inner edges of the ears&quot;. But it is rather subjective deciding quite where that comes.</p>
<h3>A New Golden Ratio?</h3>
<p>It is generally believed we are attracted to people whose physical features are symmetrical (a mirror image down the center) and in proportion. That proportion often turns out to be connected with the &quot;Golden Ratio&quot; (&Phi; = 1.618033&#8230;)</p>
<p>The above research claims to be a &quot;new Golden Ratio&quot; for determining beauty.  </p>
<h3>Comparison with Stephen Marquardt&#8217;s Research </h3>
<p>Stephen Marquardt has <a href="http://www.beautyanalysis.com/index2_mba.htm">conducted similar stuidies</a> to find the &quot;beautiful&quot; face. He has created a mask which can be placed over different faces to determine whether they fit the classic notions of beauty (at least from a mathematical point of view). The mask is based on the Golden Ratio (or more specifically, the &quot;golden decagon&quot;. </p>
<p>Let&#8217;s use his mask and measure the same ratios as used by the canadian/US researchers. </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/marquardt-face-1.gif" alt="marquardt" width="400" height="401" /></p>
<p>For the mouth-eyes to facial height ratio, we get 148:390 = 37.95%. This is greater than 36%, and possibly significant. </p>
<p>Now we look at the other ratio, eye distance to face width. </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/02/marquardt-face-2.gif" alt="marquardt" width="300" height="401" /></p>
<p>The ratio 138:279 = 49.5%. Once again, this is larger than the more recent research above, but it&#8217;s not clear where the &quot;inner edge of the ear&quot; is for the Marquardt mask. </p>
<h3>Conclusion</h3>
<p>While the above is interesting mathematically, I wouldn&#8217;t take it too seriously&#8230;</p>
<p>[Image sources:<br />
<a href="http://www.smh.com.au/lifestyle/beauty/shania-twain-more-beautiful-than-angelina-jolie-20091222-lb6h.html">Shania Twain</a><br />
<a href="http://www.beautyanalysis.com/index2_mba.htm">Marquardt mask</a>]</p>


<p>Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/is-phi-a-fibonacci-furphy/956' rel='bookmark' title='Permanent Link: Is Phi a Fibonacci furphy?'>Is Phi a Fibonacci furphy?</a></li>
<li><a href='http://www.squarecirclez.com/blog/the-intmath-newsletter-functions-gini-coefficient-math-anxiety/4215' rel='bookmark' title='Permanent Link: IntMath Newsletter: Functions, Gini Coefficient, math anxiety'>IntMath Newsletter: Functions, Gini Coefficient, math anxiety</a></li>
<li><a href='http://www.squarecirclez.com/blog/laughing-scale/999' rel='bookmark' title='Permanent Link: Laughing scale'>Laughing scale</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.squarecirclez.com/blog/is-she-beautiful-the-new-golden-ratio/4149/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Today is &#8220;e&#8221; day</title>
		<link>http://www.squarecirclez.com/blog/today-is-e-day/4133</link>
		<comments>http://www.squarecirclez.com/blog/today-is-e-day/4133#comments</comments>
		<pubDate>Sun, 07 Feb 2010 09:31:30 +0000</pubDate>
		<dc:creator>zac</dc:creator>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://www.squarecirclez.com/blog/?p=4133</guid>
		<description><![CDATA[The number <i>e</i> is an important number in math. It arises in many diverse problems.


Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/my-infinitys-bigger-than-yours/739' rel='bookmark' title='Permanent Link: My infinity&#8217;s bigger than yours'>My infinity&#8217;s bigger than yours</a></li>
<li><a href='http://www.squarecirclez.com/blog/dinosaur-mathematics/82' rel='bookmark' title='Permanent Link: Dinosaur Mathematics&#8230;'>Dinosaur Mathematics&#8230;</a></li>
<li><a href='http://www.squarecirclez.com/blog/nursing-entrance-test-for-mathematicians-or-nurses/1342' rel='bookmark' title='Permanent Link: Nursing Entrance Test &#8211; for mathematicians or nurses?'>Nursing Entrance Test &#8211; for mathematicians or nurses?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>&#8220;<i>e</i>&#8221; is one of those amazing numbers that arises naturally in the scheme of things. </p>
<p>(Others include &#8220;pi&#8221; <span style='font-family: "Times New Roman", Times, serif'>&pi;</span> = 3.141592653&#8230;, which is the circumference of any circle divided by its diameter; and &#8220;phi&#8221; &phi; = 1.6180339887&#8230;, which is the so-called &#8220;<a href="http://www.intmath.com/Numbers/mathOfBeauty.php">beauty ratio</a>&#8220;). Both of these numbers are irrational (that is, their decimals go on forever and never repeat).</p>
<p><i>e</i> is also an irrational number and it has value: </p>
<p><i>e</i> = 2.718281828459&#8230;</p>
<p>The number <i>e</i> was &#8220;discovered&#8221; by several mathematicians (Oughtred, Huygens, Jacob Bernoulli, Mercator and Leibniz)  but they didn&#8217;t quite <em>know</em> they had stumbled on it and didn&#8217;t know its significance.</p>
<p>There are some curious properties of <i>e</i>, one of which is that it&#8217;s the limiting value as <i>n</i> &rarr; &infin; of (1 + <sup>1</sup>/<sub><i>n</i></sub>)<sup><i>n</i></sup>.</p>
<p>It can also be found by adding the infinite sum: </p>
<p><i>e</i> = 1 + <span style="font-size:1.2em"><sup>1</sup>/<sub>1!</sub></span> + <span style="font-size:1.2em"><sup>1</sup>/<sub>2!</sub></span> + <span style="font-size:1.2em"><sup>1</sup>/<sub>3!</sub></span> + &#8230; </p>
<p>So what is <i>e</i> good for? </p>
<p>It is used extensively in logarithms (which was the only way to do difficult calculations for hundreds of years before calculators came along), exponential growth (of populations, money or <a href="http://www.squarecirclez.com/blog/math-of-drugs-and-bodies-pharmacokinetics/4098">drug concentrations over time</a>) and complex numbers (which were used to design the computer or mobile device you are reading this on).</p>
<p>So happy &#8220;<i>e</i>&#8221; day (February 7th, or 2/7).</p>
<p>[For more information on <i>e</i>, see the <a href="http://www-history.mcs.st-and.ac.uk/HistTopics/e.html">MacTutor</a> history.]</p>


<p>Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/my-infinitys-bigger-than-yours/739' rel='bookmark' title='Permanent Link: My infinity&#8217;s bigger than yours'>My infinity&#8217;s bigger than yours</a></li>
<li><a href='http://www.squarecirclez.com/blog/dinosaur-mathematics/82' rel='bookmark' title='Permanent Link: Dinosaur Mathematics&#8230;'>Dinosaur Mathematics&#8230;</a></li>
<li><a href='http://www.squarecirclez.com/blog/nursing-entrance-test-for-mathematicians-or-nurses/1342' rel='bookmark' title='Permanent Link: Nursing Entrance Test &#8211; for mathematicians or nurses?'>Nursing Entrance Test &#8211; for mathematicians or nurses?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.squarecirclez.com/blog/today-is-e-day/4133/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Graphs using free math software</title>
		<link>http://www.squarecirclez.com/blog/graphs-using-free-math-software/4115</link>
		<comments>http://www.squarecirclez.com/blog/graphs-using-free-math-software/4115#comments</comments>
		<pubDate>Tue, 02 Feb 2010 00:35:00 +0000</pubDate>
		<dc:creator>zac</dc:creator>
				<category><![CDATA[Computers & Internet]]></category>
		<category><![CDATA[Learning]]></category>
		<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://www.squarecirclez.com/blog/?p=4115</guid>
		<description><![CDATA[Do we still need to graph on paper, or should we use free math graphers instead?


Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/free-math-software-downloads/849' rel='bookmark' title='Permanent Link: Free math software downloads'>Free math software downloads</a></li>
<li><a href='http://www.squarecirclez.com/blog/geogebra-math-software-a-review/734' rel='bookmark' title='Permanent Link: GeoGebra math software &#8211; a review'>GeoGebra math software &#8211; a review</a></li>
<li><a href='http://www.squarecirclez.com/blog/grafeq-math-graphing-software/216' rel='bookmark' title='Permanent Link: GrafEq math graphing software'>GrafEq math graphing software</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Being able to sketch graphs on paper is an important skill, but I&#8217;m wondering about the future of this. There are now many free (or cheap) graphing tools available and I am surprised so few students actually use them (or are allowed to use them).</p>
<p>Let&#8217;s have a look at some of the available math graphing tools. </p>
<h4>Graphics Calculators</h4>
<p>Here are the Texas Instruments TI-83 (left) and Hewlett-Packard HP 40gs (right) calculators. </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/TI-83.jpg" alt="TI-83 calculator" width="127" height="257" /> <img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/HP.jpg" alt="HP calculator" width="127" height="257" /></p>
<p>Graphics calculators are handy, but the screen size is small and there is usually no scale on the axes. Cost is often prohibitive, at around US$100. </p>
<h4>Online Graphers</h4>
<p>Here&#8217;s a few places where you can graph your curve &#8211; for free! </p>
<p>The first one is on IntMath.com, and uses Scalable Vector Graphics (you need Firefox browser, or a plugin for IE).</p>
<ul>
<li><a href="http://www.intmath.com/Functions-and-graphs/graphs-using-svg.php">Plot your own SVG Math Graphs</a> </li>
</ul>
<p>The following are also free offerings. They are either Flash or Java applets. </p>
<ul>
<li><a href="http://www.wolframalpha.com/">Wolfram|Alpha</a></li>
<li><a href="http://www.freemathhelp.com/equation-grapher.html">Flash Equation Grapher</a> </li>
<li><a href="http://graphsketch.com/">GraphSketch.com</a></li>
<li><a href="http://www.coolmath.com/graphit/">GraphApplet</a> (warning &#8211; red text on a black background) </li>
<li><a href="http://www.calculateforfree.com/graph.html">GCalc</a></li>
</ul>
<h4>Computer Applications</h4>
<p>Here are some of my favorites. In each case you need to download and install the software. </p>
<ul>
<li><a href="http://www.geogebra.org/cms/">GeoGebra</a> (Free. I wrote a <a href="http://www.squarecirclez.com/blog/geogebra-math-software-a-review/734">review of GeoGebra</a> which shows how to get started with it.)</li>
<li><a href="http://download.cnet.com/Graph/3000-2053_4-10063417.html?tag=mncol">Graph 4.3</a> (Free. Small download, from cnet.com)</li>
<li><a href="http://www.mackichan.com/index.html?products/snb.html">Scientific Notebook</a> (US$90, but does much more than a graphics calculator) </li>
</ul>
<h3>Some problems with using graphics software </h3>
<p>If you don&#8217;t have a good idea of what a function should look like before your use a graphics package, you can have all sorts of problems.</p>
<p>Here&#8217;s an example of a function which catches out the unaware.</p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/30overx-2.gif" alt="30/(x - 2)" width="86" height="38" /> </p>
<p>Let&#8217;s graph it on Geogebra. </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/geogebra-1.gif" alt="Geogebra 1" width="195" height="179" /></p>
<p>Hmmm &#8211; it appears to be empty. Is there an error? What&#8217;s going on?</p>
<p>We <strong>zoom out</strong> a few times and start to see 2 curves. Once again, is there a mistake? Why 2 curves? </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/geogebra-3.gif" alt="zoomed out" width="327" height="322" /> </p>
<p>I zoomed out because I had a good idea in my head what the graph should look like. Since I couldn&#8217;t see either of the 2 arms of this curve, and because of the 30 in the denominator, I knew I had to zoom out. </p>
<p>If I left my graph at that, I would still not have a good idea of what the function looks like. I have not chosen a view that shows the crucial features of this graph. </p>
<p>The <strong>default view</strong> in Geogebra was too close to the origin (0, 0) to see any of the curve. </p>
<p>Let&#8217;s have another go, this time using Scientific Notebook. This is what I get when I try to graph the curve. </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/SNB-1.gif" alt="SNB" width="317" height="229" /></p>
<p>I get a vertical line passing through 2 on the <em>x</em>-axis. But notice the scale on the <em>y</em>-axis. The number &quot;4e+09&quot; actually means 4 &times; 10<sup>9</sup> or 4 billion. So Scientific Notebook recognizes that there are very large values of <em>y</em> involved in this function, and has shown us the limits of its internal coding.</p>
<p>This time if we <strong>zoom in</strong>,  we can start to see the graph appearing as before. But I need to <strong>know</strong> to zoom in, otherwise I would miss it altogether. </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/SNB-2.gif" alt="SNB-2" width="329" height="236" /></p>
<p>What was that vertical line that appeared before? Was it a mistake? Why did it disappear when we zoomed in?</p>
<p>Next, we use my <a href="http://www.intmath.com/Functions-and-graphs/graphs-using-svg.php">SVG Grapher</a>. It&#8217;s similar to Geogebra in that its default view misses the curves, but is also similar to Scientific Notebook in that it shows a vertical line through 2 on the <em>x</em>-axis.</p>
<p>When we zoom out a bit, this is what we get. </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/SVG.gif" alt="SVG" width="350" height="287" /> </p>
<p>We are still not showing all the vital features of the graph, and that vertical line is still there. What&#8217;s that about?</p>
<p>Next, I tried the  Flash Math Grapher. Once again I needed to do some zooming. The <em>x</em>- and <em>y</em>- scales are strange (multiples of 13.01??, and is that the <em>x</em>-axis or the line <em>y</em> = -2.98?) , but at least I can get a pretty good view. </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/flash-math-grapher.gif" alt="Flash Math Grapher" width="428" height="352" /></p>
<p>Next, let&#8217;s call in the big guns. <a href="http://www.wolframalpha.com/">Wolfram|Alpha</a> gives us the following 2 graphs when we put our function in their search box (and they give us a lot more information about the function).</p>
<p>This time we get intelligent graphs that have appropriate <em>x</em>- and <em>y</em>- scales and actually show the curves. Note the first one does not have a vertical line through 2, but the second one does. Why? </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/wolfram.gif" alt="Wolfram" width="234" height="300" /></p>
<h3>That vertical line through <em>x</em> = 2</h3>
<p>When the software draws the graph, it chooses regularly-spaced <em>x</em>-values and substitutes them into the function, plots the resulting dots and joins them.</p>
<p>In the above examples that have a vertical line, it means the software has chosen a value just slightly less than 2 (which will give a very small, negative value for <em>y</em>) and another one just slightly more than 2 (which gives a very large positive value for <em>y</em>).</p>
<p>Here&#8217;s an exaggerated version of what it&#8217;s doing (using only a very few data points joined by straight lines).</p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/geogebra-5.gif" alt="exaggerated" width="456" height="286" /></p>
<p>If the <em>x</em>-value chosen is exactly 2, the software will normally just skip that value (since it will return a &quot;division by 0&quot; error). The (almost) vertical line should not be included in the graph, since we cannot have <em>x</em> = 2 (this function is undefined for <em>x</em> = 2 since the bottom of the fraction would be zero). </p>
<p>This gap in the graph is called a <strong>discontinuity</strong>. It should be a gap &#8211; not joined by a line as above. </p>
<p>Some software handles this situation gracefully (like the Wolfram|Alpha example) while in others, you need to either understand why the vertical line is there, or in some cases, you can elect to include discontinuities or not. </p>
<h3>Best answer</h3>
<p>Here&#8217;s probably the best way to display the graph of this function.</p>
<p>Our graph has 2 <strong>asymptotes</strong>. When a curve gets closer and closer to a line but does not touch it, that line is called an <strong>asymptote</strong></p>
<p>The first asymptote is the <em>x</em>-axis and the other is the vertical line, <em>x</em> = 2, which I drew using a dashed line of a different color (since it is not part of the graph). </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/geogebra-4.gif" alt="final answer" width="479" height="466" /> </p>
<p>I have shown the 2 asymptotes clearly and I have also labeled the <em>x</em>- and <em>y</em>-axes.</p>
<p>Here&#8217;s the function again for convenience.</p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/30overx-2.gif" alt="30/(x - 2)" width="86" height="38" /></p>
<p>I knew the graph was going to involve asymptotes since the <em>x</em>-variable is in the denominator (and we can&#8217;t have 0 in the denominator) and also considering when <em>x</em> gets really big, the value of the function will be really small.  </p>
<p>If I didn&#8217;t know this (from graphing many of them on paper), I would have made a mess of graphing my function on a computer. </p>
<h3>Graphing software and the future</h3>
<p>Will graphing software change what we do in classrooms? Should it? Is it really necessary to sketch graphs on paper still? </p>
<p>If you can draw a quick sketch of a function on paper, it certainly helps your understanding for many types of math problems. The conclusion from above is that it is certainly worthwhile to have a good sense of what a graph should look like before graphing it using software, so we can manipulate the settings to show the graph properly.</p>


<p>Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/free-math-software-downloads/849' rel='bookmark' title='Permanent Link: Free math software downloads'>Free math software downloads</a></li>
<li><a href='http://www.squarecirclez.com/blog/geogebra-math-software-a-review/734' rel='bookmark' title='Permanent Link: GeoGebra math software &#8211; a review'>GeoGebra math software &#8211; a review</a></li>
<li><a href='http://www.squarecirclez.com/blog/grafeq-math-graphing-software/216' rel='bookmark' title='Permanent Link: GrafEq math graphing software'>GrafEq math graphing software</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.squarecirclez.com/blog/graphs-using-free-math-software/4115/feed</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Math of drugs and bodies (pharmacokinetics)</title>
		<link>http://www.squarecirclez.com/blog/math-of-drugs-and-bodies-pharmacokinetics/4098</link>
		<comments>http://www.squarecirclez.com/blog/math-of-drugs-and-bodies-pharmacokinetics/4098#comments</comments>
		<pubDate>Mon, 01 Feb 2010 00:30:57 +0000</pubDate>
		<dc:creator>zac</dc:creator>
				<category><![CDATA[Learning]]></category>
		<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://www.squarecirclez.com/blog/?p=4098</guid>
		<description><![CDATA[Why do doctors say "take 1 tablet every 3 hours"? How long does it take a drug to be absorbed?


Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/intmath-newsletter-graphs-pharmacokinetics-color-blindness/3984' rel='bookmark' title='Permanent Link: Intmath Newsletter &#8211; Graphs, pharmacokinetics, color blindness'>Intmath Newsletter &#8211; Graphs, pharmacokinetics, color blindness</a></li>
<li><a href='http://www.squarecirclez.com/blog/the-melting-arctic-a-disturbing-application-of-math/1030' rel='bookmark' title='Permanent Link: The melting Arctic &#8211; a disturbing application of math'>The melting Arctic &#8211; a disturbing application of math</a></li>
<li><a href='http://www.squarecirclez.com/blog/today-is-e-day/4133' rel='bookmark' title='Permanent Link: Today is &#8220;e&#8221; day'>Today is &#8220;e&#8221; day</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Pharmacokinetics is the process whereby substances (like food and drugs) are ingested into the body (via mouth or needles) and processed. We&#8217;ll concentrate on drugs. </p>
<div class="imgRt" style="width:155px"><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/syringe.jpg" alt="syringe" width="150" height="226" /><br />
Preparing a syringe.</div>
<p>The process of pharmacokinetics has 5 steps: </p>
<ul>
<li> <strong>Liberation</strong> &#8211; the drug is released from the formulation.</li>
<li><strong>Absorption</strong> &#8211; the drug enters the body.</li>
<li><strong>Distribution</strong> &#8211; the drug disperses throughout the body</li>
<li><strong>Metabolism</strong> &#8211; the drug is broken down by the body.</li>
<li><strong>Excretion</strong> &#8211; the drug is eliminated from the body.
  </li>
</ul>
<p>Of course, each drug needs to act on the body in a different way. Some drugs need to be absorbed quickly (like nitroglycerin if we are having a heart attack) and preferably eliminated quickly (otherwise toxins build up in the blood). For other drugs, we want slow absorption so we get maximum benefit and don&#8217;t lose a lot of it from excretion.</p>
<p>So when your doctor prescribes (say) &quot;take 2 tablets every meal time&quot;, this is based on the desirable levels of drug concentration and known levels of distribution, metabolism and excretion in the body. </p>
<h3>What&#8217;s the math?</h3>
<p>When the nurse first administers the drug, the concentration of the drug in the blood stream is zero. As the drug moves around the body and is metabolized, the concentration of the drug increases. </p>
<p>There comes a point when the concentration no longer increases and begins to decline. This is the period when the drug is fully distributed and metabolism is taking place. As time goes on, the drug concentration gets less and less and falls below a certain effective amount. Time to take some more pills.</p>
<p>We can model such a situation mathematically with a <a href="http://www.intmath.com/Differential-equations/DEs-intro.php">differential equation</a>. It has 2 parts &#8211; an absorption part and an elimination part. At first, absorption (increasing drug concentration) takes precedence and over time, elimination (decreasing concentration) is the most important element.</p>
<p>We have the following variables:</p>
<p><em>D = </em>drug dose given </p>
<p><em>V </em>= volume distributed in the body </p>
<p><em>C</em> = concentration of the drug at time <em>t</em></p>
<p><em>F</em> = fraction of dose which has been absorbed (also called bioavailability)</p>
<p><em>A = </em>absorption rate constant</p>
<p><em>E</em> = elimination rate constant </p>
<p><em>t</em> = time </p>
<p><strong>Absorption part: </strong>This depends on the amount of the drug given, the fraction that has been absorbed and the absorption rate constant. It decreases as time goes on. The expression for absorption is given by: </p>
<p><em>A &times; F &times; D &times; e<sup>-At</sup></em> </p>
<p><strong>Elimination part:</strong> The elimination dynamic is affected by the elimination constant, the volume distributed in the body and the concentration left of the drug. The expression for this part is:</p>
<p><em>E </em> <em>&times; V &times; C</em></p>
<p>For our model, we need to <strong>subtract</strong> the elimination part from the absorption part (since the absorption part increases the concentration of drug and the elimination part decreases it). Our differential equation is as follows:</p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/DE-0.gif" alt="DE-0" width="214" height="38" /></p>
<p>We now substitute some typical values for our variables (without units to keep things simple. Note <i>C</i> is a variable, the one for which we seek an expression in <em>t</em>.) </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/DE-1.gif" alt="DE-1" width="354" height="73" /></p>
<p>Solving this differential equation (using a computer algebra system), gives the concentration at time <em>t</em> as:</p>
<p><em>C</em>(<em>t</em>) = 533.3(<em>e<sup>&minus;</sup></em><sup>0.4</sup><em><sup><em>t</em></sup> &minus; e</em><sup>&minus;0.5<em>t</em></sup>) </p>
<p><img src="http://www.squarecirclez.com/blog/wp-content/uploads/2010/01/pharmacokinetics.gif" alt="pharmacokinetics" width="390" height="259" /></p>
<p>We can see in the graph the portion where the concentration increases (up to around <em>t</em> = 3) and levels off. The concentration then decreases to almost zero at <em>t</em> = 24. </p>
<p>Pharmacokinetics is yet another interesting &#8220;real life&#8221; application of math.</p>
<p>[Based on: <a href="http://www.boomer.org/c/p1/index.html">A First Course in Pharmacokinetics</a>.<br />
  Photo credit: <a href="http://www.flickr.com/photos/jkgroove/191905357/">Syringe</a>] </p>


<p>Related posts:<ol><li><a href='http://www.squarecirclez.com/blog/intmath-newsletter-graphs-pharmacokinetics-color-blindness/3984' rel='bookmark' title='Permanent Link: Intmath Newsletter &#8211; Graphs, pharmacokinetics, color blindness'>Intmath Newsletter &#8211; Graphs, pharmacokinetics, color blindness</a></li>
<li><a href='http://www.squarecirclez.com/blog/the-melting-arctic-a-disturbing-application-of-math/1030' rel='bookmark' title='Permanent Link: The melting Arctic &#8211; a disturbing application of math'>The melting Arctic &#8211; a disturbing application of math</a></li>
<li><a href='http://www.squarecirclez.com/blog/today-is-e-day/4133' rel='bookmark' title='Permanent Link: Today is &#8220;e&#8221; day'>Today is &#8220;e&#8221; day</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.squarecirclez.com/blog/math-of-drugs-and-bodies-pharmacokinetics/4098/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
