f ( x ) = ⎩ ⎨ ⎧ x 2 , rational x x 3 , irrational x
Let f ( x ) be described as the function above. If f ( x ) is continuous at exactly p points and differentiable at exactly q points, find p + q .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
I like your usage of the sandwich theorem... I never thought of using it in this context!
Nice! It looks very convincing... I'm a bit busy tonight but I will study the details later. Thanks for taking the time to write such an elaborate solution!
You have taken thoroughness to a totally new level !!! I just love learning from your solutions. Your expertise with LaTeX is showing too !! I got the answer to Otto's problem from some familiarity with continuous and differentiable functions - BUT to nail it down like this is a superpower ! Thank you for sharing this.
Log in to reply
Thank you, @Bob Kadylo . I am very glad that you liked it. What Brilliant.org is doing for gifted students and people that love problem-solving is indescribable. I am enjoying it a lot.
This is the kind of proof expected in an upper-level undergraduate analysis course, in case anyone is wondering.
Wow a beautiful solution
Nice. I think you can shorten it a little by noting that the derivative exists iff derivative of x^2 = derivative of x^3.
In the "Differentiability at x=0" part you divide the inequalities x^3 \leq f(x) x^2 by x, where x could be positive or negative, and still maintain the sign. This is an error. In fact, the inequality x^2 \leq f(x)/x \leq x does not hold when x<0.
I think the correct way is to observe that f(x)/x is sandwiched between x^2 and x nevertheless (x \leq f(x)/x \leq x^2 for x<1). In other words, argue that \lim {x \rightarrow 0^+} f(x)/x and \lim {x \rightarrow 0^-} f(x)/x are both 0.
Here is my solution:
f(x) will be continuous at only points x such that x^2=x^3. So there are two points of continuity: 0, 1. Again, f(x) will be differentiable at only points x such that 2x=3x^2 (first derivatives of x^2 and x^3 be equal) and x is a point of continuity. So there are only one point of differentiability: 0 (2/3 gets canceled out because of discontinuity). So the answer is 3. :)
Now, something's fishy in my solution. I wrote some statements directly as if they are true like theorems, but I'm not sure if they are theorems. :/ Could anyone please help me describe this solution using a better mathematical language? Thank you. :)
Log in to reply
@Sayyed Ahmed Iftekhar Even i did the problem in the exactly same way , this method for finding the continuity and differentiability exists for any such dirichlet function .
Problem Loading...
Note Loading...
Set Loading...
Part 1: Let us prove first that f ( x ) defined in that way is continuous at 0 and 1, and discontinuous at any other number.
Continuity at 0:
Let us consider any number x such that − 1 < x < 1 then x 3 ≤ f ( x ) ≤ x 2 . Then using the Sandwich theorem we get that lim x → 0 f ( x ) = 0 = f ( 0 ) . so the function f ( x ) is continuous at 0.
Continuity at 1:
We need to consider two cases: the case when x > 1 and the case when 0 < x < 1 . If x > 1 then x 2 ≤ f ( x ) ≤ x 3 . If 0 < x < 1 then x 3 ≤ f ( x ) ≤ x 2 . Therefore, using the Sandwich theorem again, the one-side limits lim x → 1 + f ( x ) = 1 = f ( 1 ) and lim x → 1 − f ( x ) = 1 = f ( 1 ) , so the function f ( x ) is continuous at 1.
Discontinuity at any number c different from 0 and 1:
If c is any number different from 0 and 1, then we can consider two sequences α n and β n , where any number α n is rational and any β n is irrational such that lim n → ∞ α n = c and lim n → ∞ β n = c . Then lim n → ∞ f ( α n ) = lim n → ∞ ( α n ) 2 = c 2 and lim n → ∞ f ( β n ) = lim n → ∞ ( β n ) 3 = c 3 . Since c = 1 and c = 0 then c 2 = c 3 , and, therefore, the lim x → c f ( x ) does not exist. Therefore, f ( x ) is discontinuous at c .
Part 2: Now, we will prove that the function f ( x ) is differentiable only at 0 :
Of course, f ( x ) can not be differentiable at any point where it is discontinuous. So f ( x ) might be differentiable only at 0 and 1. The next thing I will do is to prove that f ( x ) is not differentiable at 1 and it is differentiable at 0.
Not differentiable at x=1:
In a similar way to what we did before, we are going to consider two sequences tending to 1, one is going to be α n formed by rational numbers different from 1, and the other is going to be β n formed by irrational numbers different from 1. Then n → ∞ lim α n − 1 f ( α n ) − f ( 1 ) = n → ∞ lim α n − 1 ( α n ) 2 − 1 = 2 and n → ∞ lim β n − 1 f ( β n ) − f ( 1 ) = n → ∞ lim β n − 1 ( β n ) 3 − 1 = 3 . This proves that the limit of the difference quotient of f ( x ) does not exist.
Differentiability at x=0:
Since f ( 0 ) = 0 , x − 0 f ( x ) − f ( 0 ) = x f ( x ) . For − 1 < x < 1 , as we have stated before, x 3 ≤ f ( x ) ≤ x 2 . Considering this inequality for a x in the given interval , and x = 0 and dividing by x , we get x 2 ≤ x f ( x ) ≤ x . Now using the Sandwich theorem we get that lim x → 0 x f ( x ) = 0 , so the function f ( x ) is differentiable at x=0.
Summarizing:
The function f ( x ) is continuous at 0 and 1 only, and differentiable only at 0. So the answer to the problem is 3.