Here's a formal proof that an indefinite integral leads to a constant of integration:
----
Definition: $$F(x)$$ is an antiderivative of $$f(x)$$ if $$\frac{dF}{dx} = f(x)$$.
Proof:
Consider two antiderivatives of $$f(x)$$, which we will call $$F(x)$$ and $$G(x)$$.
Now consider the function defined as $$H(x) = F(x) - G(x)$$.
Take the derivative of $$H(x)$$:
$$\frac{dH}{dx} = \frac{dF}{dx} - \frac{dG}{dx} = f(x) - f(x) = 0$$
where we have used the fact that F and G are antiderivatives of f.
Now because $$\frac{dH}{dx} = 0$$, we know that $$H(x)$$ is a constant. Let's call this constant c and check that this statement is correct.
If $$H(x) = c$$, then sure enough $$\frac{dH}{dx} = 0$$, as required.
But from the definition of $$H(x)$$ above we have $$H(x) = F(x) - G(x) = c$$.
And so we conclude that
$$F(x) = G(x) + c$$
where $$c$$ is an arbitrary constant.
Now, recall that $$F(x)$$ and $$G(x)$$ were defined to be arbitrary antiderivatives of $$f(x)$$. We have now proved that arbitrary antiderivatives of f(x) may differ only by an additive constant $$c$$.
Therefore, a general statement of antidifferentiation is:
$$\int f(x)~dx =G(x) + c$$
where $$G(x)$$ is any antiderivative of $$f(x)$$.
Q.E.D.
----
Definition: $$F(x)$$ is an antiderivative of $$f(x)$$ if $$\frac{dF}{dx} = f(x)$$.
Proof:
Consider two antiderivatives of $$f(x)$$, which we will call $$F(x)$$ and $$G(x)$$.
Now consider the function defined as $$H(x) = F(x) - G(x)$$.
Take the derivative of $$H(x)$$:
$$\frac{dH}{dx} = \frac{dF}{dx} - \frac{dG}{dx} = f(x) - f(x) = 0$$
where we have used the fact that F and G are antiderivatives of f.
Now because $$\frac{dH}{dx} = 0$$, we know that $$H(x)$$ is a constant. Let's call this constant c and check that this statement is correct.
If $$H(x) = c$$, then sure enough $$\frac{dH}{dx} = 0$$, as required.
But from the definition of $$H(x)$$ above we have $$H(x) = F(x) - G(x) = c$$.
And so we conclude that
$$F(x) = G(x) + c$$
where $$c$$ is an arbitrary constant.
Now, recall that $$F(x)$$ and $$G(x)$$ were defined to be arbitrary antiderivatives of $$f(x)$$. We have now proved that arbitrary antiderivatives of f(x) may differ only by an additive constant $$c$$.
Therefore, a general statement of antidifferentiation is:
$$\int f(x)~dx =G(x) + c$$
where $$G(x)$$ is any antiderivative of $$f(x)$$.
Q.E.D.