From 06c0341ed491629afece37f67dc5f89341aec872 Mon Sep 17 00:00:00 2001 From: TK Date: Sat, 31 Aug 2024 10:44:20 -0300 Subject: [PATCH] * --- .../en/index.mdx | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/content/series/mathematics-for-machine-learning/calculus-derivatives-and-optimization/en/index.mdx b/content/series/mathematics-for-machine-learning/calculus-derivatives-and-optimization/en/index.mdx index 64359663..a45c8e46 100644 --- a/content/series/mathematics-for-machine-learning/calculus-derivatives-and-optimization/en/index.mdx +++ b/content/series/mathematics-for-machine-learning/calculus-derivatives-and-optimization/en/index.mdx @@ -29,7 +29,7 @@ Plotting this graph: loading="lazy" /> -For this equation `q(x) = 2x + 1`, we can say the rate of change is `2`. Generalizing, we having `f(x) = mx + C`, `m` is the rate of change. +For this equation `q(x) = 2x + 1`, we can say the rate of change is `2`. Generalizing, we have `f(x) = mx + C`, `m` is the rate of change. We calculate the rate of change the same as the slope: @@ -69,7 +69,7 @@ This plots the behavior of the function and average velocity: ## Limits -In a quadratic equation we have a bunch of points in the curve and we can plot like this: +In a quadratic equation, we have a bunch of points in the curve and we can plot like this: ```python def f(x): @@ -103,7 +103,7 @@ Generating this graph: But we can still see gaps between points. And now we need to understand the concept of limits. -Not all functions are continuous. Take this function as example: +Not all functions are continuous. Take this function as an example: ```bash g(x) = -(12/2x)², where x ≠ 0 @@ -135,17 +135,17 @@ Plotting `g(x)`, we get this graph: The function `g(x)` is non-continuous at `x = 0` -Limits can be applied to continous functions like `a(x) = x² + 1` +Limits can be applied to continuous functions like `a(x) = x² + 1` When `x` is approaching `0`, `a(x) = 1`. That's because when `x` is slightly greater than `0` and slightly smaller than `0` (e.g. 0.000001 and -0.000001), the result will be slightly greater than `1` and slightly smaller than `1`, respectively. -This is how we write it: when `x` approaching `0`, the limit of `a(x)` is `1`. +This is how we write it: when `x` approaches `0`, the limit of `a(x)` is `1`. `lim x->0 a(x) = 1` -We can also apply this concept to non-continuous points. Take this function as example: `b(x) = -2x²/x`, where `x ≠ 0`. +We can also apply this concept to non-continuous points. Take this function as an example: `b(x) = -2x²/x`, where `x ≠ 0`. Let's plot it with Python @@ -164,7 +164,7 @@ plt.plot(x,y, color='purple') plt.show() ``` -Here's how it looks like in a graph: +Here's what it looks like in a graph: -Approaching from negative and positive sides result in infinite. +Approaching from negative and positive sides results in infinite. - -♾️ when approaching from the negative side: lim x->25 d(x) = -♾️ - +♾️ when approaching from the positive side: lim x->25 d(x) = +♾️ -We can use factorization when direct substitution doesn't work. Take this function as example: +We can use factorization when direct substitution doesn't work. Take this function as an example: ```bash g(x) = (x² - 1) / (x - 1) @@ -266,9 +266,9 @@ Generating this graph: loading="lazy" /> -We can use pretty much the same idea using the rationalization. +We can use pretty much the same idea using rationalization. -Limits also have rules of operations: addition, substraction, multiplication, division, etc. +Limits also have rules of operations: addition, subtraction, multiplication, division, etc. Addition: @@ -456,13 +456,13 @@ It generates these two functions in the graph: loading="lazy" /> -Some interpretation of this graph: +Some interpretations of this graph: - The point where the derivative line crosses 0 on the y-axis is also the point where the function value stops increasing and starts decreasing. When the slope has a positive value, the function is increasing; and when the slope has a negative value, the function is decreasing. - The tangent line (the slope in each point) is rotating clockwise throughout the graph. - At the highest point, the tangent line would be perfectly horizontal, representing a slope of 0. -To illustrate the interpretation, we have three tangent lines: one when the function is increasing, one when the function is decreasing, and the another one when it's horizontal, in other words, when the slope is 0. +To illustrate the interpretation, we have three tangent lines: one when the function is increasing, one when the function is decreasing, and the other one when it's horizontal, in other words, when the slope is 0.