Kuina-chan
September 16, 2025
Kuina-chan

In Episode 4 of Kuina-chan Mathematics, I explain functions and mappings that connect numbers to other numbers! This episode assumes you’ve read the series in order, beginning with Episode 1.
In Episode 3, I defined the set of integers \mathbb{Z}. This time, I explain rational numbers \mathbb{Q}, real numbers \mathbb{R}, and the concepts of functions and mappings.

1.Rational and Real Numbers

So far, we’ve dealt with integers, but now let’s explore more detailed numbers: rational numbers and real numbers. These are what we usually call “decimals.”

1.1Rational Numbers



A rational number is a number that can be expressed as a fraction of integer over integer, where the denominator is not zero. For example, 2/3, 0/1, and -5/4 are rational numbers. Even a decimal like 3.3333\dots is rational because it can be written as the fraction 10/3.
We’ll 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.2Converting Decimals to Fractions



By the way, repeating decimals like 1.23123123123\dots can always be converted into a fraction of integer over integer, making them rational numbers. Even 0.5 is a repeating decimal (0.5000\dots), so it’s rational.
Here’s how to convert a repeating decimal like 1.23123123123\dots into a fraction:
Converting Decimals to Fractions
  • Let x=1.23123123123\dots.
  • Multiply both sides by a power of 10 so that one full cycle of the repeating digits appears to the left of the decimal point. That is, 1000x=1231.23123123123\dots.
  • Subtract the original equation x=1.23123123123\dots from both sides: 999x=1230.
  • Rearranging gives x=1230/999=410/333, so 1.23123123123\dots=410/333.
Any repeating decimal can be converted into 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 a fraction of integer over integer. Examples include the number 3.1415926\dots (pi) and the number whose square is 2, 1.41421356\dots.
Combining rational and irrational numbers gives us real numbers. We’ll denote the set of all real numbers as \mathbb{R}.
Note

In this definition of real numbers, I used the vague idea of “decimals,” but there are more rigorous ways to define them. One such method is to consider that when you line up rational numbers densely, they can get arbitrarily close to some number. That number might not be rational, and we define such numbers as irrational. Rational and irrational numbers together form the real numbers.

All natural numbers are included in the integers. All integers are included in the rational numbers. Therefore, the inclusion relationships among the types of numbers we’ve introduced so far are as follows:
Inclusion Relationships Among Major Number Sets

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

1.4Basic Operations



Rational and real numbers support the same operations as integers. For any two numbers a and b, we can define addition a+b, subtraction a-b, multiplication a\cdotb, exponentiation a^{b}, and absolute value |a|. Also, for b\neq0, division a/b is defined. However, if b=0, such as 3/0, the expression is undefined.
Additionally, real numbers allow us to define square roots. The square root of x is a number y such that x=y^{2}. For example, the square roots of 9 are 3 and -3, since 9=3^{2} and 9=(-3)^{2}. Similarly, the square roots of 4 are 2 and -2.
The positive square root is called the principal square root and is denoted by \sqrt{x}. So \sqrt{9}=3 and \sqrt{4}=2.
We can extend this idea: a number y that satisfies x=y^{n} is called the nth root of x. The positive nth root of x is denoted by \sqrt[n]{x}. For example, since 16=2^{4}, we have \sqrt[4]{16}=2.
Here are some values of principal square roots:
Principal Square Root Values
Principal 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 principal square root y=\sqrt{x}, it looks like the image below. When x is less than 0, there is no real number whose square is x, so \sqrt{x} is undefined.
Graph of Principal Square Root
Graph of Principal Square Root
By the way, \sqrt{2} is an irrational number. Let’s prove it since it’s simple.
Proof of Irrationality
  • We’ll use proof by contradiction: assume \sqrt{2} is rational and show that this leads to a contradiction.
  • Suppose \sqrt{2} is rational. Since \sqrt{2}>0, we can express it as \sqrt{2}=a/b for some positive integers a and b.
  • Squaring both sides gives 2=a^{2}/b^{2}. Multiply both sides by b^{2} to get 2b^{2}=a^{2}.
  • Since a and b are positive integers, both sides are positive integers and can be prime factorized. By the uniqueness of prime factorization, both sides must have the same prime factors.
  • Squaring a and b doubles the number of each prime factor. So the number of 2s in the prime factorization of a^{2} and b^{2} is even. But in 2b^{2}=a^{2}, the number of 2s is odd. This is a contradiction.
  • Therefore, the assumption that “\sqrt{2} is rational” is false, and by the law of the excluded middle, the statement “\sqrt{2} is not rational” is true. That is, \sqrt{2} is irrational. (End of proof)
This method of assuming \negp and deriving a contradiction to prove p is called proof by contradiction.

2.Polynomial Equations

2.1Linear Equations



Now let’s try solving equations with real numbers. Here’s a simple problem:
Linear Equation Problem
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. You can solve linear equations easily by adding or multiplying both sides by the same number.
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, the solution to 2x-3=5 is x=4.

2.2Quadratic Equations



Next, let’s try a slightly more complex problem:
Quadratic Equation Problem
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. If you can transform it into the form (x+a)(x+b)=0, it’s easy to solve. So let’s aim for that form.
First, expand the left-hand side of (x+a)(x+b)=0. Using the rule p(q+r)=pq+pr, we apply it repeatedly to remove the parentheses: (x+a)(x+b)=(x+a)x+(x+a)b=x^{2}+ax+xb+ab=x^{2}+(a+b)x+ab.
Now compare this with the problem equation x^{2}+4x-12=0. We want a+b=4 and ab=-12. Trying some values, we find a=6 and b=-2 work. Substituting gives: x^{2}+(6+(-2))x+6(-2)=0.
So the original equation x^{2}+4x-12=0 can be transformed into (x+6)(x+(-2))=0. This means we need to find x such that (x+6)(x-2)=0. That is, at least one of the factors must be zero.
If x+6=0, then x=-6. If x-2=0, then x=2. Both can’t be zero at the same time. So these are all the solutions. Therefore, the solutions to x^{2}+4x-12=0 are x=-6,2.

2.3Quadratic Formula



By the way, you can also solve quadratic equations using the quadratic formula shown below:
Quadratic Formula
Quadratic Formula
Indeed, this gives the same solutions as before.

3.Mappings

Finally, let me explain functions and mappings.
A mapping is a way to assign each element of one set to an element of another set. It’s also called a function. In the diagram below, the arrows connecting elements represent a mapping.
Mapping
Mapping
If a mapping f assigns elements of set \bm{A} to elements of set \bm{B}, we write it as f:\bm{A}\rightarrow\bm{B}. The element of \bm{B} that corresponds to an element a of \bm{A} is written as f(a). For example, in the diagram, element a_{1} corresponds to b_{2}, so f(a_{1})=b_{2}.
In f:\bm{A}\rightarrow\bm{B}, for every element a in \bm{A}, there is exactly one corresponding element f(a) in \bm{B}. There are no missing or multiple correspondences.
Mappings can also be defined between the same set. That is, f:\bm{A}\rightarrow\bm{A} is allowed.
For example, consider the mapping f(x)=2x on the set of natural numbers \mathbb{N}. This is a mapping f:\mathbb{N}\rightarrow\mathbb{N}.
Mapping “f(x) = 2x”
Mapping “f(x) = 2x”

3.1Surjective, Injective, Bijective



In f:\bm{A}\rightarrow\bm{B}, if the elements of \bm{A} cover all elements of \bm{B} without omission, then f is called surjective. More precisely, if the set of all f(a) for a in \bm{A} equals \bm{B}, then f is surjective.
If each element of \bm{A} maps to a unique element in \bm{B} without duplication, then f is called injective. More precisely, for any two distinct elements a and b in \bm{A}, if f(a)\neqf(b), then f is injective.
If a mapping f is both surjective and injective, then it’s called bijective. In this case, the elements of \bm{A} and \bm{B} correspond one-to-one.
Here’s a diagram showing the concepts of surjective, injective, and bijective mappings:
Surjective, Injective, Bijective
Surjective, Injective, Bijective

3.2Inverse Mapping



The inverse mapping of a mapping f is a mapping that reverses the direction of correspondence. It’s denoted as f^{-}^{1}. To explain it precisely: if we have mappings f:\bm{A}\rightarrow\bm{B} and g:\bm{B}\rightarrow\bm{A}, and for every a in \bm{A}, g(f(a))=a, and for every b in \bm{B}, f(g(b))=b, then g is the inverse mapping of f, written as g=f^{-}^{1}.
For example, consider the mapping f(x)=x+2 on integers \mathbb{Z}, and the mapping g(x)=x-2 on \mathbb{Z}. Since the direction of correspondence is reversed, g is the inverse mapping of f, i.e., g=f^{-}^{1}.
Inverse Mapping
Inverse Mapping
By the way, if a mapping f is not bijective, then it has no inverse mapping. If f is bijective, then it always has a unique inverse mapping f^{-}^{1}.
In this article, I explained real numbers and mappings. Next time, I’ll explain various geometric shapes like triangles and circles!
1758049021en