Trouble checking whether a function is differentiable or not
$begingroup$
I have this function $x^2|cos frac pi x|$ . To check if it's differentiable at $x=0$, I first directly differentiated the given function- having two cases, opening the mod sign with positive and negative signs. In both cases I end up with a $sin frac pi x $ term in the derivative, so that at $x=0$ the derivative is discontinuous (oscillatory discontinuity) and so the derivative shouldn't exist at $x=0$. But, if I differentiate using first principles instead, I get the derivative as $0$, and so the function IS differentiable at $x=0$. So, is the function differentiable or not, which result do I take?
calculus
$endgroup$
|
show 3 more comments
$begingroup$
I have this function $x^2|cos frac pi x|$ . To check if it's differentiable at $x=0$, I first directly differentiated the given function- having two cases, opening the mod sign with positive and negative signs. In both cases I end up with a $sin frac pi x $ term in the derivative, so that at $x=0$ the derivative is discontinuous (oscillatory discontinuity) and so the derivative shouldn't exist at $x=0$. But, if I differentiate using first principles instead, I get the derivative as $0$, and so the function IS differentiable at $x=0$. So, is the function differentiable or not, which result do I take?
calculus
$endgroup$
2
$begingroup$
You've shown that the derivative exists (and in addition that it is discontinuous at $0$). (You're done.)
$endgroup$
– metamorphy
Jan 5 at 13:14
1
$begingroup$
To be clear, "differentiable" means "the derivative exists" (which you showed from first principles). It does not mean "the derivative is itself continuous" (which you showed is false here).
$endgroup$
– Mark S.
Jan 5 at 14:05
$begingroup$
But I don't understand, if by differentiation using first principles, I could find the left hand and right hand limits of the derivative, then why is the function still discontinuous? Is it because we can't find the value of the derivative AT x=0?
$endgroup$
– karun mathews
Jan 5 at 14:43
$begingroup$
Also, why would I not get a left hand and right hand limit by differentiating directly, how is that process wrong?
$endgroup$
– karun mathews
Jan 5 at 14:48
1
$begingroup$
@karun Yes. A function of this type is a standard example. Another is $x^2sin frac1x$.
$endgroup$
– Matt Samuel
Jan 7 at 14:35
|
show 3 more comments
$begingroup$
I have this function $x^2|cos frac pi x|$ . To check if it's differentiable at $x=0$, I first directly differentiated the given function- having two cases, opening the mod sign with positive and negative signs. In both cases I end up with a $sin frac pi x $ term in the derivative, so that at $x=0$ the derivative is discontinuous (oscillatory discontinuity) and so the derivative shouldn't exist at $x=0$. But, if I differentiate using first principles instead, I get the derivative as $0$, and so the function IS differentiable at $x=0$. So, is the function differentiable or not, which result do I take?
calculus
$endgroup$
I have this function $x^2|cos frac pi x|$ . To check if it's differentiable at $x=0$, I first directly differentiated the given function- having two cases, opening the mod sign with positive and negative signs. In both cases I end up with a $sin frac pi x $ term in the derivative, so that at $x=0$ the derivative is discontinuous (oscillatory discontinuity) and so the derivative shouldn't exist at $x=0$. But, if I differentiate using first principles instead, I get the derivative as $0$, and so the function IS differentiable at $x=0$. So, is the function differentiable or not, which result do I take?
calculus
calculus
edited Jan 5 at 13:13
Kenny Wong
18.3k21438
18.3k21438
asked Jan 5 at 13:09
karun mathewskarun mathews
245
245
2
$begingroup$
You've shown that the derivative exists (and in addition that it is discontinuous at $0$). (You're done.)
$endgroup$
– metamorphy
Jan 5 at 13:14
1
$begingroup$
To be clear, "differentiable" means "the derivative exists" (which you showed from first principles). It does not mean "the derivative is itself continuous" (which you showed is false here).
$endgroup$
– Mark S.
Jan 5 at 14:05
$begingroup$
But I don't understand, if by differentiation using first principles, I could find the left hand and right hand limits of the derivative, then why is the function still discontinuous? Is it because we can't find the value of the derivative AT x=0?
$endgroup$
– karun mathews
Jan 5 at 14:43
$begingroup$
Also, why would I not get a left hand and right hand limit by differentiating directly, how is that process wrong?
$endgroup$
– karun mathews
Jan 5 at 14:48
1
$begingroup$
@karun Yes. A function of this type is a standard example. Another is $x^2sin frac1x$.
$endgroup$
– Matt Samuel
Jan 7 at 14:35
|
show 3 more comments
2
$begingroup$
You've shown that the derivative exists (and in addition that it is discontinuous at $0$). (You're done.)
$endgroup$
– metamorphy
Jan 5 at 13:14
1
$begingroup$
To be clear, "differentiable" means "the derivative exists" (which you showed from first principles). It does not mean "the derivative is itself continuous" (which you showed is false here).
$endgroup$
– Mark S.
Jan 5 at 14:05
$begingroup$
But I don't understand, if by differentiation using first principles, I could find the left hand and right hand limits of the derivative, then why is the function still discontinuous? Is it because we can't find the value of the derivative AT x=0?
$endgroup$
– karun mathews
Jan 5 at 14:43
$begingroup$
Also, why would I not get a left hand and right hand limit by differentiating directly, how is that process wrong?
$endgroup$
– karun mathews
Jan 5 at 14:48
1
$begingroup$
@karun Yes. A function of this type is a standard example. Another is $x^2sin frac1x$.
$endgroup$
– Matt Samuel
Jan 7 at 14:35
2
2
$begingroup$
You've shown that the derivative exists (and in addition that it is discontinuous at $0$). (You're done.)
$endgroup$
– metamorphy
Jan 5 at 13:14
$begingroup$
You've shown that the derivative exists (and in addition that it is discontinuous at $0$). (You're done.)
$endgroup$
– metamorphy
Jan 5 at 13:14
1
1
$begingroup$
To be clear, "differentiable" means "the derivative exists" (which you showed from first principles). It does not mean "the derivative is itself continuous" (which you showed is false here).
$endgroup$
– Mark S.
Jan 5 at 14:05
$begingroup$
To be clear, "differentiable" means "the derivative exists" (which you showed from first principles). It does not mean "the derivative is itself continuous" (which you showed is false here).
$endgroup$
– Mark S.
Jan 5 at 14:05
$begingroup$
But I don't understand, if by differentiation using first principles, I could find the left hand and right hand limits of the derivative, then why is the function still discontinuous? Is it because we can't find the value of the derivative AT x=0?
$endgroup$
– karun mathews
Jan 5 at 14:43
$begingroup$
But I don't understand, if by differentiation using first principles, I could find the left hand and right hand limits of the derivative, then why is the function still discontinuous? Is it because we can't find the value of the derivative AT x=0?
$endgroup$
– karun mathews
Jan 5 at 14:43
$begingroup$
Also, why would I not get a left hand and right hand limit by differentiating directly, how is that process wrong?
$endgroup$
– karun mathews
Jan 5 at 14:48
$begingroup$
Also, why would I not get a left hand and right hand limit by differentiating directly, how is that process wrong?
$endgroup$
– karun mathews
Jan 5 at 14:48
1
1
$begingroup$
@karun Yes. A function of this type is a standard example. Another is $x^2sin frac1x$.
$endgroup$
– Matt Samuel
Jan 7 at 14:35
$begingroup$
@karun Yes. A function of this type is a standard example. Another is $x^2sin frac1x$.
$endgroup$
– Matt Samuel
Jan 7 at 14:35
|
show 3 more comments
1 Answer
1
active
oldest
votes
$begingroup$
Hint: Compute $$lim_{hto 0}frac{f(0+h)-f(0)}{h}$$ this is $$lim_{hto 0}frac{h^2|cos(frac{pi}{h})|-0}{h}$$ and since $$frac{h^2|cos(frac{pi}{h})|}{h}=h|cos(frac{pi}{h})|le h$$ this tends to zero for $h$ tends to zero.
$endgroup$
$begingroup$
He has already computed this.
$endgroup$
– Thomas Shelby
Jan 5 at 13:14
$begingroup$
Ya, I already did this- that's what I meant by differentiation by first principles, sorry I didn't elaborate. My problem is that when I directly differentiate, I get that the derivative doesn't exist, because of that sin(π/x) term- which will become sin(infinity) at x=0.
$endgroup$
– karun mathews
Jan 5 at 13:55
$begingroup$
@karun There's no such thing as $sin(infty)$. All you know is that $xto 0$, $sin(fracpi{x})$ is bounded in absolute value by $1$. This is good enough to show the limit is $0$.
$endgroup$
– Matt Samuel
Jan 5 at 17:30
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3062696%2ftrouble-checking-whether-a-function-is-differentiable-or-not%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Hint: Compute $$lim_{hto 0}frac{f(0+h)-f(0)}{h}$$ this is $$lim_{hto 0}frac{h^2|cos(frac{pi}{h})|-0}{h}$$ and since $$frac{h^2|cos(frac{pi}{h})|}{h}=h|cos(frac{pi}{h})|le h$$ this tends to zero for $h$ tends to zero.
$endgroup$
$begingroup$
He has already computed this.
$endgroup$
– Thomas Shelby
Jan 5 at 13:14
$begingroup$
Ya, I already did this- that's what I meant by differentiation by first principles, sorry I didn't elaborate. My problem is that when I directly differentiate, I get that the derivative doesn't exist, because of that sin(π/x) term- which will become sin(infinity) at x=0.
$endgroup$
– karun mathews
Jan 5 at 13:55
$begingroup$
@karun There's no such thing as $sin(infty)$. All you know is that $xto 0$, $sin(fracpi{x})$ is bounded in absolute value by $1$. This is good enough to show the limit is $0$.
$endgroup$
– Matt Samuel
Jan 5 at 17:30
add a comment |
$begingroup$
Hint: Compute $$lim_{hto 0}frac{f(0+h)-f(0)}{h}$$ this is $$lim_{hto 0}frac{h^2|cos(frac{pi}{h})|-0}{h}$$ and since $$frac{h^2|cos(frac{pi}{h})|}{h}=h|cos(frac{pi}{h})|le h$$ this tends to zero for $h$ tends to zero.
$endgroup$
$begingroup$
He has already computed this.
$endgroup$
– Thomas Shelby
Jan 5 at 13:14
$begingroup$
Ya, I already did this- that's what I meant by differentiation by first principles, sorry I didn't elaborate. My problem is that when I directly differentiate, I get that the derivative doesn't exist, because of that sin(π/x) term- which will become sin(infinity) at x=0.
$endgroup$
– karun mathews
Jan 5 at 13:55
$begingroup$
@karun There's no such thing as $sin(infty)$. All you know is that $xto 0$, $sin(fracpi{x})$ is bounded in absolute value by $1$. This is good enough to show the limit is $0$.
$endgroup$
– Matt Samuel
Jan 5 at 17:30
add a comment |
$begingroup$
Hint: Compute $$lim_{hto 0}frac{f(0+h)-f(0)}{h}$$ this is $$lim_{hto 0}frac{h^2|cos(frac{pi}{h})|-0}{h}$$ and since $$frac{h^2|cos(frac{pi}{h})|}{h}=h|cos(frac{pi}{h})|le h$$ this tends to zero for $h$ tends to zero.
$endgroup$
Hint: Compute $$lim_{hto 0}frac{f(0+h)-f(0)}{h}$$ this is $$lim_{hto 0}frac{h^2|cos(frac{pi}{h})|-0}{h}$$ and since $$frac{h^2|cos(frac{pi}{h})|}{h}=h|cos(frac{pi}{h})|le h$$ this tends to zero for $h$ tends to zero.
edited Jan 5 at 13:16
answered Jan 5 at 13:13
Dr. Sonnhard GraubnerDr. Sonnhard Graubner
73.5k42865
73.5k42865
$begingroup$
He has already computed this.
$endgroup$
– Thomas Shelby
Jan 5 at 13:14
$begingroup$
Ya, I already did this- that's what I meant by differentiation by first principles, sorry I didn't elaborate. My problem is that when I directly differentiate, I get that the derivative doesn't exist, because of that sin(π/x) term- which will become sin(infinity) at x=0.
$endgroup$
– karun mathews
Jan 5 at 13:55
$begingroup$
@karun There's no such thing as $sin(infty)$. All you know is that $xto 0$, $sin(fracpi{x})$ is bounded in absolute value by $1$. This is good enough to show the limit is $0$.
$endgroup$
– Matt Samuel
Jan 5 at 17:30
add a comment |
$begingroup$
He has already computed this.
$endgroup$
– Thomas Shelby
Jan 5 at 13:14
$begingroup$
Ya, I already did this- that's what I meant by differentiation by first principles, sorry I didn't elaborate. My problem is that when I directly differentiate, I get that the derivative doesn't exist, because of that sin(π/x) term- which will become sin(infinity) at x=0.
$endgroup$
– karun mathews
Jan 5 at 13:55
$begingroup$
@karun There's no such thing as $sin(infty)$. All you know is that $xto 0$, $sin(fracpi{x})$ is bounded in absolute value by $1$. This is good enough to show the limit is $0$.
$endgroup$
– Matt Samuel
Jan 5 at 17:30
$begingroup$
He has already computed this.
$endgroup$
– Thomas Shelby
Jan 5 at 13:14
$begingroup$
He has already computed this.
$endgroup$
– Thomas Shelby
Jan 5 at 13:14
$begingroup$
Ya, I already did this- that's what I meant by differentiation by first principles, sorry I didn't elaborate. My problem is that when I directly differentiate, I get that the derivative doesn't exist, because of that sin(π/x) term- which will become sin(infinity) at x=0.
$endgroup$
– karun mathews
Jan 5 at 13:55
$begingroup$
Ya, I already did this- that's what I meant by differentiation by first principles, sorry I didn't elaborate. My problem is that when I directly differentiate, I get that the derivative doesn't exist, because of that sin(π/x) term- which will become sin(infinity) at x=0.
$endgroup$
– karun mathews
Jan 5 at 13:55
$begingroup$
@karun There's no such thing as $sin(infty)$. All you know is that $xto 0$, $sin(fracpi{x})$ is bounded in absolute value by $1$. This is good enough to show the limit is $0$.
$endgroup$
– Matt Samuel
Jan 5 at 17:30
$begingroup$
@karun There's no such thing as $sin(infty)$. All you know is that $xto 0$, $sin(fracpi{x})$ is bounded in absolute value by $1$. This is good enough to show the limit is $0$.
$endgroup$
– Matt Samuel
Jan 5 at 17:30
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3062696%2ftrouble-checking-whether-a-function-is-differentiable-or-not%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
$begingroup$
You've shown that the derivative exists (and in addition that it is discontinuous at $0$). (You're done.)
$endgroup$
– metamorphy
Jan 5 at 13:14
1
$begingroup$
To be clear, "differentiable" means "the derivative exists" (which you showed from first principles). It does not mean "the derivative is itself continuous" (which you showed is false here).
$endgroup$
– Mark S.
Jan 5 at 14:05
$begingroup$
But I don't understand, if by differentiation using first principles, I could find the left hand and right hand limits of the derivative, then why is the function still discontinuous? Is it because we can't find the value of the derivative AT x=0?
$endgroup$
– karun mathews
Jan 5 at 14:43
$begingroup$
Also, why would I not get a left hand and right hand limit by differentiating directly, how is that process wrong?
$endgroup$
– karun mathews
Jan 5 at 14:48
1
$begingroup$
@karun Yes. A function of this type is a standard example. Another is $x^2sin frac1x$.
$endgroup$
– Matt Samuel
Jan 7 at 14:35