{"id":265,"date":"2009-12-30T10:00:37","date_gmt":"2009-12-30T10:00:37","guid":{"rendered":"https:\/\/www.open.ac.uk\/blogs\/is\/?p=265"},"modified":"2011-07-30T10:28:57","modified_gmt":"2011-07-30T10:28:57","slug":"semi-log-graphs","status":"publish","type":"post","link":"https:\/\/www.open.ac.uk\/blogs\/is\/?p=265","title":{"rendered":"Semi-log graphs"},"content":{"rendered":"<h3>Introduction<\/h3>\n<p>Last week E asked me about some biological data which could be modelled by an exponential curve, similar to the one shown below. It is the graph of a function such as f(x) = kexp(-sx), for positive constants k and s.<\/p>\n<p><a href=\"https:\/\/www.open.ac.uk\/blogs\/is\/wp-content\/uploads\/2011\/07\/graph1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-266\" title=\"graph1\" src=\"https:\/\/www.open.ac.uk\/blogs\/is\/wp-content\/uploads\/2011\/07\/graph1.png\" alt=\"\" width=\"237\" height=\"228\" \/><\/a><\/p>\n<p>Ellie had another version of this graph, shown below.<\/p>\n<p><a href=\"https:\/\/www.open.ac.uk\/blogs\/is\/wp-content\/uploads\/2011\/07\/graph2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-267\" title=\"graph2\" src=\"https:\/\/www.open.ac.uk\/blogs\/is\/wp-content\/uploads\/2011\/07\/graph2.png\" alt=\"\" width=\"236\" height=\"228\" \/><\/a><\/p>\n<p>I immediately thought that this was the graph of log f, rather than f, and that the intercept with the vertical axis should be at log k, rather than k. However, E said that this graph was a <em>semi-log graph<\/em>, and I later realised what she meant by this, and that the intercept with the vertical axis should indeed be k rather than log k.<\/p>\n<p>To give you an idea of what a semi-log graph is, here is an example of such a graph, with the axes labels carefully marked. This semi-log graph uses log to base 10, rather than log to base e.<\/p>\n<p><a href=\"https:\/\/www.open.ac.uk\/blogs\/is\/wp-content\/uploads\/2011\/07\/graph3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-268\" title=\"graph3\" src=\"https:\/\/www.open.ac.uk\/blogs\/is\/wp-content\/uploads\/2011\/07\/graph3.png\" alt=\"\" width=\"251\" height=\"244\" \/><\/a><\/p>\n<p>On the vertical axis, the label b occurs where the label log b would usually occur. The horizontal axis remains as usual. Hence the phrase <em>semi-log<\/em>. Adjusting the scale of the vertical axis affects the graph (and likewise for the horizontal axis). A question presents itself: <em>how much freedom do we have in changing the shape of a graph by adjusting the horizontal and vertical axes?<\/em> I thought this question might lead to a source of problems for NRICH.<\/p>\n<h3>Examples<\/h3>\n<p>From now on, for simplicity, we restrict attention to maps that fix 0. In the next diagram, the graph of the function f(x)=x is altered by a change in the vertical axis scale.<\/p>\n<p><a href=\"https:\/\/www.open.ac.uk\/blogs\/is\/wp-content\/uploads\/2011\/07\/graph5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-270\" title=\"graph5\" src=\"https:\/\/www.open.ac.uk\/blogs\/is\/wp-content\/uploads\/2011\/07\/graph5.png\" alt=\"\" width=\"526\" height=\"228\" srcset=\"https:\/\/www.open.ac.uk\/blogs\/is\/wp-content\/uploads\/2011\/07\/graph5.png 526w, https:\/\/www.open.ac.uk\/blogs\/is\/wp-content\/uploads\/2011\/07\/graph5-300x130.png 300w\" sizes=\"auto, (max-width: 526px) 100vw, 526px\" \/><\/a><\/p>\n<p>We are allowed to expand and contract the vertical axis scale as we wish, but the ordering of the axis labels must remain the same if the graph is to be of any use at all. With this freedom, f(x)=x can be transformed to g(x)=x<sup>3<\/sup> and h(x)=e<sup>x<\/sup>-1. It is impossible to create from f(x)=x a graph with a stationary point though, as indicated in the next diagram.<\/p>\n<p><a href=\"https:\/\/www.open.ac.uk\/blogs\/is\/wp-content\/uploads\/2011\/07\/graph6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-271\" title=\"graph6\" src=\"https:\/\/www.open.ac.uk\/blogs\/is\/wp-content\/uploads\/2011\/07\/graph6.png\" alt=\"\" width=\"520\" height=\"228\" srcset=\"https:\/\/www.open.ac.uk\/blogs\/is\/wp-content\/uploads\/2011\/07\/graph6.png 520w, https:\/\/www.open.ac.uk\/blogs\/is\/wp-content\/uploads\/2011\/07\/graph6-300x131.png 300w\" sizes=\"auto, (max-width: 520px) 100vw, 520px\" \/><\/a><\/p>\n<p>The reason for this will be explained later. Likewise the two graphs in the next diagram cannot be transformed from one to the other.<\/p>\n<p><a href=\"https:\/\/www.open.ac.uk\/blogs\/is\/wp-content\/uploads\/2011\/07\/graph6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-271\" title=\"graph6\" src=\"https:\/\/www.open.ac.uk\/blogs\/is\/wp-content\/uploads\/2011\/07\/graph6.png\" alt=\"\" width=\"520\" height=\"228\" srcset=\"https:\/\/www.open.ac.uk\/blogs\/is\/wp-content\/uploads\/2011\/07\/graph6.png 520w, https:\/\/www.open.ac.uk\/blogs\/is\/wp-content\/uploads\/2011\/07\/graph6-300x131.png 300w\" sizes=\"auto, (max-width: 520px) 100vw, 520px\" \/><\/a><\/p>\n<p>The left hand graph has a maximum, followed by a minimum, and then another maximum. The right hand graph has a maximum, followed by a minimum, and then a saddle point. That means these two graphs are inequivalent. Here is another set of examples.<\/p>\n<p><a href=\"https:\/\/www.open.ac.uk\/blogs\/is\/wp-content\/uploads\/2011\/07\/graph7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-272\" title=\"graph7\" src=\"https:\/\/www.open.ac.uk\/blogs\/is\/wp-content\/uploads\/2011\/07\/graph7.png\" alt=\"\" width=\"531\" height=\"343\" srcset=\"https:\/\/www.open.ac.uk\/blogs\/is\/wp-content\/uploads\/2011\/07\/graph7.png 531w, https:\/\/www.open.ac.uk\/blogs\/is\/wp-content\/uploads\/2011\/07\/graph7-300x193.png 300w\" sizes=\"auto, (max-width: 531px) 100vw, 531px\" \/><\/a><\/p>\n<p>Graph A is not equivalent to graph B because the first maximum of A is larger than the second maximum of A, whereas the first maximum of B is smaller than the second maximum of B. Graph A is not equivalent to graph C because graph C has a whole interval of stationary points. Graph A is not equivalent to graph D because graph D has five stationary points, whereas graph A has only three. Graph A <em>is<\/em> equivalent to graph E: they both have three stationary points, and each function takes its maximum value at the first stationary point, and its minimum value at the second stationary point. Graph A is not equivalent to graph F because graph F has five stationary points. Graph F is not equivalent to graph D because the ordering of the values of the functions at the stationary points differ. In fact, of the six graphs, only graphs A and E are equivalent.<\/p>\n<p>In the next two sections we study our problem formally.<\/p>\n<h3>Graph equivalence<\/h3>\n<p>In this formal explanation we restrict attention to the class U of continuously differentiable real functions  which map [0,\u221e) to itself, and which fix the point 0. In this class we can explain the key ideas, and it is easy to generalise to include all the functions shown above.<\/p>\n<p>The <em>graph<\/em> G(f) of an element of U is the set {(x,f(x)) : x&gt;0}. The semi-log graph of f is the graph G(log f), but with the label b on the vertical axis replaced with exp b. However, log f is not a member of U, so we introduce another class V consisting of strictly increasing continuously differentiable maps of [0,\u221e) onto itself. Contracting and expanding the vertical axis of the graph of f is equivalent to replacing G(f) with G(gf), where g is a member of V. Likewise, contracting and expanding the horizontal axis of f is equivalent to replacing G(f) with G(fh), where, again, h is a member of V. We ignore issues about labelling of the horizontal and vertical axes as they are a distraction. Let us say that two elements f<sub>1<\/sub> and f<sub>2<\/sub> of U are <em>equivalent<\/em> if there exist maps g and h in V such that f<sub>2<\/sub>= gf<sub>1<\/sub>h. This is an equivalence relation on U. The question from the end of the first section becomes:<\/p>\n<p><em>what are the equivalence classes of U?<\/em><\/p>\n<p>Or, in other words:<\/p>\n<p><em>given maps f<sub>1<\/sub> and f<sub>2<\/sub> in U, do there exist maps g and h in V such that f<sub>2<\/sub> = gf<sub>1<\/sub>h?<\/em><\/p>\n<h3>Stationary points<\/h3>\n<p>Suppose that f<sub>1<\/sub> and f<sub>2<\/sub> are equivalent elements in U, with f<sub>2<\/sub> = gf<sub>1<\/sub>h. What common features do they have? Suppose that f<sub>1<\/sub>&#8216;(x)=0. Then, by the chain-rule, f<sub>2<\/sub>&#8216;(x)=0 also. This means that f<sub>1<\/sub> and f<sub>2<\/sub> must have the same number of critical points. For simplicity, let us restrict to the subset W of U consisting of those elements f of U which have finitely many critical points, and are such that if a and b are critical points of f, then f(a) and f(b) are distinct.<\/p>\n<p>Let f have critical points p<sub>1<\/sub> &lt; p<sub>2<\/sub> &lt; &#8230; &lt; p<sub>n<\/sub>, and let q<sub>1<\/sub>, q<sub>2<\/sub>,&#8230;,q<sub>n<\/sub> be the corresponding critical values (so that q<sub>i<\/sub>=f(p<sub>i<\/sub>)). Let \u03b3 denote the unique permutation from S<sub>n<\/sub> such that q<sub>\u03b3(1)<\/sub> &lt; q<sub>\u03b3(2)<\/sub> &lt; &#8230; &lt; q<sub>\u03b3(n)<\/sub>. We describe \u03b3 as the <em>permutation associated to<\/em> f. The following theorem characterises equivalence in terms of permutations.<\/p>\n<p><strong>Theorem.<\/strong>Two elements of W are equivalent if and only if their associated permutations are equal.<\/p>\n<p><strong>Sketch proof.<\/strong> Suppose first that f<sub>1<\/sub> and f<sub>2<\/sub> are equivalent elements in U, which means that there are maps g and h in V such that f<sub>2<\/sub> = gf<sub>1<\/sub>h<sup>-1<\/sup>. Let p<sub>1<\/sub> &lt; p<sub>2<\/sub> &lt; &#8230; &lt; p<sub>n<\/sub> be the critical points of f<sub>1<\/sub>, and let \u03b3 be the permutation associated to f. Then the critical points of f<sub>2<\/sub> are h(p<sub>1<\/sub>) &lt; h(p<sub>2<\/sub>) &lt; &#8230; &lt; h(p<sub>n<\/sub>), and the critical values are f<sub>2<\/sub>h(p<sub>i<\/sub>) for i=1,2,&#8230;,n. However, f<sub>2<\/sub>h = gf<sub>1<\/sub>, which means that the critical values of f<sub>2<\/sub> are gf<sub>1<\/sub>(p<sub>i<\/sub>) for i=1,2,&#8230;,n. Since g preserves order, the permutation associated to f<sub>2<\/sub> is also \u03b3.<\/p>\n<p>Conversely, if the permutations associated to f<sub>1<\/sub> and f<sub>2<\/sub> are equal then, after applying preliminary transformations on the left and right, we can assume that they have identical critical points and critical values. That is, we can assume that f<sub>1<\/sub> and f<sub>2<\/sub> both have critical points p<sub>1<\/sub> &lt; p<sub>2<\/sub> &lt; &#8230; &lt; p<sub>n<\/sub>, and critical values q<sub>1<\/sub>, q<sub>2<\/sub>,&#8230;,q<sub>n<\/sub>. To finish the proof, define p<sub>0<\/sub>=0, p<sub>n+1<\/sub>=\u221e, and define h to be the element of U that is equal to  f<sub>2<\/sub><sup>-1<\/sup>f<sub>1<\/sub> when restricted to the interval [p<sub>i-1<\/sub>,p<sub>i<\/sub>], for i=1,2,&#8230;,n+1. Then f<sub>2<\/sub>h = f<sub>1<\/sub>, and this completes the proof.<\/p>\n<p>There is a similar (but slightly more complicated) theorem for U rather than W.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Last week E asked me about some biological data which could be modelled by an exponential curve, similar to the one shown below. It is the graph of a function such as f(x) = kexp(-sx), for positive constants k and s. Ellie had another version of this graph, shown below. I immediately thought that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,3],"tags":[],"class_list":["post-265","post","type-post","status-publish","format-standard","hentry","category-analysis","category-mathematics"],"_links":{"self":[{"href":"https:\/\/www.open.ac.uk\/blogs\/is\/index.php?rest_route=\/wp\/v2\/posts\/265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.open.ac.uk\/blogs\/is\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.open.ac.uk\/blogs\/is\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.open.ac.uk\/blogs\/is\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.open.ac.uk\/blogs\/is\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=265"}],"version-history":[{"count":6,"href":"https:\/\/www.open.ac.uk\/blogs\/is\/index.php?rest_route=\/wp\/v2\/posts\/265\/revisions"}],"predecessor-version":[{"id":308,"href":"https:\/\/www.open.ac.uk\/blogs\/is\/index.php?rest_route=\/wp\/v2\/posts\/265\/revisions\/308"}],"wp:attachment":[{"href":"https:\/\/www.open.ac.uk\/blogs\/is\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.open.ac.uk\/blogs\/is\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.open.ac.uk\/blogs\/is\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}