Can the floor function be used in integration from 0 to 2?

Click For Summary

Homework Help Overview

The discussion revolves around the integration of a function involving the floor function, specifically the expression ∫([x] - 2[x/2]) dx from 0 to 2. Participants are exploring the implications of using a floor function in integration and questioning the continuity and behavior of such functions.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the nature of the floor function and its discontinuities, questioning whether it can be treated like continuous functions in integration. Some suggest graphing the functions to understand their behavior better, while others propose converting the integral into a summation.

Discussion Status

The conversation is active, with participants sharing insights about the area under step functions and the challenges of integrating non-continuous functions. There is recognition of the need for special considerations when dealing with step functions, though no consensus has been reached on a definitive method.

Contextual Notes

Participants note that conventional integration methods yield results that may not apply to functions with discontinuities, highlighting the need to break integrals at points of discontinuity for accurate evaluation.

Integral8850
Messages
15
Reaction score
0

Homework Statement


Integral [x] - 2[x/2] dx limits are 0 to 2

I am using [] to represent the floor function.


Homework Equations





The Attempt at a Solution


Of course normal integration gives

x^2/2 - x^2/2 which gives 0 for all cases, So is it right to assume a floor function (not continuous) is always 0?
Thanks!
 
Physics news on Phys.org
You don't 'assume' something is equal to zero. You 'show' something is equal to zero. Draw a graph of [x]+2*[x/2] between 0 and 2. It's just a step function.
 
Integral8850 said:
Of course normal integration gives

x^2/2 - x^2/2 which gives 0 for all cases, So is it right to assume a floor function (not continuous) is always 0?
Thanks!

I don't think it's a good idea to use the answer for the continuous functions as a basis for the answer for the floor function. There are too many pitfalls with doing this.

In this case, the answer is clearly not zero. You can quickly graph out the functions and see the answer by inspection.

In more difficult cases, there are probably good methods to use. I've never had to do this before, but it seems to me you can probably convert some integrals (such as your case) to summation expressions.
 
Thanks, I did construct the graph. I guess I should have worded the question better. Can a step function have area?
 
Integral8850 said:
Thanks, I did construct the graph. I guess I should have worded the question better. Can a step function have area?

Why not? The area under a step function is just the sum of the signed areas of some rectangles, isn't it?
 
I can clearly see that the graphs area is 1, however integrating [x]-2[x/2] conventionally will always give 0. I guess I should ask is there a special integration for a step function? Thanks
 
Integral8850 said:
I can clearly see that the graphs area is 1, however integrating [x]-2[x/2] conventionally will always give 0. I guess I should ask is there a special integration for a step function? Thanks

Personally, I would attempt to convert the problem to a summation (when possible), rather than an integral. There are techniques and tables for evaluation of summations, just as there are for integrals.
 
Integral8850 said:
I can clearly see that the graphs area is 1, however integrating [x]-2[x/2] conventionally will always give 0. I guess I should ask is there a special integration for a step function? Thanks

If you can see that the graphs area is 1, then I think you've solved the problem. You can certainly write down special rules for integrating step functions. But they are going to look complicated, and on a simple problem like this, it's really not worth it.
 
Thanks for your help!
 
  • #10
in general if you want to integrate the floor function from say 0 to x where n<x<n+1, then what you need to do is break your integral at each point of discontinuity and use it as your integration limit, this way you will get a sum of integrals, and the last integral will be from n to x.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 105 ·
4
Replies
105
Views
8K
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
2
Views
1K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K