# Variable Interval

Recall that variable `x` is defined by the set `X` of those values that it can take (in considered question). This set `X` that contains each value of `x` exactly once is called **domain of variation** of the variable `x`.

In general any numerical set can be domain of variability.

Recall that geometrically we treat numbers as points on numerical axis. Domain `X` of variation of variable `x` on this axis can be represented as some set of points. Therefore, numerical values of `x` are also called points.

Often we deal with variable, whose domain of variation is set `NN` of all natural numbers.

For sequence `x_n=(1+(-1)^n)/n` domain of the variation is set of fractions of the form `1/m` (when `m=1,2,3,...`) and number 0.

For constant quantity domain of variation consists of one number.

However, in calculus we study variables, that change continuously, like distance, time etc. Domain of variation of such variable is numerical interval. Often it is finite interval that is bounded by numbers `a` and `b` (`a<b`).

There are three such types of intervals:

- Closed interval `[a,b]:\ a<=x<=b`.
- Half-opened intervals `(a,b]:\ a<x<=b` and `[a,b):\ a<=x<b`.
- Open interval `(a,b): a<x<b`.

In all three cases length of interval is `b-a`.

Geometrically interval is represented by segment of numerical axis.

Also we need to consider infinite intervals, which have one or both represented by special numbers `-oo` and `+oo`.

For example, `(-oo,oo)` is set of real numbers; `(a+oo)` is set of values `x` that satisfy inequality `x>a`; interval `(-oo,b]` is set of values `x` that satisfy inequality `x<=b`.

Geometrically infinite intervals are represented by open ray.