{"id":172427,"date":"2026-02-19T15:32:07","date_gmt":"2026-02-19T14:32:07","guid":{"rendered":"https:\/\/liora.io\/en\/?p=172427"},"modified":"2026-02-19T15:32:08","modified_gmt":"2026-02-19T14:32:08","slug":"demystifying-derivatives-understanding-the-core-of-calculus","status":"publish","type":"post","link":"https:\/\/liora.io\/en\/demystifying-derivatives-understanding-the-core-of-calculus","title":{"rendered":"Demystifying Derivatives: Understanding the Core of Calculus"},"content":{"rendered":"<p><strong>The notion of derivative is particularly used in DataScience for machine learning models. Apart from what you&#8217;ve probably seen in high school, the applications of this mathematical tool are much broader, and we&#8217;ll come back to them at the end of this article.\nIn this article, you&#8217;ll first learn how to calculate the derivative of a function, and then we&#8217;ll look in a little more detail at the usefulness of this calculation.<\/strong><\/p>\t\t\n\t\t\t<h2>Definition<\/h2>\t\t\n\t\t<blockquote><p>The derivative of a function f(x) represents its rate of change. It may be denoted f'(x) or dfdx. Calculating and studying the derivative are important concepts in the study of functions.<br><\/p><\/blockquote>\t\t\n\t\t\t<h2>Formulas<\/h2>\t\t\n\t\t<p>Calculating a derivative is generally quite straightforward if you know the basic formulas for the usual functions.<\/p><p>These formulas are summarized in the table below:<\/p>\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t<figure>\n\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"370\" height=\"512\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2023\/10\/unnamed-7.png\" alt=\"\" loading=\"lazy\">\t\t\t\t\t\t\t\t\t\t\t<figcaption><\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t<p>This table gives you the most basic derivatives.<\/p><p><br>Sum of functions<\/p><p><br>If your function is the sum of several other functions :<\/p><p><br>f(x)=u(x)+v(x)<\/p><p><br>then its derivative will be the sum of the derivatives:<\/p><p><br>f'(x)=u'(x)+v'(x)<\/p><p><br>For example:<\/p><p><br>f(x)=x2+3<\/p><p><br>In this case u(x)=x2 and v(x)=3<\/p><p><br>We can therefore calculate<\/p><p><br>u'(x)=(x2)&#8217;=2&#215;2-1=2x<\/p><p><br>v'(x)=(3)&#8217; = 0<\/p><p><br>f'(x)=u'(x)+v'(x) = 2x + 0 = 2x<\/p><p><br>Products of functions<\/p><p><br>For multiplication of functions:<\/p><p><br>f(x)=u(x)*v(x)<\/p><p><br>The total derivative is a little more specific and follows the following rule:<\/p><p><br>f'(x)=u'(x)*v(x)+u(x)*v'(x)<\/p><p><br>f(x)=x2sin(x)<\/p><p><br>In this case u(x)=x2 and v(x)=sin(x)<\/p><p><br>We can therefore calculate<\/p><p><br>u'(x)=(x2)&#8217;=2&#215;2-1=2x<\/p><p><br>v'(x)=(sin(x))&#8217; = cos(x)<\/p><p><br>f'(x)=u'(x)*v(x)+u(x)*v'(x) = 2x*sin(x) + x2*cos(x)<\/p><p>Quotients of functions<\/p><p><br>Now if a function is the division of two other functions: f(x)=u(x)v(x) then the derivative will be<\/p>\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t<p>Example :<\/p>\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t<p>In this case u(x)=(3x+6) and v(x)=(x3-7)<\/p><p>We can therefore calculate<\/p><p>u'(x)=(3x+6)&#8217;=3<\/p><p>v'(x)=(x3-7)&#8217; =3&#215;2<\/p>\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t<h3>Compound functions<\/h3>\t\t\n\t\t<p>If your function is perceived as two functions grouped together, or in other words, a function of a function:<\/p><p>h(x)=f(g(x))=f \u25e6 g<\/p><p>then its derivative is calculated as follows:<\/p><p>h'(x)=(f \u25e6 g) &#8216; = g&#8217; .(f &#8216; \u25e6 g)<\/p><p>For example:<\/p>\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t<p>We can therefore consider :<\/p><p>g(x)=x2+2x-4 and g'(x)=2x+2<\/p><p>f(x)=x and f'(x)=121&#215;1\/2=12x<\/p>\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t<p>and<\/p>\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t<p>so<\/p>\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t<h2>Applications<\/h2>\t\t\n\t\t<p>But what&#8217;s the point of <strong>calculating the derivative?<\/strong><\/p><p>Simply put, the sign of the derivative indicates the variations of the function f. It represents the tangent to the function. And the derivative itself represents the directing coefficient of the tangent to f at the point.<\/p>\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"1029\" height=\"771\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2023\/10\/unnamed-2-1.png\" alt=\"\" loading=\"lazy\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t<p>Reminder: The tangent of a function at a point is the line that touches the function at that point, and only that point.<\/p><p>If f &#8216; \u2265 0, then f is increasing<\/p><p>If f &#8216; \u2264 0, then f is decreasing<\/p><p>And when f&#8217;=0, we have the point x for which the directing coefficient of the tangent cancels out, and the function f possibly changes variation.<\/p><p>For example<\/p><p>f(x)=x2-4x+2<\/p><p>f'(x)=2x-4<\/p><p>f'(x)=0 \u21d4 2x=4 \u21d4 x=2<\/p><p>This indicates that forx=2, my function may be changing its variation. As you can see below, x=2 is an inflection point:<\/p>\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"1025\" height=\"782\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2023\/10\/unnamed-3-1.png\" alt=\"\" loading=\"lazy\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t<p>So, replacing x by x&lt;2 for example x=1,<\/p><p>We have:<\/p><p>f'(1)=2 \u00d7 1-4=\u23af2&lt;0<\/p><p>The derivative is less than 0, so the function f is decreasing.<\/p><p>Replacing x by x&gt;2 for example x=3,<\/p><p>we have :<\/p><p>f'(3)=2*3-4=2&gt;0<\/p><p>The derivative is greater than 0, so the function f is increasing.<\/p><p>We therefore have the following table of variation:<\/p>\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t<figure>\n\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"1027\" height=\"493\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2023\/10\/unnamed-8.png\" alt=\"\" loading=\"lazy\">\t\t\t\t\t\t\t\t\t\t\t<figcaption><\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t<p><a href=\"https:\/\/liora.io\/en\/machine-learning-engineer-all-about-the-job\">So what does this have to do with Machine Learning?<\/a><\/p><p>In machine learning problems, we seek to find the minimum of the cost function in order to minimize the prediction error and thus maximize model performance.<br>To do this, we use the derivative to find the minimum of the function.<\/p><p>However, calculating the derivative and equating it to 0 in order to find the corresponding x, does not allow us to find analytical solutions with any certainty.<\/p><p>This is why we use the gradient descent method. To find out more about this technique, see this article.<\/p>\t\t\n\t\t\t\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex is-content-justification-center\"><div class=\"wp-block-button \"><a class=\"wp-block-button__link wp-element-button \" href=\"\/en\/courses\/data-ai\/\">Discover our courses<\/a><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The notion of derivative is particularly used in DataScience for machine learning models. Apart from what you&#8217;ve probably seen in high school, the applications of this mathematical tool are much broader, and we&#8217;ll come back to them at the end of this article. In this article, you&#8217;ll first learn how to calculate the derivative of [&hellip;]<\/p>\n","protected":false},"author":76,"featured_media":207579,"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-172427","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\/172427","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=172427"}],"version-history":[{"count":2,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/172427\/revisions"}],"predecessor-version":[{"id":207580,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/172427\/revisions\/207580"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/media\/207579"}],"wp:attachment":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/media?parent=172427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/categories?post=172427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}