We have the equation, $\sqrt{x^2-1}=x-3$
So, squaring both sides we get, $x^2-1=x^2+9-6x$
Which gives, $x=\frac{5}{3}$
However, by verifying the solution one immediately realises this is a false solution. These equations are inconsistent with each other.
Now this makes me realise that:
Either the way I am squaring both sides is wrong i.e., we have to assume some additional conditions when squaring both sides similar to when we divide by a variable we assume it is not equal to $0$ i.e., from $ax=0$ we don't get $a=0$, rather we get $x\neq0\Rightarrow a=0$. But, then I don't know those conditions.
Or I am getting an alright result because I assumed that an inconsistent set of equations have a solution, which is quite similar to when we try to solve a pair of inconsistent linear equations in two variables and we get a contradictory result. The only difference is that we immediately realise the contradiction in the latter case because we get results like '$0=2$' but here we realise the contradiction only after verifying. This creates a bigger problem because it tells me that after solving any set of equations, I should verify the solution, which I am afraid to say that I mostly don't do.
So, is my method of squaring both sides right and I should verify all/some specific sets of equations I solve, Or there are some conditions I am missing while squaring both sides of an equation? If there are such conditions then what are they?
The is an inconsistent equation, that is, it has no solution.
This is an extraneous solution of equation $(1).$
Nope, that squaring step was perfectly valid: $$\forall x{\in}\mathbb R\; \Big((1){\implies}(2)\Big).$$
Yes. Here, I discussed another such example of deductive explosion.
It is natural to solve a given equation (let's call it A) by reasoning that if A, then B, then C, then D, where D (e.g., $x=-3,7$) contains the solutions. But, in fact, D contains merely the candidate solutions, and, in this approach, equation A technically is not solved until the candidate solutions are verified. I elaborated on this in this Answer, which contains tips for recognising when and how extraneous solutions may arise.
Alternatively, to avoid extraneous solutions while solving an equation, we could carefully ensure that every step is reversible (but this method is probably not worth teaching in class), like so: \begin{align}\forall x\in\mathbb R \Bigg[\quad\quad\quad&\sqrt{x^2-1}=x-3\\\iff {}& x^2-1=(x-3)^2 \quad\text{and}\quad x-3\ge0 \\\iff {}&x\in\emptyset\quad\Bigg].\end{align}