# Integral of step functions

In Apostol's book the definition of integral of step function is given as

$\int^{a}_{b}$ s(x) dx = $\sum^{n}_{k=1}$ s$_{k}$ $\times$ (x$_{k}$ - x$_{k-1}$)

and says that to compute the integral we multiply each constant value s$_{k}$ by the length of the k'th subinterval and add together all these products.
I have understood till this point but he further says that the values of s at the subdivision points are immaterial since they do not appear on the right hand side of the equation.
i.e. if s is constant on the open interval (a,b) say s(x) = c if a<x<b then

$\int^{a}_{b}$ s(x) dx = c$\sum^{n}_{k=1}$ (x$_{k}$ - x$_{k-1}$) = c(b-a) regardless of values s(a) and s(b). If c>0 and s(x) =c for all x in the closed interval [a,b], the ordinate set of s is a rectangle of base b-a and altitude c; the integral of s is c(b-a) the area of the rectangle.

I am not able to understand the statement "changing the value of s at one or both endpoints a or b changes the ordinate set but does not alter the integral of s or the area of its ordinate set."

If there is change in the ordinate set shouldn't there be a change in the area too? Also if the end points are ignored wouldn't the area change? Is it because we are computing the area of an open interval?

mathman
Changing the value at one point means changing the value on an interval of length 0. Therefore the contribution to the integral will be 0, irrespective of the value (as long as it is finite).

So I can reason that in other words it is open interval is because the end points do not matter right?

mathman
So I can reason that in other words it is open interval is because the end points do not matter right?
As long as you are computing integrals, you are correct.

Thanks a lot :)

It is formally explained in a course including measure theory, however until then suffice to know that if you change your function at a single point or even say at every integer N in the domain your integral does not change.

It is a quite natural thing. The integration variable dx is a sort of function that gives a weight to each set in your domain. For your means you can accept it as the usual length (or area or volume for higher dimensional cases). Then the set of all integers has length 0 for instance. In the same way in a two dimensional space, if you change your function at a line (which has 0 area hence zero measure) the integral does not change. In three dimensional case you can change your function at a hypersurface (which has zero volume) etc etc

It is formally explained in a course including measure theory, however until then suffice to know that if you change your function at a single point or even say at every integer N in the domain your integral does not change.

It is a quite natural thing. The integration variable dx is a sort of function that gives a weight to each set in your domain. For your means you can accept it as the usual length (or area or volume for higher dimensional cases). Then the set of all integers has length 0 for instance. In the same way in a two dimensional space, if you change your function at a line (which has 0 area hence zero measure) the integral does not change. In three dimensional case you can change your function at a hypersurface (which has zero volume) etc etc
How can a set of all integers has length 0? Could you please elaborate on that?

The measure of a disjoint union of countable sets is equal to the sum of the measures. If the measure of a point is zero then the measure of the set of all integers is the sum of the measures of a countable set of points and thus is zero.