Bounded intervals
We will call interval the set of numbers included between two given limits.
If and are two real numbers such that , the interval of endpoints and is the segment , or, also, the set of numbers included between and .
If we consider that the endpoints and belong to the interval, we will say that it is a closed interval and will denote it as .
If is a real number that belongs to , the point that represents on the line is on the right of and on the left of ; this means that , and since and belong to the interval as well, it is possible that or , so a real number belongs to the closed interval if . We will write this algebraic definition in the following way:
If the endpoints do not belong to the interval, we call it an open interval and we will denote it as . If is a real number that belongs to , it is necessary that , and we will write it in algebraic language as:
If only one of the endpoints belongs to the interval we say that it is a semiopen interval and we will denote it as or , depending on which endpoint belongs to the interval:
In any kind of interval, is the lower endpoint , and the upper endpoint. And is the length of the interval.
The point at the same distance from to , we will call center of the interval. We will call the distance between the center of the interval and the endpoints the radius .
The center of an interval of endpoints and is the point ; in fact:
On the other hand, the points of an interval of endpoints and can be defined in terms of the distance to the center of the interval.
If , the distance of to the center is less than or equal to the radius of the interval, and as , we have:
where represents the radius of the interval , and, similarly, for open intervals:
To determine the endpoints of an interval given the center and the radius, we apply the properties of the absolute value:
Therefore the endpoints of an interval of center and radius are and .
The length of an interval is equal to the distance between its two endpoints:
And as it depends on the endpoints, the length is the same whether the interval is open or closed:
Let's observe that the length of an interval depends on the distance used when calculating it, so, continuing with the previous notation, if we use the p-adic distance to calculate the length of an interval, we will denote it as:
Example
The interval is a closed interval bounded by lower endpoint and upper endpoint .
The center of the interval is a point :
And the radius is:
The length of this interval is:
Unbounded intervals
If we consider an interval that does not have lower endpoint or upper endpoint, we obtain a set of the kind:
Graphically, these sets are represented as all those that are on the left of , or on the right of , respectively.
We call these sets unbounded intervals and to denote them we use the infinity symbol as an endpoint. Although is not a number, we will use to denote that it is less than any number and to denote that it is greater than any number, in such a way that a lower unbounded interval is denoted by:
if it is opened, whereas if it is closed:
If the interval does not have upper endpoint, we call it an unbounded upper, and we write it as:
if it is opened, and
if it is closed.