{"id":178038,"date":"2024-02-29T16:23:27","date_gmt":"2024-02-29T15:23:27","guid":{"rendered":"https:\/\/liora.io\/en\/?p=178038"},"modified":"2026-08-07T03:08:41","modified_gmt":"2026-08-07T02:08:41","slug":"limit-of-a-function-how-to-determine-it","status":"publish","type":"post","link":"https:\/\/liora.io\/en\/limit-of-a-function-how-to-determine-it","title":{"rendered":"Limit of a function: how to determine it?"},"content":{"rendered":"\n<p><strong>All scientific disciplines are based on mathematics, and data science is no exception. When the problems to be solved are optimization problems, you need to know what the limit of a function is. In this article, you&#8217;ll discover how to determine the limit of a function.<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"limit-definition\">Limit: Definition<\/h2>\n\n\n\n<p>The limit of a function <em>f<\/em> is the value the function approaches when its argument approaches a certain value. Mathematically, we write <span class=\"liora-inline-math\">lim<sub><em>x<\/em>\u2192<em>a<\/em><\/sub> <em>f<\/em>(<em>x<\/em>) = <em>l<\/em><\/span>.<\/p>\n\n\n\n<p>We say that <em>f<\/em> tends towards <em>l<\/em> when <em>x<\/em> tends towards <em>a<\/em>. Depending on the case, <em>a<\/em> and <em>l<\/em> may be real numbers, or equal to \u00b1\u221e.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"limits-of-standard-functions\">Limits of standard functions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"real-valued-finite-limits\">Real-valued finite limits<\/h3>\n\n\n\n<p>For example, for <span class=\"liora-inline-math\"><em>f<\/em>(<em>x<\/em>) = <em>x<\/em><sup>2<\/sup><\/span>, the limit when <em>x<\/em> tends towards 2 is <span class=\"liora-inline-math\">2<sup>2<\/sup> = 4<\/span>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"infinite-limits\">Infinite limits<\/h3>\n\n\n\n<p>When the function is well defined at a real number <em>a<\/em> (it is said to be continuous at <em>a<\/em>), then the limit at <em>a<\/em> is exactly <span class=\"liora-inline-math\"><em>f<\/em>(<em>a<\/em>)<\/span>.<\/p>\n\n\n\n<p>When the variable <em>x<\/em> takes on very large values (positively or negatively), we say that <em>x<\/em> tends towards more or less infinity. In this case, we distinguish between cases where <span class=\"liora-inline-math\"><em>f<\/em>(<em>x<\/em>)<\/span> approaches a finite value and those where <span class=\"liora-inline-math\"><em>f<\/em>(<em>x<\/em>)<\/span> moves away towards infinity. In the former case, <em>f<\/em> is said to converge, and in the latter, <em>f<\/em> to diverge.<\/p>\n\n\n\n<p>Below is a table summarizing the limits of common functions at infinity.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\" style=\"margin-top:32px;margin-bottom:32px\"><a href=\"https:\/\/liora.io\/app\/uploads\/2022\/07\/Limite-usuelle.png\" style=\"display:block;width:100%\"><img alt=\"Table of common function limits at infinity\" decoding=\"async\" height=\"254\" loading=\"lazy\" src=\"https:\/\/liora.io\/app\/uploads\/2022\/07\/Limite-usuelle.png\" style=\"width:100%;height:auto\" width=\"806\"\/><\/a><\/figure>\n\n\n\n<p>When a function admits a finite limit <span class=\"liora-inline-math\"><em>l<\/em> \u2208 \u211d<\/span> when <span class=\"liora-inline-math\"><em>x<\/em> \u2192 \u221e<\/span>, then we say that <em>f<\/em> admits a horizontal asymptote of equation <span class=\"liora-inline-math\"><em>y<\/em> = <em>l<\/em><\/span>. In other words, the curve moves closer and closer to the straight line.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"infinite-limits-at-a-finite-value\">Infinite limits at a finite value<\/h3>\n\n\n\n<figure class=\"wp-block-table\" style=\"margin-top:32px;margin-bottom:32px;overflow-x:auto\"><table><thead><tr><th scope=\"col\">Function<\/th><th scope=\"col\">Limit as <em>x<\/em> \u2192 0<\/th><\/tr><\/thead><tbody><tr><th scope=\"row\"><em>f<\/em>(<em>x<\/em>) = 1\/<em>x<\/em><\/th><td>+\u221e if <em>x<\/em> &gt; 0; \u2212\u221e if <em>x<\/em> &lt; 0<\/td><\/tr><tr><th scope=\"row\"><em>f<\/em>(<em>x<\/em>) = ln(<em>x<\/em>)<\/th><td>\u2212\u221e<\/td><\/tr><tr><th scope=\"row\"><em>f<\/em>(<em>x<\/em>) = \u221a<em>x<\/em><\/th><td>0<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>When <span class=\"liora-inline-math\">lim<sub><em>x<\/em>\u2192<em>a<\/em><\/sub> <em>f<\/em>(<em>x<\/em>) = \u00b1\u221e<\/span>, with <em>a<\/em> a real number, then the curve of <em>f<\/em> is said to have a vertical asymptote at <em>a<\/em>. In other words, the curve moves closer and closer to the straight line with equation <span class=\"liora-inline-math\"><em>x<\/em> = <em>a<\/em><\/span>.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex is-content-justification-center wp-container-core-buttons-is-layout-5ee10de4\" style=\"margin-top:32px;margin-bottom:32px\"><div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"\/en\/courses\/data-ai\/data-scientist\">Find out more about our Data Science training courses<\/a><\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"limit-operations\">Limit operations<\/h2>\n\n\n\n<p>In most cases, it is possible to perform limit operations to determine the limit.<\/p>\n\n\n\n<p>Limit of a sum of two functions<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\" style=\"margin-top:32px;margin-bottom:32px\"><a href=\"https:\/\/liora.io\/app\/uploads\/2022\/07\/Limite-Somme.png\" style=\"display:block;width:100%\"><img alt=\"Formula for the limit of a sum of two functions\" decoding=\"async\" height=\"92\" loading=\"lazy\" src=\"https:\/\/liora.io\/app\/uploads\/2022\/07\/Limite-Somme.png\" style=\"width:100%;height:auto\" width=\"866\"\/><\/a><\/figure>\n\n\n\n<p>Limit of a product of two functions<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\" style=\"margin-top:32px;margin-bottom:32px\"><a href=\"https:\/\/liora.io\/app\/uploads\/2022\/07\/Capture-de\u0301cran-2022-07-28-a\u0300-14.40.34.png\" style=\"display:block;width:100%\"><img alt=\"Formula for the limit of a product of two functions\" decoding=\"async\" height=\"92\" loading=\"lazy\" src=\"https:\/\/liora.io\/app\/uploads\/2022\/07\/Capture-de\u0301cran-2022-07-28-a\u0300-14.40.34.png\" style=\"width:100%;height:auto\" width=\"1118\"\/><\/a><\/figure>\n\n\n\n<p>Limit of a quotient of two functions<\/p>\n\n\n\n<figure class=\"wp-block-table\" style=\"margin-top:32px;margin-bottom:32px;overflow-x:auto\"><table style=\"min-width:1658px\"><thead><tr><th scope=\"col\">Limit<\/th><th scope=\"col\">Case 1<\/th><th scope=\"col\">Case 2<\/th><th scope=\"col\">Case 3<\/th><th scope=\"col\">Case 4<\/th><th scope=\"col\">Case 5<\/th><th scope=\"col\">Case 6<\/th><th scope=\"col\">Case 7<\/th><th scope=\"col\">Case 8<\/th><th scope=\"col\">Case 9<\/th><th scope=\"col\">Case 10<\/th><th scope=\"col\">Case 11<\/th><th scope=\"col\">Case 12<\/th><th scope=\"col\">Case 13<\/th><\/tr><\/thead><tbody><tr><th scope=\"row\">lim <em>f<\/em>(<em>x<\/em>)<\/th><td><em>L<\/em> \u2208 \u211d<\/td><td><em>L<\/em> \u2208 \u211d<\/td><td><em>L<\/em> &gt; 0 or +\u221e<\/td><td><em>L<\/em> &lt; 0 or \u2212\u221e<\/td><td><em>L<\/em> &gt; 0 or +\u221e<\/td><td><em>L<\/em> &lt; 0 or \u2212\u221e<\/td><td>+\u221e<\/td><td>+\u221e<\/td><td>0<\/td><td>+\u221e<\/td><td>+\u221e<\/td><td>0<\/td><td>+\u221e or \u2212\u221e<\/td><\/tr><tr><th scope=\"row\">lim <em>g<\/em>(<em>x<\/em>)<\/th><td><em>L\u2032<\/em> \u2260 0<\/td><td>+\u221e or \u2212\u221e<\/td><td>0 with <em>g<\/em>(<em>x<\/em>) &gt; 0<\/td><td>0 with <em>g<\/em>(<em>x<\/em>) &gt; 0<\/td><td>0 with <em>g<\/em>(<em>x<\/em>) &lt; 0<\/td><td>0 with <em>g<\/em>(<em>x<\/em>) &lt; 0<\/td><td><em>L\u2032<\/em> &gt; 0<\/td><td><em>L\u2032<\/em> &lt; 0<\/td><td>+\u221e or \u2212\u221e<\/td><td><em>L\u2032<\/em> &gt; 0<\/td><td><em>L\u2032<\/em> &lt; 0<\/td><td>0<\/td><td>+\u221e or \u2212\u221e<\/td><\/tr><tr><th scope=\"row\">lim <em>f<\/em>(<em>x<\/em>)\/<em>g<\/em>(<em>x<\/em>)<\/th><td><em>L<\/em>\/<em>L\u2032<\/em><\/td><td>0<\/td><td>+\u221e<\/td><td>\u2212\u221e<\/td><td>\u2212\u221e<\/td><td>+\u221e<\/td><td>+\u221e<\/td><td>\u2212\u221e<\/td><td>Indeterminate form<\/td><td>+\u221e<\/td><td>\u2212\u221e<\/td><td>Indeterminate form<\/td><td>Indeterminate form<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Click on the tables to display them full-screen.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"determining-a-limit-in-practice\">Determining a limit in practice<\/h2>\n\n\n\n<p>To determine limits, it&#8217;s sometimes simpler to use other functions. Comparing functions allows you to compare their limits, when they exist. There are two main properties for comparing functions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"comparison-theorem\">Comparison theorem<\/h3>\n\n\n\n<p>Let <em>f<\/em> and <em>g<\/em> be two functions defined on an interval <span class=\"liora-inline-math\"><em>I<\/em> = [<em>a<\/em>, +\u221e)<\/span>.<\/p>\n\n\n\n<p>Assume that for any <span class=\"liora-inline-math\"><em>x<\/em> \u2208 <em>I<\/em>, <em>f<\/em>(<em>x<\/em>) \u2265 <em>g<\/em>(<em>x<\/em>)<\/span>. If <span class=\"liora-inline-math\">lim<sub><em>x<\/em>\u2192+\u221e<\/sub> <em>g<\/em>(<em>x<\/em>) = +\u221e<\/span>, then <span class=\"liora-inline-math\">lim<sub><em>x<\/em>\u2192+\u221e<\/sub> <em>f<\/em>(<em>x<\/em>) = +\u221e<\/span>. If <span class=\"liora-inline-math\">lim<sub><em>x<\/em>\u2192+\u221e<\/sub> <em>f<\/em>(<em>x<\/em>) = \u2212\u221e<\/span>, then <span class=\"liora-inline-math\">lim<sub><em>x<\/em>\u2192+\u221e<\/sub> <em>g<\/em>(<em>x<\/em>) = \u2212\u221e<\/span>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"gendarme-theorem\">Gendarme theorem<\/h3>\n\n\n\n<p>Let <em>f<\/em>, <em>g<\/em> and <em>h<\/em> be three functions defined on an interval <span class=\"liora-inline-math\"><em>I<\/em> = [<em>a<\/em>, +\u221e)<\/span>.<\/p>\n\n\n\n<p>Assume that for any <span class=\"liora-inline-math\"><em>x<\/em> \u2208 <em>I<\/em>, <em>g<\/em>(<em>x<\/em>) \u2264 <em>f<\/em>(<em>x<\/em>) \u2264 <em>h<\/em>(<em>x<\/em>)<\/span>. If <em>g<\/em> and <em>h<\/em> tend to the same limit <em>l<\/em> in +\u221e, then <em>f<\/em> also tends to <em>l<\/em>.<\/p>\n\n\n\n<p>You now know what a limit is and how to calculate it. Calculating limits allows you, for example, to define the derivative of a function as the limit of a rate of increase. If you&#8217;d like to discover all the mathematical concepts involved in data science, we invite you to take a look at our curricula.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex is-content-justification-center wp-container-core-buttons-is-layout-5ee10de4\" style=\"margin-top:32px;margin-bottom:32px\"><div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"\/en\/courses\/data-ai\/data-scientist\">Training in Data Science<\/a><\/div><\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>All scientific disciplines are based on mathematics, and data science is no exception. When the problems to be solved are optimization problems, you need to know what the limit of a function is. In this article, you&#8217;ll discover how to determine the limit of a function. Limit: Definition The limit of a function f is [&hellip;]<\/p>\n","protected":false},"author":76,"featured_media":178043,"comment_status":"open","ping_status":"open","sticky":false,"template":"elementor_theme","format":"standard","meta":{"_acf_changed":false,"editor_notices":[],"footnotes":""},"categories":[2433],"class_list":["post-178038","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-ai"],"acf":[],"_links":{"self":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/178038","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/users\/76"}],"replies":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/comments?post=178038"}],"version-history":[{"count":3,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/178038\/revisions"}],"predecessor-version":[{"id":209669,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/178038\/revisions\/209669"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/media\/178043"}],"wp:attachment":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/media?parent=178038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/categories?post=178038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}