Show that this graph isn't differentiable at x=1

In summary: I see what you're getting at. This is a single expression, but it's piecewise defined. The two branches are specified separately, but the whole function is one. So it's more accurate to say###### $$f'(x) = \begin{cases} {-2x} & \text{if } x \leq 1 \\ 1 & \text{if } x > 1 \end{cases}$$######but that might be a bit cumbersome. It becomes less accurate to say###### $$f'(x) = \begin{cases} {-2x} & \text{if } x < 1 \\ 1 & \text{
  • #1
opus
Gold Member
717
131

Homework Statement


Sketch the graph of the following function and use the definition of the derivative to show that the function is not differentiable at x=1.

$$f(x) = \begin{cases} {-x^2+2} & \text{if } x \leq 1 \\ x & \text{if } x > 1 \end{cases}$$

Homework Equations



Derivative: $$f'(x) = \lim_{h \rightarrow 0} {\frac{f(x+h) - f(x)}{h}}$$

The Attempt at a Solution



Now I graphed this peicewise function and there is a sharp kink at x=1.
Visually, I know that there is no derivative here, because if we think about tangent line to the graph at the point of the kink, it can swivel around and there is no definite derivative.
Algebraically, I'm not sure what to say.

The point is continuous, but a point can be continuous and not be differentiable, but not the other way around.
I took the derivative function at ##x\leq 1## and that derivative function is ##f'(x)= -2x##
I took the derivative function at ##x>1## and that derivative function is ##f'(x) = 1##

So this tells me that the derivative functions are different at the left of x=1 and at the right, which is obvious because the piecewise has two separate function on these intervals anyways.

So I'm at a standstill on what I need to say mathematically to show that the function is not differentiable at x=1.
 
Physics news on Phys.org
  • #2
It is the same reason as before with your points of continuity: A limit (without specification from which side) exists, if it is equal from left and from right. This is not the case for the limit of the first derivative at ##x=1##, therefore it is not differentiable here. A unique limit cannot be chosen, and thus it doesn't exist.
 
  • Like
Likes opus
  • #3
fresh_42 said:
This is not the case for the limit of the first derivative at x=1
Why doesn't a limit exist at x=1? It appears that from both sides, the graph approaches 1.
 
  • #4
See image
 

Attachments

  • D67E56EC-8EBB-4E6A-8701-57CF9EAB33D1.jpeg
    D67E56EC-8EBB-4E6A-8701-57CF9EAB33D1.jpeg
    11.4 KB · Views: 357
  • #5
opus said:
Why doesn't a limit exist at x=1? It appears that from both sides, the graph approaches 1.
Sure, but not the limit as it is in the definition of a derivative: ##\lim_{h \to +0} \dfrac{f(1+h)-f(1)}{h} \neq \lim_{h \to -0} \dfrac{f(1+h)-f(1)}{h}\,.##
 
  • Like
Likes opus
  • #6
opus said:

Homework Statement


Sketch the graph of the following function and use the definition of the derivative to show that the function is not differentiable at x=1.

$$f(x) = \begin{cases} {-x^2+2} & \text{if } x \leq 1 \\ x & \text{if } x > 1 \end{cases}$$

Homework Equations



Derivative: $$f'(x) = \lim_{h \rightarrow 0} {\frac{f(x+h) - f(x)}{h}}$$

The Attempt at a Solution



Now I graphed this peicewise function and there is a sharp kink at x=1.
Visually, I know that there is no derivative here, because if we think about tangent line to the graph at the point of the kink, it can swivel around and there is no definite derivative.
Algebraically, I'm not sure what to say.

The point is continuous, but a point can be continuous and not be differentiable, but not the other way around.
I took the derivative function at ##x\leq 1## and that derivative function is ##f'(x)= -2x##
I took the derivative function at ##x>1## and that derivative function is ##f'(x) = 1##

So this tells me that the derivative functions are different at the left of x=1 and at the right, which is obvious because the piecewise has two separate function on these intervals anyways.

So I'm at a standstill on what I need to say mathematically to show that the function is not differentiable at x=1.

You have already shown it in the previous paragraph, because you have shown that your limiting ratio does not have a limit as ##h \to 0##: it matters whether you have ##h \downarrow 0## or ##h \uparrow 0.##
 
  • Like
Likes opus
  • #7
Let me see if I understand:

Using the derivative function, if x approaches 0 from the left, then x is less than 1. In this case, we use ##f(x) = -x^2+2##
Taking the derivative of this, the slope (or derivative) as h approaches 0 from the left is -2

If x approaches zero from the right, the we are greater than 1. In this case, we use ##f(x) = x##
Taking the derivative of this, the slope as h approaches 0 from the right is 1.

These individual derivates, from the left and right, are not equal, so the point at x=1 is indifferentiable.
 
  • #8
Shown work
 

Attachments

  • E8DF3BBF-BD33-40E6-A7AD-BF973323B4E5.jpeg
    E8DF3BBF-BD33-40E6-A7AD-BF973323B4E5.jpeg
    13.3 KB · Views: 357
  • 116B7D08-10A3-44A6-B3AA-829836A92931.png
    116B7D08-10A3-44A6-B3AA-829836A92931.png
    10.6 KB · Views: 356
  • #9
Ray Vickson said:
your limiting ratio does not have a limit as h→0

What do you mean by this? Does it have to do with just trying to take the derivative at x=1? Because I tried to do that, and couldn't manage to get one. I kept getting ##\frac{0}{0}## which is of course undefined.
 
  • #10
Just some very naive queries from a non-mathematician reading this.

Can this be true?
fresh_42 said:
... ##\lim_{h \to +0} \dfrac{f(1+h)-f(1)}{h} \neq \lim_{h \to -0} \dfrac{f(1+h)-f(1)}{h}\,.##
They look identical to me.
Presumably the f(x) on the left is different from the f(x) on the right. Is there some notation which makes this clear for "split" functions like f(x)?
Maybe ##f_{x ≤ 1}(x) \ and f_{>1}(x)##
Or perhaps something like, ## f(x) = \begin{cases} {g(x)=-x^2+2} & \text{if } x \leq 1 \\h(x)= x & \text{if } x > 1 \end{cases}##
so that you could write, say,
##\lim_{d \to +0} \dfrac{g(1+d)-g(1)}{d} \neq \lim_{d \to -0} \dfrac{h(1+d)-h(1)}{d}\,.##

From post #1
It seems to me that, for the simple polynomial type functions that I met at school, the derivative could equally be obtained using
##f'(x) = \lim_{h \rightarrow 0} {\frac{f(x) - f(x-h)}{h}}##
as well as the formula given in OP.
Is there a strict mathematical definition for derivatives that requires the stated formula?
 
  • Like
Likes opus
  • #11
opus said:
Shown work
The second one looks o.k. as far as I can tell from the photo. The first one, however, looks wrong. For ##x>1## we have ##\lim_{h \downarrow 0}\dfrac{f(1+h)-f(1)}{h}=\lim_{h \downarrow 0}\dfrac{1-1}{h}=0## since the nominator is equally zero and the denominator only approaching it. There is no ##\frac{0}{0}\,.##
 
  • Like
Likes opus
  • #12
fresh_42 said:
The second one looks o.k. as far as I can tell from the photo. The first one, however, looks wrong. For ##x>1## we have ##\lim_{h \downarrow 0}\dfrac{f(1+h)-f(1)}{h}=\lim_{h \downarrow 0}\dfrac{1-1}{h}=0## since the nominator is equally zero and the denominator only approaching it. There is no ##\frac{0}{0}\,.##

For the second, as you had shown, I tried some voodoo by multiplying by the conjugate of the numerator to the top and bottom. In doing this, I got the limit as 1 and that made sense because to the right of one, it's the line y=x.
Without doing this however, I did get the limit to be 0, but that doesn't make sense at all by looking at the graph. Could you explain?
 
  • #13
Merlin3189 said:
Presumably the f(x) on the left is different from the f(x) on the right. Is there some notation which makes this clear for "split" functions like f(x)?
I used the notation ##h \to +0## for the approach from the right and ##h \to -0## from the left. @Ray Vickson wrote ##h \downarrow 0## resp. ##h \uparrow 0## instead. Both is used and a matter of taste. Some also write ##h \nwarrow 0## or ##h \searrow 0 ## resp. ##h \nearrow 0\,.## There is no clear standard.

As we have only one function, I do not like to name the left and right branch differently. From a logical point of view, there is only ##x \longmapsto f(x)##, no ##g(x)## and no ##h(x)##.
 
Last edited:
  • Like
Likes opus
  • #14
opus said:
For the second, as you had shown, I tried some voodoo by multiplying by the conjugate of the numerator to the top and bottom. In doing this, I got the limit as 1 and that made sense because to the right of one, it's the line y=x.
Without doing this however, I did get the limit to be 0, but that doesn't make sense at all by looking at the graph. Could you explain?
Sorry, my fault. I mistakenly took ##f(x)=1## for ##x>1## instead of ##f(x)=x##. Here's the correction:
fresh_42 said:
The second one looks o.k. as far as I can tell from the photo. The first one, however, looks wrong. For ##x>1## we have ##\lim_{h \downarrow 0}\dfrac{f(1+h)-f(1)}{h}=\lim_{h \downarrow 0}\dfrac{1+h-1}{h}=\lim_{h \downarrow 0} \dfrac{h}{h}=1## since the nominator is equal to the denominator. Both are simultaneously approaching ##0##. There is no ##\dfrac{0}{0}\,.## as we never get there.
 
  • Like
Likes opus
  • #15
Merlin3189 said:
It seems to me that, for the simple polynomial type functions that I met at school, the derivative could equally be obtained using ##f'(x) = \lim_{h \rightarrow 0} {\frac{f(x) - f(x-h)}{h}}## as well as the formula given in OP.
That's the same thing. Maybe left and right will be different in the ##h \to +0## notation, as ##h## is now negative, but this doesn't matter - because they have to coincide from left and right!
 
  • Like
Likes opus
  • #16
Thanks for the clarification. I'd noticed the up/down approaches in Ray's post, but missed it in yours. Blame my eyesight: perhaps the astigmatism likes vertical arrows but not horizontal ones.
 
  • Like
Likes opus
  • #17
So does this make sense? Trying to visualize this.

In the top graph, the limit of the derivative from the left is -2 and from the right is 1. AT x=1 it gets wonky because there’s not a smooth transition.

In the top graph, which is a somewhat equivalent, there is a smooth transition so the different slopes on each side of x=1 converge on a derivative or slope of 0.
 

Attachments

  • B8190986-1041-4650-A49C-387030C37646.jpeg
    B8190986-1041-4650-A49C-387030C37646.jpeg
    35.7 KB · Views: 353
  • #18
opus said:
So does this make sense? Trying to visualize this.

In the top graph, the limit of the derivative from the left is -2 and from the right is 1. AT x=1 it gets wonky because there’s not a smooth transition.

In the top graph, which is a somewhat equivalent, there is a smooth transition so the different slopes on each side of x=1 converge on a derivative or slope of 0.
Yes, this makes sense. For short: ##x \longmapsto |x|## is not differentiable at ##x=0\,.## whereas ##x \longmapsto x^n## are.
 
  • Like
Likes opus
  • #19
Ok great.

So to prove that the graph is not differentiable at x=1,
  • Take the derivative from the left of x=1 as x gets very close to 0. This will give a rate of change, or derivative as x gets close to 1 from the left.
  • Take the derivative from the right of x=1 as x gets very close to 0. This will give a rate of change, or derivative as x gets close to 1 from the right.
  • These different intervals do not approach the same rate of change, or derivative, as they approach the same x value. This implies a kink in the graph at x=1, which coincides with what I drew.
  • From this information we can say that f(x) is not differentiable at x=1
Would you change anything to this statement?
 
  • #20
opus said:
Ok great.

So to prove that the graph is not differentiable at x=1,
  • Take the derivative from the left of x=1 as x gets very close to 0. This will give a rate of change, or derivative as x gets close to 1 from the left.
  • Take the derivative from the right of x=1 as x gets very close to 0. This will give a rate of change, or derivative as x gets close to 1 from the right.
  • These different intervals do not approach the same rate of change, or derivative, as they approach the same x value. This implies a kink in the graph at x=1, which coincides with what I drew.
  • From this information we can say that f(x) is not differentiable at x=1
Would you change anything to this statement?
Yes. I would say: Calculate the limits (which would define a derivation) from the left and from the right as the derivative does not exist, the one-sided limits do! What you did in this statement, is to pretend you have two different differentiable functions with different derivatives at the point in question. This leads to the same result in this case, but is not what's going on. We have only one function and no derivative at ##x=1##.
 
  • Like
Likes opus
  • #21
Ok great, thank you everyone for your help.
 
  • #22
opus said:
Let me see if I understand:

Using the derivative function, if x approaches 0 from the left, then x is less than 1. In this case, we use ##f(x) = -x^2+2##
Taking the derivative of this, the slope (or derivative) as h approaches 0 from the left is -2

If x approaches zero from the right, the we are greater than 1. In this case, we use ##f(x) = x##
Taking the derivative of this, the slope as h approaches 0 from the right is 1.

These individual derivates, from the left and right, are not equal, so the point at x=1 is indifferentiable.

Exactly. So the ratio
$$\frac{f(1+h)-f(1)}{h}$$ will have two different limits: one for ##h \to 0## from above, and another for ##h \to 0## from below. That means that a limit as ##h \to 0## does not exist, because limits are not supposed to be different for the two different ways of having ##h## go to 0.
 
  • Like
Likes opus
  • #23
Excellent, thank you Ray!
 

1. What does it mean for a graph to be differentiable at a point?

When a graph is differentiable at a point, it means that the slope of the tangent line at that point is well-defined and continuous. This means that the graph is smooth and has no sharp corners or breaks at that point.

2. How can you determine if a graph is not differentiable at a specific point?

A graph is not differentiable at a specific point if the slope of the tangent line at that point is undefined or discontinuous. This can be determined by examining the graph visually or by calculating the derivative at that point using calculus.

3. What does it mean for a graph to be differentiable everywhere?

A graph is differentiable everywhere if it is differentiable at every point on its domain. This means that the graph is smooth and has a well-defined slope at every point, without any sharp corners or breaks.

4. Can a graph be differentiable at one point but not at another?

Yes, it is possible for a graph to be differentiable at one point but not at another. This can happen if the graph has a sharp corner or break at one point, but is smooth and continuous at another point.

5. Why is it important to know if a graph is differentiable at a specific point?

Knowing if a graph is differentiable at a specific point is important in understanding the behavior of the graph at that point. It can help in solving optimization problems, finding critical points, and determining the concavity of the graph. It also allows for more accurate predictions and calculations in various fields of science and engineering.

Similar threads

  • Calculus and Beyond Homework Help
Replies
26
Views
898
  • Calculus and Beyond Homework Help
Replies
4
Views
311
  • Calculus and Beyond Homework Help
Replies
7
Views
285
  • Calculus and Beyond Homework Help
Replies
0
Views
167
  • Calculus and Beyond Homework Help
Replies
8
Views
473
  • Calculus and Beyond Homework Help
Replies
22
Views
2K
  • Calculus and Beyond Homework Help
Replies
9
Views
944
  • Calculus and Beyond Homework Help
Replies
1
Views
284
  • Calculus and Beyond Homework Help
Replies
3
Views
731
  • Calculus and Beyond Homework Help
Replies
3
Views
287
Back
Top