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
. This time, I explain rational numbers
, real numbers
, 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, 

, 

, and 


are rational numbers. Even a decimal like 





is rational because it can be written as the fraction 


.





















We’ll denote the set of all rational numbers as
. That is, 
























.



























1.2Converting Decimals to Fractions
By the way, repeating decimals like 












can always be converted into a fraction of integer over integer, making them rational numbers. Even 

is a repeating decimal (





), so it’s rational.
























Here’s how to convert a repeating decimal like 












into a fraction:














- Let
.
- 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,
.
- Subtract the original equation
from both sides:
.
- Rearranging gives
, so
.
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 








(pi) and the number whose square is 2, 









.





















Combining rational and irrational numbers gives us real numbers. We’ll denote the set of all real numbers as
.

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:
Natural numbers
Integers
Rational numbers
Real numbers
1.4Basic Operations
Rational and real numbers support the same operations as integers. For any two numbers
and
, we can define addition 

, subtraction 

, multiplication 

, exponentiation 
, and absolute value 

. Also, for 

, division 

is defined. However, if 

, such as 

, the expression is undefined.




























Additionally, real numbers allow us to define square roots. The square root of
is a number
such that 


. For example, the square roots of
are
and 
, since 


and 





. Similarly, the square roots of
are
and 
.

























The positive square root is called the principal square root and is denoted by
. So 

and 

.







We can extend this idea: a number
that satisfies 


is called the
th root of
. The positive
th root of
is denoted by
. For example, since 



, we have ![\sqrt[4]{16}](/m/sqrt_4_16.webp)

.









![\sqrt[n]{x}](/m/sqrt_n_x.webp)





![\sqrt[4]{16}](/m/sqrt_4_16.webp)


Here are some values of principal square roots:
Principal Square Root |
---|
![]() ![]() ![]() |
![]() ![]() ![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]() ![]() ![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]() ![]() ![]() |
If we graph the principal square root 

, it looks like the image below. When
is less than 0, there is no real number whose square is
, so
is undefined.







By the way,
is an irrational number. Let’s prove it since it’s simple.

- We’ll use proof by contradiction: assume
is rational and show that this leads to a contradiction.
- Suppose
is rational. Since
, we can express it as
for some positive integers
and
.
- Squaring both sides gives
. Multiply both sides by
to get
.
- Since
and
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
and
doubles the number of each prime factor. So the number of 2s in the prime factorization of
and
is even. But in
, the number of 2s is odd. This is a contradiction.
- Therefore, the assumption that “
is rational” is false, and by the law of the excluded middle, the statement “
is not rational” is true. That is,
is irrational. (End of proof)
This method of assuming 
and deriving a contradiction to prove
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:
Problem
Find all that satisfy
.
An equation of the form 




(where 

) is called a linear equation. You can solve linear equations easily by adding or multiplying both sides by the same number.









- Add 3 to both sides of
to get
.
- Divide both sides of
by
to get
.
- Therefore, the solution to
is
.
2.2Quadratic Equations
Next, let’s try a slightly more complex problem:
Problem
Find all that satisfy
.
An equation of the form 








(where 

) is called a quadratic equation. If you can transform it into the form 










, it’s easy to solve. So let’s aim for that form.

























First, expand the left-hand side of 










. Using the rule 










, we apply it repeatedly to remove the parentheses: 















































.









































































Now compare this with the problem equation 








. We want 



and 




. Trying some values, we find 

and 


work. Substituting gives: 


















.
















































So the original equation 








can be transformed into 













. This means we need to find
such that 










. That is, at least one of the factors must be zero.






































If 



, then 


. If 



, then 

. Both can’t be zero at the same time. So these are all the solutions. Therefore, the solutions to 








are 




.

































2.3Quadratic Formula
By the way, you can also solve quadratic equations using the quadratic formula shown below:

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.

If a mapping
assigns elements of set
to elements of set
, we write it as 



. The element of
that corresponds to an element
of
is written as 


. For example, in the diagram, element 
corresponds to 
, so 






.



























In 



, for every element
in
, there is exactly one corresponding element 


in
. There are no missing or multiple correspondences.












Mappings can also be defined between the same set. That is, 



is allowed.





For example, consider the mapping 





on the set of natural numbers
. This is a mapping 



.














3.1Surjective, Injective, Bijective
In 



, if the elements of
cover all elements of
without omission, then
is called surjective. More precisely, if the set of all 


for
in
equals
, then
is surjective.
















If each element of
maps to a unique element in
without duplication, then
is called injective. More precisely, for any two distinct elements
and
in
, if 







, then
is injective.
















If a mapping
is both surjective and injective, then it’s called bijective. In this case, the elements of
and
correspond one-to-one.



Here’s a diagram showing the concepts of surjective, injective, and bijective mappings:

3.2Inverse Mapping
The inverse mapping of a mapping
is a mapping that reverses the direction of correspondence. It’s denoted as 

. To explain it precisely: if we have mappings 



and 



, and for every
in
, 







, and for every
in
, 







, then
is the inverse mapping of
, written as 



.











































For example, consider the mapping 






on integers
, and the mapping 






on
. Since the direction of correspondence is reversed,
is the inverse mapping of
, i.e., 



.


























By the way, if a mapping
is not bijective, then it has no inverse mapping. If
is bijective, then it always has a unique inverse mapping 

.





In this article, I explained real numbers and mappings. Next time, I’ll explain various geometric shapes like triangles and circles!