Condition for differentiability of a function

Click For Summary

Discussion Overview

The discussion revolves around the conditions for differentiability of a function, particularly focusing on the implications of having equal left-hand and right-hand derivatives at a point. The context includes theoretical exploration and mathematical reasoning regarding differentiability in real analysis.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants propose that having equal left-hand and right-hand derivatives at a point is sufficient for differentiability, but this may depend on the nature of the set S.
  • Others argue that for a function defined on a real interval, equal left and right derivatives imply differentiability, while for functions in the complex plane, this is not necessarily true.
  • A participant presents a specific example of a piecewise function g(x) to illustrate a potential case where a function could be differentiable at a point of discontinuity, questioning whether continuity is required for differentiability.
  • Another participant challenges the claim that the function g(x) has a right-hand derivative at the point of discontinuity, providing a limit calculation to support their argument.
  • Some participants engage in detailed limit calculations to demonstrate the existence of derivatives at the point in question, asserting that both left-hand and right-hand derivatives yield the same value.
  • There is a contention regarding the definition of the derivative and the necessity of continuity for differentiability, with participants expressing differing views on the implications of their examples.

Areas of Agreement / Disagreement

Participants do not reach a consensus on whether equal left-hand and right-hand derivatives are sufficient for differentiability, particularly in the context of discontinuous functions. Multiple competing views remain regarding the necessity of continuity in relation to differentiability.

Contextual Notes

The discussion highlights limitations in assumptions about the nature of the set S and the definitions used in differentiability. The mathematical steps and definitions of derivatives are also points of contention, with some participants emphasizing the need for clarity in these definitions.

peeyush_ali
Messages
86
Reaction score
0
given a function F:S-->R such that for every element belonging to "S" has both left hand derivative and right hand derivative and are equal to the derivative at that point.
Can we say that the function is differentiable..?
 
Physics news on Phys.org
peeyush_ali said:
given a function F:S-->R such that for every element belonging to "S" has both left hand derivative and right hand derivative and are equal to the derivative at that point.
Can we say that the function is differentiable..?

Depends what S is. For S a region in the complex plane, it is not enough to to left and right derivatives. For S an interval in the line, it is enough to do left and right derivatives.
 
g_edgar said:
Depends what S is. For S a region in the complex plane, it is not enough to to left and right derivatives. For S an interval in the line, it is enough to do left and right derivatives.

dear g_edgar yes, "S" is a set of some real numbers..
 
If that were true then i have an idea of getting a "discontinuous function" (only few functions) to be differentiable at the point of discontinuity by taking left and right hand derivatives.

For example, say f(x) = cosx is a continuous and differentiable function through out its domain. Consider another function g(x)
such that,
g(x) = cosx ,0=<x<pi/3
= 1+cosx , pi/3=<x<pi/2

I have chosen a function cosx which is very much differentiable and continuous till pi/3 and had defined another function 1+cosx from pi/3. so for g(x) , there is a point of discontinuity at x= pi/3 . graphically 1+cosx is same as cosx except for shifting it up by "1" unit due to which there is a discontinuity yet we can say that the left hand derivative and right hand derivatives are equal to each other and equal to derivative at that point x=pi/3 and hence g(x) is derivable at x=pi/3 provided differentiability has the only condition that left hand and right hand derivatives are equal and equal to the derivative at the point x=pi/3 .

so, the condition "differentiability of a point exists only if left hand derivative is equal to right hand derivative equal to the derivative at that point " is sufficient to say that differentiability exists at that point?

or in addition it have to be "continuous" simultaneously?

in this view can someone say why differentiability is defined as such i mean why is continuity needed for differentiability """in this case """ (my example).
 
Last edited:
peeyush_ali said:
If that were true then i have an idea of getting a "discontinuous function" (only few functions) to be differentiable at the point of discontinuity by taking left and right hand derivatives.

For example, say f(x) = cosx is a continuous and differentiable function through out its domain. Consider another function g(x)
such that,
g(x) = cosx ,0=<x<pi/3
= 1+cosx , pi/3=<x<pi/2
No, this function does not have a right hand derivative at x= [itex]\pi/3[/itex]. In order to find the derivative at [itex]\pi/3[/itex] you have to find the limit of the fraction
[tex]\lim_{h\rightarrow 0}\frac{1+ cos(x+ h)- \frac{1}{2}}{h}[/tex]
That limit does not exist because the numerator does not go to 0. Notice that is different from talking about the derivative of 1+ cos(x) at [itex]\pi/3[/itex] because then you would be subtracting the value of 1+ cos(x) at [itex]\pi/3[/itex] which is 1+ 1/2= 3/2, not the value of g(x)= cos([itex]\pi/3[/itex])= 1/2.

I have chosen a function cosx which is very much differentiable and continuous till pi/3 and had defined another function 1+cosx from pi/3. so for g(x) , there is a point of discontinuity at x= pi/3 . graphically 1+cosx is same as cosx except for shifting it up by "1" unit due to which there is a discontinuity yet we can say that the left hand derivative and right hand derivatives are equal to each other and equal to derivative at that point x=pi/3 and hence g(x) is derivable at x=pi/3 provided differentiability has the only condition that left hand and right hand derivatives are equal and equal to the derivative at the point x=pi/3 .

so, the condition "differentiability of a point exists only if left hand derivative is equal to right hand derivative equal to the derivative at that point " is sufficient to say that differentiability exists at that point?

or in addition it have to be "continuous" simultaneously?

in this view can someone say why differentiability is defined as such i mean why is continuity needed for differentiability """in this case """ (my example).
 
dear halls of ivy, what u wanted to put in the messege is not clear (i.e. some limit)
and the left hand and right hand limits of the derivatives indeed are equal and the value is
d/dx (cosx) = d/dx (1+cosx) = -sinx = -sin (pi/3) = - (root 3) /2
 
peeyush_ali said:
dear halls of ivy, what u wanted to put in the messege is not clear (i.e. some limit)
and the left hand and right hand limits of the derivatives indeed are equal and the value is
d/dx (cosx) = d/dx (1+cosx) = -sinx = -sin (pi/3) = - (root 3) /2
Irrelevant. That "some limit" that I put in the message was the definition of the derivative. If you do not know the definition, it is unlikely you are going to be able to do much with derivatives. You cannot find the derivative at a point by taking the limits of the two derivatives on each side. Use the defining formula for a derivative: the derivative of f(x) at x= a is
[tex]\lim_{h\rightarrow 0}\frac{f(a+h)- f(a)}{h}[/tex]

The derivative of your f(x) "from the right", at x= a, is
[tex]\lim_{h\rightarrow 0^+}\frac{f(a+h)- f(a)}{h}[/tex]
For h> 0, [itex]f(\pi/3+h)= 1+ cos(\pi/3+h)[/itex] and that goes to [itex]1+ cos(\pi/3)= 1+ \sqrt{3}/2[/itex]. But [itex]f(\pi/3)[/itex] is NOT [itex]1+ cos(\pi/3)[/itex]. It is, according to your definition, [itex]cos(\pi/3)= \sqrt{3}/2[/itex]. So that, while the demominator goes to 0, the numerator does not- it goes to 1. The limit, from the right, and so the derivative from the right, does not exist at [itex]x= \pi/3[/itex].
 
Last edited by a moderator:
Right handderivative :
lim h-->0+ (f(x+h)-f(x)) /h = lim h-->0+ (1+cos(pi/3 +h) -1- cos(pi/3) ) /h =

lim h->0+ ((1/2)cos(h) - ((root3)/2) sin(h) -1/2 ) /h
now this is of o/o form so apply "L hospital'srule.. we get,

lim h-->0+ ( (1/2) (-sin (h)) - ((root3)/2) cos(h) ) /1 = - (root3)/2 ...(1)

Left hand derivative:

lim h-->0- (f(x-h) -f(x)) / h =limh--> 0- (cos(pi/3-h) -cos(pi/3) )/h =

lim h-->0- ((1/2)cos(h) +((root3)/2) sin(h) -(1/2)) /h =>again apply lhospitalsrule..sameasRHD
so WHO SAID THAT DERIVATIVE DOESNT EXIST..? It exists and verymuch equal to ... ( (-root3)/2)
 
HallsofIvy said:
No, this function does not have a right hand derivative at x= [itex]\pi/3[/itex]. In order to find the derivative at [itex]\pi/3[/itex] you have to find the limit of the fraction
[tex]\lim_{h\rightarrow 0}\frac{1+ cos(x+ h)- \frac{1}{2}}{h}[/tex]
That limit does not exist because the numerator does not go to 0. Notice that is different from talking about the derivative of 1+ cos(x) at [itex]\pi/3[/itex] because then you would be subtracting the value of 1+ cos(x) at [itex]\pi/3[/itex] which is 1+ 1/2= 3/2, not the value of g(x)= cos([itex]\pi/3[/itex])= 1/2.

the function includes the point f(pi/3) hence LHD corresponds to the derivative of "cosx"
RHD corresponds to the derivative of "1+cosx" .and they must be equal to the derivative at x=pi/3 ie at the point (pi/3 , 3/2) WHICH IS INCLUDED IN THE FUNCTION...
 
  • #10
peeyush_ali said:
Right handderivative :
lim h-->0+ (f(x+h)-f(x)) /h = lim h-->0+ (1+cos(pi/3 +h) -1- cos(pi/3) ) /h =

lim h->0+ ((1/2)cos(h) - ((root3)/2) sin(h) -1/2 ) /h
now this is of o/o form so apply "L hospital'srule.. we get,

lim h-->0+ ( (1/2) (-sin (h)) - ((root3)/2) cos(h) ) /1 = - (root3)/2 ...(1)

Left hand derivative:

lim h-->0- (f(x-h) -f(x)) / h =limh--> 0- (cos(pi/3-h) -cos(pi/3) )/h =

lim h-->0- ((1/2)cos(h) +((root3)/2) sin(h) -(1/2)) /h =>again apply lhospitalsrule..sameasRHD
so WHO SAID THAT DERIVATIVE DOESNT EXIST..? It exists and verymuch equal to ... ( (-root3)/2)
I said it didn't! Didn't you notice? And did you not notice that YOU said that
g(x) = cosx ,0=<x<pi/3
= 1+cosx , pi/3=<x<pi/2
so your g(pi/3)= 1+ cos(pi/3)= 1+ 1/2= 3/2 Not the 1/2 you use in
"lim h-->0- ((1/2)cos(h) +((root3)/2) sin(h) -(1/2)) /h "

You can't use two different "f(pi/3)" values in the two limits.

A simpler example: f(x)= 1 if x is not equal to a, f(a)= 2. What is the derivative at x= a? Well, for all x< a or all x> a, it is simply 0. Clearly [itex]\lim_{x\rightarrow a^-}f(x)= \lim_{x\leftarrow a^+}= 0[/itex]. Does that mean f'(a)= 0?

No, it does not: the derivative at x= a, if it exists, must be given by
[tex]\lim_{h\rightarrow 0}\frac{f(a+h)- f(a)}{h}= \lim_{h\rightarrow 0}\frac{1- 2}{h}[/tex]
and that last limit does NOT exist.

(It is true that if a function, f, is differentiable at, say, x= a, then [itex]\lim_{x\rightarrow a^-} f'(x)= \lim_{x\rightarrow a^+}f'(x)= f'(a)[/itex]).
 
Last edited by a moderator:
  • #11
HallsofIvy said:
I said it didn't! Didn't you notice? And did you not notice that YOU said that
g(x) = cosx ,0=<x<pi/3
= 1+cosx , pi/3=<x<pi/2
so your g(pi/3)= 1+ cos(pi/3)= 1+ 1/2= 3/2 Not the 1/2 you use in
"lim h-->0- ((1/2)cos(h) +((root3)/2) sin(h) -(1/2)) /h "

You can't use two different "f(pi/3)" values in the two limits.

A simpler example: f(x)= 1 if x is not equal to a, f(a)= 2. What is the derivative at x= a? Well, for all x< a or all x> a, it is simply 0. Clearly [itex]\lim_{x\rightarrow a^-}f(x)= \lim_{x\leftarrow a^+}= 0[/itex]. Does that mean f'(a)= 0?

No, it does not: the derivative at x= a, if it exists, must be given by
[tex]\lim_{h\rightarrow 0}\frac{f(a+h)- f(a)}{h}= \lim_{h\rightarrow 0}\frac{1- 2}{h}[/tex]
and that last limit does NOT exist.

(It is true that if a function, f, is differentiable at, say, x= a, then [itex]\lim_{x\rightarrow a^-} f'(x)= \lim_{x\rightarrow a^+}f'(x)= f'(a)[/itex]).

the definition of the function g(x)
is cosx for x lying between 0 and pi/3 provided pi/3 is excluded and zero is included
and is 1+cosx for x lying between pi/3 and pi/2 provided, pi/3 is included and pi/2 is also included
try to make a graph of it then you will try to understand.. "there is a hole at x=pi/3 in cosx and a dot in 1+cosx ..

I think this should make it..
best regards
 
  • #12
I think YOU need to try to understand. If a function is not continuous at a given point, it is not differentiable there. I have tried repeatedly to explain your error in taking the derivative. Either you are being hard headed or simply do not understand the definition of "derivative".
 
  • #13
peeyush_ali said:
the definition of the function g(x)
is cosx for x lying between 0 and pi/3 provided pi/3 is excluded and zero is included
and is 1+cosx for x lying between pi/3 and pi/2 provided, pi/3 is included and pi/2 is also included
try to make a graph of it then you will try to understand.. "there is a hole at x=pi/3 in cosx and a dot in 1+cosx ..

I think this should make it..
best regards

Halls has already stated the reason why the derivative does not exist at x = [itex]\frac{\pi}{3}[/itex]. The numerator of the difference quotient does not vanish in the left-sided limit for the simple reason that [itex]g(\frac{\pi}{3})[/itex], appearing in the numerator, belongs to the right-hand side of the graph, which is not connected. This makes the numerator approach the value -1, as the denominator vanishes. You can clearly see this in your graph, using your "hole" and "dot" for endpoint exclusion and inclusion, respectively. Draw the successive secants that the difference quotient gives the slope of.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K