{"id":27,"date":"2004-05-23T10:33:44","date_gmt":"2004-05-23T10:33:44","guid":{"rendered":"http:\/\/www.sixthform.info\/maths\/?p=27"},"modified":"2007-10-31T14:46:37","modified_gmt":"2007-10-31T14:46:37","slug":"two-interesting-functions","status":"publish","type":"post","link":"https:\/\/www.sixthform.info\/maths\/?p=27","title":{"rendered":"Two Interesting Functions"},"content":{"rendered":"<p>At A level students only see reasonably nice functions, though occasionally they come across <\/p>\n<ul><img decoding=\"async\" src=\"http:\/\/sixthform.info\/maths\/files\/cosec.gif\" border=\"0\" alt=\"Graph of cosec\" \/><\/ul>\n<p> where the maximum is smaller than the minimum (which, incidentally, is why one should use the terms <i>local maximum<\/i> and <i>local minimum<\/i> instead).<\/p>\n<p>But what they won&#8217;t have come across are functions like these:<\/p>\n<ul><img src='\/maths\/latexrender\/pictures\/96c35dbb852104a13b6c65771d02d9cf.gif' title='f(x)=\\left\\{\\begin{array}{ll}1 &amp; \\mbox{ if } x \\mbox{ is rational}\\\\0 &amp; \\mbox{ if } x \\mbox{ is irrational}\\end{array}\\right.' alt='f(x)=\\left\\{\\begin{array}{ll}1 &amp; \\mbox{ if } x \\mbox{ is rational}\\\\0 &amp; \\mbox{ if } x \\mbox{ is irrational}\\end{array}\\right.' align=absmiddle><\/p>\n<p><img src='\/maths\/latexrender\/pictures\/ee6f1a5c72b31c6e1d5928e1dbe97e0d.gif' title='g(x)=\\left\\{\\begin{array}{ll}1\/q &amp; \\mbox{ if } x = p\/q,\\ q&gt;0, \\mbox{ in lowest terms}\\\\0 &amp; \\mbox{ if } x \\mbox{ is irrational}\\end{array}\\right.' alt='g(x)=\\left\\{\\begin{array}{ll}1\/q &amp; \\mbox{ if } x = p\/q,\\ q&gt;0, \\mbox{ in lowest terms}\\\\0 &amp; \\mbox{ if } x \\mbox{ is irrational}\\end{array}\\right.' align=absmiddle><\/ul>\n<p>When trying to draw the graphs remember that<\/p>\n<ul>\n<li>between every pair of irrational numbers there is a rational number<\/li>\n<p><\/p>\n<li>between every pair of rational numbers there is a irrational number<\/li>\n<\/ul>\n<p>You can very roughly draw f using dots and there&#8217;s a nice picture of g at <a href=\"http:\/\/mathworld.wolfram.com\/DirichletFunction.html\" target=\"_blank\">mathworld<\/a><br \/>\nNow think about integrating f and g &#8211; do they have areas under between them and the x-axis? The answer to ths question is important in the theory of integration.<\/p>\n<p>These functions have other interesting properties and illustrate the relationship between rational and irrational numbers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>At A level students only see reasonably nice functions, though occasionally they come across where the maximum is smaller than the minimum (which, incidentally, is why one should use the terms local maximum and local minimum instead). But what they won&#8217;t have come across are functions like these: When trying to draw the graphs remember [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-27","post","type-post","status-publish","format-standard","hentry","category-articles"],"_links":{"self":[{"href":"https:\/\/www.sixthform.info\/maths\/index.php?rest_route=\/wp\/v2\/posts\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sixthform.info\/maths\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sixthform.info\/maths\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sixthform.info\/maths\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sixthform.info\/maths\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=27"}],"version-history":[{"count":0,"href":"https:\/\/www.sixthform.info\/maths\/index.php?rest_route=\/wp\/v2\/posts\/27\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sixthform.info\/maths\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sixthform.info\/maths\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sixthform.info\/maths\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}