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

  • Thread starter Thread starter kathrynag
  • Start date Start date
  • Tags Tags
    Limit
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 seperately.
 
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 seperately.

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. f(x)= x-\lfloor x+ 1\lrloor if x is odd. Since 1 is odd, f(1)= 1- \lfloor 2\rfloor= -1

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. f(x)= x-\lfloor x+ 1\lrloor if x is odd. Since 1 is odd, f(1)= 1- \lfloor 2\rfloor= -1



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 \lfloor x\rfloor= 1, an odd number, so f(x)= x- \lfloor x+1\rfloor= x-2. 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 \lfloor x\rfloor= 2, an even number so f(x)= x- \lfloor x\rfloor= x- 2. 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 \lfloor x\rfloor= 1, an odd number, so f(x)= x- \lfloor x+1\rfloor= x-2. 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 \lfloor x\rfloor= 2, an even number so f(x)= x- \lfloor x\rfloor= x- 2. 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 \lfloor x\rfloor= 1, an odd number, so f(x)= x- \lfloor x+1\rfloor= x-2. 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 \lfloor x\rfloor= 2, an even number so f(x)= x- \lfloor x\rfloor= x- 2. 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?
 
Back
Top