Consider the following input:
Solve[a x^2 + b x + c == 0, x]
%/.{a->0}
The solution produced by Mathematica in the first line is the result of the standard quadratic formula: $$x=\frac{-b-\sqrt{b^2-4 a c}}{2 a}.$$
Because this formula is undefined at $a=0$, the second line outputs errors, "Infinite expression 1/0 encountered", followed by the output {{x->ComplexInfinity},{x->ComplexInfinity}}.
But if $a=0$ and $b\neq 0$ the original equation has a well-defined solution, $x=-c/b$.
Given that Mathematica is normally incredibly rigorous about its output, why is it that, conceptually, asking it to "solve this equation and evaluate the solution at zero" produces nonsense? Or, in other words, why don't we get an output that evaluates to the correct solution for $(a,b,c,x)\in\mathbb{R}^4$?

Reduceis better at handling some conditions as in this case conditiona==0&&b==0&&c==0. – azerbajdzan Feb 13 '24 at 21:38