Home » Blog » Compute the integrals of some step functions

# Compute the integrals of some step functions

Compute the following integrals where is the greatest integer less than or equal to .

1. .
2. .
3. .
4. .
5. .
6. .

1. .
2. .
3. .
4. .
5. . (See, 1.11 #4 (d) here).
6. .

1. Mayank Singh says:

b) 5 Calculation mistake

• Daniel says:

b) is correct.

2. Hellow says:

i don’t understand, why is #2 4? I mean, if you add 1/2 to x and take the greatest integer of it, it should equal the same as the greatest integer of x, right? So shouldn’t the answer be 2?

• Daniel says:

No. Let x = -1.75. Then [x] = -2. Nevertheless, if x = 1.75, then [x] = 1.

If by chance you are reading the Spanish version of Apostol, leave it. It’s bad translated (even worse, it’s not just bad translated, but some parts are completely invented by the translator), concretely when it claims that “[x] is the integer part of x”, which is clearly false when x < 0. Follow the English version, which doesn't give misleading definitions.

3. Anonymous says:

Hi, I have problem about question f). First, [-x] = -[x] or [-x] = -[x] – 1 if we take -[x], the integral will be like question a) (negative of a) in the same interval.). If we take -[x] – 1, then we will have negative of a) plus integral of “-1” between [-1,3]. Can you help me to understand? Thank you.

• Jake says:

There is a part in Apostol that addresses this, I’ll paraphrase here and then explain how I applied it to part (f).

“The ordinate set of any nonnegative step function consists of a finite number of rectangles, one for each interval of constancy; the ordinate set may also contain or lack certain vertical line segments, depending on how s is defined at the subdivision points”

Basically this means that, at the subdivision points, the value can be different than the value over the open subinterval.

When I read (f), I see that the subdivision points, or the partition points of [-1, 3], are at the integer. So the value of at those points are and the value over the open subintervals is . You can then rewrite the problem as    4. Anonymous says:

So today we were doing these exercises and I got very confused because my math teacher was talking nonsense. First, I want to ask, in the function [x], for example, if x equals the value -0.5, [-0.5] = -1 ?? Is this correct? Second, how did you make your partition for exercise a) ? I mean, what subintervals did you use in order to get the result? We got 3 and our teacher said it was fine u_u which obviously is wrong. Thanks for the website!!!

• RoRi says:

Hi! Yes, . The reason is that is defined (at the top of this section of exercises on page 70 of my edition of Apostol) to be the greatest integer less than . So if then is the biggest integer that is still less than . (The other option people might want to write would be that it is 0, but this cannot be right since .)

This causes some confusion since these days (Apostol was writing this book in the 60’s) this function is often called the “floor” function, but that was not the terminology used back then. It can be confused with the function that takes the “integer part” of . The “integer part” of (these days) means to just throw away everything after the decimal, so then you would get 0 if . So, your teacher probably wasn’t being crazy, just interpreting what Apostol meant by slightly differently.

Anyway, as for the partition, we use Then using the definition of the integral of step function we have There is some discussion of exactly this exercise and issue on math.stackexchange here. It even has pictures of the slight difference between the two functions.

Hope this helps!

• Anonymous says:

Wow! That explains A LOT! Thank you very, very much for the website and for the quick response. I’ll stick around ’cause I’ve got a lot of homework and in case I get stuck I’ll just take a peek at your solutions. :D

5. Anonymous says:

In f), the sign – is wrong.

• Rori says:

Great, thanks! Should be fixed now.