Proving Continuity: Find Function Discontinuous at 0,1/2,1/3...

  • Thread starter SpringPhysics
  • Start date
  • Tags
    Continuity
In summary, the conversation revolved around finding a function that is discontinuous at 1, 1/2, 1/3, and so on, but continuous at 0 and all other values. Various ideas were discussed, including using a piecewise function where f(x) = 1 for x = 1/n and f(x) = 0 otherwise, and the function g(x) = 1/[1/x]. However, it was pointed out that these functions may not have a limit for any value due to the presence of 1 and 0 in the denominator. A solution was suggested to modify the function g(x) and use the greatest integer function [y] to achieve the desired result.
  • #1
SpringPhysics
107
0

Homework Statement


Determine a function which is discontinuous at 1,1/2,1/3...and/not 0, but continuous elsewhere.

Homework Equations


The Attempt at a Solution


I figure for the "not zero" part, I would do
f(x) = {x, x = 1/n where n is a natural number
{0, x =/= 1/n where n is a natural number

The thing is, I don't know how to prove it (because I just thought of it based on the function where f(x) = x for x is rational and = 0 for irrational), or whether it even works.

Then for the "and zero" part, I'm completely stumped. Can someone lead me in the right direction please?

EDIT: Sorry for the misleading title, but the people who evaluate the work are really strict...and last time I had to show proof for something when the question asked to simply state something...

EDIT: Am I allowed to just say
f(x) = {1/0 for x = 1/n, where n is an element of natural numbers
{0 otherwise ?
 
Last edited:
Physics news on Phys.org
  • #2
I think your idea works, with a little modification.

f(x) = [1/x, for x [itex]\in[/itex] {1, 2, 3, ... }
...[x, otherwise

You can't say f(x) = 1/0, under any circumstances, if that's indeed what you meant to say.
 
  • #3
How do I begin to proving that? Should I prove that since the limit is 0 for x =/= to 1/x, there is no limit for the other values of x?

And how do I account for the 0?

f(x) = {0, x = 0
...{1/x, x element of natural numbers
...{x, otherwise ?
 
  • #4
SpringPhysics said:
How do I begin to proving that? Should I prove that since the limit is 0 for x =/= to 1/x, there is no limit for the other values of x?
Your problem statement said to "determine" a function that met the given criteria. It didn't say anything about proving anything.
SpringPhysics said:
And how do I account for the 0?

f(x) = {0, x = 0
...{1/x, x element of natural numbers
...{x, otherwise ?

You need only two cases: one for x in the natural numbers (i.e., 1, 2, 3, ...), and the other for all other numbers. "Otherwise" includes 0.
 
  • #5
I will point out the functions that are being cooked up are discontinuous at the natural numbers, but the original challenge was for the function to be discontinuous at x = 1, 1/2, 1/3, 1/4,... , but continuous at x = 0 and at all other numbers (I assume for all other real numbers).

I have such a function in mind, but the real problem is that the function sought has an infinite number of discontinuities near 0, but how do you engineer it so that it is continuous at 0?

--Elucidus
 
  • #6
Elucidus said:
I will point out the functions that are being cooked up are discontinuous at the natural numbers, but the original challenge was for the function to be discontinuous at x = 1, 1/2, 1/3, 1/4,... , but continuous at x = 0 and at all other numbers (I assume for all other real numbers).

I have such a function in mind, but the real problem is that the function sought has an infinite number of discontinuities near 0, but how do you engineer it so that it is continuous at 0?

--Elucidus

I should probably change it to:
f(x) = x, x=1/n where n is a natural number.
f(x) = 0, otherwise
Would this then ascertain that the function is discontinuous at 1,1/2,1/3,1/4...while continuous at the other values?

I was thinking of this based on the other function:
f(x) = 0 x is irrational
f(x) = 1/q where x = p/q in lowest form
Doesn't this function have a limit of 0 at the irrational numbers while it doesn't have a limit at the other numbers?

Moreover, I indicated that I needed to find a function where it is discontinuous at zero as well (on top of 1/(natural numbers)). So in this case, would I need to add a third condition to the function?
 
  • #7
[tex]f(x) = \sum_{i = 1}^\infty \frac{1}{x - 1/i} = \frac{1}{x - 1} ~+~ \frac{1}{x - 1/2} ~+~ \frac{1}{x - 1/3} ~+~ ...[/tex]
?
 
  • #8
Elucidus said:
I will point out the functions that are being cooked up are discontinuous at the natural numbers, but the original challenge was for the function to be discontinuous at x = 1, 1/2, 1/3, 1/4,... , but continuous at x = 0 and at all other numbers (I assume for all other real numbers).

I have such a function in mind, but the real problem is that the function sought has an infinite number of discontinuities near 0, but how do you engineer it so that it is continuous at 0?

--Elucidus
A detail I overlooked...:eek:

Here's another stab at it.
f(x) = [1, for x = 1/n, n in {1, 2, 3, 4, ...}
...[0, otherwise
So f(1) = f(1/2) = f(1/3) = ... = f(1/n) = 1, while f(x) = 0 for other values of x.
 
  • #9
Mark44 said:
A detail I overlooked...:eek:

Here's another stab at it.
f(x) = [1, for x = 1/n, n in {1, 2, 3, 4, ...}
...[0, otherwise
So f(1) = f(1/2) = f(1/3) = ... = f(1/n) = 1, while f(x) = 0 for other values of x.

I thought of that as well, but then that would be like the function:
f(x) = 1 x is rational
f(x) = 0 x is irrational,
which, according to the textbook, does not have a limit for any value of a because then around a there would always be a 1 and a zero, so epsilon = 1/4 will not satisfy the definition of a limit.
 
  • #10
Consider the function g defined by g(x) = 1/[1/x], where [y] denotes the greatest integer function. Of course you'll have to modify this a little, but this basically works.
 
  • #11
SpringPhysics said:
I thought of that as well, but then that would be like the function:
f(x) = 1 x is rational
f(x) = 0 x is irrational,
which, according to the textbook, does not have a limit for any value of a because then around a there would always be a 1 and a zero, so epsilon = 1/4 will not satisfy the definition of a limit.
No, I think the two functions are fundamentally different. For any number a that someone picks, it's possible to find an epsilon small enough that all values of x in (a - epsilon, a + epsilon), f(x) = 0.
 
  • #12
Mark44 said:
No, I think the two functions are fundamentally different. For any number a that someone picks, it's possible to find an epsilon small enough that all values of x in (a - epsilon, a + epsilon), f(x) = 0.

Would
f(x) = x, x=1/n, n is natural
f(x) = 0, otherwise
also work though?
 
  • #13
snipez90 said:
Consider the function g defined by g(x) = 1/[1/x], where [y] denotes the greatest integer function. Of course you'll have to modify this a little, but this basically works.

Ohh, could the function be:
f(x) = 1/x, x is a whole number (assuming whole = natural + 0)
f(x) = 0 otherwise ?
I don't understand why you can't define a function to equal something over 0.
 
  • #14
SpringPhysics said:
Would
f(x) = x, x=1/n, n is natural
f(x) = 0, otherwise
also work though?
I don't think so, but I could be wrong, as I haven't put a whole lot of thought into it. The problem is that as n gets large, 1/n gets close to 0, so the points where the function is discontinuous are tending to smooth out. You don't have that problem if f(x) = 1, for x = 1/n.
 
  • #15
SpringPhysics said:
Ohh, could the function be:
f(x) = 1/x, x is a whole number (assuming whole = natural + 0)
f(x) = 0 otherwise ?
I don't understand why you can't define a function to equal something over 0.

Division by zero is undefined! Period. Haven't any of your math teachers told you this numerous times as you were learning mathematics?

That's why you can't define a function value to be 1/0 or anything else over zero.
 
  • #16
Mark44 said:
Division by zero is undefined! Period. Haven't any of your math teachers told you this numerous times as you were learning mathematics?

That's why you can't define a function value to be 1/0 or anything else over zero.

If a function isn't defined at 0, then the function isn't continuous at zero...
 
  • #17
True, but you can't define a function value by giving it a value that violates the rules of arithmetic. As an analogy, suppose you looked up the word "xerpy" in the dictionary, and found that it said "there is no definition for this word."
 
  • #18
The function

[tex]f(x) = \left\{ \begin{array}{rl} 1, & x \text{ rational} \\
0, & x \text{ irrational} \end{array}[/tex]

(aka the rational comb function) fails since it is not continuous anywhere. The function sought needs to be continuous everywhere except at 1, 1/2, 1/3, 1/4, etc.

The function

[tex]f(x) = \left\{ \begin{array}{rl} 1/q, & x = p/q \text{ a ratio of integers} \\
0, & x \text{ irrational} \end{array}[/tex]

(aka the denominator function) fails since it is discontinuous at all rationals and continuous at all irrationals.

The function

[tex]f(x) = \left\{ \begin{array}{rl} x, & x = 1/n, n \text{ a natural number} \\
0, & \text{ otherwise} \end{array}[/tex]

has merit. Can you prove it satisfies the requirement?

The functions involving 1/[1/x] or 1/x for x whole run into the problem I pointed out earlier in that they have discontinuities at the whole numbers, not 1, 1/2, 1/3, 1/4, etc.

--Elucidus
 
  • #19
Elucidus said:
The function

[tex]f(x) = \left\{ \begin{array}{rl} 1, & x \text{ rational} \\
0, & x \text{ irrational} \end{array}[/tex]

(aka the rational comb function) fails since it is not continuous anywhere. The function sought needs to be continuous everywhere except at 1, 1/2, 1/3, 1/4, etc.

The function

[tex]f(x) = \left\{ \begin{array}{rl} 1/q, & x = p/q \text{ a ratio of integers} \\
0, & x \text{ irrational} \end{array}[/tex]

(aka the denominator function) fails since it is discontinuous at all rationals and continuous at all irrationals.

The function

[tex]f(x) = \left\{ \begin{array}{rl} x, & x = 1/n, n \text{ a natural number} \\
0, & \text{ otherwise} \end{array}[/tex]

has merit. Can you prove it satisfies the requirement?

The functions involving 1/[1/x] or 1/x for x whole run into the problem I pointed out earlier in that they have discontinuities at the whole numbers, not 1, 1/2, 1/3, 1/4, etc.

--Elucidus

I realize that the last function satisfies the criteria, because you can choose delta to be the shortest distance from any 1/n to a, then x would not be any of the 1/n if we took epsilon to be greater than or equal to 1/n for a very large n, and so the function would not be continuous at x = 1/n but continuous with a limit of 0 otherwise.
 
  • #20
It's just harder to find a function which is discontinuous at 1,1/2,1/3...AND 0 as well while being continuous elsewhere.

EDIT: Would the following work:

f(x) = {sin 1/x, x=/= 1/n, n is natural
...{2, x = 1/n, n is natural

That way, the function is discontinuous at 0 because it is not defined, and for x = 1,1/2,1/3... the limit from the sin function will not be equal to the value of the function at that x value.
 
Last edited:

Related to Proving Continuity: Find Function Discontinuous at 0,1/2,1/3...

1. What is continuity in a function?

Continuity in a function means that the function is unbroken and there are no abrupt changes or gaps in its graph. This means that the function is defined and has a smooth, continuous curve without any holes or jumps.

2. How can a function be discontinuous?

A function can be discontinuous if there is a gap or jump in its graph, or if it is undefined at certain points. This means that the function does not have a smooth, continuous curve and may have abrupt changes or breaks in its graph.

3. Why is it important to prove continuity in a function?

Proving continuity in a function is important because it ensures that the function is well-defined and behaves predictably. It also allows us to make accurate predictions and calculations using the function.

4. How can we prove discontinuity at specific points in a function?

To prove discontinuity at specific points in a function, we can use the limit definition of continuity. This involves taking the limit of the function as it approaches the discontinuous point from both the left and right sides. If the limits do not equal each other, the function is discontinuous at that point.

5. Why is it important to find discontinuities in a function?

Finding discontinuities in a function allows us to identify points where the function may behave unexpectedly or unpredictably. This helps us to better understand the behavior of the function and make any necessary adjustments or corrections.

Similar threads

  • Calculus and Beyond Homework Help
Replies
3
Views
866
  • Calculus and Beyond Homework Help
Replies
27
Views
821
  • Calculus and Beyond Homework Help
Replies
12
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
247
  • Calculus and Beyond Homework Help
Replies
34
Views
2K
  • Calculus and Beyond Homework Help
Replies
13
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
393
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
3K
  • Calculus and Beyond Homework Help
Replies
7
Views
2K
Back
Top