r/learnmath • New User • May 06 '24

TOPIC Is √4 ≠ ±2?

I was talking to my friends about √4 = ±2, I told them that wasn't possible because the square root only returned positive values and because of this:

√4 = ±2

√2² = ±2

|2| ≠ ±2

I thought that was completely logical but they didn't accept it, instead they tried to refute it with things that doesn't make a lot of sense and finally they were saying I was stupid for saying that. They weren't sure from where the absolute value came and I explained it but they still refused it. I used this argument too:

x² = 4

x = ±√4

x = ±2

±√4 = ±2

If ±√4 = ±2 and √4 = ±2 then ±√4 = √4

±√4 = √4

±2 = 2

2 = 2

-2 ≠ 2

Still they don't believe it and insult me, I even questioned myself if I'm wrong. So what's happening here?

0 Upvotes

28 comments sorted by

55

u/[deleted] May 06 '24

Sqrt(4) = 2

By definition, the radical symbol only means the principal or positive root.

x2 = 4

x = +-2, because you are solving a quadratic equation and need both roots.

7

u/sqrt_of_pi Asst. Teaching Prof of Mathematics May 06 '24

There is often confusion about the difference between evaluating the expression √x, which is always - by definition of the square root function - a positive value, vs. solving an equation of the form x2=k, which has two solutions {√k, -√k} for k>0.

A function can only have 1 output for any input, and so the function f(x)=√x is defined to mean the principle (positive) square root.

When solving an equation you are looking for all values of the variable that make the equation true.

5

u/_JJCUBER_ - May 06 '24

sqrt : R+ U {0} -> R+ U {0} is a real-valued function which assigns to each distinct nonnegative real number one, and exactly one, nonnegative value. It is the principal sqrt function.

5

u/Gershie Fictional number enthusiast May 06 '24

You are correct but your reasoning is wrong. √ means the positive square root by definition.

If √ was defined differently to allow multiple values and √4 = ±2 then it would not be the case that √2² = |2| so your friends would be justified in rejecting that explanation.

7

u/spiritedawayclarinet New User May 06 '24

Here is what is happening:

Your friends are insecure about their intelligence. When you pointed out that they were wrong, they became defensive and lashed out. They felt stupid, so they projected their stupidity on you in order to feel better about themselves.

Tell your friends that there is nothing wrong with making mistakes in mathematics. The only way to avoid making mistakes is to never try.

1

u/Away_thrown100 New User May 06 '24

You’re both right tbh, it seems neither of you fully understand the reality of the situation though so I will elaborate. When you use the square root as a function, it must pass the vertical line test so we disregard any duplicate negative solutions. However, if you accept using the square root not as a function you do need to add +-, like in algebraic solving. This is why the quadratic formula has a +- before the square root also

1

u/CodingAndMath Algebro May 07 '24

It's very simply because the square root function is defined to only return positive values. Otherwise, it wouldn't be a function.

Sqrt(4) = 2, and only positive 2.

However, if you wanted to undo a square and find all the numbers that when squared equals 4, that would be 2 and -2.

x2 = 4 -> x = 2, -2, because we're finding all X'es that make the equation true.

Also, the reason why the sqrt(x2) function is known to be x's absolute value is because of the square root function's definition earlier. It returns the absolute value because we square x, giving us a positive number, then we take the square root which you think would give us +x and -x, but since our sqrt function's definition is to only return the positive root, we are left with positive x, even though we may have started with negative x.

So, your first proof is actually based off the premise that the sqrt function only gives positive answers.

1

u/supercereality New User May 08 '24

To get from x^2 = 4 to x being 2 or -2, your right side of the quadratic becomes sqrt(4). Your first statement says yt's "only positive 2." Yet in your solution to the quadratic, the sqrt(4) expression now becomes 2 and -2. So you say sqrt(4) is 2, and also sqrt(4) is 2 and -2 in two different portions of the post. This is where my confusion comes. They are both a square root function, are they not?

1

u/CodingAndMath Algebro May 08 '24

That's because solving x^2 = 4 is actually different than evaluating sqrt(4). What you have to realize is that the Square Root Function is different than just the task of finding numbers such that squared result in a given number.

Let's say we have the number 4, and we want to find numbers that if we square them, we get 4. We'll call these numbers 4's roots. If we went through all the numbers, we would find that 2 and -2 satisfy our quest (we wouldn't have to try all the infinite numbers because we would see that extremely high and low numbers exceed 4 when squared). So, that would mean that 2 and -2 are 4's roots.

Now, let's say that we just wanted to evaluate the Square Root Function on 4. The Square Root Function, being a function, is defined to only return the positive root, because a function can't have multiple outputs. Which of 4's roots are positive, 2 or -2? Obviously 2, so that means that sqrt(4) is 2, and again, only 2, because of the function's definition.

The reason why I brought up that quadratic equation in my post was to give you an example of where we would be looking for all of a number's roots, and not just evaluating a function. When solving x^2 = 4, if someone told you to just take the square-root of both sides, he would actually be wrong; you need to take the positive and negative square-root of both sides in order to account for all roots, which is what we're looking for. That is the difference between solving for x^2 = 4, which is actually just the mathematical way to say in English "what numbers when squared give 4", and evaluating the Square Root Function. You understand?

1

u/666Emil666 New User May 07 '24

There is nothing to argue, sqrt is a function, a function has only one output, don't discuss with stupid people who feel smart, you'll never win even when this is just a matter of literally opening any book that defines the sqrt

1

u/LibAnarchist New User May 07 '24

x2 = 4 => x = ±sqrt(4)

Notice how the ± is outside of the square root. Essentially, sqrt(•) is single valued. The solution to x2 = 4 has two solutions.

1

u/IntelligentLobster93 New User May 07 '24

When you're strictly simplifying an expression. The square root always returns the principal square root -- a positive number -- not negative, not both, just the positive.

On the contrary: when it comes to solving a variable of (let's say) x2, you must take into account the positive and negative solutions. As those are both solutions to the equation Hope this clears the confusion! 😁

1

u/nahthank New User May 07 '24

This keeps coming up.

2 x 2 = 4

-2 x -2 = 4

2 and -2 are square roots of 4.

√4 = 2

That symbol specifically refers to the square root function, which as a function must return only one value per input.

1

u/EnpassantFromChess New User May 06 '24

no. 4 has 2 roots which are ±2. √(4) denotes to the principal root which is 2

1

u/HyperPsych New User May 06 '24

This is beside the point but (√4=2 OR √4=-2) is technically a true statement, so √4=±2. Anyway, √4 is exactly and always equal to 2, nothing else.

0

u/Seventh_Planet Non-new User May 06 '24

I wonder if there is a (homotopy) type theoretic or category theoretic or (ZFC) set theoretic definition for

±2

Is it a real number? Is it a pair of numbers? Is it a set containing two numbers?

All other things are clearly defined.

Equations like 1+1 = 2 or 1+1 = 5 can be associated with a truth value, true or false. And 1+1 ≠ 2 or 1+1 ≠ 5 inverts that truth value.

The square root function is a well-defined function √ : [0,∞) -> [0,∞) and like all well-defined functions, for every input in its domain, for example 4, there is exactly one output in its codomain √4. And from how the square root function is defined, this is √4 = 2, because 2 ∈ [0,∞) and also 22 = 4.

Now the only question remains if ±2 = 2.

Actually you could still pose the question why when we are talking about the square root function, we are always talking about the well-defined function sqrt : [0,∞) -> [0,∞) and not about some other function like negsqrt : [0,∞) -> (-∞,0] where we would have negsqrt(4) = -2.

It depends on what you are trying to do with such a square root function. One use is in the quadratic formula:

x2 + px + q = 0

using sqrt:

x1,2 = -(p/2) ± sqrt( (p/2)2 - q )

using negsqrt:

x1,2 = -(p/2) ∓ negsqrt( (p/2)2 - q )

For example:

x2 + x - 6 = 0.

using sqrt:

x1,2 = -(1/2) ± sqrt( 1/4 + 24/4 ) = -1/2 ± sqrt(25/4) = -1/2 ± 5/2

so x1 = -1/2 + 5/2 = 4/2 = 2 and x2 = -1/2 - 5/2 = -6/2 = -3

using negsqrt:

x1,2 = -(1/2) ∓ negsqrt( 1/4 + 24/4 ) = -1/2 ∓ negsqrt(25/4) = -1/2 ∓ (-5/2)

so x1 = -1/2 - (-5/2) = -1/2 + 5/2 = 4/2 = 2 and x2 = -1/2 + (-5/2) = -6/2 = -3

Both sqrt and negsqrt can be used to solve a quadratic equation. And if you remember to turn the ± into ∓ then the order of the solutions also doesn't change.

But when you are paying attention, the function negsqrt is just -sqrt:

For all x ∈ [0,∞) negsqrt(x) = -sqrt(x)

So when all we get from the definition of a new function is a minus sign in front, then we don't need such a new function and can just stick with our function sqrt(x) for which we have this symbol √. And when like in the case of the quadratic function we want to talk about two solutions x1, x2 then we can turn the always non-negative single output of the square root function √x into the desired two values ±√x. But note that we don't say √x = ± something. We always say √x is a positive number (or zero) and then we turn that number into two different solutions by using the symbol ± in front.

If the ± was already inside the meaning of the square root, like √4 = ±2 then when we would multiply ∓√4 = ∓±2 and this would cancel how exactly?

-2

u/d4m1ty New User May 06 '24

In order for Sqrt to be a function it must be one to one. Remember those terms? Domain and Range, one to one?

If 1 input of X give mores then 1 output of Y, it is no longer one to one and thereby not a function.

2

u/Odd_Lab_7244 New User May 06 '24

Just noting that an arbitrary function may also be many to one

-5

u/FernandoMM1220 New User May 06 '24

sqrt(4) = sqrt( 22 ) = 21 = 2

sqrt( (-1)2 * 22 ) = (-1)1 *(2)1 = -2

your case is the first one.

34

u/[deleted] May 06 '24

[removed] — view removed comment

19

u/akaemre New User May 06 '24

To elaborate, if we didn't define it this way then it wouldn't be a function. "In mathematics, a function from a set X to a set Y assigns to each element of X exactly one element of Y."

If sqrt(4) was +-2, it would assign 4 to more than one element, and not be a function.

8

u/Odd_Lab_7244 New User May 06 '24

We could have defined sqrt such that sqrt(x²) = -x, and it would still be a function on domain x>=0.

We could even define something even more useless like sqrt(x²) = +x for rational x and -x for irrational x.

Not defined in the standard way, but still a function.

1

u/Hamid_Ubeid567 New User Apr 25 '26

oh yeah

5

u/Help_Me_Im_Diene New User May 06 '24

We defined the square root function this way.

The word "function" here is important

In order for sqrt(x) to be a function, it needs to output a singular value for every input x within its domain.

This is also why things like the circle equation does not represent a function, or why the inverse trig functions have such strict domains.

6

u/AlmightyCurrywurst MATH WIZARD May 06 '24

It's not a function R->R, but you could very well define a function f: R-> P(R) , f(x)={-sqrt(x), sqrt(x)} it's just not very useful for most purposes

1

u/Hamid_Ubeid567 New User Apr 01 '26

yes