Where Does f Have a Limit? An Analysis of a Piecewise Function

  • Thread starter Thread starter kathrynag
  • Start date Start date
  • Tags Tags
    Limit
Click For Summary

Homework Help Overview

The discussion revolves around the piecewise function defined as f:R--->R, with different expressions based on whether the floor of x is even or odd. Participants are tasked with determining where this function has a limit and providing justification for their conclusions.

Discussion Character

  • Exploratory, Assumption checking, Conceptual clarification

Approaches and Questions Raised

  • Participants explore the behavior of the function at various intervals, particularly between integers. Some suggest calculating specific values to understand the function's limits, while others question the definitions of even and odd in this context.

Discussion Status

The conversation is ongoing, with various interpretations being explored. Some participants have offered calculations and insights into the function's behavior near integers, while others are questioning the definitions and implications of limits at odd integers versus even integers.

Contextual Notes

There is some confusion regarding the definition of even and odd numbers, particularly in relation to the function's behavior at integers. Participants are also considering the implications of the function's piecewise nature on its limits.

kathrynag
Messages
595
Reaction score
0

Homework Statement



Define f:R--->R as follows:
f(x)=x-[x] if [x] is even
f(x)=x-[x+1] if [x] is odd

Determine the points where f has a limit and justify



Homework Equations





The Attempt at a Solution



I'm not even sure where to get started. I assume that f has a limit evrywhere except the integers, but not so sure. Maybe I should try each case separately.
 
Physics news on Phys.org
Start by calculating some values. What would f(x) be for x between 0 and 2?
 
Welcome to PF!

kathrynag said:
I'm not even sure where to get started. I assume that f has a limit evrywhere except the integers, but not so sure. Maybe I should try each case separately.

Hi kathrynag! Welcome to PF! :smile:

Yes, definitely do each of the three cases separately! :wink:
 
HallsofIvy said:
Start by calculating some values. What would f(x) be for x between 0 and 2?

If x =1, x is odd

Then f=1-1=0

If x=1.9999
Then f=1.9999-1=.9999
 
kathrynag said:
If x =1, x is odd

Then f=1-1=0
No. [itex]f(x)= x-\lfloor x+ 1\lrloor[/itex] if x is odd. Since 1 is odd, [itex]f(1)= 1- \lfloor 2\rfloor= -1[/itex]

If x=1.9999
Then f=1.9999-1=.9999

In fact, for any 0< x< 1, since 0 is even, f(x)= x-0= x while f(1)= -1. What does that tell you?

It should be obvious that, for any non-integer x between two integers, f(x) is x- some constant- and that's a linear function. What happens at x= 2? What is f(2)? What is f(x) if x is between 1 and 2?
 
HallsofIvy said:
No. [itex]f(x)= x-\lfloor x+ 1\lrloor[/itex] if x is odd. Since 1 is odd, [itex]f(1)= 1- \lfloor 2\rfloor= -1[/itex]



In fact, for any 0< x< 1, since 0 is even, f(x)= x-0= x while f(1)= -1. What does that tell you?

It should be obvious that, for any non-integer x between two integers, f(x) is x- some constant- and that's a linear function. What happens at x= 2? What is f(2)? What is f(x) if x is between 1 and 2?

oops, i guess i did the wrong one by accident. But is 0, actually an even number? i thought it wasn't defined as even or odd?
So, we have x - some constant. f(2)=2-2=0.
f(x) between 1 and 2. f(1.5)=1.5-[1.5+1]=1.5-[2.5]=1.5-2=-0.5
 
So, between any 2 integers the y value goes from -1 to 1.
So, this leads to something, i think...
 
Ok, is there no limit at odd integers? So everywhere else there is a limit?
 
kathrynag said:
oops, i guess i did the wrong one by accident. But is 0, actually an even number? i thought it wasn't defined as even or odd?
So, we have x - some constant. f(2)=2-2=0.
Yes, that is correct.
f(x) between 1 and 2. f(1.5)=1.5-[1.5+1]=1.5-[2.5]=1.5-2=-0.5[/QUOTE]
but the value at one number tells you nothing about the limit. If x is any number between 1 and 2, then [itex]\lfloor x\rfloor= 1[/itex], an odd number, so [itex]f(x)= x- \lfloor x+1\rfloor= x-2[/itex]. What is the limit of that as x goes to 2?

For the limit to exist, it must be the same from both sides. If 2< x< 3, then [itex]\lfloor x\rfloor= 2[/itex], an even number so [itex]f(x)= x- \lfloor x\rfloor= x- 2[/itex]. What is the limit of that as x goes to 0?

Finally, don't just guess for even and odd integers. Suppose a-1< x< a where a is an odd number. What does the formula reduce to? Suppose a< x< a+1 where a is an odd number. What does the formula reduce to? Now do the same for a an even number.

That is, by the way, a very nice little problem.
 
  • #10
HallsofIvy said:
Yes, that is correct.
f(x) between 1 and 2. f(1.5)=1.5-[1.5+1]=1.5-[2.5]=1.5-2=-0.5
but the value at one number tells you nothing about the limit. If x is any number between 1 and 2, then [itex]\lfloor x\rfloor= 1[/itex], an odd number, so [itex]f(x)= x- \lfloor x+1\rfloor= x-2[/itex]. What is the limit of that as x goes to 2?

For the limit to exist, it must be the same from both sides. If 2< x< 3, then [itex]\lfloor x\rfloor= 2[/itex], an even number so [itex]f(x)= x- \lfloor x\rfloor= x- 2[/itex]. What is the limit of that as x goes to 0?

Finally, don't just guess for even and odd integers. Suppose a-1< x< a where a is an odd number. What does the formula reduce to? Suppose a< x< a+1 where a is an odd number. What does the formula reduce to? Now do the same for a an even number.

That is, by the way, a very nice little problem.[/QUOTE]

If x is between 1 and 2, then [x] =1. Then f(x)=x-2. So as x goes to 2, the limit =0. If 2<x<3, then [x]=2. Then f(x)=x-2. So, the limit=0.
a-1<x<a where a is an odd number. Then [a]=a-1. Is this part correct?
 
  • #11
HallsofIvy said:
Yes, that is correct.
f(x) between 1 and 2. f(1.5)=1.5-[1.5+1]=1.5-[2.5]=1.5-2=-0.5
but the value at one number tells you nothing about the limit. If x is any number between 1 and 2, then [itex]\lfloor x\rfloor= 1[/itex], an odd number, so [itex]f(x)= x- \lfloor x+1\rfloor= x-2[/itex]. What is the limit of that as x goes to 2?

For the limit to exist, it must be the same from both sides. If 2< x< 3, then [itex]\lfloor x\rfloor= 2[/itex], an even number so [itex]f(x)= x- \lfloor x\rfloor= x- 2[/itex]. What is the limit of that as x goes to 0?

Finally, don't just guess for even and odd integers. Suppose a-1< x< a where a is an odd number. What does the formula reduce to? Suppose a< x< a+1 where a is an odd number. What does the formula reduce to? Now do the same for a an even number.

That is, by the way, a very nice little problem.[/QUOTE]

if 1<x<2, [x]=1 Then f(x)=x-2. The limit=0
If 2<x<3 [x]=2 Then f(x)=x-2 The limit =0

a-1<x<a where a is an odd number. [x]=a-1. Then f(x)=x-(a-1). Limit as x goes to a=1
a<x<a+1 where a is an odd number. [x]=a. Then f(x)=x-(a-1+1). Limit as x goes to a= 0
a-1<x<a where a is an even number. [x]=a-1. Then f(x)=x-(a-1+1). Limit=0
a<x<a+1 where a is an even number. [x]=a. Then f(x)=x-a. Limit = 0

So the limit exists for even numbers, it seems.
 
  • #12
Ok, I think I have a better idea. I drew a graph and that helps. It appears there is no limit at the integers obviously because of the holes in the graph and no limit at odd numbers because as x approaches 3 from the left it goes to 1, but as x approaches 3 from the left it goes to -1.
So the limit exists at all real numbers except for the integers and odd numbers.
 
  • #13
?? What exactly do you MEAN by "odd numbers"? I was under the impression that even and odd were only defined for integers!

But what "holes" in the graph are you talking about? This function, f, is defined for all real numbers. The limit exists, and is 0, for all even numbers and f(x)= 0 for x any even number.
 
  • #14
HallsofIvy said:
?? What exactly do you MEAN by "odd numbers"? I was under the impression that even and odd were only defined for integers!

But what "holes" in the graph are you talking about? This function, f, is defined for all real numbers. The limit exists, and is 0, for all even numbers and f(x)= 0 for x any even number.

Ok, I guess, there aren't holes. I was just thinking odd numbers as going toward an odd number like 3 from each side. I wasn't quite sure how to define that.
 
  • #15
Or could I just say there is no limit at the odd integers, but a limit everywhere else?
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
3K
Replies
3
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
Replies
4
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K