Scenario 1:
Suppose, I have a function $f(x)$. Now, let me add 5 to it:
$$F(x):=f(x)+5$$
Now, let me subtract 5 from $F(x)$:
$$F(x)-5$$
$$f(x)+5-5$$
$$f(x)$$
If I add 5 to $f(x)$, I get $F(x)$. Again, if I subtract 5 from $F(x)$, I get $f(x)$. So, we can understand that addition and subtraction are mutually opposite processes.
Scenario 2:
Suppose, I have a function $f(x)$. Now, let me differentiate it with respect to $x$:
$$\frac{d}{dx}f(x)=f'(x)$$
Now, let me find the indefinite integral of $f'(x)$,
$$\int{f'(x)dx}$$
$$f(x)+c$$
If I differentiate $f(x)$, I get $f'(x)$. Now, if I find the indefinite integral of $f'(x)$, I get $f(x)+c$.
Comments:
Integration and differentiation are not quite opposite processes, are they? If I had gotten $f(x)$ instead of $f(x)+c$ after finding the indefinite integral of $f'(x)$, I think we could've said that they are opposite processes. Am I correct?
Since the derivative treats constants as 0, the antiderivative is only unique up to a constant. So the indefinite integral does not output a single function but a family of functions.
We can formalize saying that they are truly opposite by setting up an equivalence class on functions where two functions are in the same equivalence class if they differ by a constant. Then the integral and the derivative truly are inverse functions on those equivalence classes.
It's not meaningful to say they are actual true inverse functions without that, as the derivative maps functions to unique functions whereas the integral maps functions to families of functions.