My Tools

    No Products in the Wishlist

What Is Calculus? A Beginner’s Guide To Limits And Differentiation

Calculus is another big branch of mathematics that has many use cases in the real world. In this guide, I will give you a solid understanding of basic calculus concepts that you should know for learning other calculus concepts used in AI and Data Science.

What Is Calculus?

Calculus is a branch of mathematics that deals with the study of change and motion. it provides a framework for understanding how something changes with respect to another thing (how quantities change and interact with each other).

key Concepts in Calculus:

  • Limits
  • Derivative
  • Integral

Limits

limits help us to see what happens to function f(x) when x reaches a certain value. You would think, we can get the answer by solving the equation.

Lets think, f(x) = x24x 2, So what happened when x = 2:

22422 =0

We know that 00 can not be defined(Undefined). That’s where limits help us to find what happened to f(x) when x reached 2. Let’s take another approach to understand this,

What happened if x = 2.1:

f(2.1)=2.1242.12=4.1

What happened if x = 2.01:

f(2.01)=2.01242.012=4.01

You can see when x is close to 2 the output result also gets closer to 4. We can express this by using Limits:

limx2 x24x2 = limx2 (x+2)(x2)(x2) = limx2 (x+2)  = 2+2 = 4

limx2 f(x) =4

Infinity Limits

What if x reaches to big positive value like 1010000000000000 or a big negative value like 1010000000000000 Then, the function result will be infinity. Also if the function is divided by a big positive value like 1010000000000000 then the function result will be 0 or near 0. We can express these two situations using Infinity limits:

If x is close to (big positive value) then the function result also would be a (positive infinity):

limx f(x2) =+

If x is close to (big negative value) then the function result would be a (big positive infinity) Because -∞2=+:

limx f(x2) =+

Also limx f(1x) = 0 Because when the divisor is bigger then the dividend result gets closer to 0. like 110 = 0.1

Derivatives

The derivative is a function that gives us the slope of the function or the rate at which the function is changing at a particular point. In other words, The derivative of a function represents the rate of change of that function at a particular pointThe process of finding the derivative of some function is called Differentiation. The derivative of a function f(x) is represented as f'(x)

If y =f(x):

f(x)=y=dydx=dfdx=ddxf(x)=Df(x)=Dxf(x)

Where symbols ddx and D are differentiation operators that indicate the operation of differentiation.

There are several rules and techniques that are commonly used when calculating derivatives of functions in differential calculus. Here are some of the fundamental rules:

Power Rule

ddxxn=n×xn1

For example, the derivative of a function f(x)=x2 can be calculated as:

ddxx2=2×x21=2x

Here 2x means that at x, the function f(x) is increasing at a rate of x^2 units per unit change in x. if x = 2 f(x) is increasing at a rate of 4.

We can also use limits to express this:

f(x) =limh0f(x+h) f(x)h

f(x+h) =(x+h)2

f(x) =limh0(x+h)2x2h = limh0x2+2xh+h2x2h=limh02xh+h2h

limh02x+h=2x

Constant Multiple Rule

ddx Cf(x)=Cddxf(x)

For example:

ddx (9x5) =9[5×x51] =9[5x4] =45x4 

Sum Rule

ddx [f(x)+g(x)]=ddxf(x)+ddxg(x)

Product Rule

ddx [f(x)g(x)]=f(x)ddxg(x)+g(x)ddxf(x)

Quotient Rule

ddxf(x)g(x)=g(x)ddxf(x)f(x)ddxg(x)g(x)2

These are some of the rules you should apply when calculating the derivative of a function. For a better understanding of derivatives and their outputs. Let’s look at the differentiation with a graph of a function:

Calculus derivative of a function

Tangent Line – The line that touches the curve at a particular point. (Here C)

Secant Line – The line that touches two points in the curve.

Here, “The slope of the tangent line is equal to the derivative of the function.” So:

mtanline=f(x)

msecantline =y2y1x2x1

For example, If f(x)=x3   and x = 2(C point) then the derivative of the function can be calculated by using the power rule like this:

f(x) = 3x2

f(x) =mtanline =f(2)=3(2)2=12

Here value 12 means that at the point where x = 2, the rate of change of the function is 12, or the slope of the tangent line to the graph at x = 2 would be equal to 12. This indicates that the instantaneous rate of change of the function f(x) at x = 2 is 12 units per unit change in x. In other words, if you were to make an infinitesimally small change in x near x=2, the corresponding change in the function f(x) would be approximately 12 times the change in x

Let’s calculate mtanline   by using the secant line. For that we should have two points related to x which is midpoint, like, X1=X2=3 and X1=1.01 X2=2.99

msecantline=y2y1x2x1=f(x2)f(x1)x2x1=f(3)f(1)31=2712=13

When x1=1.90  and x2=2.10  :

f(2.1)f(1.9)2.11.9=12.0

You can see when two points get closer to 2(C point) the value also gets closer to 12. We can express this using the limits:

limx2f(x)f(2)x2=limx2x38x2=limx2(x2)(x2+2x+4)x2

limx2(x2+2x+4)=22+4+4=12

Integral

Integral represents the total area under the curve of the function with respect to the independent variable, and the process of finding the Integral of some function is called Integration. Integration is the reverse process of differentiation.

The integral of a function f(x) is denoted as ∫f(x)dx. Where f(x) is the integrand and dx represents the infinitesimal change in the independent variable x.

xndx=xn+1n+1+c

For example:

4x3dx=4x3+13+1+C=4x34+C=x4+C

These are the fundamental concepts you must grasp to understand the essential calculus concepts used in the AI field, which I’ll be discussing in Calculus Part-2

Throughout this article, we have learned calculus, and its basic concepts: Limits, Derivatives, Integrals, and use of them. These are the essential knowledge required to learn complex concepts in calculus used in AI and Data Science. And now you can learn those complex concepts confidently.

Leave a Reply