In calculus, while solving for a limit we do some manipulations, Consider an example,
$$\lim_{x\to 0}\frac{(1+2x)^{0.5}-1}{x}$$
$$=\lim_{x\to 0}\frac{2}{(1+2x)^{0.5}+1}$$
Then we put $x = 0$ and solve. But, didn't this manipulation change the domain of the function? As we can see that in the original question $x$ was $\not=0$ but in second case $x=0$ is possible.
So does that mean that it is not important for the functions to be identical to find its limit? And if yes then how can we be sure that the limit we have calculated is correct?