Naked Science Forum

General Science => General Science => Topic started by: talanum1 on 29/01/2021 18:09:23

Title: Can you derive x = -1 from x^2 = 1?
Post by: talanum1 on 29/01/2021 18:09:23
We cannot derive the above by algebraic equation manipulation, for if you take the negative square root on both sides you get:

-sqrt(x^2) = - sqrt(1)

and the negative sign cancells both sides, so this doesn't work. Taking the negative square root on one side and positive on the other is not doing the same thing on both sides and is illegal.

Substituting -1 in LS is not equation manipulation.
Title: Re: Can you derive x = -1 from x^2 = 1?
Post by: Bored chemist on 29/01/2021 18:12:30
The square root function isn't a well behaved function in maths.
It gives two values.
Title: Re: Can you derive x = -1 from x^2 = 1?
Post by: chiralSPO on 29/01/2021 19:21:50
x2 = 1
x2 – 1 = 0
(x+1)(x–1) = 0
x = 1 and x = –1 both satisfy the last equation
Title: Re: Can you derive x = -1 from x^2 = 1?
Post by: evan_au on 29/01/2021 20:58:38
You can also solve it graphically, by graphing y = x2-1

Then you look to see where this graph crosses the x-axis, ie y = 0 = x2-1

There are two such locations where this graph crosses the x-axis, at x = 1 and x = -1
 [ Invalid Attachment ]
Title: Re: Can you derive x = -1 from x^2 = 1?
Post by: evan_au on 29/01/2021 21:01:34
You can also solve it numerically, using the Newton-Raphson method.
See: https://en.wikipedia.org/wiki/Newton%27s_method#Square_root
To find the negative root, start with a negative initial estimate
Title: Re: Can you derive x = -1 from x^2 = 1?
Post by: evan_au on 30/01/2021 08:10:07
Here is the results of solving this equation numerically, with starting guesses of:
- x = +4.5: converges to the root at x = 1 in 6 iterations (green line)
- x = -4: converges to the root at x = -1 in 6 iterations (orange line)
- Using 12-digit floating-point numbers

Starting with the initial guess, you follow the tangent of the curve to find a better guess.

* Newtons_Method.png (13.74 kB . 475x275 - viewed 2427 times)
Title: Re: Can you derive x = -1 from x^2 = 1?
Post by: vhfpmr on 30/01/2021 11:20:21
The square root function isn't a well behaved function in maths.
It gives two values.
Inverse trig functions have an infinite number of solutions.
Title: Re: Can you derive x = -1 from x^2 = 1?
Post by: evan_au on 30/01/2021 21:36:26
Quote from: Wikipedia
In mathematics, a function is a binary relation between two sets that associates every element of the first set to exactly one element of the second set.
The definition of a mathematical function is that it has exactly one value at every point where it is defined.

So when you have something like Square Root or Inverse Sine where there are multiple values, mathematicians arbitrarily select one of these values as the "Principal Value" of the function.
- For Square Root (domain x ≥ 0), they arbitrarily choose the positive square root y ≥ 0 (even though -y is also a valid answer)
- For Inverse Sine (domain -1 ≤ x ≤ +1), they arbitrarily choose the range -π ≤ y ≤ +π  (even though any multiples of 2π radians y ± 2nπ are also valid answers)
- They just expect that the user is aware that there are other answers that should be considered

This definition fits well with calculators and computers, with one number into a function, and one number out of the function
- Computer software does not cope well if one computer returns answers to sin-1 with a range -π ≤ y ≤ +π, and another computer returns values with a range +π ≤ y ≤ +3π.
- Computers don't generally cope well with functions producing an infinite list of answers - use a symbolic maths package for this.

The definition of a mathematical function as being single-valued can be generalized to a multi-valued function, see discussion of square root (and the complexities of doing this in the general case):
See: https://en.wikipedia.org/wiki/Function_(mathematics)#Multi-valued_functions