Integral and Differential Calculus

This article serves as a note for me regarding integral and differential calculus. The integral operation itself has some properties which is not covered in this article, but is available here. For the derivative there’s a note on the properties here.

Suppose we have a function \(f\) where \(y = f(x)\) as pictured below.

In order to calculate the area under the curve in the range \(a \leq x \leq b\), which is defined as within the interval \([a, b]\), we can use integral of \(f(x)\) as follows.

\[\int_{a}^{b} f(x) dx\]

Given that \(F(x) = \int f(x) dx\), the area under the curve can be calculated as follows.

\[\int_{a}^{b} f(x) dx = [F(x)]_{a}^{b} = F(b) - F(a)\]

Aside from calculating the area under the curve, we can also calculate the slope of the tangent line of the curve at one point of \(x\) by using derivative to get the differentiation.

\[f'(x) = \frac{dy}{dx}\]

The derivative is the opposite of integral, so with \(F(x) = \int f(x) dx\) we get \(F'(x) = f(x)\). Therefore, we can say that \(F(x)\) is the antiderivative of \(f(x)\).

Differential Calculus

Differential calculus is used to measure the rate of change at a certain point on a curve. This is the graph from the beginning of this article.

We can calculate the change from point \((a, f(a))\) to point \((b, f(b))\) by calculating the slope of a straight line from point \((a, f(a))\) to \((b, f(b))\).

The line \(v\) (the blue line) is the line from \((a, f(a))\) to \((b, f(b))\). The slope \(m\) can be calculated as follows.

\[m = \frac{\Delta y}{\Delta x} = \frac{y_2 - y_1}{x_2 = x_1} = \frac{f(b) - f(a)}{b - a}\]

Notice that it’s similar to the formula for derivative shown before.

\[f'(x) = \frac{dy}{dx}\]

The difference is that the function from the derivative calculates for the rate of change at a certain point instead of the rate of change between two points. Suppose we want to find the slope between the points \((b, f(b))\) and \((b + h, f(b + h))\).

The line \(v\) is the change between \((b, f(b))\) and \((b + h, f(b + h))\), positioned as the secant line of the curve betwen the two points. To get the tangential line on \(x = b\), we need to find the slope between the point \((b, f(b))\) and \((b + h, f(b + h))\) where \(h \to 0\).

\[m = \frac{\Delta y}{\Delta x} = \lim_{h \to 0} \frac{f(b + h) - f(b)}{(b + h) - b} = \lim_{h \to 0} \frac{f(b + h) - f(b)}{h}\]

If we apply the limit \(h \to 0\) to the slope formula we’re going to get the derivative of the function \(f(x)\).

\[f'(x) = \frac{dx}{dy} = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}\]

Integral Calculus

I’m taking some references from this video by Dave Farina. Let’s start with the same graph as we see in the beginning of this article.

We can calculate the area under the curve by drawing a rectangle with approximately the same size of the area under the curve.

The rectangle’s area of coverage doesn’t exactly match the area under the curve we’re trying to calculate, but the area of the rectangle should work as an approximation of the area under the curve.

Suppose we pick \(x\) in the interval \([a, b]\), \(x\) is defined as \(x = a + h\) and \(x \leq b\).

We can draw two rectangles now.

We should be able to get a better approximation by using more rectangles with less width in terms of \(\Delta x\). To get the most number of rectangles, we need to make the rectangle as thin as possible with \(\Delta x \to 0\) converge to the curve’s area and calculate the sum of all \(n\) rectangles’ area to get the approximation.

\[A_{total} = \sum_{i = 0}^{n} f(t_i) (x_{i + 1} - x_i)\]

Where \(f(t_i)\) is the height of the rectangle and \(\Delta x = x_{i + 1} - x_i\) is the width. This is the basic idea of Riemann integral.

Newton and Leibniz later refined the method of calculating the integral by using the antidifferentiation of the function \(f(x)\) to calculate the area under the curve within a certain interval.

\[\int_{a}^{b} f(x) dx = [F(x)]_{a}^{b} = F(b) - F(a)\]

\(F(x)\) is the antiderivative of \(f(x)\), therefore \(F'(x) = f(x)\) and \(F(x) = \int f(x) dx\). This is defined as the fundamental theorem of calculus.

References

Integral

Differential calculus

Calculus I - Proof of Various Integral Properties

Properties of the derivative

Derivative

Slope

The Fundamental Theorem of Calculus: Redefining Integration

Riemann integral

Isaac Newton

Gottfried Wilhelm Leibniz

Fundamental theorem of calculus