<?xml version="1.0" encoding="UTF-8" standalone="yes"?><oembed><version><![CDATA[1.0]]></version><provider_name><![CDATA[Azimuth]]></provider_name><provider_url><![CDATA[https://johncarlosbaez.wordpress.com]]></provider_url><author_name><![CDATA[John Baez]]></author_name><author_url><![CDATA[https://johncarlosbaez.wordpress.com/author/johncarlosbaez/]]></author_url><title><![CDATA[This Week&#8217;s Finds (Week&nbsp;319)]]></title><type><![CDATA[link]]></type><html><![CDATA[<p>This week I&#8217;m trying something new: including a climate model that runs on your web browser!  </p>
<p>It&#8217;s not a realistic model; we&#8217;re just getting started.  But some programmers in the Azimuth Project team are interested in making more such models&mdash;especially Allan Erskine (who made this one), Jim Stuttard (who helped me get it to work), Glyn Adgie and Staffan Liljgeren.  It could be a fun way for us to learn and explain climate physics.  With enough of these models, we&#8217;d have a whole online course!  If you want to help us out, please say hi.</p>
<p>Allan will say more about the programming challenges later.  But first, a big puzzle: how can small changes in the Earth&#8217;s orbit lead to big changes in the Earth&#8217;s climate?  As I mentioned <a href="http://math.ucr.edu/home/baez/week318.html">last time</a>, it seems hard to understand the glacial cycles of the last few million years without answering this.</p>
<p>Are there feedback mechanisms that can amplify small changes in temperature?  Yes.  Here are a few obvious ones:</p>
<p>&bull; <b><a href="http://geotest.tamu.edu/userfiles/216/dessler09.pdf">Water vapor feedback</a></b>.  When it gets warmer, more water evaporates, and the air becomes more humid. But water vapor is a greenhouse gas, which causes additional warming.  Conversely, when the Earth cools down, the air becomes drier, so the greenhouse effect becomes weaker, which tends to cool things down.</p>
<p>&bull; <b><a href="http://en.wikipedia.org/wiki/Ice-albedo_feedback">Ice albedo feedback</a>.</b>  Snow and ice reflect more light than liquid oceans or soil.  When the Earth warms up, snow and ice melt, so the Earth becomes darker, absorbs more light, and tends to get get even warmer.  Conversely, when the Earth cools down, more snow and ice form, so the Earth becomes lighter, absorbs less light, and tends to get even cooler.</p>
<p>&bull; <b><a href="http://en.wikipedia.org/wiki/Climate_change_feedback#CO2_in_the_oceans">Carbon dioxide solubility feedback</a>.</b>  Cold water can hold more carbon dioxide than warm water: that&#8217;s why opening a warm can of soda can be so explosive.  So, when the Earth&#8217;s oceans warm up, they release carbon dioxide.  But carbon dioxide is a greenhouse gas, which causes additional warming.  Conversely, when the oceaans cool down, they absorb more carbon dioxide, so the greenhouse effect becomes weaker, which tends to cool things down.</p>
<p>Of course, there are also negative feedbacks: otherwise the climate would be utterly unstable!  There are also complicated feedbacks whose overall effect is harder to evaluate:</p>
<p>&bull; <b>Planck feedback.</b>  A hotter world radiates more heat, which cools it down.  This is the big negative feedback that keeps all the positive feedbacks from making the Earth insanely hot or insanely cold.</p>
<p>&bull; <b><a href="http://en.wikipedia.org/wiki/Cloud_feedback">Cloud feedback</a>.</b> A warmer Earth has more clouds, which reflect more light but also increase the greenhouse effect. </p>
<p>&bull; <b><a href="http://en.wikipedia.org/wiki/Climate_change_feedback#Lapse_rate">Lapse rate feedback</a>.</b>   An increased greenhouse effect changes the vertical temperature profile of the atmosphere, which has effects of its own&mdash;but this works differently near the poles and near the equator.    </p>
<p>See <a href="http://math.ucr.edu/home/baez/week302.html">week302</a> for more on feedbacks and how big they&#8217;re likely to be.  </p>
<p>On top of all these subtleties, any proposed solution to the puzzle of glacial cycles needs to keep a few other things in mind, too:</p>
<p>&bull; A really good theory will explain, not just why we have glacial cycles now, but why we didn&#8217;t have them earlier.  As I explained in <a href="http://math.ucr.edu/home/baez/week317.html">week317</a>, they got started around 5 million years ago, became much colder around 2 million years ago, and switched from a roughly 41,000 year cycle to a roughly 100,000 year cycle around 1 million years ago.</p>
<p>&bull; Say we dream up a whopping big positive feedback mechanism that does a great job of keeping the Earth warm when it&#8217;s warm and cold when it&#8217;s cold.  If this effect is strong enough, the Earth may be <b><a href="http://en.wikipedia.org/wiki/Bistability">bistable</a></b>: it will have two stable states, a warm one and a cold one.  Unfortunately, if the effect is <i>too</i> strong, it won&#8217;t be easy for the Earth to pop back and forth between these two states!</p>
<p>The classic example of a bistable system is a switch&mdash;say for an electric light.  When the light is on it stays on; when the light is off it stays off.  If you touch the switch very gently, nothing will happen.  But if you push on it hard enough, it will suddenly pop from on to off, or vice versa.  </p>
<p>If we&#8217;re trying to model the glacial cycles using this idea, we need the switch to have a fairly dramatic effect, yet <i>still be responsive to a fairly gentle touch</i>.  For this to work we need enough positive feedback&#8230; but <i>not too much</i>.</p>
<p>(We could also try a different idea: maybe the Earth keeps itself in its icy glacial state, or its warm interglacial state, using some mechanism that gradually uses something up.  Then, when the Earth runs out of this stuff, whatever it is, the climate can easily flip to the other state.)</p>
<p>We must always remember that to a good approximation, the total amount of sunlight hitting the Earth each year does not change as the Earth&#8217;s orbit changes in the so-called &#8216;Milankovich cycles&#8217; that seem to be causing the ice ages.  I explained why <a href="http://math.ucr.edu/home/baez/318.html">last time</a>.  What changes is not the total amount of sunlight, but something much subtler: the amount of sunlight at <i>particular latitudes</i> in <i>particular seasons!</i>  In particular, Milankovitch claimed, and most scientists believe, that the Earth tends to get cold when there&#8217;s little sunlight hitting the far northern latitudes in summer. </p>
<p>For these and other reasons, any solution to the ice age puzzle is bound to be subtle.  Instead of diving straight into this complicated morass, let&#8217;s try something much simpler.  Let&#8217;s just think about how the ice albedo effect could, in theory, make the Earth bistable.</p>
<p>To do this, let&#8217;s look at the very simplest model in this great not-yet-published book:</p>
<p>&bull; Gerald R. North, <i>Simple Models of Global Climate</i>.</p>
<p>This is a <b>zero-dimensional energy balance model</b>, meaning that it only involves the average temperature of the earth, the average solar radiation coming in, and the average infrared radiation going out.</p>
<p>The average temperature will be <img src='https://s0.wp.com/latex.php?latex=T%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='T,' title='T,' class='latex' /> measured in Celsius.  We&#8217;ll assume the Earth radiates power square meter equal to</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+A+%2B+B+T+%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{ A + B T }' title='&#92;displaystyle{ A + B T }' class='latex' /></p>
<p>where <img src='https://s0.wp.com/latex.php?latex=A+%3D+218&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='A = 218' title='A = 218' class='latex' /> watts/meter<sup>2</sup> and <img src='https://s0.wp.com/latex.php?latex=B+%3D+1.90&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='B = 1.90' title='B = 1.90' class='latex' /> watts/meter<sup>2</sup> per degree Celsius.  This is a linear approximation taken from satellite data on our Earth.  In reality, the power emitted grows faster than linearly with temperature.</p>
<p>We&#8217;ll assume the Earth absorbs solar energy power per square meter equal to</p>
<p><img src='https://s0.wp.com/latex.php?latex=Q+c%28T%29+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='Q c(T) ' title='Q c(T) ' class='latex' /></p>
<p>Here:</p>
<p>&bull; <img src='https://s0.wp.com/latex.php?latex=Q&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='Q' title='Q' class='latex' /> is the average <b><a href="http://en.wikipedia.org/wiki/Insolation">insolation</a></b>: that is, the amount of solar power per square meter hitting the top of the Earth&#8217;s atmosphere, averaged over location and time of year. In reality <img src='https://s0.wp.com/latex.php?latex=Q&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='Q' title='Q' class='latex' /> is about 341.5 watts/meter<sup>2</sup>.  This is one quarter of the <a href="http://www.azimuthproject.org/azimuth/show/Solar%20radiation"><b>solar constant</b></a>, meaning the solar power per square meter that would hit a panel hovering in space above the Earth&#8217;s atmosphere and facing directly at the Sun.  (Why a quarter?  That&#8217;s a nice geometry puzzle: we worked it out at the <a href="https://johncarlosbaez.wordpress.com/2010/10/11/geometry-puzzle/">Azimuth Blog</a> once.)</p>
<p>&bull; <img src='https://s0.wp.com/latex.php?latex=c%28T%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c(T)' title='c(T)' class='latex' /> is the <b>coalbedo</b>: the fraction of solar power that gets absorbed.  The coalbedo depends on the temperature; we&#8217;ll have to say how.</p>
<p>Given all this, we get</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+C+%5Cfrac%7Bd+T%7D%7Bd+t%7D+%3D+-+A+-+B+T+%2B+Q+c%28T%28t%29%29+%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{ C &#92;frac{d T}{d t} = - A - B T + Q c(T(t)) }' title='&#92;displaystyle{ C &#92;frac{d T}{d t} = - A - B T + Q c(T(t)) }' class='latex' /></p>
<p>where <img src='https://s0.wp.com/latex.php?latex=C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='C' title='C' class='latex' /> is Earth&#8217;s heat capacity in joules per degree per square meter.  Of course this is a funny thing, because heat energy is stored not only at the surface but also in the air and/or water, and the details vary a lot depending on where we are.  But if we consider a uniform planet with dry air and no ocean, North says we may roughly take <img src='https://s0.wp.com/latex.php?latex=C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='C' title='C' class='latex' /> equal to about half the heat capacity at constant pressure of the column of dry air over a square meter, namely 5 million joules per degree Celsius.</p>
<p>The easiest thing to do is find equilibrium solutions, meaning solutions where <img src='https://s0.wp.com/latex.php?latex=%5Cfrac%7Bd+T%7D%7Bd+t%7D+%3D+0%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;frac{d T}{d t} = 0,' title='&#92;frac{d T}{d t} = 0,' class='latex' /> so that</p>
<p><img src='https://s0.wp.com/latex.php?latex=A+%2B+B+T+%3D+Q+c%28T%29+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='A + B T = Q c(T) ' title='A + B T = Q c(T) ' class='latex' /></p>
<p>Now <img src='https://s0.wp.com/latex.php?latex=C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='C' title='C' class='latex' /> doesn&#8217;t matter anymore!  We&#8217;d like to solve for <img src='https://s0.wp.com/latex.php?latex=T&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='T' title='T' class='latex' /> as a function of the insolation <img src='https://s0.wp.com/latex.php?latex=Q%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='Q,' title='Q,' class='latex' /> but it&#8217;s easier to solve for <img src='https://s0.wp.com/latex.php?latex=Q&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='Q' title='Q' class='latex' /> as a function of <img src='https://s0.wp.com/latex.php?latex=T&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='T' title='T' class='latex' />:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+Q+%3D+%5Cfrac%7B+A+%2B+B+T+%7D+%7Bc%28T%29%7D+%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{ Q = &#92;frac{ A + B T } {c(T)} }' title='&#92;displaystyle{ Q = &#92;frac{ A + B T } {c(T)} }' class='latex' /></p>
<p>To go further, we need to guess some formula for the coalbedo <img src='https://s0.wp.com/latex.php?latex=c%28T%29.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c(T).' title='c(T).' class='latex' /> The coalbedo, remember, is the fraction of sunlight that gets absorbed when it hits the Earth.  It&#8217;s 1 minus the <a href="http://en.wikipedia.org/wiki/Albedo"><b>albedo</b></a>, which is the fraction that gets reflected.  Here&#8217;s a little chart of albedos:</p>
<div align="center"><a href="http://en.wikipedia.org/wiki/Albedo"><img src="https://i0.wp.com/upload.wikimedia.org/wikipedia/commons/thumb/1/18/Albedo-e_hg.svg/429px-Albedo-e_hg.svg.png" /></a></div>
<p>If you get mixed up between albedo and coalbedo, just remember: coal has a high coalbedo.</p>
<p>Since we&#8217;re trying to keep things very simple right not, <i>not</i> model nature in all its glorious complexity, let&#8217;s just say the average albedo of the Earth is 0.65 when it&#8217;s very cold and there&#8217;s lots of snow.  So, let</p>
<p><img src='https://s0.wp.com/latex.php?latex=c_i+%3D+1++-+0.65+%3D++0.35+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c_i = 1  - 0.65 =  0.35 ' title='c_i = 1  - 0.65 =  0.35 ' class='latex' /></p>
<p>be the &#8216;<b>i</b>cy&#8217; coalbedo, good for very low temperatures.  Similarly, let&#8217;s say the average albedo drops to 0.3 when its very hot and the Earth is darker.  So, let </p>
<p><img src='https://s0.wp.com/latex.php?latex=c_f+%3D+1+-+0.3+%3D+0.7+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c_f = 1 - 0.3 = 0.7 ' title='c_f = 1 - 0.3 = 0.7 ' class='latex' /></p>
<p>be the &#8216;ice-<b>f</b>ree&#8217; coalbedo, good for high temperatures when the Earth is darker.  </p>
<p>Then, we need a function of temperature that interpolates between <img src='https://s0.wp.com/latex.php?latex=c_i&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c_i' title='c_i' class='latex' /> and <img src='https://s0.wp.com/latex.php?latex=c_f.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c_f.' title='c_f.' class='latex' />  Let&#8217;s try this:</p>
<p><img src='https://s0.wp.com/latex.php?latex=c%28T%29+%3D+c_i+%2B+%5Cfrac%7B1%7D%7B2%7D+%28c_f-c_i%29+%281+%2B+%5Ctanh%28%5Cgamma+T%29%29+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c(T) = c_i + &#92;frac{1}{2} (c_f-c_i) (1 + &#92;tanh(&#92;gamma T)) ' title='c(T) = c_i + &#92;frac{1}{2} (c_f-c_i) (1 + &#92;tanh(&#92;gamma T)) ' class='latex' /></p>
<p>If you&#8217;re not a fan of the <a href="http://en.wikipedia.org/wiki/Hyperbolic_function">hyperbolic tangent</a> function <img src='https://s0.wp.com/latex.php?latex=%5Ctanh%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;tanh,' title='&#92;tanh,' class='latex' /> this may seem scary.  But don&#8217;t be intimidated!</p>
<p>The function <img src='https://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7B2%7D%281+%2B+%5Ctanh%28%5Cgamma+T%29%29+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;frac{1}{2}(1 + &#92;tanh(&#92;gamma T)) ' title='&#92;frac{1}{2}(1 + &#92;tanh(&#92;gamma T)) ' class='latex' /> is just a function that goes smoothly from 0 at low temperatures to 1 at high temperatures.  This ensures that the coalbedo is near its icy value <img src='https://s0.wp.com/latex.php?latex=c_i&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c_i' title='c_i' class='latex' /> at low temperatures, and near its ice-free value <img src='https://s0.wp.com/latex.php?latex=c_f&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c_f' title='c_f' class='latex' /> at high temperatures.  But the fun part here is <img src='https://s0.wp.com/latex.php?latex=%5Cgamma%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;gamma,' title='&#92;gamma,' class='latex' /> a parameter that says how rapidly the coalbedo rises as the Earth gets warmer.  Depending on this, we&#8217;ll get different effects!</p>
<p>The function <img src='https://s0.wp.com/latex.php?latex=c%28T%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c(T)' title='c(T)' class='latex' /> rises fastest at <img src='https://s0.wp.com/latex.php?latex=T+%3D+0%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='T = 0,' title='T = 0,' class='latex' /> since that&#8217;s where <img src='https://s0.wp.com/latex.php?latex=%5Ctanh+%28%5Cgamma+T%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;tanh (&#92;gamma T)' title='&#92;tanh (&#92;gamma T)' class='latex' /> has the biggest slope.  We&#8217;re just lucky that in Celsius <img src='https://s0.wp.com/latex.php?latex=T+%3D+0&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='T = 0' title='T = 0' class='latex' /> is the melting point of ice, so this makes a bit of sense.</p>
<p>Now Allan Erskine&#8217;s programming magic comes into play!  Unfortunately it doesn&#8217;t work on this blog&mdash;yet!&mdash;so please hop over to the version of this article <a href="http://math.ucr.edu/home/baez/week319.html">on my website</a> to see it in action.  </p>
<p>You can slide a slider to adjust the parameter <img src='https://s0.wp.com/latex.php?latex=%5Cgamma&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;gamma' title='&#92;gamma' class='latex' /> to various values between 0 and 1.  </p>
<p>You can then see how the coalbedo <img src='https://s0.wp.com/latex.php?latex=c%28T%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c(T)' title='c(T)' class='latex' /> changes as a function of the temperature <img src='https://s0.wp.com/latex.php?latex=T.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='T.' title='T.' class='latex' /> In this graph the temperature ranges from -50 &deg;C and 50 &deg;C; the graph depends on what value of <img src='https://s0.wp.com/latex.php?latex=%5Cgamma&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;gamma' title='&#92;gamma' class='latex' /> you choose with slider.</p>
<p>You can also see how the insolation <img src='https://s0.wp.com/latex.php?latex=Q&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='Q' title='Q' class='latex' /> required to yield a given temperature <img src='https://s0.wp.com/latex.php?latex=T&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='T' title='T' class='latex' /> between -50 &deg;C and 50 &deg;C:</p>
<p>It&#8217;s easiest to solve for <img src='https://s0.wp.com/latex.php?latex=Q&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='Q' title='Q' class='latex' /> in terms of <img src='https://s0.wp.com/latex.php?latex=T.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='T.' title='T.' class='latex' />  But it&#8217;s more intuitive to flip this graph over and see what equilibrium temperatures <img src='https://s0.wp.com/latex.php?latex=T&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='T' title='T' class='latex' /> are allowed for a given insolation <img src='https://s0.wp.com/latex.php?latex=Q&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='Q' title='Q' class='latex' /> between 200 and 500 watts per square mater.</p>
<p>The exciting thing is that when <img src='https://s0.wp.com/latex.php?latex=%5Cgamma&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;gamma' title='&#92;gamma' class='latex' /> gets big enough, <i>three different temperatures are compatible with the same amount of insolation!</i>  This means the Earth can be hot, cold or something intermediate even when the amount of sunlight hitting it is fixed.  The intermediate state is unstable, it turns out.  Only the hot and cold states are stable.  So, we say the Earth is <b>bistable</b> in this simplified model.</p>
<p>Can you see how big <img src='https://s0.wp.com/latex.php?latex=%5Cgamma&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;gamma' title='&#92;gamma' class='latex' /> needs to be for this bistability to kick in?  It&#8217;s certainly there when <img src='https://s0.wp.com/latex.php?latex=%5Cgamma+%3D+0.05%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;gamma = 0.05,' title='&#92;gamma = 0.05,' class='latex' /> since then we get a graph like this:</p>
<div align="center">
<img width="450" src="https://i2.wp.com/math.ucr.edu/home/baez/week319_temperature_versus_insolation.jpg" />
</div>
<p>When the insolation is less than about 385 W/m<sup>2</sup> there&#8217;s only a cold state.  When it hits 385 W/m<sup>2</sup>, as shown by the <font color="green"><b>green line</b></font>, suddenly there are two possible temperatures: a cold one and a much hotter one.  When the insolation is higher, as shown by the <b>black line</b>, there are three possible temperatures: a cold one, and unstable intermediate one, and a hot one.  And when the insolation gets above 465 W/m<sup>2</sup>, as shown by the <font color="red"><b>red line</b></font>, there&#8217;s only a hot state!</p>
<p>Why is the intermediate state unstable when it exists?  Why are the other two equilibria stable?  To answer these questions, we&#8217;d need to go back and study the original equation:</p>
<p><img src='https://s0.wp.com/latex.php?latex=C+%5Cfrac%7Bd+T%7D%7Bd+t%7D+%3D+-+A+-+B+T+%2B+Q+c%28T%28t%29%29+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='C &#92;frac{d T}{d t} = - A - B T + Q c(T(t)) ' title='C &#92;frac{d T}{d t} = - A - B T + Q c(T(t)) ' class='latex' /></p>
<p>and see what happens when we push <img src='https://s0.wp.com/latex.php?latex=T&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='T' title='T' class='latex' /> slightly away from one of its equilibrium values.  That&#8217;s really fun, but we won&#8217;t do it today.  Instead, let&#8217;s draw some conclusions from what we&#8217;ve just seen.  There are at least three morals: a mathematical moral, a climate science model, and a software moral.</p>
<p>Mathematically, this model illustrates catastrophe theory.  As we slowly turn up <img src='https://s0.wp.com/latex.php?latex=%5Cgamma%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;gamma,' title='&#92;gamma,' class='latex' /> we get different curves showing how temperature is a function of insolation&#8230; until suddenly the curve isn&#8217;t the graph of a function anymore: it becomes infinitely steep at one point!  After that, we get bistability:</p>
<div align="center">
 <img width="300" src="https://i2.wp.com/math.ucr.edu/home/baez/week319_gamma_0.00.jpg" /><br />
<img src='https://s0.wp.com/latex.php?latex=%5Cgamma+%3D+0.00+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;gamma = 0.00 ' title='&#92;gamma = 0.00 ' class='latex' /><br />
 <img width="300" src="https://i1.wp.com/math.ucr.edu/home/baez/week319_gamma_0.01.jpg" /><br />
<img src='https://s0.wp.com/latex.php?latex=%5Cgamma+%3D+0.01+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;gamma = 0.01 ' title='&#92;gamma = 0.01 ' class='latex' /><br />
 <img width="300" src="https://i2.wp.com/math.ucr.edu/home/baez/week319_gamma_0.02.jpg" /><br />
<img src='https://s0.wp.com/latex.php?latex=%5Cgamma+%3D+0.02+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;gamma = 0.02 ' title='&#92;gamma = 0.02 ' class='latex' /><br />
 <img width="300" src="https://i1.wp.com/math.ucr.edu/home/baez/week319_gamma_0.03.jpg" /><br />
<img src='https://s0.wp.com/latex.php?latex=%5Cgamma+%3D+0.03+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;gamma = 0.03 ' title='&#92;gamma = 0.03 ' class='latex' /><br />
 <img width="300" src="https://i0.wp.com/math.ucr.edu/home/baez/week319_gamma_0.04.jpg" /><br />
<img src='https://s0.wp.com/latex.php?latex=%5Cgamma+%3D+0.04+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;gamma = 0.04 ' title='&#92;gamma = 0.04 ' class='latex' /><br />
 <img width="300" src="https://i2.wp.com/math.ucr.edu/home/baez/week319_gamma_0.05.jpg" /><br />
<img src='https://s0.wp.com/latex.php?latex=%5Cgamma+%3D+0.05+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;gamma = 0.05 ' title='&#92;gamma = 0.05 ' class='latex' />
</div>
<p>This is called a <b><a href="http://en.wikipedia.org/wiki/Catastrophe_theory#Cusp_catastrophe">cusp catastrophe</a></b>, and you can visualize these curves as slices of a surface in 3d, which looks roughly like this picture:</p>
<div align="center">
<a href="http://mathworld.wolfram.com/CuspCatastrophe.html"><br />
<img border="none" src="https://i0.wp.com/math.ucr.edu/home/baez/cusp_catastrophe.jpg" /><br />
</a>
</div>
<p>from here:</p>
<p>&bull; Wolfram Mathworld, <a href="http://mathworld.wolfram.com/CuspCatastrophe.html">Cusp catastrophe</a>.  (Includes Mathematica package.)</p>
<p>The cusp catastrophe is <a href="http://en.wikipedia.org/wiki/Structural_stability">&#8216;structurally stable&#8217;</a>, meaning that small perturbations don&#8217;t change its qualitative behavior.  This concept is made precise in catastrophe theory.  It&#8217;s a useful concept, because it focuses our attention on <i>robust</i> features of models: features that don&#8217;t go away if the model is slightly wrong, as it always is.</p>
<p>As far as climate science goes, one moral is that it pays to spend some time making sure we understand simple models before we dive into more complicated ones.  Right now we&#8217;re looking at a <i>very</i> simple model, but we&#8217;re already seeing some interesting phenomena.  The kind of model we&#8217;re looking at now is called a <b>Budyko-Sellers model</b>. These have been studied since the late 1960&#8217;s:</p>
<p>&bull; M. I. Budyko, On the origin of glacial epochs (in Russian), <i>Meteor. Gidrol.</i> <b>2</b> (1968), 3-8.</p>
<p>&bull; M. I. Budyko, <a href="http://tellusa.net/index.php/tellusa/article/viewFile/10109/11722">The effect of solar radiation variations on the climate of the earth</a>, <i><a href="http://onlinelibrary.wiley.com/doi/10.1111/j.2153-3490.1969.tb00466.x/abstract">Tellus</a></i> <b>21</b> (1969), 611-619.</p>
<p>&bull; William D. Sellers, <a href="http://journals.ametsoc.org/doi/pdf/10.1175/1520-0450%281969%29008%3C0392%3AAGCMBO%3E2.0.CO%3B2">A global climatic model based on the energy balance of the earth-atmosphere system</a>, <i><a>J. Appl. Meteor.</a></i> <b>8</b> (1969), 392-400.</p>
<p>&bull; Carl Crafoord and Erland K&auml;ll&eacute;n, <a href="http://journals.ametsoc.org/doi/pdf/10.1175/1520-0469%281978%29035%3C1123%3AANOTCF%3E2.0.CO%3B2">A note on the condition for existence of more than one steady state solution in Budyko-Sellers type models</a>, <i><a href="http://journals.ametsoc.org/doi/abs/10.1175/1520-0469%281978%29035%3C1123%3AANOTCF%3E2.0.CO%3B2">J. Atmos.  Sci.</a></i> <b>35</b> (1978), 1123-1125.</p>
<p>&bull; Gerald R. North, David Pollard and Bruce Wielicki, <a href="http://journals.ametsoc.org/doi/pdf/10.1175/1520-0469%281979%29036%3C0255%3AVFOBSC%3E2.0.CO%3B2">Variational formulation of Budyko-Sellers climate models</a>, <i><a href="http://journals.ametsoc.org/doi/abs/10.1175/1520-0469%281979%29036%3C0255%3AVFOBSC%3E2.0.CO%3B2">J. Atmos. Sci.</a></i> <b>36</b> (1979), 255-259.</p>
<p>It also pays to compare our models to reality!   For example, the graphs we&#8217;ve seen show some remarkably hot and cold temperatures for the Earth.  That&#8217;s a bit unnerving.  Let&#8217;s investigate.  Suppose we set <img src='https://s0.wp.com/latex.php?latex=%5Cgamma+%3D+0&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;gamma = 0' title='&#92;gamma = 0' class='latex' /> on our slider.  Then the coalbedo of the Earth becomes independent of temperature: it&#8217;s 0.525, halfway between its icy and ice-free values.  Then, when the insolation takes its actual value of 342.5 watts per square meter, the model says the Earth&#8217;s temperature is very chilly: about -20 &deg;C!</p>
<p>Does that mean the model is fundamentally flawed?  Maybe not!  After all, it&#8217;s based on very light-colored Earth.  Suppose we use the <i>actual</i> albedo of the Earth.  Of course that&#8217;s hard to define, much less determine.  But let&#8217;s just look up some <a href="http://en.wikipedia.org/wiki/Albedo#Terrestrial_albedo">average value of the Earth&#8217;s albedo</a>: supposedly it&#8217;s about 0.3.  That gives a coalbedo of <img src='https://s0.wp.com/latex.php?latex=c+%3D+0.7.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c = 0.7.' title='c = 0.7.' class='latex' />  If we plug that in our formula:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+Q+%3D+%5Cfrac%7B+A+%2B+B+T+%7D+%7Bc%7D+%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{ Q = &#92;frac{ A + B T } {c} }' title='&#92;displaystyle{ Q = &#92;frac{ A + B T } {c} }' class='latex' /></p>
<p>we get 11 &deg;C.  That&#8217;s not too far from the Earth&#8217;s actual average temperature, namely about 15 &deg; C.   So the chilly temperature of -20 &deg;C seems to come from an Earth that&#8217;s a lot lighter in color than ours.  </p>
<p>Our model includes the greenhouse effect, since the coeficients <img src='https://s0.wp.com/latex.php?latex=A&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='A' title='A' class='latex' /> and <img src='https://s0.wp.com/latex.php?latex=B&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='B' title='B' class='latex' /> were determined by satellite measurements of how much radiation actually escapes the Earth&#8217;s atmosphere and shoots out into space.  As a further check to our model, we can look at an even <i>simpler</i> zero-dimensional energy balance model: a completely black Earth with no greenhouse effect.  Another member of the Azimuth Project has written about this:</p>
<p>&bull; Tim van Beek, <a href="https://johncarlosbaez.wordpress.com/2011/06/19/putting-the-earth-in-a-box/">Putting the Earth in a box</a>, <i>Azimuth</i>, 19 June 2011.</p>
<p>&bull; Tim van Beek, <a href="https://johncarlosbaez.wordpress.com/2011/07/02/a-quantum-of-warmth/">A quantum of warmth</a>, <i>Azimuth</i>, 2 July 2011.</p>
<p>As he explains, this model gives the Earth a temperature of 6 &deg;C.  He also shows that in this model, lowering the albedo to a realistic value of 0.3 lowers the temperature to a chilly -18 &deg; C.  To get from that to something like our Earth, we must take the greenhouse effect into account.</p>
<p>This sort of fiddling around is the sort of thing we must do to study the flaws and virtues of a climate model.  Of course, any <i>realistic</i> climate model is vastly more sophisticated than the little toy we&#8217;ve been looking at, so the &#8216;fiddling around&#8217; must also be more sophisticated.  With a more sophisticated model, we can also be more demanding.  For example, when I said 11 &deg;C is &#8220;is not too far from the Earth&#8217;s actual average temperature, namely about 15 &deg; C&#8221;, I was being very blas&eacute; about what&#8217;s actually a big discrepancy.  I only took that attitude because the calculations we&#8217;re doing now are very preliminary.   </p>
<p>Finally, here&#8217;s what Allan has to say about the software you&#8217;ve just seen, and some fancier software you&#8217;ll see in forthcoming weeks:</p>
<blockquote><p>
Your original question in the Azimuth Forum was &#8220;What&#8217;s the easiest way to write simple programs of this sort that could be accessed and operated by clueless people online?&#8221;  A &#8220;simple program&#8221; for the climate model you proposed needed two elements:  a means to solve the ODE (ordinary differential equation) describing the model, and a means to interact with and visualize the results for the (clearly) &#8220;clueless people online&#8221;.</p>
<p>Some good suggestions were made by members of the forum:</p>
<p>&bull; use a full-fledged numerical computing package such as Sage or Matlab which come loaded to the teeth with ODE solvers and interactive charting;</p>
<p>&bull; use a full-featured programming language like Java which has libraries available for ode solving and charting, and which can be packaged as an applet for the web;</p>
<p>&bull; do all the computation and visualization ourselves in Javascript.</p>
<p>While the first two suggestions were superior for computing the ODE solutions, I knew from bitter experience (as a software developer) that the truly clueless people were us bold forum members engaged in this new online enterprise:  none of us were experts in this interactive/online math thing, and programming new software is almost always harder than you expect it to be.</p>
<p>Then actually releasing new software is harder still!  Especially to an audience as large as your readership.  To come up an interactive solution that would work on many different computers/browsers, the most mundane and pedestrian suggestion of &#8220;do it all ourselves in Javascript and have them run it in the browser&#8221; was also the most likely to be a success.</p>
<p>The issue with Javascript was that not many people use it for numerical computation, and I was down on our chances of success until Staffan pointed out the excellent <a href="http://jsxgraph.uni-bayreuth.de/wp/">JSXGraph software</a>.   JSXGraph has many examples available to get up and running, has an ODE solver, and after a copy/paste or two and some tweaking on my part we were all set.</p>
<p>The true vindication for going all-Javascript though was that you were subsequently able to do some copy/pasting of your own directly into TWF without any servers needing configured etc., or even any help from me!  The graphs ought to be viewable by your readership for as long as browsers support Javascript (a sign of a good software release is that you don&#8217;t have to think about it afterwards).</p>
<p>There are some improvements I would make to how we handle future projects which we have discussed in the Forum.  Foremost, using Javascript to do all our numerical work is not going to attract the best and brightest minds from the forum (or elsewhere) to help with subsequent models.  My personal hope is that we allow all the numerical work to be done in whatever language people feel productive with, and that we come up with a slick way for you to embed and interact with just the data from these models in your webpages.  Glyn Adgie and Jim Stuttard seem to have some great momentum in this direction.</p>
<p>Or perhaps creating and editing interactive math online will eventually become as easy as wiki pages are today&mdash;I know Staffan had said the Sage developers were looking to make their online workbooks more interactive.  Also the bright folks behind the <a href="http://julialang.org/">new Julia language</a> are discussing ways to run (and presumably interact with) Julia in the cloud.  So perhaps we should just have dragged our feet on this project for a few years for all this cool stuff to help us out!  (And let&#8217;s wait for the Singularity while we&#8217;re at it.)
</p></blockquote>
<p>No, let&#8217;s not!  I hope you programmers out there can help us find good solutions to the problems Allan faced.  And I hope some of you actually join the team.</p>
<p>By the way, Allan has a somewhat spiffier version of the same Budyko-Sellers model <a href="http://math.ucr.edu/home/baez/coalbedo/coalbedo_new.html">here</a>.</p>
<p>For discussions of this issue of This Week&#8217;s Finds visit my blog, <a href="https://johncarlosbaez.wordpress.com/2012/04/11/this-weeks-finds-in-mathematical-physics-week-319/">Azimuth</a>.  And if you want to get involved in creating online climate models, contact me and/or join the <a href="http://www.azimuthproject.org/azimuth/show/Forum+help">Azimuth Forum</a>.  </p>
<hr />
<p><i>Thus, the present thermal regime and glaciations of the Earth prove to be characterized by high instability.  Comparatively small changes of radiation&mdash;only by 1.0-1.5%&mdash;are sufficient for the development of ice cover on the land and oceans that reaches temperate latitudes.</i> &#8211; <a href="http://tellusa.net/index.php/tellusa/article/viewFile/10109/11722">M. I. Budyko</a></p>
]]></html><thumbnail_url><![CDATA[https://i0.wp.com/upload.wikimedia.org/wikipedia/commons/thumb/1/18/Albedo-e_hg.svg/429px-Albedo-e_hg.svg.png?fit=440%2C330]]></thumbnail_url><thumbnail_height><![CDATA[330]]></thumbnail_height><thumbnail_width><![CDATA[235]]></thumbnail_width></oembed>