8

Suppose I have a number a

How can I find it's square root using only +, -, /, * and rational numbers?

If it is impossible how to prove it?

draks ...
  • 18,449
c0rp
  • 185
  • 5
    Any number obtained from $+,-,\times$ and $/$ and rational numbers is rational, but some squareroots, like $\sqrt 2$, are irrational. – Pedro Jul 17 '14 at 13:02
  • 4
    Is your number $a$ rational? Are you allowing an infinite number of these operations? – user37238 Jul 17 '14 at 13:03

3 Answers3

11

The set of rational numbers is closed under the elementary arithmetic operations (except for division by zero), i.e. if you have two rational numbers and take their sum, difference, product, or quotient, then the result is again a rational number (again, except for division by zero). Since $\sqrt{a}$ can fail to be a rational number (say, $\sqrt{2}$), there is no formula for $\sqrt{a}$ involving only elementary arithmetic operations.

Proof link

c0rp
  • 185
Zhen Lin
  • 90,111
7

If you allow infinite number of operations, then you can use some algorithm.

One easy example is root searching via Newton's method. Here we do the iteration $$x_{n+1} = \frac{a + x_n^2}{2x_n},$$ which eventually converges to $\sqrt{a}$ if $a$ and $x_0$ are positive.

See https://en.wikipedia.org/wiki/Methods_of_computing_square_roots for other methods.

J. J.
  • 9,432
  • In particular, the method that resembles long division requires only the basic operations of +, -, *, and /, and can be used to generate a result with as much precision as the OP desires. Also, it is extensible to 3rd, 4th, etc. roots. https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Decimal_.28base_10.29 – shoover Jul 17 '14 at 16:36
4

When you use an infinite ammount of operations, you can use:

$$ \!\ \sqrt{2} = 1 + \cfrac{1}{2 + \cfrac{1}{2 + \cfrac{1}{2 + \cfrac{1}{2 + \ddots}}}}. $$ from here...

draks ...
  • 18,449