Calculus: Why do we ignore dx? I'm new to calculus and I find it really confusing why we just ignore the dx at the end.

For example, when working on derivation of $x^2$,
at the last step, we're left with 
$f'(x)= 2x + dx$

But I've heard people in videos say: "Since $dx$ is super super super small, we can safely ignore it. But just ignoring it bugs me. If we choose to ignore it, should it not actually look like this: 
$f'(x) \approx 2x $

Thanks for your time. Cheers :)
 A: 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.
A: $f'(x)=2x+dx$ is technically invalid. You cannot add functions and differentials. A correct expression  is $df=2x\,dx$, but that does not help.
Using small increments, you can indeed write $$0<\Delta x\ll x\implies f'(x)\approx\frac{(x+\Delta x)^2-x^2}{\Delta x}=2x+\Delta x.$$
Then,
$$f'(x)=\lim_{\Delta x\to0}(2x+\Delta x)=2x.$$
A: The definition of $f'(x)$ involves taking a limit:
$$ f'(x) = \lim_{\Delta x\to 0} \frac{f(x+\Delta x) - f(x)}{\Delta x}. $$
For $f(x)=x^2$, you end up with $$f'(x)=\lim_{\Delta x\to 0} (2x + \Delta x)$$ and in the limit the second summand vanishes. It is not ignored, it becomes zero in the limit, which the derivative is:
$$f'(x)=\lim_{\Delta x\to 0} (2x + \Delta x) = 2x + 0 = 2x.$$
All the "$=$"-signs in this equation are actual equalities, there are no approximations done here.
A: Too long to be a comment, but probably not satisfactory as an answer.
$dx$ is notation and it stands for 'differential with respect to $x$'. You would never write $f'(x) = 2x + dx$, because on the LHS, there's a derivative and on the right .. I don't even know what that is tbh. If it was something like $(2x+a)dx$ then it would be a differential. The symbol $dx$ does not appear by itself. Either way, the equality $f'(x) = 2x+dx$ is suspect.

On another angle, by definition
$$ \lim _{h\to 0} \frac{f(x+h)-f(x)}{h} =: f'(x) $$
if it exists. So, we can approximate $f(x+h)$ linearly, writing $f(x+\Delta x) \approx f'(x)\Delta x + f(x)$, where $\Delta x$ is 'super super small'. But $\Delta x$ and $dx$ are completely different beast. $\Delta x$ is some fixed number, whereas $dx$ is not a number at all.
A: You are basically correct, and the proper symbol is actually $\simeq$.  If I remember correctly, Liebniz chose a sign that was not strictly equal to make this point abundantly clear.  However, there are indeed definitions of the derivative such that $=$ is proper, though I do think $\simeq$ is clearer.
Basically, in nonstandard analysis, the derivative is wrapped with the standard part function, std().  So, f'(x) is actually $\mathrm{std}(2x + dx)$.  The standard part function is like a "rounding" function, which rounds to the nearest real number.  So, if you are using this definition of the derivative then:
$$f'(x) = \mathrm{std}(2x + dx) = 2x$$
In any case, even without the standard part function, since $dx$ is infinitesimally small, you can use $=$ without causing any major problems, and this is easier for most people, so that is what they do.
A: $\newcommand{\D}{\mathit{\Delta}}$
You are starting from
$$
\frac{\D y}{\D x}=\frac{f(x+\D x)-f(x)}{\D x}=2x+\D x
$$
The derivative is the limit for $\D x\to 0$, where only $f'(x)=2x$ remains. In other words, the derivative is the slope of the tangent to $f$ in $x$.
You have to make clear when you work with infinitesimals and when with symbolic expressions. Then in non-standard terms, the derivative is the standard part of the difference quotient, that is, from $f'(x)\approx 2x+dx$ with $dx\approx 0$ it follows again that $f'(x)=2x$.
A: Warning: I'm about to use the terms "secant" and "tangent" with geometric meanings I'll link to, and not their meanings in trigonometry. I didn't choose the terminology.
For $y=x^2$ the secant from $(x,\,y)$ to a point $(x+\Delta x,\,y+\Delta y)$ with $\Delta x\ne0$ has gradient $\frac{\Delta y}{\Delta x}=2x+\Delta x$. The tangent at $(x,\,y)$ is the line through it whose gradient is the $\Delta x\to0$ limit $2x$ of the secant's gradient $2x+\Delta x$. We are not ignoring the $\Delta x$ term in the secant's gradient; we are interested in the tangent's gradient, which is denoted $\frac{dy}{dx}$. This is not literally a ratio of two quantities $dy,\,dx$, but has this notation because it is a limit of a ratio.
As has been discussed, the fact that $\lim_{\Delta x\to0}\frac{\Delta y}{\Delta x}=\frac{dy}{dx}$ is finite implies the small-$\Delta x$ little-$o$ result $\Delta y\in\frac{dy}{dx}\Delta x+o(\Delta x)$.
A: This long winded comment is not an answer.
There is an underlying problem.  New Calculus students are often taught problem solving techniques without being taught the theory.  Generally, this is a good approach, because the theory can be difficult for new students to grapple with.
However, it often leads to situations very similar to this one, where the student asks : 
Why is this formula correct?
A case can be made that the query specific responses that your query generated are band-aids on the underlying issue.  This situation will probably repeat itself.  You will find yourself using formulas or problem solving techniques without being absolutely sure that the formulas/techniques are valid.
My recommendation:

*

*Keep a careful list of such questions regarding situations where you were unclear about the validity of an approach.


*At the end of the course, when you have completely mastered the problem solving techniques, there will be many formulas/techniques/theorems that your class directed you to accept, without question.


*After completing the course, your math education/sophistication/intuition around Real Analysis (aka Calculus) will be strong enough that you can then find a book that focuses much more deeply on theory.
Alternatively, if you feel that you can immediately (i.e. simultaneously) attack the theory, then simply immediately try to find the right supplemental text.
Generic tips for finding the right Real Analysis text:

*

*The book must be customized to your abilities.  Typically, a book that is good for one student won't be best for another student.


*With the previous point in mind, Amazon reviews on a book often provide a good idea on whether the book is right for you.


*Also with the first point above in mind, search on mathSE for queries via the string: 
[soft-question] [reference-request] [calculus] 
or perhaps 
[soft-question] [reference-request] [real-analysis] 
The brackets indicate that you are looking for mathSE queries with the corresponding tags.  The soft-question tag refers to 
questions whose answers can't be objectively evaluated as correct or incorrect, but which are still relevant to this site.
Edit
I totally overlooked the [book-recommendation] tag.


*You generally want books that offer many, many problems for you to solve.  You typically learn more by working through the problems, which apply the theory, than by reading about the theory.


*You might have to go through 5 or more books before you find just the right book.  One approach is to find and download free pdf files of the corresponding candidate books.  Then, when you've found the right one, buy it, since it will be easier to learn from the physical copy of the book.
There will undoubtedly be problems in any math book that you are attacking that you can't solve.  I typically set a time limit of (30 minutes to 90 minutes).  If I can't at least find a promising line of attack after spending the appropriate time on the problem, then mathSE becomes an extremely convenient resource.  Structuring your mathSE query to influence reviewers to help you is tricky.  I suggest seeing this mathSE article for query guidelines.
A: In most cases, what you are doing is simply not the way you define the limit; at no point does a "$dx$" term appear. I am going to present an approach to derivatives via nonstandard analysis, which does involve a $2x+dx$ expression at some point. It's not the usual approach to derivatives, though it is equivalent to the ordinary definition.

From the point of view of an infinitesimal calculation, we get
$$
    \frac{f(x + dx) - f(x)}{dx} = \frac{(x + dx)^2 - x^2}{dx} = 2x + dx.
$$
This is true for any values of $x$ and $dx$. In particular, if we're working over the hyperreals, it is true for an infinitesimal $dx$.
In nonstandard analysis, we define the derivative as follows. If the expression
$$
    \frac{f(x+dx) - f(x)}{dx}
$$
has the same standard part for every infinitesimal $dx$, then $f'(x)$ is defined as the standard part of that expression. In other words, we specifically have an "ignore the $dx$" step in this definition of $f'(x)$.
In our case, this expression is $2x + dx$, which has standard part $2x$. This is indeed the same for every value of $dx$, so we define $f'(x) = 2x$.
To appreciate how this works, let me give two examples where this does not work:

*

*Suppose we try to take the derivative of $\sqrt{x}$ at $x=0$. Then we get an expression $\frac{\sqrt{0 + dx} - \sqrt0}{dx} = \frac1{\sqrt dx}$, which has no standard part: the standard part is only defined for finite hyperreals, and when $dx$ is infinitesimal, $\sqrt{dx}$ is also infinitesimal, and $\frac1{\sqrt{dx}}$ is infinite. No derivative exists.

*Suppose we try to take the derivative of $|x|$ at $x=0$. Then we get an expression $\frac{|0 + dx| - |0|}{dx} = \frac{|dx|}{dx}$. This simplifies to $1$ when $dx > 0$, and to $-1$ when $dx < 0$, so the standard part exists but is not independent of $dx$. Again, no derivative exists.

