Derivative of function only using definition?

Hernaner28
Messages
261
Reaction score
0

Homework Statement


f(x) = \left\{ {\begin{array}{*{20}{c}}<br /> {{x^2}\sin \frac{1}{x}}&amp;{x \ne 0}\\<br /> 0&amp;{x = 0}<br /> \end{array}} \right.

Is it differentiable at x=0? If it is, what's its value?

Homework Equations


The Attempt at a Solution


I've calculated the derivative function for x not equal zero:
f&#039;(x) = \left\{ {\begin{array}{*{20}{c}}<br /> {2x\sin \frac{1}{x} - \cos \frac{1}{x}}&amp;{x \ne 0}\\<br /> 0&amp;{x = 0}<br /> \end{array}} \right.

And:
\mathop {\lim }\limits_{x \to 0} 2x\sin \frac{1}{x} - \cos \frac{1}{x}

This limit doesn't exists so IT IS NOT DIFFERENTIABLE at 0. But if I use the definition of the incremental I DO get THAT IT IS differentiable at 0 and the derivative is 0. How could this be possible?Please, try to be the most clear as you can, I get easily confused with this things... Thanks!
 
Last edited:
Physics news on Phys.org
Yes, you've shown that f' is not continuous, but that's all that you've shown! In general, a function may be continuous, may even be differentiable, but then the derivative of the function need not be continuous or differentiable. This can happen fairly easily, in fact, when you go defining functions piece-wise.
 
I really appreciate your help but your reply is extremelly poor and doesn't help me at all.
 
The question is whether f' exists at 0, not whether f' is continuous at 0. It's probably best to use the definition of derivative when the function is defined piece-wise like this.
 
A. Bahat said:
The question is whether f' exists at 0, not whether f' is continuous at 0. It's probably best to use the definition of derivative when the function is defined piece-wise like this.

Well, yeah, I knew that already, it's not only "the best", it's the only one way to know if it differentiable but you're not explaining anything about it. Why did I get it was not differentiable at 0 when I did the limit of f'(x) at 0? What's the mistake? If f' is not cont. how could it be differentiable? Seriouosly, I really really appreciate your attempt at helping me but it's useless if you just reply 2 lines saying nothing new, the only thing you do is to confuse me even more and don't aport anything.
 
Hernaner28 said:
Well, yeah, I knew that already, it's not only "the best", it's the only one way to know if it differentiable but you're not explaining anything about it. Why did I get it was not differentiable at 0 when I did the limit of f'(x) at 0? What's the mistake? If f' is not cont. how could it be differentiable? Seriouosly, I really really appreciate your attempt at helping me but it's useless if you just reply 2 lines saying nothing new, the only thing you do is to confuse me even more and don't aport anything.

The definition of derivative everybody is talking about is limit h->0 (f(0+h)-f(0))/h.
 
Dick said:
The definition of derivative everybody is talking about is limit h->0 (f(0+h)-f(0))/h.

And? does it aport something I don't know already? I think you're not understanding what my question is. Re-read the principal message, I've edited it.

Thanks!
 
Hernaner28 said:
And? does it aport something I don't know already? I think you're not understanding what my question is. Re-read the principal message.

Ok, yes, I see you've already done that. So f'(0) is 0 and it IS differentiable at 0. But f'(x) doesn't have a limit as x->0. There's nothing really wrong with that. It just means f'(x) IS NOT continuous at x=0. It is possible, you've just worked through the example. Why do you think it isn't? f(x) is differentiable everywhere, but doesn't have continuous limits.
 
Hernaner28 said:
Why did I get it was not differentiable at 0 when I did the limit of f'(x) at 0? What's the mistake? If f' is not cont. how could it be differentiable?
What sort of answer do you want? The fact that f' is not continuous implies that f' is not differentiable. Maybe it would be easier to figure out what to tell you if you explained why that bothers you. Did you think that "f' is not differentiable" implies that "f is not differentiable"?

You probably shouldn't be telling people who are trying to help you that their answers are "extremely poor", especially when they're not.
 
  • #10
Dick said:
Ok, yes, I see you've already done that. So f'(0) is 0 and it IS differentiable at 0. But f'(x) doesn't have a limit as x->0. There's nothing really wrong with that. It just means f'(x) IS NOT continuous at x=0. It is possible, you've just worked through the example. Why do you think it isn't? f(x) is differentiable everywhere, but doesn't have continuous limits.

I'm going to tell my understanding (there's surely sth wrong):
when we calculate derivatives at point a we just use the product rules, sum, etc. and in this case I don't understand why is not possible to do that because if we do so we get that it's not differentiable at 0 given the fact that:\mathop {\lim }\limits_{x \to 0} 2x\sin \frac{1}{x} - \cos \frac{1}{x} Doesn't exist.

So why can't we apply this but the definition?
 
Last edited:
  • #11
Fredrik said:
What sort of answer do you want? The fact that f' is not continuous implies that f' is not differentiable. Maybe it would be easier to figure out what to tell you if you explained why that bothers you. Did you think that "f' is not differentiable" implies that "f is not differentiable"?

You probably shouldn't be telling people who are trying to help you that their answers are "extremely poor", especially when they're not.

You cannot say whether the replies are helping me or not becuase you're merely not me. I don't want to be rude, I really appreciate their help. But maybe there're considering many things obvious that are not for me, so there's almost zero help.

In this case f' is not continuous at 0 but f is differentiable at 0. Apart from that I got it's differentiable and not differentiable at the same point. That's what I don't get.
 
  • #12
Hernaner28 said:
I'm going to tell mu understanding (there's surely sth wrong):
when we calculate derivatives at point a we just use the product rules, sum, etc. and in this case I don't understand why is not possible to do that because if we do so we get that it's not differentiable at 0 given the fact that:


\mathop {\lim }\limits_{x \to 0} x\sin \frac{1}{x} - \cos \frac{1}{x} Doesn't exist.

So why can't we apply this but the definition?

The form x^2*sin(1/x) is NOT VALID at x=0. It's not defined at x=0. You can't use it at x=0. Being differentiable doesn't mean you can take the formula for the derivative where it is valid and take a limit to get it at another point. The function is differentiable. Your LIMIT operation is incorrect.
 
  • #13
Dick said:
The form x^2*sin(1/x) is NOT VALID at x=0. It's not defined at x=0. You can't use it at x=0. Being differentiable doesn't mean you can take the formula for the derivative where it is valid and take a limit to get it at another point. The function is differentiable. Your LIMIT operation is incorrect.

Mmmm... so
1. if f is continuous, f' doesn't necesarilly have to be continuous?

2. If we know f it's continuous at 0 then we could take the derivative at 0 which is 0:

f&#039;(x) = \left\{ {\begin{array}{*{20}{c}}<br /> {2x\sin \frac{1}{x} - \cos \frac{1}{x}}&amp;{x \ne 0}\\<br /> 0&amp;{x = 0}<br /> \end{array}} \right.

And there's no need to use the definition, am I right?

Thanks!
 
  • #14
Hernaner28 said:
In this case f' is not continuous at 0 but f is differentiable at 0. Apart from that I got it's differentiable and not differentiable at the same point. That's what I don't get.
Maybe I misunderstood your argument. It seemed to me that you were saying that you had found that f is differentiable and f' is not continuous. I don't see why that would be a problem. The result that f is differentiable implies that f is continuous, not that f' is continuous. Similarly, the result that f' is not continuous implies that f' is not differentiable, not that f is not differentiable.

Edit: I first said that I think you got the wrong result for f'(x) here, but that was actually my mistake. Sorry about that.
 
  • #15
Hernaner28 said:
Mmmm... so
1. if f is continuous, f' doesn't necesarilly have to be continuous?

2. If we know f it's continuous at 0 then we could take the derivative at 0 which is 0:

f&#039;(x) = \left\{ {\begin{array}{*{20}{c}}<br /> {2x\sin \frac{1}{x} - \cos \frac{1}{x}}&amp;{x \ne 0}\\<br /> 0&amp;{x = 0}<br /> \end{array}} \right.

And there's no need to use the definition, am I right?

Thanks!

1. Yes, f can be continuous and f' discontinuous. This is an example of that.
2. HOW are you concluding that f'(x)=0? You DO need to use the difference quotient to prove that!
 
  • #16
Dick said:
1. Yes, f can be continuous and f' discontinuous. This is an example of that.
2. HOW are you concluding that f'(x)=0? You DO need to use the difference quotient to prove that!

Why cannot I say that f'(0)=0? I know that f is continuous at 0 because x^2.sin(1/x) approaches to 0 when x->0. And I know that the derivative function for x=0 is 0. Given that 2 conditions is why I conclude it's differentable.
 
  • #17
Hernaner28 said:
Why cannot I say that f'(0)=0? I know that f is continuous at 0 because x^2.sin(1/x) approaches to 0 when x->0. And I know that the derivative function for x=0 is 0. Given that 2 conditions is why I conclude it's differentable.

Try this. Take the same problem but change x^2*sin(1/x) to x*sin(1/x). Do you still conclude f'(x)=0?
 
  • #18
Dick said:
Try this. Take the same problem but change x^2*sin(1/x) to x*sin(1/x). Do you still conclude f'(x)=0?

Yes. But by definition no. What's wrong about my thinking?
 
  • #19
Hernaner28 said:
Yes. But by definition no. What's wrong about my thinking?

It's a little hard to say. Are you thinking that if I define:

f(x) = \left\{ {\begin{array}{*{20}{c}} <br /> {g(x)}&amp;{x \ne 0}\\ <br /> 0&amp;{x = 0} <br /> \end{array}} \right.

and limit x->0 g(x)=0 then it must be true that f'(0)=0? That's just plain not true. Take g(x)=x.
 
Last edited:
  • #20
Perhaps you are thinking since f(x) is defined piecewise, then you should find f'(x) by differentiating on each piece and since the piece where x=0 is defined to be the constant 0, f'(0) must be 0?? That would be wrong thinking.
 
  • #21
Dick said:
It's a little hard to say. Are you thinking that if I define:

f(x) = \left\{ {\begin{array}{*{20}{c}} <br /> {g(x)}&amp;{x \ne 0}\\ <br /> 0&amp;{x = 0} <br /> \end{array}} \right.

and limit x->0 g(x)=0 then it must be true that f'(0)=0? That's just plain not true. Take g(x)=x.

Yeah, that's my wrong thinking! I will analise it until I understand it! THANKS!
 

Similar threads

Back
Top