Can a Function be Differentiable if it is Not Continuous?

  • Thread starter Thread starter Kolika28
  • Start date Start date
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
8 replies · 2K views
Kolika28
Messages
146
Reaction score
28
Homework Statement
##g(x)=\left\{
\begin{array}{ll}
\frac{e^{ax+b}-1}{x}, & x>0 \\
\frac{x}{2}+1, & x\leq 0 \\
\end{array}
\right.##

If possible, find the values ##a## and ##b## that make the function g(x) differentiable.
Relevant Equations
The derivative
So this is what I'm thinking:

After watching some YouTube videos on the subject, the first thing I do is check for continuity. So I plug in for ## x=0## and is left with ##
\frac{e^{b}-1}{0}=1##. I don't think I'm doing this right given the fact that I'm left with 0 in the denominator. Afterwards I was supposed to set the derivative equal of the to expression in the function equal to each other, but only if it was continuous¨.

But I can't have 0 in the denominator. So does that make the function discontinuous and therefor not differentiable?
 
Physics news on Phys.org
Kolika28 said:
the first thing I do is check for continuity.

Good first step. It's not differentiable unless it's continuous. Remember what that means: that the limit as ##x \rightarrow 0## is the same when approaching from the left and the right. Sometimes that's the same as plugging in ##x = 0##, but in general that's not what limit means.

Kolika28 said:
But I can't have 0 in the denominator. So does that make the function discontinuous and therefor not differentiable?

It does if the numerator ##(e^b - 1)## is nonzero, in which case there's a vertical asymptote at ##x = 0##. The limit is either ##+\infty## or ##-\infty##.

So the only hope for continuity is if ##(e^b - 1)## is 0 at ##x = 0##. In that case, plugging in 0 gives you an indeterminate form ##0/0## and that is NOT the limit as ##x \rightarrow 0^-##. You want to evaluate that limit and see if it can be made the same as the limit as ##x \rightarrow 0^+##.

Provided the function can be made continuous, you aren't done. Continuity is necessary for differentiability, but it isn't sufficient.
 
  • Like
Likes   Reactions: Kolika28
fresh_42 said:
What "would" be the derivative at x=0x=0? Have you differentiated eax+b−1xeax+b−1x?

Also, you are right, it has to be continuous first. So which combination makes ##\lim_{x \to 0}g(x)=1##?

So should I in this case differentiate first?
 
The derivative of a differentiable function is not necessarily continuous but it does have the "intermediate value theorem" (that is what is meant by "no gap"). So if you find the derivative for x> 0 and the derivative for x< 0 and take the limit of each as x goes to 0, either the two limits are the same, and the derivative of the function is that value, or the two limits are not the same and the function is not differentiable at x= 0.
 
  • Like
Likes   Reactions: Kolika28
Ok, I not sure if I'm understanding correctly. But maye it's best if I try to show you what I'm doing with the information given, and then take it from there:

So I check for continuity to make sure that the function does not have a gap.
##\lim_{x\to 0^{-}}\frac{x}{2}+1=1##
Then we must have that
##\lim_{x\to 0^{+}}\frac{e^{ax+b}-1}{x}=1##

But how do I make sure if this gap does exist or not?
 
Last edited:
Yes, that limit "must be 1". Can you determine whether it is or not? I see, for example, that if b is not 0, the limit does not exist at all because the denominator is going to 0 while the numerator is not. In order to have a chance of having a limit, the numerator, [itex]e^{ax+ b}- 1[/itex] must be 0 for x= 0. That, again, is true if b= 0. Now, since [itex]\frac{e^{ax}-1}{x}[/itex] is the "indeterminate" form, [itex]\frac{0}{0}[/itex], at x= 0, you can use L'Hopital's rule.
 
  • Like
Likes   Reactions: Kolika28
I finally got it! Thank you so much both of you!