# What is Irrational Number

**Irrational number** is a number, that is not rational.

What does that mean?

It means, that we can't represent irrational number as a fraction, decimal with finite number of digits, or repeating decimal.

For, example:

- Whole number 3 can be represented as `3/1`.
- Fraction `5/10` is already fraction (reduced form is `1/2`).
- Decimal `0.16` is `4/25`.
- Repeating decimal `0.33333333=0.bar(3)` is `1/3`.

Irrational numbers often occur, when we want to find nth root of a number.

For example, `root(3)(7)` is irrational, because there is no such fraction `m/n`, that `(m/n)^3=7`.

A couple of famous irrational numbers are:

- `pi~~3.1415926535898` (ratio of circumference of any circle and its diameter)
- `sqrt(2)~~1.4142135623731` (length of diagonal of the square with sides equal 1)

As can be seen, irrational numbers can be represented as decimals, but what then is the difference between repeating decimal and irrational number?

Answer is simple. Irrational number has no pattern in decimal representation.

Compare:

- `10/11=0.909090909090....=0.bar(90)` (here is pattern, we know what comes next: 90)
- `pi=3.1415926535897...` (what's next???)

Maybe, you don't believe that `sqrt(2)` is irrational, so here is proof.

**Fact**. `sqrt(2)` is irrational.

**Proof**. Pretend that we can represent `sqrt(2)` as irreducible fraction `m/n`, that is `sqrt(2)=m/n`.

If numbers are equal, then their squares are also equal: `(sqrt(2))^2=(m/n)^2`.

This can be rewritten as `2=m^2/n^2`.

From last equality we have that `m^2=2n^2`.

This means, that `m^2` is even. But if `m^2` is even, then `m` is also even (square of odd number will give odd number).

That's why we can write `m` as `m=2c`.

Return to `m^2=2n^2` and plug instead of `m` `2c`: `(2c)^2=2n^2`.

This means that `4c^2=2n^2` or `2c^2=n^2`.

So, `n` is also even number.

Since `n` is even and `m` is even, then `m/n` is not irreducible (they have at least one common factor 2).

This is contradiction.

So, there is no such fraction `m/n`, that `sqrt(2)=m/n`.

Thus, `sqrt(2)` is irrational.

When does irrational number occur?

- Some known constants: `pi`, `e` (Euler number) etc.
- Nth root of numbers: `sqrt(2), root(3)(2)` etc.

But keep in mind, that not all nth roots are irrational. For example `sqrt(4)=2`, `root(4)(81)=3`.

Finally, multiplication of irrational numbers can give rational number:

- `sqrt(3)*sqrt(3)=(sqrt(3))^2=3`
- `sqrt(2)*sqrt(8)=4`

But that's not always true: `pi^2=pi*pi=9.869604401` is still irrational.