Domain of $\frac{x^2-3x-10}{x+2}\div\frac{x^2-25}{x}$ I saw a question asked to simplify
$\dfrac{x^2-3x-10}{x+2}\div\dfrac{x^2-25}{x}$
It is not so hard to do :   $$\dfrac{(x-5)(x+2)}{x+2}\times\dfrac{x}{(x-5)(x+5)}=\dfrac x{x+5}$$
But my question is: should we have necessary all the conditions $x\ne-2$ , $x\ne5$ , $x\ne-5$ and also $x\ne0$ (because in former fraction we had $x$ in denominator) ? or we should have some of them?
 A: Yes, you have to state all of the conditions $x\neq2$, $x\neq5$, $x\neq-5$ and $x\neq0$. This is because when we write
$$
\frac{x^2-3x-10}{x+2} \div \frac{x^2-25}{x}=\frac{x}{x+5} \, ,
$$
we are asserting that for every value of $x$ for which the LHS and RHS are defined, the LHS represents the same number as the RHS. When $x=5$, for instance, the LHS does not make sense, even though the RHS does. Hence, equality does not hold.
A: Technically, you can't divide 0 by 0, so you need all of them. It happens to be that you could easily remove all but 1 of those singularities, but the expression as given is undefined for all those values.
A: $\dfrac{x^2-3x-10}{x+2}\div\dfrac{x^2-25}{x}$ is our expression, so we can clearly see that $x \ne 0,-2. $ Also, we cannot have $x=5,-5$ because that would make the $2$nd fraction $0$, and we can't divide by zero. Thus, our restrictions are $x \ne -5,-2,0,5$. These restrictions must be kept throughout the whole process, or else our end product will be different from the start product. For example, $x^2$ and $x^2, x\ne 0$ are different graphs because the $2$nd one has a hole in the middle.
A more thorough explanation:
$$\dfrac{x^2-3x-10}{x+2}\div\dfrac{x^2-25}{x} = {\dfrac{x^2-3x-10}{x+2}\over\dfrac{x^2-25}{x}}$$
If we multiply the top and bottom by $x(x+2)$, you have to note that $\frac aa = 1$ is only true if $a \ne 0$, so we have to keep the restriction that $x \ne -2,0$
Thus, we get $$  {(x^2-3x-10)(x)\over(x^2-25)(x+2)}$$
Which becomes $$(x-5)(x+2)(x) \over (x-5)(x+5)(x+2)$$
When we simplify the ${(x-5)(x+2) \over (x-5)(x+2)}=1$ part, we have to note again that $\frac aa = 1 $ only when $a \ne 0$, so we have to keep the restriction that $x \ne -2,5$. Thus, we have finally simplified it down to $\frac{x}{x+5}$, which can't have $x=-5$. Thus, we have simplified, keeping all the restrictions that $x \ne 0,-2,-5,-5$
A: This is a good question. Technically, we should include $x\neq 0,-2,-5,+5$.  The confusion comes from the fact that the final expression $\frac{x}{x+5}$implies $x \neq -5$,  some of the textbooks or teachers  allow/ask  you to skip this one and include the other three. Hopefully, you do not get punished for specify all 4.
