31

Here's an elementary question on solving the following quadratic equation (well, it's not a quadratic until the square root is eliminated):

$$\sqrt{x+5} + 1 = x$$

Upon solving the above equation either using the method of factoring or the quadratic formula (after squaring both sides) you get $x = 4$ and $x = -1$. If you plug in $x = 4$ in the original equation, it checks out. However $x = -1$ doesn't work. You'll end up getting $3 = -1$ which is not true (in other words the LHS does not equal the RHS).

Is this still considered a solution/root of this particular equation? Does it have a special name?

alok
  • 3,890
  • 11
    I am baffled by the idea that one solution is better than the other. x=4 gives you a false equation if you choose the negative square root, and x= -1 gives you a false equation if you choose the positive square root. And vice versa. There is absolutely no algebraic reason to prefer one solution over the other. The idea that the positive square root is the one that "counts" is just some nonsense that a committee came up with for a junior high school textbook. It has no mathematical significance. – Marty Green Sep 02 '11 at 01:08
  • 18
    @Marty: Choosing the positive square root for $\sqrt{a}$ (when $a$ is a positive real number) has some advantages and is not totally arbitrary. For example, it makes $\sqrt{a} \sqrt{b}=\sqrt{ab}$ true when $a$, $b$ are positive real numbers. If you chose the negative square root instead, you'd have to introduce a negative sign into that equation. It's like using the radian measure for trig functions or $e$ for the base of the natural logarithm: It simplifies things down the road. – Ted Sep 02 '11 at 04:04
  • 2
    @Marty: Choosing $\sqrt{n}$ to stand for the positive square root is a perfectly sensible convention. Also it's standard in mathematics, not just in high-school textbooks. See e.g. the comments (on both answers) here, here, etc. The issue in this particular question is just that squaring loses information about which square root was chosen. – ShreevatsaR Sep 02 '11 at 08:47
  • 11
    @Marty: It's not that the positive square root is the only one that "counts", but that we need some definite way to refer to the the positive square root. The diagonal of a unit square is $\sqrt{2}$ and not $-\sqrt{2}$. The cosine of 36° is $(1+\sqrt{5})/4$ and not $(1-\sqrt{5})/4$. – Dave Radcliffe Sep 02 '11 at 08:58
  • 17
    @Marty: It's not "some nonsense" that "a committee came up with for a junior high school textbook" (which is something which, to be frank, makes you sound more than a bit silly). It's a choice that needs to be made if you want to have a function, and your personal distaste is simply no match for just how mindbogglingly useful it is to have a well-defined, single valued function for this operation. – Arturo Magidin Sep 02 '11 at 13:09
  • 2
    I suppose we are all entitled to have our minds boggled by different things. – Marty Green Sep 02 '11 at 16:12
  • 4
    @Marty: That's as may be; or, to paraphrase Harlan Ellison, we are all entitled to our informed opinion, and to have that informed opinion respected; but nobody is entitled to respect for an un-informed opinion. – Arturo Magidin Sep 02 '11 at 17:14
  • 1
    Perhaps I am ill-informed, as you suggest, but I cannot imagine a mathematical situation where it is particularly useful, let alone "mindbogglingly useful", to have a single-valued function for the square root operation. Can you enlighten me with an example? – Marty Green Sep 02 '11 at 18:03
  • 12
    @Marty: Besides the example already given to you by Dave Radcliffe? Suddenly you cannot express the length of the diagonal of a square in terms of the length of its side, or of the hypothenuse in terms of the other two sides. You cannot express solutions to certain equations. You cannot express values of useful functions like sine and cosine unambiguously. Etc. Etc. Etc. But, hey, if you don't use it and don't care, that's fine. Just don't pretend that it is all a conspiracy to annoy you and confuse poor innocent students. – Arturo Magidin Sep 02 '11 at 18:09
  • OK, if those are the things that boggle your mind, then I agree. Personally, what boggles my mind is the fact that even without doing the calculation, I can be quite assured that if I make the "wrong" choice for the square root in the expression for cos(36), I will still get a value that satisfies the same algebraic conditions. Probably cos(108). Even more mind-boggling is the fact that there exactly two choices for the square root is related to the Galois structure of x^10-1=0. But like they say, different strokes for different folks. – Marty Green Sep 02 '11 at 22:39
  • 1
    @Marty: And yet, you have to pick one; the Galois group of $x^{10}-1$ tells you that you have several different choices of how to think about the set of solutions inside the complex numbers; it does not tell you that you can simultaneously think about them in several different ways; that is, you get a choice of embeddings, you don't get a single embedding with multiple values. You would be unable to even define "the Galois structure of $x^{10}-1=0$" if radicals did not define functions. The fact that you take that for granted on the one hand and make fun of it on the other says a bit – Arturo Magidin Sep 03 '11 at 19:20
  • No, no, no. The beauty of Galois theory is that there is no distinction between the two choices of the square root or the three choices for the cube root. There is absolutely no need to define an arbitrary single-valued function for any of them. – Marty Green Sep 04 '11 at 04:36
  • 6
    @Marty: Galois theory tells you that the two solutions of, say, $x^2-2=0$, are algebraically indistinguishable in some sense. But they are not analytically indistinguishable. And even Galois theory has something to say about the distinction between the real root of, say, $x^3-2$, and the two complex ones: the behavior of the place at infinity is different, as I recall. But, again, if you don't want to, you don't have to. It's the backhanded insult about "committees" and junior highs that is utterly out of place. – Arturo Magidin Sep 04 '11 at 05:16
  • 6
    If the "backhanded insult" about committees was out of place, then how do you justify the forehanded insults against me personally? – Marty Green Sep 04 '11 at 05:38
  • 1
    @Marty: Sayings about geese and gander come to mind, given that your comments certainly felt that way directed at me. – Arturo Magidin Sep 04 '11 at 20:51
  • Will you admit now that I was right and you were wrong? – Marty Green Sep 04 '11 at 21:25
  • @alok, what textbook is this question from? – seeker Sep 25 '13 at 16:18
  • 1
    Belatedly, I definitely would "second" @MartyGreen's comments that such issues are convention, and do not express much mathematical content. The seeming absoluteness of the convention is indeed a result of committees and curriculum pressures and low-level textbook publishers. – paul garrett Nov 26 '22 at 01:22
  • Thanks, @paulgarrett. I'm not used to people agreeing with me. – Marty Green Nov 26 '22 at 17:13
  • 3

8 Answers8

65

Generally speaking, the problem arises because squaring is not a "reversible" operation. That is, while it is true that if $a=b$ then $a^2=b^2$, it is not true that if $a^2=b^2$ then $a=b$. (For instance, even though $(-1)^2=1^2$, it does not follow that $-1=1$)

This is in contrast to other kinds of equation manipulations that we use routinely when we solve equations. For example, if $a=b$, then $a+k=b+k$, and conversely: if $a+k=b+k$, then $a=b$. So we can add to both sides of an equation (for instance, you can go from $\sqrt{x+5}+1 = x$ to $\sqrt{x+5}=x-1$ by adding $-1$ to both sides) without changing the solution set of the equation. Likewise, we can multiply both sides of an equation by a nonzero number, because $a=b$ is true if and only if $ka=kb$ is true when $k\neq 0$. We can also take exponentials (since $a=b$ if and only if $e^a=e^b$) and so on.

But squaring doesn't work like that, because it cannot be "reversed". If you try to reverse the squaring, you run into a rather big problem; namely, that $\sqrt{x^2}=|x|$, and is not equal to $x$.

So when you go from $\sqrt{x+5} = x-1$ to $(\sqrt{x+5})^2 = (x-1)^2$, you are considering a new problem. Anything that was a solution to the old problem ($\sqrt{x+5}=x-1$) is still a solution to the new one, but there may be (and in fact are) things that are solutions to the new problem that do not solve the old problem.

Any such solutions (solutions to the new problem that are not solutions to the original problem) are sometimes called "extraneous solutions". Extraneous means "coming from the outside". In this case, it's a solution that comes from "outside" the original problem.

Arturo Magidin
  • 398,050
  • 3
    Specifically, when you go from $\sqrt{x+5} = x-1$ to $\left(\sqrt{x+5}\right)^2 = (x-1)^2$ the solutions to the new problem that are not solutions to the old problem are solutions to $\sqrt{x+5} = -(x-1)$. Indeed, $x=-1$ satisfies $\sqrt{x+5} = \sqrt{4} = 2$ and $-(x-1) = -(-2) = 2$. – ShreevatsaR Sep 02 '11 at 08:50
  • 2
    Once you square, you can no longer know if you started with x or -x; Because squaring is not injective, information is "lost". – Nicolas Miari Aug 15 '16 at 07:33
17

It is often called an extraneous solution, or extraneous root. And it is not a solution of the original equation. This can be kind of confusing, since a black cat is still a cat. Think of an extraneous solution as a fake solution. (Thanks to the comment by Rahul Narain for this last formulation.)

The term extraneous solution occurs mainly in secondary school mathematics.

André Nicolas
  • 507,029
  • 1
    your black cat analogy doesn't make any sense either! {no offence} – alok Sep 01 '11 at 19:29
  • 9
    He just means that usually if we put an adjective on a noun, that does not change the essential nature of the noun. So a "red car" is a car, a "blue shirt" is a shirt, a "close friend" is a friend. But here, an "extraneous solution" is not a solution (that would be like saying that a "yellow hat" is not actually a hat). – Arturo Magidin Sep 01 '11 at 19:35
  • 1
    None taken! The point was that when one calls it an extraneous solution, that makes it sound as though it is a special kind of solution. Just like a black cat is a special kind of cat. However, what is called an extraneous solution is in fact not a solution. It should really be called an (extraneous) non-solution. – André Nicolas Sep 01 '11 at 19:37
  • 3
  • 18
    But a forged Picasso is not a Picasso, imitation crab is not crab, and so on... :) –  Sep 01 '11 at 19:45
12

The square root sign always means the positive square root, so the only solution is $x=4$. You introduced the 'phantom' solution when you squared both sides.

TonyK
  • 64,559
  • I've heard of something called extraneous solution.What does that mean anyways ? the word solution in it bothers me! and what is this 'phantom' solution? – alok Sep 01 '11 at 19:25
  • 5
    "phantom" and "extraneous" would be synonymous in this context, @alok. – J. M. ain't a mathematician Sep 01 '11 at 22:29
  • Clearly $2 \ne -2$. But when you square both sides you get $4=4$. Sometimes squaring both sides turn false statements into true statements. So, even though you got an answer, your answer may not work for the original statement. – Steven Alexis Gregory Jul 27 '21 at 22:05
12

Squaring both sides preserves equality (thus, if $a = b$, then $a^2 = b^2$), but squaring might not preserve inequality (for example, $2 \neq -2$, but their squares are equal). The "preserves equality" property means that you won't lose any solutions by squaring, but the "might not preserve inequality" means that you might gain solutions (i.e. the squared equation might have solutions that the pre-squared equation doesn't have).

In your case, $x = -1$ happens to be a situation where an inequality becomes an equality after squaring. In fact, when $x = -1$, then $\sqrt{x+5} = 2$ and $x - 1 = -2.$ Thus, $x = -1$ is not a solution to the pre-squared equation (because $2$ is not equal to $-2$), but $x = -1$ will be a solution to the squared equation (because the square of $2$ is equal to the square of $-2$). It's for this reason that you're told in high school algebra (or you should have been told) that you must check all solutions if at some point you squared both sides of an equation. Google (together) the phrase "extraneous solution" and "radical".

10

Added: Explanation of why squaring both sides of an equation may generate new solutions, called extraneous solutions, which are not solutions of the original equation.


Since $$A^{2}-B^{2}=(A-B)(A+B),$$ the equation $$A^{2}-B^{2}=0\Leftrightarrow A^{2}=B^{2}$$ means that $A=B$ or $A=-B.$ The roots of the equation $A^2=B^2$ are the roots of the equation $A=B$ and the roots of the equation $A=-B$. Since in general the roots of equation $A=-B$ are different from the roots of the equation $A=B$, when we pass from $A=B$ to $A^2=B^2$ we may generate other solutions.

This generalizes to $$ A^{n}-B^{n}=(A-B)(A^{n-1}+A^{n-2}B+\ldots +B^{n-1}). $$

Thus $$ \begin{equation} A^{n}=B^{n}\Leftrightarrow A^{n}-B^{n}=0 \tag{1} \end{equation}$$

is equivalent to $$ \begin{equation} A-B=0\Leftrightarrow A=B \tag{2} \end{equation}$$

or $$ \begin{equation} A^{n-1}+A^{n-2}B+\ldots +B^{n-1}=0 \tag{3} \end{equation}$$

The roots of equation $(1)$ are the roots of equation $(2)$ and the roots of equation $(3)$. In general the roots of equation $(3)$ are different from the roots of equation $(2)$. So when we pass from $(2)$ to $(1)$ we may generate new solutions that are not solutions of the original equation.


Theorem. Raising both sides of an equation $A=B$ to the $n^{\text{th}}$ power yields a new equation $A^n=B^n$, which has all the solutions of the given equation and may admit other solutions.

9

In short, applying a non $1$-to-$1$ operation like $\rm\:x\to x^2\:$ to an equation may enlarge its solution set, i.e. it may introduce extraneous solutions. For example, by squaring $\rm\: x\: =\: 1\:$ $\:\Rightarrow\:$ $\rm\:x^2 =\: 1\:$ which, besides the correct solution $\rm\:x=1\:,\:$ also yields the extraneous solution $\rm\:x = -1\:.\:$ The extraneous solution arises because the operation of squaring is not $1$-to-$1$, i.e. $\rm\:x^2 = y^2\:\: \not\Rightarrow\: x=y\:.\:$ Thus, although the inference $\rm\:x = y\:\Rightarrow\: x^2 = y^2\:$ is true, the reverse implication is not generally true. So any solutions obtained by applying this inference need not necessarily satisfy the initial equation.

But adding the same quantity $\rm\:c\:$ to both sides of an equation, or cancelling a nonzero quantity $\rm\:c\:$, are $1$-to-$1$ operations so they always preserve solution sets. More precisely we have the following equivalences $\rm\ x+c\: =\: y + c\:\iff\:x = y\:,\:$ and if $\rm\:c\ne 0\:$ then $\rm\: c\ x\: =\: c\ y\:\iff\: x = y\:$ (beware that the latter is true only in fields or domains, e.g. modulo $\:6:\ $ $\:2\cdot 3\ =\ 2\cdot 0\:,\:$ but $\rm\:3 \ne 0\:)\:.$

So, in the process of solving an equation, if you ever apply any non $1$-to-$1$ operation, then, to filter out extraneous solutions, you must explicitly check that the "solutions" satisfy the initial equation. A convenient way to to keep track of these matters is to explictly notate the equivalences as you apply each transformation to the equation - just as I did above with the arrows. Then, after obtaining your candidate solutions, glance back at the chain of arrows. If any arrow is not bidirectional then you must verify that each candidate solution does satisfy the initial equation (or that it satisfies some equivalent equation, e.g. any equation before the first $\:\Rightarrow\:$ in the chain).

Bill Dubuque
  • 272,048
6

I don't know if it have a special name, but it is not a solution of the original eqution. It is only a solution of $$-\sqrt{x+5}+1=x$$ which was introduced when squaring.

Arturo Magidin
  • 398,050
1

I discovered two more equations for which you can obtain extraneous solutions.Here they are,$$ln(x-2)+ln(2x-3)=2ln(x)$$ for which you get two values of $x$,i.e$x=6$,$x=1$ which is an extraneous solution. And the other one is $$e^{2x}-e^{x}-2=0$$ you get two values upon solving for $e^{x}$,one being $x$=ln2 and the other one being $e^{x}=-1$ which does not satisfy the given equation.

alok
  • 3,890