In reality you can only write an approximate equation
To derive this in the way you want, you can write:
This approximation is "good" when
These ideas can be made rigorous. If you are interested in how they can be made rigorous (without using infinitesimals), you can watch my video lectures on introductory Real Analysis .