It boils down to the precise meaning of $ f'(x) $, which may go beyond the stage you have reached so far.
Strictly $f'(x)$ is the limit of $\big(f(x+\delta x)-f(x)\big)/\delta x$ as $\delta x$ approaches zero. There is also a strict definition of what limit means: given any expression $E(\delta x) $ with $\delta x$ in it, it has the limit $\ell$ as $\delta x$ tends to zero if for every small positive number $\epsilon$ you can make
$$ |E(\delta x) - \ell| \leqslant \epsilon $$
for all sufficiently small but not zero $\delta x$.
Written even more precisely, if for every $\epsilon >0$ there exists a number $\Delta > 0$ (depending on $\epsilon$) such that
$$ |E(\delta x) - \ell| \leqslant \epsilon $$
for all $0<|\delta x| \leqslant \Delta$, then $E(\delta x)$ has limit $\ell$ as $\delta x$ tends to zero. The strict inequalities are important. The notion is that $E(\delta x)$ gets closer and closer to $\ell$ as $\delta x$ gets smaller (but not zero). But beware. The limit does not always exist.
All this is usually written as
$$\lim_{\delta x \to 0} E(\delta x) =\ell$$
or $E(\delta x) \to \ell$ as $\delta x \to 0$.
Mathematically there then follows a process of proving all kinds of different properties of limits, such as the sum or product of two limits is the limit of the sum or product and so on.
In you example $f(x) = x^2$, so you would argue: take any $\epsilon > 0$. Then for any $\delta x$,
$$ \frac{(x+\delta x)^2 - x^2}{\delta x} = 2x + \delta x $$
which leads to
$$ \left|\frac{f(x+\delta x) - f(x)}{\delta x} - 2x\right| = |\delta x|.$$
Now, if you choose $\Delta = \epsilon$, for every $\delta x$ with $|\delta x| < \Delta$ you have the inequality you want and you can say
$$ f'(x) = \lim_{\delta x \to 0} \frac{f(x+\delta x)-f(x)}{\delta x} = 2x.$$
With practice and using the many of properties of limits this gets easier.