When solving algebraic equations (for example, $2x+6=10$, $x+5=x$, or $x^2=-1$), do we have to assume that our unknown variable ($x$) exists (i.e., it exists in a specific number system) before solving? Like before we solve or rearrange algebraic equations (or any other equation, such as from calculus or advanced math), do we have to assume that our unknown variable exists (in a number system) (so we can apply algebraic operations to it)? I have added my explanations for my examples below. So, is this correct?
- $2x+6=10$
For this example, we first have to assume/let $x$ be a member of the real numbers (or any other number system we choose, but this makes the most sense). Then, since we already know that $x$ is a real number, we can apply algebraic operations that are valid in the real numbers to it, and solve the equation to get $x=2$, so we have now proven that $x=2$ is the solution to this equation in the real numbers.
- $x+5=x$
For this example, we first have to assume/let $x$ be a member of the real numbers (or any other number system we choose, but this makes the most sense). Then, since we already know that $x$ is a real number, we can apply algebraic operations that valid in the real numbers to the equation, and solve the equation to get that $x$ has no solution, so we have proven that no solution from the real number system exists for this equation.
- $x^2=-1$
For this example, we first have to assume/let $x$ be a member of the real numbers or the complex numbers (or any other number system we choose, but these two make the most sense). So for the real numbers version: we apply algebraic operations that valid in the real numbers to the equation, resulting in $x=\pm\sqrt{-1}$, which is undefined in the real numbers. So we have proven that no solution exists for this equation in the real numbers. For the complex numbers version: we apply algebraic operations that valid in the complex numbers to the equation, also resulting in $x=\pm\sqrt{-1}$, which is defined in the complex numbers and also the same as $x=\pm i$, so we have proven that two soltuions to this equation exist in the complex numbers.
So, my main question is: Is it true that we have to assume our unknown variable, $x$, exists (meaning it exists in a specific number system) before solving (similar to my method that I have explained above)? Any help would be greatly appreciated. Thank you.