March 20, 2026
Kuina-chan

Kuina-chan Math Lesson 4 explains functions and mappings that connect numbers! It is assumed you have read Lesson 1.
Lesson 3 defined integers “\mathbb{Z}”. This time, we will explain rational numbers “\mathbb{Q}” and real numbers “\mathbb{R}”, which are so-called decimals, as well as functions and mappings.

1.Rational Numbers and Real Numbers

So far, we have dealt with integers, but from now on we will deal with more detailed “rational numbers” and “real numbers”. These are what we call “decimals”.

1.1Rational Numbers



A number that can be expressed as a fraction of “integer/integer” where the denominator is other than 0 is called a “rational number”. For example, “2/3”, “0/1”, and “-5/4” are rational numbers. The decimal “3.3333\dots” is also a rational number because it can be expressed as the fraction “10/3”.
At this time, we denote the set of all rational numbers as “\mathbb{Q}”. That is, “\mathbb{Q}=\{2/3,0/1,-5/4,3.3333\dots,\dots\}”.

1.2Conversion from Decimal to Fraction



By the way, decimals where digits repeat like “1.23123123123\dots” can always be converted into “integer/integer” fractions, so they are rational numbers. “0.5” is also a rational number because it repeats as “0.5000\dots”.
The method for converting a repeating decimal like “1.23123123123\dots” into a fraction is as follows.
Conversion from Decimal to Fraction
  • Let x=1.23123123123\dots.
  • Multiply both sides by a power of 10 so that one cycle of the repeating part of the decimal appears to the left of the decimal point. That is, 1000x=1231.23123123123\dots.
  • Subtract the original equation x=1.23123123123\dots from this equation. That is, 999x=1230.
  • Transforming the equation, we get x=1230/999=410/333, so 1.23123123123\dots=410/333.
Any repeating decimal can be converted to a fraction using this method.

1.3Irrational Numbers



On the other hand, non-repeating decimals are called “irrational numbers”. Irrational numbers cannot be expressed as “integer/integer” fractions. Examples of irrational numbers include Pi “3.1415926\dots” and the number that becomes 2 when squared, “1.41421356\dots”.
Rational numbers and irrational numbers together are called “real numbers”. We denote the set of all real numbers as “\mathbb{R}”.
Supplement

In this definition of “real numbers”, we used the vague term “decimal”, but it can be defined more rigorously. There are several ways to define it, but simply put, if you line up infinitely many rational numbers, they may approach something arbitrarily close. That number may not be a rational number, and we define that as an irrational number. Rational numbers and irrational numbers together are real numbers.

Now, all natural numbers are included in integers. Also, all integers are included in rational numbers. Therefore, the inclusion relationship of the numbers introduced so far is as follows.
Inclusion Relationship of Main Numbers

Natural numbers \mathbb{N} \subset Integers \mathbb{Z} \subset Rational numbers \mathbb{Q} \subset Real numbers \mathbb{R}

1.4Main Operations



For rational numbers and real numbers, just like integers, addition “a+b”, subtraction “a-b”, multiplication “a\cdotb”, exponentiation “a^{b}”, and absolute value “|a|” are defined for two numbers a,b. Also, for b not equal to 0, division “a/b” is also defined. However, if b is 0, for example “3/0”, it is undefined.
Furthermore, “square root” is defined for real numbers. The “square root of x” is y that satisfies “x=y^{2}. For example, the “square roots of 9” are the two numbers “3,-3” because “9=3^{2}” and “9=(-3)^{2}” hold true. Similarly, the “square roots of 4” are “2,-2”.
Of the square roots, the one that is 0 or greater is called the “positive square root” and is represented by the symbol “\sqrt{x}”. That is, “\sqrt{9}=3” and “\sqrt{4}=2”.
Extending this, the value of y satisfying “x=y^{n} is called the “n-th root of x”. And the n-th root of x (where x is 0 or greater) is expressed as “\sqrt[n]{x}”. For example, since “16=2^{4}”, “\sqrt[4]{16}=2”.
Here are some values of positive square roots.
Values of Positive Square Roots
Positive Square Root
\sqrt{0}=0
\sqrt{1}=1
\sqrt{2}=1.4142135623\dots
\sqrt{3}=1.7320508075\dots
\sqrt{4}=2
\sqrt{5}=2.2360679774\dots
\sqrt{6}=2.4494897427\dots
\sqrt{7}=2.6457513110\dots
\sqrt{8}=2.8284271247\dots
\sqrt{9}=3
If we graph the positive square root y=\sqrt{x}, it looks like the figure below. If x is less than 0, there is no real number that becomes x when squared, so \sqrt{x} is undefined.
Graph of Positive Square Root
Graph of Positive Square Root
By the way, \sqrt{2} is an irrational number. It is simple, so let’s prove it.
Proof of Irrational Number
  • Below, we show that if \sqrt{2} were a rational number, it would lead to a contradiction, proving by elimination that \sqrt{2} is an irrational number.
  • First, assume “\sqrt{2} is a rational number”. Then, from the definition of rational numbers and \sqrt{2}>0, it can be expressed as “\sqrt{2}=a/b” using certain positive integers a,b.
  • Square both sides to get “2=a^{2}/b^{2}”. Multiply both sides by b^{2} to get “2b^{2}=a^{2}”.
  • Since a,b are positive integers, both sides of “2b^{2}=a^{2}” are positive integers, and both sides can be prime factorized. If we prime factorize both sides respectively, by the uniqueness of prime factorization, the prime factors of both sides must match.
  • When a,b are squared, the number of each prime factor included doubles, so the number of 2s among the prime factors of “b^{2}” and “a^{2}” is even respectively. Therefore, among the prime factors of “2b^{2}=a^{2}”, the number of 2s on the left side is odd, and on the right side is even, which do not match and is a contradiction.
  • Thus, the proposition “\sqrt{2} is a rational number” is found to be false, so by the law of excluded middle, the proposition “\sqrt{2} is not a rational number” is true. That is, \sqrt{2} is an irrational number. (End of proof)
In this way, the proof method of “assuming \negp holds to intentionally derive a contradiction, and proving p by elimination” is called “proof by contradiction”.

2.High-Degree Equations

2.1Linear Equations



Let’s try solving real number equations. First, here is a simple problem below.
Problem of Linear Equation
Problem

Find all x that satisfy 2x-3=5.

An equation of the form “ax+b=0 (where a\neq0)” is called a “linear equation”. A linear equation can be easily solved simply by adding or multiplying the same number to both sides.
Answer to Linear Equation Problem
  • Add 3 to both sides of 2x-3=5 to get 2x=8.
  • Divide both sides of 2x=8 by 2 to get x=4.
  • Therefore, x satisfying 2x-3=5 is 4.

2.2Quadratic Equations



Next is a slightly more complex problem below.
Problem of Quadratic Equation
Problem

Find all x that satisfy x^{2}+4x-12=0.

An equation of the form “ax^{2}+bx+c=0 (where a\neq0)” is called a “quadratic equation”. A quadratic equation can be easily solved if it can be transformed into the form “(x+a)(x+b)=0”, so we aim for this form.
First, expand the left side of the equation “(x+a)(x+b)=0”. There is a rule “p(q+r)=pq+pr”, so by repeatedly applying this to remove the parentheses, we can transform it to “(x+a)(x+b)=(x+a)x+(x+a)b=x^{2}+ax+bx+ab=x^{2}+(a+b)x+ab”. We got closer to the equation in the problem.
Comparing this “x^{2}+(a+b)x+ab=0” with the problem equation “x^{2}+4x-12=0”, we can see that if we fit 4 into “a+b” and -12 into “ab”, we can make the same equation. If we think of appropriate a,b such that “a+b=4” and “ab=-12”, we find that “a=6,b=-2”. Fitting them in, we get “x^{2}+(6+(-2))x+6\cdot(-2)=0”.
So, from the results so far, we found that the problem equation “x^{2}+4x-12=0” can be transformed into “x^{2}+(6+(-2))x+6\cdot(-2)=0”, and this can be transformed into “(x+6)(x+(-2))=0”. In other words, instead of the problem equation, let’s find x that satisfies “(x+6)(x-2)=0”. This means that multiplying “x+6” and “x-2” gives 0, so at least one of them must be 0.
Considering the case where “x+6” is 0, we find x=-6. Considering the case where “x-2” is 0, we find x=2. Both do not become 0 simultaneously. Therefore, these are all the solutions. That is, x satisfying x^{2}+4x-12=0 is x=-6,2.

2.3Quadratic Formula



By the way, the solution to a quadratic equation can also be solved by the following formula called the “quadratic formula”.
Quadratic Formula
Quadratic Formula
Indeed, we obtained the same solutions as before.

3.Mappings

Finally, we will solve functions and mappings.
A “mapping” is something that corresponds every element of a certain set to an element of a certain set, and is sometimes called a “function”. In the figure below, what corresponds to the collection of “arrows” connecting elements is the mapping.
Mapping
Mapping
A mapping f associating an element of set \bm{A} with an element of set \bm{B} is expressed as “f:\bm{A}\rightarrow\bm{B}”. Also at this time, the element of set \bm{B} corresponding to the element a of set \bm{A} is expressed as “f(a)”. For example, in this figure, since element b_{2} is associated with element a_{1}, it becomes f(a_{1})=b_{2}.
When “f:\bm{A}\rightarrow\bm{B}”, for any element a of set \bm{A}, there exists exactly one corresponding element f(a) in set \bm{B}. It is never the case that there is no destination or multiple destinations.
Also, a mapping can associate between the same set. In other words, it can be “f:\bm{A}\rightarrow\bm{A}”.
For example, for the set of all natural numbers \mathbb{N}, “f(x)=2x” which doubles the element x of \mathbb{N} becomes the mapping “f:\mathbb{N}\rightarrow\mathbb{N}”.
Mapping of “f(x)=2x”
Mapping of “f(x)=2x”

3.1Surjection, Injection, Bijection



In “f:\bm{A}\rightarrow\bm{B}”, if the elements of \bm{A} correspond to all elements of \bm{B} without leaving any out, f is called a “surjection”. Strictly speaking, when the collection of f(a) for all elements a of the set \bm{A} matches the set \bm{B}, f is a surjection.
Also, when the elements of \bm{B} corresponding to each element of \bm{A} have no duplicates, f is called an “injection”. Strictly speaking, for any two different elements a,b of \bm{A}, if f(a) and f(b) are always different, f is an injection.
When the mapping f is both surjective and injective, f is called a “bijection”. At this time, the elements of \bm{A} and the elements of \bm{B} correspond exactly one-to-one.
The images of surjection, injection, and bijection are summarized in the figure below.
Surjection, Injection, Bijection
Surjection, Injection, Bijection

3.2Inverse Mapping



The mapping with the direction of correspondence reversed of mapping f is called the “inverse mapping” of f and is expressed as “f^{-}^{1}”. Strictly speaking, although it is complicated to explain, when two mappings “f:\bm{A}\rightarrow\bm{B}” and “g:\bm{B}\rightarrow\bm{A}” always satisfy “g(f(a))=a” for any element a of \bm{A} and always satisfy “f(g(b))=b” for any element b of \bm{B}, g is the inverse mapping of fg=f^{-}^{1}”.
For example, if we consider the mapping “f:\mathbb{Z}\rightarrow\mathbb{Z}” defined by “f(x)=x+2” and the mapping “g:\mathbb{Z}\rightarrow\mathbb{Z}” defined by “g(x)=x-2”, since the direction of correspondence is reversed, we can say that g is the inverse mapping of fg=f^{-}^{1}”.
Inverse Mapping
Inverse Mapping
By the way, if the mapping f is not a bijection, the inverse mapping does not exist for f. Also, if f is a bijection, the inverse mapping f^{-}^{1} of f always exists, and there is only one kind.
We explained real numbers and mappings this time. Next time, we will explain various figures such as triangles and circles!
1773993334en