This article is about a differentiation rule, i.e., a rule for differentiating a function expressed in terms of other functions whose derivatives are known.
View other differentiation rules
Statement
Everywhere version
Suppose  and
 and  are functions of one variable, such that both of the functions are defined and differentiable everywhere. Consider a function
 are functions of one variable, such that both of the functions are defined and differentiable everywhere. Consider a function  , defined as follows:
, defined as follows:
 
Then, we have the following for continuity:
- The left hand limit of  at at equals equals . .
- The right hand limit of  at at equals equals . .
 is left continuous at is left continuous at iff iff . .
 is right continuous at is right continuous at iff iff . .
 is continuous at is continuous at iff iff . .
We have the following for differentiability:
 is left differentiable at is left differentiable at iff iff , and in this case, the left hand derivative equals , and in this case, the left hand derivative equals . .
 is right differentiable at is right differentiable at iff iff , and in this case, the right hand derivative equals , and in this case, the right hand derivative equals . .
 is differentiable at is differentiable at iff ( iff ( and and ), and in this case, the derivative equals the equal values ), and in this case, the derivative equals the equal values and and . .
Piecewise definition of derivative
If the conditions for differentiability at  are violated, we get the following piecewise definition for
 are violated, we get the following piecewise definition for  , which excludes the point
, which excludes the point  from its domain:
 from its domain:
 
If the conditions for differentiability at  are satisfied, we get the following piecewise definition for
 are satisfied, we get the following piecewise definition for  , which includes the point
, which includes the point  in its domain:
 in its domain:
 
where  . In particular, the value at
. In particular, the value at  can be included in either the left side or the right side definition.
 can be included in either the left side or the right side definition.
Version for higher derivatives
Suppose  and
 and  are functions of one variable, such that both of the functions are defined and
 are functions of one variable, such that both of the functions are defined and  times differentiable everywhere (and hence in particular the functions and their first
 times differentiable everywhere (and hence in particular the functions and their first  derivatives are continuous), for some positive integer
 derivatives are continuous), for some positive integer  . Consider the function:
. Consider the function:
 
Then,  is
 is  times differentiable at
 times differentiable at  if we have all these conditions:
 if we have all these conditions:  ,
,  ,
,  . In other words, the values should match, and the values of each of the derivatives up to the
. In other words, the values should match, and the values of each of the derivatives up to the  derivative should match. In that case, the
 derivative should match. In that case, the  derivative of
 derivative of  at math>c</math> equals the equal values
 at math>c</math> equals the equal values  .
.
The general piecewise definition of  is, in this case:
 is, in this case:
 
where  .
.
Local generalization
The above holds with the following modification: we only require  to be defined as
 to be defined as  on the immediate left of
 on the immediate left of  (i.e., on some interval of the form
 (i.e., on some interval of the form  for
 for  and as
 and as  on the immediate right of
 on the immediate right of  (i.e., on some interval of the form
 (i.e., on some interval of the form  for
 for  ). Further, we only require that
). Further, we only require that  and
 and  be defined and differentiable on open intervals containing
 be defined and differentiable on open intervals containing  , not necessarily on all of
, not necessarily on all of  .
.