There are two kinds of integrals: indefinite and definite.
Indefinite Integral
The indefinite integral of a function $f(x)$ is represented as:
$$
\int f(x) \, dx
$$
The indefinite integral is an antiderivative, meaning a function $F(x)$ such that $F'(x) = f(x)$. A function can have multiple antiderivatives, resulting in a set of antiderivatives. If the domain of the function is an interval, then the antiderivatives of the function would be $F(x) + C$, where $F(x)$ is an antiderivative and $C$ is a constant. It is written as:
$$
\int f(x) \ dx = F(x) + C
$$
Definite Integral
The definite integral of a function $f(x)$ over the interval $[a, b]$ is represented as:
$$
\int_{a}^{b} f(x) \ dx
$$
The definite integral is related to the area under the curve of $f(x)$ from $x = a$ to $x = b$. It can be defined in several ways, with the most basic being the Riemann integral definition. The definite integral can be thought of as the sum of infinitesimal differences over the interval $[a, b]$.
Relationship Between Indefinite and Definite Integrals
These two definitions are equivalent in a certain way due to the Fundamental Theorems of Calculus.
First Fundamental Theorem of Calculus
If $f$ is continuous on $[a, b]$ and $F(x)$ is defined as :
$$
F(x) = \int_{a}^{x} f(t) \, dt
$$
Then $F$ is differentiable on $(a, b)$, and $F'(x) = f(x)$.
So, the indefinite integral can be viewed as a definite integral with a variable upper limit and an added constant $C$:
$$
\int f(x) \, dx = \int_{a}^{x} f(t) \, dt + C
$$