Differentiation rule for piecewise definition by interval: Difference between revisions

From Calculus
Line 41: Line 41:
<math>f(x) := \left\lbrace \begin{array}{rl} f_1(x), &  x < c \\ f_2(x), & c < x \le a_2 \\v, & x = c \end{array}\right.</math>
<math>f(x) := \left\lbrace \begin{array}{rl} f_1(x), &  x < c \\ f_2(x), & c < x \le a_2 \\v, & x = c \end{array}\right.</math>


Then, <math>f</math> is <math>k</math> times differentiable at <math>c</math> if we have ''all'' these conditions: <math>f_1(c) = f_2(c) = v</math>, <math>f_1'(c) = f_2'(c)</math>, <math>\dots</math>, <math>f_1^{(k)}(c) = f_2^{(k)}(c)</math>. In other words, the values should match, and the values of each of the derivatives up to the <math>k^{th}</math> derivative should match. In that case, the <math>k^{th}</math> derivative of <math>f</math> at math>c</math> equals the equal values <math>f_1^{(k)}(c) = f_2^{(k)}(c)</math>.
Then, <math>f</math> is <math>k</math> times differentiable at <math>c</math> if we have ''all'' these conditions: <math>\! f_1(c) = f_2(c) = v</math>, <math>\! f_1'(c) = f_2'(c)</math>, <math>\! \dots</math>, <math>f_1^{(k)}(c) = f_2^{(k)}(c)</math>. In other words, the values should match, and the values of each of the derivatives up to the <math>k^{th}</math> derivative should match. In that case, the <math>k^{th}</math> derivative of <math>f</math> at math>c</math> equals the equal values <math>f_1^{(k)}(c) = f_2^{(k)}(c)</math>.


The general piecewise definition of <math>f^{(k)}</math> is, in this case:
The general piecewise definition of <math>f^{(k)}</math> is, in this case:

Revision as of 20:42, 16 October 2011

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 f1 and f2 are functions of one variable, such that both of the functions are defined and differentiable everywhere. Consider a function f, defined as follows:

f(x):={f1(x),x<cf2(x),c<xv,x=c

Then, we have the following for continuity:

  • The left hand limit of f at c equals f1(c).
  • The right hand limit of f at c equals f2(c).
  • f is left continuous at c iff v=f1(c).
  • f is right continuous at c iff v=f2(c).
  • f is continuous at c iff f1(c)=f2(c)=v.

We have the following for differentiability:

  • f is left differentiable at c iff v=f1(c), and in this case, the left hand derivative equals f1(c).
  • f is right differentiable at c iff v=f2(c), and in this case, the right hand derivative equals f2(c).
  • f is differentiable at c iff (v=f1(c)=f2(c) and f1(c)=f2(c)), and in this case, the derivative equals the equal values f1(c) and f2(c).

Piecewise definition of derivative

If the conditions for differentiability at c are violated, we get the following piecewise definition for f, which excludes the point c from its domain:

f(x):={f1'(x),x<cf2'(x),x>c

If the conditions for differentiability at c are satisfied, we get the following piecewise definition for f, which includes the point c in its domain:

f(x):={f1'(x),x<cf2'(x),x>cu,x=c

where u=f1(c)=f2(c). In particular, the value at c can be included in either the left side or the right side definition.

Version for higher derivatives

Suppose f1 and f2 are functions of one variable, such that both of the functions are defined and k times differentiable everywhere (and hence in particular the functions and their first k1 derivatives are continuous), for some positive integer k. Consider the function:

f(x):={f1(x),x<cf2(x),c<xa2v,x=c

Then, f is k times differentiable at c if we have all these conditions: f1(c)=f2(c)=v, f1(c)=f2(c), , f1(k)(c)=f2(k)(c). In other words, the values should match, and the values of each of the derivatives up to the kth derivative should match. In that case, the kth derivative of f at math>c</math> equals the equal values f1(k)(c)=f2(k)(c).

The general piecewise definition of f(k) is, in this case:

f(k)(x):={f1(k)(x),x<cf2(k)(x),x>cuk,x=c

where uk=f1(k)(c)=f2(k)(c).

Local generalization

The above holds with the following modification: we only require f to be defined as f1 on the immediate left of c (i.e., on some interval of the form (cδ,c) for δ>0 and as f2 on the immediate right of c (i.e., on some interval of the form (c,c+δ) for δ>0). Further, we only require that f1 and f2 be defined and differentiable on open intervals containing c, not necessarily on all of R.