Difference between revisions of "The Derivative"

From Department of Mathematics at UTSA
Jump to navigation Jump to search
(Created page with "thumb|The [[graph of a function, drawn in black, and a tangent line to that graph, drawn in red. The slope of the tangent line is equa...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[File:Tangent to a curve.svg|thumb|The [[graph of a function]], drawn in black, and a [[tangent line]] to that graph, drawn in red.  The [[slope]] of the tangent line is equal to the derivative of the function at the marked point.]]
+
[[File:Tangent to a curve.svg|thumb|The graph of a function, drawn in black, and a tangent line to that graph, drawn in red.  The slope of the tangent line is equal to the derivative of the function at the marked point.]]
{{Calculus |differential}}
 
  
In [[mathematics]], the '''derivative''' of a [[function of a real variable]] measures the sensitivity to change of the function value (output value) with respect to a change in its [[Argument of a function|argument]] (input value). Derivatives are a fundamental tool of [[calculus]]. For example, the derivative of the position of a moving object with respect to [[time]] is the object's [[velocity]]: this measures how quickly the position of the object changes when time advances.
+
In mathematics, the '''derivative''' of a function of a real variable measures the sensitivity to change of the function value (output value) with respect to a change in its argument (input value). Derivatives are a fundamental tool of calculus. For example, the derivative of the position of a moving object with respect to time is the object's velocity: this measures how quickly the position of the object changes when time advances.
  
The derivative of a function of a single variable at a chosen input value, when it exists, is the [[slope]] of the [[Tangent|tangent line]] to the [[graph of a function|graph of the function]] at that point. The tangent line is the best [[linear approximation]] of the function near that input value. For this reason, the derivative is often described as the "instantaneous rate of change", the ratio of the instantaneous change in the dependent variable to that of the independent variable.
+
The derivative of a function of a single variable at a chosen input value, when it exists, is the slope of the tangent line to the graph of the function at that point. The tangent line is the best linear approximation of the function near that input value. For this reason, the derivative is often described as the "instantaneous rate of change", the ratio of the instantaneous change in the dependent variable to that of the independent variable.
  
Derivatives can be generalized to [[function of several real variables|functions of several real variables]]. In this generalization, the derivative is reinterpreted as a [[linear transformation]] whose graph is (after an appropriate translation) the best linear approximation to the graph of the original function. The [[Jacobian matrix]] is the [[matrix (mathematics)|matrix]] that represents this [[linear transformation]] with respect to the basis given by the choice of independent and dependent variables. It can be calculated in terms of the [[partial derivative]]s with respect to the independent variables. For a [[real-valued function]] of several variables, the Jacobian matrix reduces to the [[gradient vector]].
+
Derivatives can be generalized to functions of several real variables. In this generalization, the derivative is reinterpreted as a linear transformation whose graph is (after an appropriate translation) the best linear approximation to the graph of the original function. The Jacobian matrix is the matrix that represents this linear transformation with respect to the basis given by the choice of independent and dependent variables. It can be calculated in terms of the partial derivatives with respect to the independent variables. For a real-valued function of several variables, the Jacobian matrix reduces to the gradient vector.
  
The process of finding a derivative is called '''differentiation'''. The reverse process is called ''[[antiderivative|antidifferentiation]]''. The [[fundamental theorem of calculus]] relates antidifferentiation with [[integral|integration]]. Differentiation and integration constitute the two fundamental operations in single-variable calculus.{{#tag:ref|Differential calculus, as discussed in this article, is a very well established mathematical discipline for which there are many sources. See Apostol 1967, Apostol 1969, and Spivak 1994.|group=Note}}
+
The process of finding a derivative is called differentiation. The reverse process is called ''antidifferentiation''. The fundamental theorem of calculus relates antidifferentiation with integration. Differentiation and integration constitute the two fundamental operations in single-variable calculus.
  
 
==Definition==
 
==Definition==
A [[function of a real variable]] {{math|1=''y'' = ''f''(''x'')}} is ''differentiable'' at a point {{mvar|a}} of its [[domain of a function|domain]], if its domain contains an [[open interval]] {{mvar|I}} containing {{mvar|a}}, and the [[limit (mathematics)|limit]]
+
A function of a real variable {{math|1=''y'' = ''f''(''x'')}} is ''differentiable'' at a point {{mvar|a}} of its domain, if its domain contains an open interval {{mvar|I}} containing {{mvar|a}}, and the limit
 
:<math>L=\lim_{h \to 0}\frac{f(a+h)-f(a)}h </math>
 
:<math>L=\lim_{h \to 0}\frac{f(a+h)-f(a)}h </math>
exists. This means that, for every positive [[real number]] <math>\varepsilon</math> (even very small), there exists a positive real number <math>\delta</math> such that, for every {{mvar|h}} such that <math>|h| < \delta</math> and <math>h\ne 0</math> then <math>f(a+h)</math> is defined, and  
+
exists. This means that, for every positive real number <math>\varepsilon</math> (even very small), there exists a positive real number <math>\delta</math> such that, for every {{mvar|h}} such that <math>|h| < \delta</math> and <math>h\ne 0</math> then <math>f(a+h)</math> is defined, and  
 
:<math>\left|L-\frac{f(a+h)-f(a)}h\right|<\varepsilon,</math>
 
:<math>\left|L-\frac{f(a+h)-f(a)}h\right|<\varepsilon,</math>
where the vertical bars denote the [[absolute value]] (see [[(ε, δ)-definition of limit]]).
+
where the vertical bars denote the absolute value (see (ε, δ)-definition of limit).
  
If the function {{mvar|f}} is differentiable at {{mvar|a}}, that is if the limit {{mvar|L}} exists, then this limit is called the ''derivative'' of {{mvar|f}} at {{mvar|a}}, and denoted <math>f'(a)</math> (read as "{{math|''f''}} prime of {{math|''a''}}") or <math DISPLAY=inline>\frac{df}{dx}(a)</math> (read as "the derivative of {{math|''f''}} with respect to {{math|''x''}} at {{mvar|a}}", "{{math|''dy''}} by {{math|''dx''}} at {{mvar|a}}", or "{{math|''dy''}} over {{math|''dx''}} at {{mvar|a}}"); see {{slink||Notation (details)}}, below.
+
If the function {{mvar|f}} is differentiable at {{mvar|a}}, that is if the limit {{mvar|L}} exists, then this limit is called the ''derivative'' of {{mvar|f}} at {{mvar|a}}, and denoted <math>f'(a)</math> (read as "{{math|''f''}} prime of {{math|''a''}}") or <math DISPLAY=inline>\frac{df}{dx}(a)</math> (read as "the derivative of {{math|''f''}} with respect to {{math|''x''}} at {{mvar|a}}", "{{math|''dy''}} by {{math|''dx''}} at {{mvar|a}}", or "{{math|''dy''}} over {{math|''dx''}} at {{mvar|a}}"); see Notation (details), below.
  
 
==Explanations==
 
==Explanations==
{{textbook|date=June 2021}}
 
  
''Differentiation'' is the action of computing a derivative. The derivative of a [[function (mathematics)|function]] {{math|1=''y'' = ''f''(''x'')}} of a variable {{math|''x''}} is a measure of the rate at which the value {{math|''y''}} of the function changes with respect to the change of the variable {{math|''x''}}. It is called the ''derivative'' of {{math|''f''}} with respect to {{math|''x''}}. If {{math|''x''}} and {{math|''y''}} are [[real number]]s, and if the [[graph of a function|graph]] of {{math|''f''}} is plotted against {{math|''x''}}, derivative is the [[slope]] of this graph at each point.
+
''Differentiation'' is the action of computing a derivative. The derivative of a function {{math|1=''y'' = ''f''(''x'')}} of a variable {{math|''x''}} is a measure of the rate at which the value {{math|''y''}} of the function changes with respect to the change of the variable {{math|''x''}}. It is called the ''derivative'' of {{math|''f''}} with respect to {{math|''x''}}. If {{math|''x''}} and {{math|''y''}} are real numbers, and if the graph of {{math|''f''}} is plotted against {{math|''x''}}, derivative is the slope of this graph at each point.
  
 
[[File:Wiki slope in 2d.svg|right|thumb|250px|Slope of a linear function: <math>m=\frac{\Delta y}{\Delta x}</math>]]
 
[[File:Wiki slope in 2d.svg|right|thumb|250px|Slope of a linear function: <math>m=\frac{\Delta y}{\Delta x}</math>]]
The simplest case, apart from the trivial case of a [[constant function]], is when {{math|''y''}} is a [[linear function]] of {{math|''x''}}, meaning that the graph of {{math|''y''}} is a line. In this case, {{math|''y'' {{=}} ''f''(''x'') {{=}} ''mx'' + ''b''}}, for real numbers {{math|''m''}} and {{math|''b''}}, and the slope {{math|''m''}} is given by
+
The simplest case, apart from the trivial case of a constant function, is when {{math|''y''}} is a linear function of {{math|''x''}}, meaning that the graph of {{math|''y''}} is a line. In this case, <math>y = f(x) = mx + b</math>, for real numbers {{math|''m''}} and {{math|''b''}}, and the slope {{math|''m''}} is given by
 
:<math>m=\frac{\text{change in } y}{\text{change in } x} = \frac{\Delta y}{\Delta x},</math>
 
:<math>m=\frac{\text{change in } y}{\text{change in } x} = \frac{\Delta y}{\Delta x},</math>
where the symbol {{math|Δ}} ([[Delta (letter)|Delta]]) is an abbreviation for "change in", and  the combinations <math>\Delta x</math> and <math>\Delta y</math> refer to corresponding changes, i.e.
+
where the symbol {{math|Δ}} (Delta) is an abbreviation for "change in", and  the combinations <math>\Delta x</math> and <math>\Delta y</math> refer to corresponding changes, i.e.
 
:<math>\Delta y = f(x + \Delta x)- f(x)</math>.  
 
:<math>\Delta y = f(x + \Delta x)- f(x)</math>.  
 
The above formula holds because
 
The above formula holds because
Line 42: Line 40:
 
If the function {{math|''f''}} is not linear (i.e. its graph is not a straight line), then the change in {{math|''y''}} divided by the change in {{math|''x''}} varies over the considered range: differentiation is a method to find a unique value for this rate of change, not across a certain range <math>(\Delta x),</math> but at any given value of {{math|''x''}}.
 
If the function {{math|''f''}} is not linear (i.e. its graph is not a straight line), then the change in {{math|''y''}} divided by the change in {{math|''x''}} varies over the considered range: differentiation is a method to find a unique value for this rate of change, not across a certain range <math>(\Delta x),</math> but at any given value of {{math|''x''}}.
  
{{multiple image
+
<div style="text-align: center;">'''Rate of change as a limit value'''</div>
| align     = right
+
<gallery widths="250">
| direction = vertical
+
File:Tangent-calculus.svg|'''Figure 1'''. The tangent line at (''x'', ''f''(''x''))
| width    = 250
+
File:Secant-calculus.svg|'''Figure 2.''' The secant to curve ''y''= ''f''(''x'') determined by points <math>(x, f(x))</math> and <math>(x + h, f(x + h))</math>
| header    = Rate of change as a limit value
+
File:Lim-secant.svg|'''Figure 3.''' The tangent line as limit of secants
| image1    = Tangent-calculus.svg
+
File:Derivative GIF.gif|'''Figure 4.''' Animated illustration: the tangent line (derivative) as the limit of secants
| caption1  = '''Figure 1'''. The [[tangent]] line at (''x'', ''f''(''x''))
+
</gallery>
| image2    = Secant-calculus.svg
 
| caption2  = '''Figure 2.''' The [[Secant line|secant]] to curve ''y''= ''f''(''x'') determined by points (''x'', ''f''(''x'')) and {{nowrap|(''x'' + ''h'', ''f''(''x'' + ''h''))}}
 
| image3  = Lim-secant.svg
 
| caption3  = '''Figure 3.''' The tangent line as limit of secants
 
| image4  = Derivative GIF.gif
 
| caption4  = '''Figure 4.''' Animated illustration: the tangent line (derivative) as the limit of secants
 
}}
 
  
The idea, illustrated by Figures 1 to 3, is to compute the rate of change as the [[limit of a function|limit value]] of the [[difference quotient|ratio of the differences]] {{math|Δ''y'' / Δ''x''}} as {{math|Δ''x''}} tends towards 0.
+
The idea, illustrated by Figures 1 to 3, is to compute the rate of change as the limit value of the ratio of the differences {{math|Δ''y'' / Δ''x''}} as {{math|Δ''x''}} tends towards 0.
  
 
===Toward a definition===
 
===Toward a definition===
 
[[File:Tangent animation.gif|thumb|250px|A secant approaches a tangent when <math>\Delta x \to 0</math>.]]
 
[[File:Tangent animation.gif|thumb|250px|A secant approaches a tangent when <math>\Delta x \to 0</math>.]]
The most common approach to turn this intuitive idea into a precise definition is to define the derivative as a [[limit (mathematics)|limit]] of difference quotients of real numbers.<ref>Spivak 1994, chapter 10.</ref>  This is the approach described below.
+
The most common approach to turn this intuitive idea into a precise definition is to define the derivative as a limit of difference quotients of real numbers. This is the approach described below.
  
Let {{math|''f''}} be a real valued function defined in an [[open neighborhood]] of a real number {{math|''a''}}.  In classical geometry, the tangent line to the graph of the function {{math|''f''}} at {{math|''a''}} was the unique line through the point {{math|(''a'', ''f''(''a''))}} that did ''not'' meet the graph of {{math|''f''}} [[transversality (mathematics)|transversally]], meaning that the line did not pass straight through the graph.  The derivative of {{math|''y''}} with respect to {{math|''x''}} at {{math|''a''}} is, geometrically, the slope of the tangent line to the graph of {{math|''f''}} at {{math|(''a'', ''f''(''a''))}}.  The slope of the tangent line is very close to the slope of the line through {{math|(''a'', ''f''(''a''))}} and a nearby point on the graph, for example {{math|(''a'' + ''h'', ''f''(''a'' + ''h''))}}.  These lines are called [[secant line]]s.  A value of {{math|''h''}} close to zero gives a good approximation to the slope of the tangent line, and smaller values (in [[absolute value]]) of {{math|''h''}} will, in general, give better [[approximation]]s.  The slope {{math|''m''}} of the secant line is the difference between the {{math|''y''}} values of these points divided by the difference between the {{math|''x''}} values, that is,  
+
Let {{math|''f''}} be a real valued function defined in an open neighborhood of a real number {{math|''a''}}.  In classical geometry, the tangent line to the graph of the function {{math|''f''}} at {{math|''a''}} was the unique line through the point {{math|(''a'', ''f''(''a''))}} that did ''not'' meet the graph of {{math|''f''}} transversally, meaning that the line did not pass straight through the graph.  The derivative of {{math|''y''}} with respect to {{math|''x''}} at {{math|''a''}} is, geometrically, the slope of the tangent line to the graph of {{math|''f''}} at {{math|(''a'', ''f''(''a''))}}.  The slope of the tangent line is very close to the slope of the line through {{math|(''a'', ''f''(''a''))}} and a nearby point on the graph, for example {{math|(''a'' + ''h'', ''f''(''a'' + ''h''))}}.  These lines are called secant lines.  A value of {{math|''h''}} close to zero gives a good approximation to the slope of the tangent line, and smaller values (in absolute value) of {{math|''h''}} will, in general, give better approximations.  The slope {{math|''m''}} of the secant line is the difference between the {{math|''y''}} values of these points divided by the difference between the {{math|''x''}} values, that is,  
 
:<math>m = \frac{\Delta f(a)}{\Delta a} = \frac{f(a+h)-f(a)}{(a+h)-(a)} = \frac{f(a+h)-f(a)}{h}.</math>
 
:<math>m = \frac{\Delta f(a)}{\Delta a} = \frac{f(a+h)-f(a)}{(a+h)-(a)} = \frac{f(a+h)-f(a)}{h}.</math>
  
This expression is [[Isaac Newton|Newton]]'s [[difference quotient]].  Passing from an approximation to an exact answer is done using a [[limit of a function|limit]].  Geometrically, the limit of the secant lines is the tangent line.  Therefore, the limit of the difference quotient as {{math|''h''}} approaches zero, if it exists, should represent the slope of the tangent line to {{math|(''a'', ''f''(''a''))}}.  This limit is defined to be the derivative of the function {{math|''f''}} at {{math|''a''}}:
+
This expression is Newton's difference quotient.  Passing from an approximation to an exact answer is done using a limit.  Geometrically, the limit of the secant lines is the tangent line.  Therefore, the limit of the difference quotient as {{math|''h''}} approaches zero, if it exists, should represent the slope of the tangent line to {{math|(''a'', ''f''(''a''))}}.  This limit is defined to be the derivative of the function {{math|''f''}} at {{math|''a''}}:
  
 
:<math>f'(a)=\lim_{h\to 0}\frac{f(a+h)-f(a)}{h}.</math>
 
:<math>f'(a)=\lim_{h\to 0}\frac{f(a+h)-f(a)}{h}.</math>
  
When the limit exists, {{math|''f''}} is said to be ''[[differentiable]]'' at {{math|''a''}}.  Here {{math|''f''{{′}}(''a'')}} is one of several common notations for the derivative ([[Derivative#Notations for differentiation|see below]]). From this definition it is obvious that a differentiable function  {{Math|''f''}} is [[increasing]] if and only if its derivative is positive, and is decreasing [[If and only if|iff]] its derivative is negative. This fact is used extensively when analyzing function behavior, e.g. when finding [[Maxima and minima|local extrema]].
+
When the limit exists, {{math|''f''}} is said to be ''differentiable'' at {{math|''a''}}.  Here ''f'''(''a'') is one of several common notations for the derivative (see below). From this definition it is obvious that a differentiable function  {{Math|''f''}} is increasing if and only if its derivative is positive, and is decreasing if and only if its derivative is negative. This fact is used extensively when analyzing function behavior, e.g. when finding local extrema.
  
 
Equivalently, the derivative satisfies the property that
 
Equivalently, the derivative satisfies the property that
 
:<math>\lim_{h\to 0}\frac{f(a+h) - (f(a) + f'(a)\cdot h)}{h} = 0,</math>
 
:<math>\lim_{h\to 0}\frac{f(a+h) - (f(a) + f'(a)\cdot h)}{h} = 0,</math>
which has the intuitive interpretation (see Figure 1) that the tangent line to {{math|''f''}} at {{math|''a''}} gives the ''best [[linear]] approximation''
+
which has the intuitive interpretation (see Figure 1) that the tangent line to {{math|''f''}} at {{math|''a''}} gives the ''best linear approximation''
 
:<math>f(a+h) \approx f(a) + f'(a)h</math>
 
:<math>f(a+h) \approx f(a) + f'(a)h</math>
to {{math|''f''}} near {{math|''a''}} (i.e., for small {{math|''h''}}). This interpretation is the easiest to generalize to other settings ([[Derivative#Total derivative, total differential and Jacobian matrix|see below]]).
+
to {{math|''f''}} near {{math|''a''}} (i.e., for small {{math|''h''}}). This interpretation is the easiest to generalize to other settings (see below).
  
[[Substitution property of equality|Substituting]] 0 for {{math|''h''}} in the difference quotient causes [[division by zero]], so the slope of the tangent line cannot be found directly using this method.  Instead, define {{math|''Q''(''h'')}} to be the difference quotient as a function of {{math|''h''}}:
+
Substituting 0 for {{math|''h''}} in the difference quotient causes division by zero, so the slope of the tangent line cannot be found directly using this method.  Instead, define {{math|''Q''(''h'')}} to be the difference quotient as a function of {{math|''h''}}:
  
 
:<math>Q(h) = \frac{f(a + h) - f(a)}{h}.</math>
 
:<math>Q(h) = \frac{f(a + h) - f(a)}{h}.</math>
  
{{math|''Q''(''h'')}} is the slope of the secant line between {{math|(''a'', ''f''(''a''))}} and {{math|(''a'' + ''h'', ''f''(''a'' + ''h''))}}.  If {{math|''f''}} is a [[continuous function]], meaning that its graph is an unbroken curve with no gaps, then {{math|''Q''}} is a continuous function away from {{math|''h'' {{=}} 0}}.  If the limit {{math|lim{{sub|''h''→0}}''Q''(''h'')}} exists, meaning that there is a way of choosing a value for {{math|''Q''(0)}} that makes {{math|''Q''}} a continuous function, then the function {{math|''f''}} is differentiable at {{math|''a''}}, and its derivative at {{math|''a''}} equals {{math|''Q''(0)}}.
+
{{math|''Q''(''h'')}} is the slope of the secant line between {{math|(''a'', ''f''(''a''))}} and {{math|(''a'' + ''h'', ''f''(''a'' + ''h''))}}.  If {{math|''f''}} is a continuous function, meaning that its graph is an unbroken curve with no gaps, then {{math|''Q''}} is a continuous function away from {{math|''h''}} = 0.  If the limit <math>\lim_{h\to0} Q(h)</math> exists, meaning that there is a way of choosing a value for {{math|''Q''(0)}} that makes {{math|''Q''}} a continuous function, then the function {{math|''f''}} is differentiable at {{math|''a''}}, and its derivative at {{math|''a''}} equals {{math|''Q''(0)}}.
  
In practice, the existence of a continuous extension of the difference quotient {{math|''Q''(''h'')}} to {{math|''h'' {{=}} 0}} is shown by modifying the numerator to cancel {{math|''h''}} in the denominator. Such manipulations can make the limit value of {{math|''Q''}} for small {{math|''h''}} clear even though {{math|''Q''}} is still not defined at {{math|''h'' {{=}} 0}}. This process can be long and tedious for complicated functions, and many shortcuts are commonly used to simplify the process.
+
In practice, the existence of a continuous extension of the difference quotient {{math|''Q''(''h'')}} to {{math|''h''}} = 0 is shown by modifying the numerator to cancel {{math|''h''}} in the denominator. Such manipulations can make the limit value of {{math|''Q''}} for small {{math|''h''}} clear even though {{math|''Q''}} is still not defined at {{math|''h''}} = 0. This process can be long and tedious for complicated functions, and many shortcuts are commonly used to simplify the process.
  
 
===Example===
 
===Example===
 
[[File:Parabola2.svg|thumb|The square function]]
 
[[File:Parabola2.svg|thumb|The square function]]
The square function given by {{math|''f''(''x'') {{=}} ''x''<sup>2</sup>}} is differentiable at {{math|''x'' {{=}} 3}}, and its derivative there is 6. This result is established by calculating the limit as {{math|''h''}} approaches zero of the difference quotient of {{math|''f''(3)}}:
+
The square function given by {{math|''f''(''x'')}} = {{math|''x''<sup>2</sup>}} is differentiable at {{math|''x''}} = 3, and its derivative there is 6. This result is established by calculating the limit as {{math|''h''}} approaches zero of the difference quotient of {{math|''f''(3)}}:
  
 
:<math>
 
:<math>
Line 97: Line 88:
 
</math>
 
</math>
  
The last expression shows that the difference quotient equals {{math|6 + ''h''}} when {{math|''h'' ≠ 0}} and is undefined when {{math|''h'' {{=}} 0}}, because of the definition of the difference quotient.  However, the definition of the limit says the difference quotient does not need to be defined when {{math|''h'' {{=}} 0}}.  The limit is the result of letting {{math|''h''}} go to zero, meaning it is the value that {{math|6 + ''h''}} tends to as {{math|''h''}} becomes very small:
+
The last expression shows that the difference quotient equals {{math|6 + ''h''}} when {{math|''h'' ≠ 0}} and is undefined when {{math|''h''}} = 0, because of the definition of the difference quotient.  However, the definition of the limit says the difference quotient does not need to be defined when {{math|''h''}} = 0.  The limit is the result of letting {{math|''h''}} go to zero, meaning it is the value that {{math|6 + ''h''}} tends to as {{math|''h''}} becomes very small:
  
 
:<math> \lim_{h\to 0}{(6 + h)} = 6 + 0 = 6. </math>
 
:<math> \lim_{h\to 0}{(6 + h)} = 6 + 0 = 6. </math>
  
Hence the slope of the graph of the square function at the point {{math|(3, 9)}} is {{math|6}}, and so its derivative at {{math|''x'' {{=}} 3}} is {{math|''f''{{′}}(3) {{=}} 6}}.
+
Hence the slope of the graph of the square function at the point {{math|(3, 9)}} is {{math|6}}, and so its derivative at {{math|''x''}} = 3 is <math>f'(3) = 6 </math>.
  
More generally, a similar computation shows that the derivative of the square function at {{math|''x'' {{=}} ''a''}} is {{math|''f''{{′}}(''a'') {{=}} 2''a''}}:
+
More generally, a similar computation shows that the derivative of the square function at {{math|''x''}} = ''a'' is <math>f'(a) = 2a</math>:
  
 
:<math>\begin{align}
 
:<math>\begin{align}
Line 113: Line 104:
 
==Continuity and differentiability==
 
==Continuity and differentiability==
  
[[File:Right-continuous.svg|thumb|right|This function does not have a derivative at the marked point, as the function is not continuous there (specifically, it has a [[jump discontinuity]]).]]
+
[[File:Right-continuous.svg|thumb|right|This function does not have a derivative at the marked point, as the function is not continuous there (specifically, it has a jump discontinuity).]]
  
If {{math|''f''}} is [[differentiable]] at {{math|''a''}}, then {{math|''f''}} must also be [[continuous function|continuous]] at {{math|''a''}}.  As an example, choose a point {{math|''a''}} and let {{math|''f''}} be the [[step function]] that returns the value 1 for all {{math|''x''}} less than {{math|''a''}}, and returns a different value 10 for all {{math|''x''}} greater than or equal to {{math|''a''}}.  {{math|''f''}} cannot have a derivative at {{math|''a''}}.  If {{math|''h''}} is negative, then {{math|''a'' + ''h''}} is on the low part of the step, so the secant line from {{math|''a''}} to {{math|''a'' + ''h''}} is very steep, and as {{math|''h''}} tends to zero the slope tends to infinity.  If {{math|''h''}} is positive, then {{math|''a'' + ''h''}} is on the high part of the step, so the secant line from {{math|''a''}} to {{math|''a'' + ''h''}} has slope zero.  Consequently, the secant lines do not approach any single slope, so the limit of the difference quotient does not exist.
+
If {{math|''f''}} is differentiable at {{math|''a''}}, then {{math|''f''}} must also be continuous at {{math|''a''}}.  As an example, choose a point {{math|''a''}} and let {{math|''f''}} be the step function that returns the value 1 for all {{math|''x''}} less than {{math|''a''}}, and returns a different value 10 for all {{math|''x''}} greater than or equal to {{math|''a''}}.  {{math|''f''}} cannot have a derivative at {{math|''a''}}.  If {{math|''h''}} is negative, then {{math|''a'' + ''h''}} is on the low part of the step, so the secant line from {{math|''a''}} to {{math|''a'' + ''h''}} is very steep, and as {{math|''h''}} tends to zero the slope tends to infinity.  If {{math|''h''}} is positive, then {{math|''a'' + ''h''}} is on the high part of the step, so the secant line from {{math|''a''}} to {{math|''a'' + ''h''}} has slope zero.  Consequently, the secant lines do not approach any single slope, so the limit of the difference quotient does not exist.
  
[[File:Absolute value.svg|right|thumb|The absolute value function is continuous, but fails to be differentiable at {{math|''x'' {{=}} 0}} since the tangent slopes do not approach the same value from the left as they do from the right.]]
+
[[File:Absolute value.svg|right|thumb|The absolute value function is continuous, but fails to be differentiable at <math>x = 0</math> since the tangent slopes do not approach the same value from the left as they do from the right.]]
  
However, even if a function is continuous at a point, it may not be differentiable there.  For example, the [[absolute value]] function given by {{math|''f''(''x'') {{=}} {{abs|''x''}} }} is continuous at {{math|''x'' {{=}} 0}}, but it is not differentiable there.  If {{math|''h''}} is positive, then the slope of the secant line from 0 to {{math|''h''}} is one, whereas if {{math|''h''}} is negative, then the slope of the secant line from 0 to {{math|''h''}} is negative one.  This can be seen graphically as a "kink" or a "cusp" in the graph at {{math|''x'' {{=}} 0}}.  Even a function with a smooth graph is not differentiable at a point where its [[Vertical tangent|tangent is vertical]]: For instance, the function given by {{math|''f''(''x'') {{=}} ''x''<sup>1/3</sup>}} is not differentiable at {{math|''x'' {{=}} 0}}.
+
However, even if a function is continuous at a point, it may not be differentiable there.  For example, the absolute value function given by {{math|''f''(''x'')}} = |''x''| is continuous at {{math|''x''}} = 0, but it is not differentiable there.  If {{math|''h''}} is positive, then the slope of the secant line from 0 to {{math|''h''}} is one, whereas if {{math|''h''}} is negative, then the slope of the secant line from 0 to {{math|''h''}} is negative one.  This can be seen graphically as a "kink" or a "cusp" in the graph at {{math|''x''}} = 0.  Even a function with a smooth graph is not differentiable at a point where its tangent is vertical: For instance, the function given by {{math|''f''(''x'')}} = {{math|''x''<sup>1/3</sup>}} is not differentiable at {{math|''x''}} = 0.
  
 
In summary, a function that has a derivative is continuous, but there are continuous functions that do not have a derivative.
 
In summary, a function that has a derivative is continuous, but there are continuous functions that do not have a derivative.
  
Most functions that occur in practice have derivatives at all points or at [[Almost everywhere|almost every]] point.  Early in the [[history of calculus]], many mathematicians assumed that a continuous function was differentiable at most points.  Under mild conditions, for example if the function is a [[monotone function]] or a [[Lipschitz function]], this is true.  However, in 1872 Weierstrass found the first example of a function that is continuous everywhere but differentiable nowhere.  This example is now known as the [[Weierstrass function]].  In 1931, [[Stefan Banach]] proved that the set of functions that have a derivative at some point is a [[meager set]] in the space of all continuous functions.<ref>{{Citation|author=Banach, S.|title=Uber die Baire'sche Kategorie gewisser Funktionenmengen|journal=Studia Math.|issue=3|year=1931|volume=3|pages=174–179|doi=10.4064/sm-3-1-174-179|postscript=.|url=https://scholar.google.com/scholar?output=instlink&q=info:SkKdCEmUd6QJ:scholar.google.com/&hl=en&as_sdt=0,50&scillfp=3432975470163241186&oi=lle|doi-access=free}}.  Cited by {{Citation|author1=Hewitt, E |author2=Stromberg, K|title=Real and abstract analysis|publisher=Springer-Verlag|year=1963|pages=Theorem 17.8|no-pp=true}}</ref> Informally, this means that hardly any random continuous functions have a derivative at even one point.
+
Most functions that occur in practice have derivatives at all points or at almost every point.  Early in the history of calculus, many mathematicians assumed that a continuous function was differentiable at most points.  Under mild conditions, for example if the function is a monotone function or a Lipschitz function, this is true.  However, in 1872 Weierstrass found the first example of a function that is continuous everywhere but differentiable nowhere.  This example is now known as the Weierstrass function.  In 1931, Stefan Banach proved that the set of functions that have a derivative at some point is a meager set in the space of all continuous functions. Informally, this means that hardly any random continuous functions have a derivative at even one point.
  
==Derivative as a function== <!-- Removing "The derivative as a" completely changes the meaning -->
+
==Derivative as a function==  
 
[[File:Tangent function animation.gif|thumb|The derivative at different points of a differentiable function. In this case, the derivative is equal to:<math>\sin \left(x^2\right) + 2x^2 \cos\left(x^2\right)</math>]]
 
[[File:Tangent function animation.gif|thumb|The derivative at different points of a differentiable function. In this case, the derivative is equal to:<math>\sin \left(x^2\right) + 2x^2 \cos\left(x^2\right)</math>]]
Let {{math|''f''}} be a function that has a derivative at every point in its [[domain of a function|domain]].  We can then define a function that maps every point {{mvar|x}} to the value of the derivative of {{mvar|f}} at {{mvar|x}}.  This function is written {{math|''f''{{′}}}} and is called the ''derivative function'' or the ''derivative of''  {{math|''f''}}.
+
Let {{math|''f''}} be a function that has a derivative at every point in its domain.  We can then define a function that maps every point {{mvar|x}} to the value of the derivative of {{mvar|f}} at {{mvar|x}}.  This function is written <math>f'</math> and is called the ''derivative function'' or the ''derivative of''  {{math|''f''}}.
  
Sometimes {{math|''f''}} has a derivative at most, but not all, points of its domain.  The function whose value at {{mvar|a}} equals {{math|''f''{{′}}(''a'')}} whenever {{math|''f''{{′}}(''a'')}} is defined and elsewhere is undefined is also called the derivative of {{math|''f''}}.  It is still a function, but its domain is strictly smaller than the domain of {{math|''f''}}.
+
Sometimes {{math|''f''}} has a derivative at most, but not all, points of its domain.  The function whose value at {{mvar|a}} equals <math>f'(a)</math> whenever <math>f'(a)</math> is defined and elsewhere is undefined is also called the derivative of {{math|''f''}}.  It is still a function, but its domain is strictly smaller than the domain of {{math|''f''}}.
  
Using this idea, differentiation becomes a function of functions: The derivative is an [[operator (mathematics)|operator]] whose domain is the set of all functions that have derivatives at every point of their domain and whose range is a set of functions.  If we denote this operator by {{math|''D''}}, then {{math|''D''(''f'')}} is the function {{math|''f''{{′}}}}.  Since {{math|''D''(''f'')}} is a function, it can be evaluated at a point {{mvar|a}}.  By the definition of the derivative function, {{math|''D''(''f'')(''a'') {{=}} ''f''{{′}}(''a'')}}.
+
Using this idea, differentiation becomes a function of functions: The derivative is an operator whose domain is the set of all functions that have derivatives at every point of their domain and whose range is a set of functions.  If we denote this operator by {{math|''D''}}, then {{math|''D''(''f'')}} is the function <math>f'</math>.  Since {{math|''D''(''f'')}} is a function, it can be evaluated at a point {{mvar|a}}.  By the definition of the derivative function, <math>D(f)(a) = f'(a)</math>.
  
For comparison, consider the doubling function given by {{math|''f''(''x'') {{=}} 2''x''}}; {{math|''f''}} is a real-valued function of a real number, meaning that it takes numbers as inputs and has numbers as outputs:
+
For comparison, consider the doubling function given by {{math|''f''(''x'')}} = {{math|2''x''}}; {{math|''f''}} is a real-valued function of a real number, meaning that it takes numbers as inputs and has numbers as outputs:
 
:<math>\begin{align}
 
:<math>\begin{align}
 
  1 &{}\mapsto 2,\\
 
  1 &{}\mapsto 2,\\
Line 145: Line 136:
 
  D\left(x \mapsto x^2\right) &= (x \mapsto 2\cdot x).
 
  D\left(x \mapsto x^2\right) &= (x \mapsto 2\cdot x).
 
\end{align}</math>
 
\end{align}</math>
Because the output of {{math|''D''}} is a function, the output of {{math|''D''}} can be evaluated at a point.  For instance, when {{math|''D''}} is applied to the square function, {{math|''x'' ↦ ''x''<sup>2</sup>}}, {{math|''D''}} outputs the doubling function {{math|''x'' ↦ 2''x''}}, which we named {{math|''f''(''x'')}}. This output function can then be evaluated to get {{math|''f''(1) {{=}} 2}}, {{math|''f''(2) {{=}} 4}}, and so on.
+
Because the output of {{math|''D''}} is a function, the output of {{math|''D''}} can be evaluated at a point.  For instance, when {{math|''D''}} is applied to the square function, {{math|''x'' ↦ ''x''<sup>2</sup>}}, {{math|''D''}} outputs the doubling function {{math|''x'' ↦ 2''x''}}, which we named {{math|''f''(''x'')}}. This output function can then be evaluated to get {{math|''f''(1)}} = 2, {{math|''f''(2)}} = 4, and so on.
  
=={{anchor|order of derivation}} Higher derivatives==
+
== Higher derivatives==
  
Let {{math|''f''}} be a differentiable function, and let {{math|''f'' ′}} be its derivative. The derivative of {{math|''f'' ′}} (if it has one) is written {{math|''f'' ′′}} and is called the ''[[second derivative]] of {{math|f}}''.  Similarly, the derivative of the second derivative, if it exists, is written {{math|''f'' ′′′}} and is called the ''[[third derivative]] of {{math|f}}''. Continuing this process, one can define, if it exists, the {{math|''n''}}th derivative as the derivative of the {{math|(''n''−1)}}th derivative. These repeated derivatives are called ''higher-order derivatives''. The {{math|''n''}}th derivative is also called the '''derivative of order {{math|''n''}}'''.
+
Let {{math|''f''}} be a differentiable function, and let {{math|''f'' ′}} be its derivative. The derivative of {{math|''f'' ′}} (if it has one) is written {{math|''f'' ′′}} and is called the ''second derivative of {{math|f}}''.  Similarly, the derivative of the second derivative, if it exists, is written {{math|''f'' ′′′}} and is called the ''third derivative of {{math|f}}''. Continuing this process, one can define, if it exists, the {{math|''n''}}th derivative as the derivative of the {{math|(''n''−1)}}th derivative. These repeated derivatives are called ''higher-order derivatives''. The {{math|''n''}}th derivative is also called the '''derivative of order {{math|''n''}}'''.
  
If {{math|''x''(''t'')}} represents the position of an object at time {{math|''t''}}, then the higher-order derivatives of {{math|''x''}} have specific interpretations in [[physics]]. The first derivative of {{math|''x''}} is the object's [[velocity]]. The second derivative of {{math|''x''}} is the [[acceleration]]. The third derivative of {{math|''x''}} is the [[jerk (physics)|jerk]]. And finally, the fourth through sixth derivatives of {{math|''x''}} are [[jounce|snap, crackle, and pop]]; most applicable to [[astrophysics]].
+
If {{math|''x''(''t'')}} represents the position of an object at time {{math|''t''}}, then the higher-order derivatives of {{math|''x''}} have specific interpretations in physics. The first derivative of {{math|''x''}} is the object's velocity. The second derivative of {{math|''x''}} is the acceleration. The third derivative of {{math|''x''}} is the jerk. And finally, the fourth through sixth derivatives of {{math|''x''}} are snap, crackle, and pop; most applicable to astrophysics.
  
 
A function {{math|''f''}} need not have a derivative (for example, if it is not continuous).  Similarly, even if {{math|''f''}} does have a derivative, it may not have a second derivative.  For example, let
 
A function {{math|''f''}} need not have a derivative (for example, if it is not continuous).  Similarly, even if {{math|''f''}} does have a derivative, it may not have a second derivative.  For example, let
Line 157: Line 148:
 
Calculation shows that {{math|''f''}} is a differentiable function whose derivative at <math>x</math> is given by
 
Calculation shows that {{math|''f''}} is a differentiable function whose derivative at <math>x</math> is given by
 
:<math>f'(x) = \begin{cases} +2x, & \text{if }x\ge 0 \\ -2x, & \text{if }x \le 0.\end{cases}</math>
 
:<math>f'(x) = \begin{cases} +2x, & \text{if }x\ge 0 \\ -2x, & \text{if }x \le 0.\end{cases}</math>
{{math|''f'''(''x'')}} is twice the absolute value function at <math>x</math>, and it does not have a derivative at zero. Similar examples show that a function can have a {{math|''k''}}th derivative for each non-negative integer {{math|''k''}} but not a {{math|(''k'' + 1)}}th derivative.  A function that has {{math|''k''}} successive derivatives is called ''{{math|k}} times differentiable''.  If in addition the {{math|''k''}}th derivative is continuous, then the function is said to be of [[differentiability class]] {{math|''C<sup>k</sup>''}}.  (This is a stronger condition than having {{math|''k''}} derivatives, as shown by the second example of {{slink|Smoothness|Examples}}.)  A function that has infinitely many derivatives is called ''infinitely differentiable'' or ''[[smoothness|smooth]]''.
+
{{math|''f'''(''x'')}} is twice the absolute value function at <math>x</math>, and it does not have a derivative at zero. Similar examples show that a function can have a {{math|''k''}}th derivative for each non-negative integer {{math|''k''}} but not a {{math|(''k'' + 1)}}th derivative.  A function that has {{math|''k''}} successive derivatives is called ''{{math|k}} times differentiable''.  If in addition the {{math|''k''}}th derivative is continuous, then the function is said to be of differentiability class {{math|''C<sup>k</sup>''}}.  (This is a stronger condition than having {{math|''k''}} derivatives.)  A function that has infinitely many derivatives is called ''infinitely differentiable'' or ''smooth''.
  
On the real line, every [[polynomial function]] is infinitely differentiable.  By standard [[differentiation rules]], if a polynomial of degree {{math|''n''}} is differentiated {{math|''n''}} times, then it becomes a [[constant function]].  All of its subsequent derivatives are identically zero.  In particular, they exist, so polynomials are smooth functions.
+
On the real line, every polynomial function is infinitely differentiable.  By standard differentiation rules, if a polynomial of degree {{math|''n''}} is differentiated {{math|''n''}} times, then it becomes a constant function.  All of its subsequent derivatives are identically zero.  In particular, they exist, so polynomials are smooth functions.
  
 
The derivatives of a function {{math|''f''}} at a point {{math|''x''}} provide polynomial approximations to that function near {{math|''x''}}. For example, if {{math|''f''}} is twice differentiable, then
 
The derivatives of a function {{math|''f''}} at a point {{math|''x''}} provide polynomial approximations to that function near {{math|''x''}}. For example, if {{math|''f''}} is twice differentiable, then
Line 165: Line 156:
 
in the sense that
 
in the sense that
 
:<math> \lim_{h\to 0}\frac{f(x+h) - f(x) - f'(x)h - \frac{1}{2} f''(x) h^2}{h^2} = 0.</math>
 
:<math> \lim_{h\to 0}\frac{f(x+h) - f(x) - f'(x)h - \frac{1}{2} f''(x) h^2}{h^2} = 0.</math>
If {{math|''f''}} is infinitely differentiable, then this is the beginning of the [[Taylor series]] for {{math|''f''}} evaluated at {{math|''x'' + ''h''}} around {{math|''x''}}.
+
If {{math|''f''}} is infinitely differentiable, then this is the beginning of the Taylor series for {{math|''f''}} evaluated at {{math|''x'' + ''h''}} around {{math|''x''}}.
  
 
===Inflection point===
 
===Inflection point===
{{Main|Inflection point}}
 
  
A point where the second derivative of a function changes sign is called an ''inflection point''.<ref>{{harvnb|Apostol|1967|loc=§4.18}}</ref> At an inflection point, the second derivative may be zero, as in the case of the inflection point {{math|''x'' {{=}} 0}} of the function given by <math>f(x) = x^3</math>, or it may fail to exist, as in the case of the inflection point {{math|''x'' {{=}} 0}} of the function given by <math>f(x) = x^\frac{1}{3}</math>. At an inflection point, a function switches from being a [[convex function]] to being a [[concave function]] or vice versa.
+
 
 +
A point where the second derivative of a function changes sign is called an ''inflection point''. At an inflection point, the second derivative may be zero, as in the case of the inflection point {{math|''x''}} = 0 of the function given by <math>f(x) = x^3</math>, or it may fail to exist, as in the case of the inflection point {{math|''x''}} = 0 of the function given by <math>f(x) = x^\frac{1}{3}</math>. At an inflection point, a function switches from being a convex function to being a concave function or vice versa.
  
 
==Notation (details)==
 
==Notation (details)==
{{Main|Notation for differentiation}}
+
 
  
 
===Leibniz's notation===
 
===Leibniz's notation===
{{Main|Leibniz's notation}}
 
  
The symbols <math>dx</math>, <math>dy</math>, and <math>\frac{dy}{dx}</math> were introduced by [[Gottfried Leibniz|Gottfried Wilhelm Leibniz]] in 1675.<ref>Manuscript of November 11, 1675 (Cajori vol. 2, page 204)</ref> It is still commonly used when the equation {{nowrap|1=''y'' = ''f''(''x'')}} is viewed as a functional relationship between [[dependent and independent variables]]. Then the first derivative is denoted by
+
 
 +
The symbols <math>dx</math>, <math>dy</math>, and <math>\frac{dy}{dx}</math> were introduced by Gottfried Wilhelm Leibniz in 1675. It is still commonly used when the equation ''y'' = ''f''(''x'') is viewed as a functional relationship between dependent and independent variables. Then the first derivative is denoted by
  
 
: <math>\frac{dy}{dx},\quad\frac{d f}{dx}, \text{  or  }\frac{d}{dx}f,</math>
 
: <math>\frac{dy}{dx},\quad\frac{d f}{dx}, \text{  or  }\frac{d}{dx}f,</math>
  
and was once thought of as an [[infinitesimal]] quotient.  Higher derivatives are expressed using the notation
+
and was once thought of as an infinitesimal quotient.  Higher derivatives are expressed using the notation
 +
 
  
<!-- In the following formula, the function is a lower-case f, not an upper case F.  Please do not change it.-->
 
 
: <math>\frac{d^ny}{dx^n},
 
: <math>\frac{d^ny}{dx^n},
 
\quad\frac{d^n f}{dx^n},
 
\quad\frac{d^n f}{dx^n},
Line 197: Line 188:
 
: <math>\left.\frac{dy}{dx}\right|_{x=a} = \frac{dy}{dx}(a).</math>
 
: <math>\left.\frac{dy}{dx}\right|_{x=a} = \frac{dy}{dx}(a).</math>
  
Leibniz's notation allows one to specify the variable for differentiation (in the denominator), which is relevant in [[partial derivative|partial differentiation]].  It also can be used to write the [[chain rule]] as{{#tag:ref|In the formulation of calculus in terms of limits, the ''du'' symbol has been assigned various meanings by various authors.  Some authors do not assign a meaning to ''du'' by itself, but only as part of the symbol ''du''/''dx''.  Others define ''dx'' as an independent variable, and define ''du'' by {{nowrap|1=''du'' = ''dx''⋅''f''{{′}}(''x'')}}.  In [[non-standard analysis]] ''du'' is defined as an infinitesimal. It is also interpreted as the [[exterior derivative]] of a function ''u''. See [[differential (infinitesimal)]] for further information.|group=Note}}
+
Leibniz's notation allows one to specify the variable for differentiation (in the denominator), which is relevant in partial differentiation.  It also can be used to write the chain rule as
 
 
 
: <math>\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx}.</math>
 
: <math>\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx}.</math>
  
 
===Lagrange's notation===
 
===Lagrange's notation===
Sometimes referred to as ''prime notation'',<ref>{{cite web|title=The Notation of Differentiation|url=http://web.mit.edu/wwmath/calculus/differentiation/notation.html|publisher=MIT|access-date=24 October 2012|year=1998}}</ref>  one of the most common modern notation for differentiation is due to [[Joseph-Louis Lagrange]] and uses the [[Prime (symbol)|prime mark]], so that the derivative of a function <math>f</math> is denoted <math>f'</math>. Similarly, the second and third derivatives are denoted
+
Sometimes referred to as ''prime notation'', one of the most common modern notation for differentiation is due to Joseph-Louis Lagrange and uses the prime mark, so that the derivative of a function <math>f</math> is denoted <math>f'</math>. Similarly, the second and third derivatives are denoted
 
:<math>(f')'=f''</math> &emsp; and &emsp; <math>(f'')'=f'''.</math>
 
:<math>(f')'=f''</math> &emsp; and &emsp; <math>(f'')'=f'''.</math>
To denote the number of derivatives beyond this point, some authors use Roman numerals in [[Subscript and superscript|superscript]], whereas others place the number in parentheses:
+
To denote the number of derivatives beyond this point, some authors use Roman numerals in superscript, whereas others place the number in parentheses:
 
:<math>f^{\mathrm{iv}}</math> &emsp; or &emsp; <math>f^{(4)}.</math>
 
:<math>f^{\mathrm{iv}}</math> &emsp; or &emsp; <math>f^{(4)}.</math>
 
The latter notation generalizes to yield the notation <math>f^{(n)}</math> for the ''n''th derivative of <math>f</math> – this notation is most useful when we wish to talk about the derivative as being a function itself, as in this case the Leibniz notation can become cumbersome.
 
The latter notation generalizes to yield the notation <math>f^{(n)}</math> for the ''n''th derivative of <math>f</math> – this notation is most useful when we wish to talk about the derivative as being a function itself, as in this case the Leibniz notation can become cumbersome.
  
 
===Newton's notation===
 
===Newton's notation===
[[Newton's notation]] for differentiation, also called the dot notation, places a dot over the function name to represent a time derivative.  If <math>y = f(t)</math>, then
+
Newton's notation for differentiation, also called the dot notation, places a dot over the function name to represent a time derivative.  If <math>y = f(t)</math>, then
 
:<math>\dot{y}</math> &emsp; and &emsp; <math>\ddot{y}</math>
 
:<math>\dot{y}</math> &emsp; and &emsp; <math>\ddot{y}</math>
denote, respectively, the first and second derivatives of <math>y</math>.  This notation is used exclusively for derivatives with respect to time or [[arc length]].  It is typically used in [[differential equation]]s in [[physics]] and [[differential geometry]].<ref>{{Cite book|title=Partial Differential Equations|last=Evans|first=Lawrence|publisher=American Mathematical Society|year=1999|isbn=0-8218-0772-2|pages=63}}</ref><ref>{{Cite book|title=Differential Geometry|last=Kreyszig|first=Erwin|publisher=Dover|year=1991|isbn=0-486-66721-9|location=New York|pages=1}}</ref>  The dot notation, however, becomes unmanageable for high-order derivatives (order 4 or more) and cannot deal with multiple independent variables.
+
denote, respectively, the first and second derivatives of <math>y</math>.  This notation is used exclusively for derivatives with respect to time or arc length.  It is typically used in differential equations in physics and differential geometry. The dot notation, however, becomes unmanageable for high-order derivatives (order 4 or more) and cannot deal with multiple independent variables.
  
 
===Euler's notation===
 
===Euler's notation===
[[Leonhard Euler|Euler]]'s notation uses a [[differential operator]] <math>D</math>, which is applied to a function <math>f</math> to give the first derivative <math>Df</math>. The ''n''th derivative is denoted <math>D^nf</math>.
+
Euler's notation uses a differential operator <math>D</math>, which is applied to a function <math>f</math> to give the first derivative <math>Df</math>. The ''n''th derivative is denoted <math>D^nf</math>.
  
If {{nowrap|1=''y'' = ''f''(''x'')}} is a dependent variable, then often the subscript ''x'' is attached to the ''D'' to clarify the independent variable ''x''.
+
If ''y'' = ''f''(''x'') is a dependent variable, then often the subscript ''x'' is attached to the ''D'' to clarify the independent variable ''x''.
 
Euler's notation is then written
 
Euler's notation is then written
 
:<math>D_x y</math> &emsp; or &emsp; <math>D_x f(x)</math>,
 
:<math>D_x y</math> &emsp; or &emsp; <math>D_x f(x)</math>,
 
although this subscript is often omitted when the variable ''x'' is understood, for instance when this is the only independent variable present in the expression.
 
although this subscript is often omitted when the variable ''x'' is understood, for instance when this is the only independent variable present in the expression.
  
Euler's notation is useful for stating and solving [[linear differential equation]]s.
+
Euler's notation is useful for stating and solving linear differential equations.
  
 
==Rules of computation==
 
==Rules of computation==
{{Main|Differentiation rules}}
+
 
 
The derivative of a function can, in principle, be computed from the definition by considering the difference quotient, and computing its limit. In practice, once the derivatives of a few simple functions are known, the derivatives of other functions are more easily computed using ''rules'' for obtaining derivatives of more complicated functions from simpler ones.
 
The derivative of a function can, in principle, be computed from the definition by considering the difference quotient, and computing its limit. In practice, once the derivatives of a few simple functions are known, the derivatives of other functions are more easily computed using ''rules'' for obtaining derivatives of more complicated functions from simpler ones.
  
Line 230: Line 220:
 
Here are the rules for the derivatives of the most common basic functions, where ''a'' is a real number.  
 
Here are the rules for the derivatives of the most common basic functions, where ''a'' is a real number.  
  
* ''[[Power rule|Derivatives of powers]]'':
+
* ''Derivatives of powers'':
 
*: <math> \frac{d}{dx}x^a = ax^{a-1}.</math>
 
*: <math> \frac{d}{dx}x^a = ax^{a-1}.</math>
<!--DO NOT ADD TO THIS LIST-->
+
 
* ''[[Exponential function|Exponential]] and [[logarithm]]ic functions'':
+
* ''Exponential and logarithmic functions'':
 
*: <math> \frac{d}{dx}e^x = e^x.</math>
 
*: <math> \frac{d}{dx}e^x = e^x.</math>
 
*: <math> \frac{d}{dx}a^x = a^x\ln(a),\qquad a > 0</math>
 
*: <math> \frac{d}{dx}a^x = a^x\ln(a),\qquad a > 0</math>
 
*: <math> \frac{d}{dx}\ln(x) = \frac{1}{x},\qquad x > 0.</math>
 
*: <math> \frac{d}{dx}\ln(x) = \frac{1}{x},\qquad x > 0.</math>
 
*: <math> \frac{d}{dx}\log_a(x) = \frac{1}{x\ln(a)},\qquad x, a > 0</math>
 
*: <math> \frac{d}{dx}\log_a(x) = \frac{1}{x\ln(a)},\qquad x, a > 0</math>
<!--DO NOT ADD TO THIS LIST-->
+
 
* ''[[Trigonometric functions]]'':
+
* ''Trigonometric functions'':
 
*: <math> \frac{d}{dx}\sin(x) = \cos(x).</math>
 
*: <math> \frac{d}{dx}\sin(x) = \cos(x).</math>
 
*: <math> \frac{d}{dx}\cos(x) = -\sin(x).</math>
 
*: <math> \frac{d}{dx}\cos(x) = -\sin(x).</math>
 
*: <math> \frac{d}{dx}\tan(x) = \sec^2(x) = \frac{1}{\cos^2(x)} = 1 + \tan^2(x).</math>
 
*: <math> \frac{d}{dx}\tan(x) = \sec^2(x) = \frac{1}{\cos^2(x)} = 1 + \tan^2(x).</math>
<!--DO NOT ADD TO THIS LIST-->
+
 
* ''[[Inverse trigonometric functions]]'':
+
* ''Inverse trigonometric functions'':
 
*: <math> \frac{d}{dx}\arcsin(x) = \frac{1}{\sqrt{1-x^2}},\qquad -1<x<1.</math>
 
*: <math> \frac{d}{dx}\arcsin(x) = \frac{1}{\sqrt{1-x^2}},\qquad -1<x<1.</math>
 
*: <math> \frac{d}{dx}\arccos(x)= -\frac{1}{\sqrt{1-x^2}},\qquad -1<x<1.</math>
 
*: <math> \frac{d}{dx}\arccos(x)= -\frac{1}{\sqrt{1-x^2}},\qquad -1<x<1.</math>
Line 250: Line 240:
 
<!--DO NOT ADD TO THIS LIST-->
 
<!--DO NOT ADD TO THIS LIST-->
  
==={{anchor|Rules}}Rules for combined functions===
+
===Rules for combined functions===
Here are some of the most basic rules for deducing the derivative of a [[function composition|compound function]] from derivatives of basic functions.  
+
Here are some of the most basic rules for deducing the derivative of a compound function from derivatives of basic functions.  
  
 
* ''Constant rule'': if ''f''(''x'') is constant, then
 
* ''Constant rule'': if ''f''(''x'') is constant, then
 
*: <math>f'(x) = 0. </math>
 
*: <math>f'(x) = 0. </math>
* ''[[Linearity of differentiation|Sum rule]]'':
+
* ''Sum rule'':
 
*: <math>(\alpha f + \beta g)' = \alpha f' + \beta g' </math> for all functions ''f'' and ''g'' and all real numbers ''<math>\alpha</math>'' and ''<math>\beta</math>''.
 
*: <math>(\alpha f + \beta g)' = \alpha f' + \beta g' </math> for all functions ''f'' and ''g'' and all real numbers ''<math>\alpha</math>'' and ''<math>\beta</math>''.
* ''[[Product rule]]'':
+
* ''Product rule'':
 
*: <math>(fg)' = f 'g + fg' </math> for all functions ''f'' and ''g''. As a special case, this rule includes the fact <math>(\alpha f)' = \alpha f'</math> whenever <math>\alpha</math> is a constant, because <math>\alpha' f = 0 \cdot f = 0</math> by the constant rule.
 
*: <math>(fg)' = f 'g + fg' </math> for all functions ''f'' and ''g''. As a special case, this rule includes the fact <math>(\alpha f)' = \alpha f'</math> whenever <math>\alpha</math> is a constant, because <math>\alpha' f = 0 \cdot f = 0</math> by the constant rule.
* ''[[Quotient rule]]'':
+
* ''Quotient rule'':
*: <math>\left(\frac{f}{g} \right)' = \frac{f'g - fg'}{g^2}</math>  for all functions ''f'' and ''g'' at all inputs where {{nowrap|''g'' ≠ 0}}.
+
*: <math>\left(\frac{f}{g} \right)' = \frac{f'g - fg'}{g^2}</math>  for all functions ''f'' and ''g'' at all inputs where ''g'' ≠ 0.
* ''[[Chain rule]]'' for composite functions: If <math>f(x) = h(g(x))</math>, then
+
* ''Chain rule'' for composite functions: If <math>f(x) = h(g(x))</math>, then
 
*: <math>f'(x) = h'(g(x)) \cdot g'(x). </math>
 
*: <math>f'(x) = h'(g(x)) \cdot g'(x). </math>
  
Line 278: Line 268:
 
</math>
 
</math>
  
Here the second term was computed using the [[chain rule]] and third using the [[product rule]]. The known derivatives of the elementary functions ''x''<sup>2</sup>, ''x''<sup>4</sup>, sin(''x''), ln(''x'') and {{nowrap|1=exp(''x'') = ''e''<sup>''x''</sup>}}, as well as the constant 7, were also used.
+
Here the second term was computed using the chain rule and third using the product rule. The known derivatives of the elementary functions ''x''<sup>2</sup>, ''x''<sup>4</sup>, sin(''x''), ln(''x'') and exp(''x'') = ''e''<sup>''x''</sup>, as well as the constant 7, were also used.
  
==Resources==
+
== Licensing ==  
* [https://en.wikipedia.org/wiki/Derivative Derivative], Wikipedia
+
Content obtained and/or adapted from:
 +
* [https://en.wikipedia.org/wiki/Derivative Derivative, Wikipedia] under a CC BY-SA license

Latest revision as of 11:23, 6 November 2021

The graph of a function, drawn in black, and a tangent line to that graph, drawn in red. The slope of the tangent line is equal to the derivative of the function at the marked point.

In mathematics, the derivative of a function of a real variable measures the sensitivity to change of the function value (output value) with respect to a change in its argument (input value). Derivatives are a fundamental tool of calculus. For example, the derivative of the position of a moving object with respect to time is the object's velocity: this measures how quickly the position of the object changes when time advances.

The derivative of a function of a single variable at a chosen input value, when it exists, is the slope of the tangent line to the graph of the function at that point. The tangent line is the best linear approximation of the function near that input value. For this reason, the derivative is often described as the "instantaneous rate of change", the ratio of the instantaneous change in the dependent variable to that of the independent variable.

Derivatives can be generalized to functions of several real variables. In this generalization, the derivative is reinterpreted as a linear transformation whose graph is (after an appropriate translation) the best linear approximation to the graph of the original function. The Jacobian matrix is the matrix that represents this linear transformation with respect to the basis given by the choice of independent and dependent variables. It can be calculated in terms of the partial derivatives with respect to the independent variables. For a real-valued function of several variables, the Jacobian matrix reduces to the gradient vector.

The process of finding a derivative is called differentiation. The reverse process is called antidifferentiation. The fundamental theorem of calculus relates antidifferentiation with integration. Differentiation and integration constitute the two fundamental operations in single-variable calculus.

Definition

A function of a real variable y = f(x) is differentiable at a point a of its domain, if its domain contains an open interval I containing a, and the limit

exists. This means that, for every positive real number (even very small), there exists a positive real number such that, for every h such that and then is defined, and

where the vertical bars denote the absolute value (see (ε, δ)-definition of limit).

If the function f is differentiable at a, that is if the limit L exists, then this limit is called the derivative of f at a, and denoted (read as "f prime of a") or (read as "the derivative of f with respect to x at a", "dy by dx at a", or "dy over dx at a"); see Notation (details), below.

Explanations

Differentiation is the action of computing a derivative. The derivative of a function y = f(x) of a variable x is a measure of the rate at which the value y of the function changes with respect to the change of the variable x. It is called the derivative of f with respect to x. If x and y are real numbers, and if the graph of f is plotted against x, derivative is the slope of this graph at each point.

Slope of a linear function:

The simplest case, apart from the trivial case of a constant function, is when y is a linear function of x, meaning that the graph of y is a line. In this case, , for real numbers m and b, and the slope m is given by

where the symbol Δ (Delta) is an abbreviation for "change in", and the combinations and refer to corresponding changes, i.e.

.

The above formula holds because

Thus

This gives the value for the slope of a line.

If the function f is not linear (i.e. its graph is not a straight line), then the change in y divided by the change in x varies over the considered range: differentiation is a method to find a unique value for this rate of change, not across a certain range but at any given value of x.

Rate of change as a limit value

The idea, illustrated by Figures 1 to 3, is to compute the rate of change as the limit value of the ratio of the differences Δy / Δx as Δx tends towards 0.

Toward a definition

A secant approaches a tangent when .

The most common approach to turn this intuitive idea into a precise definition is to define the derivative as a limit of difference quotients of real numbers. This is the approach described below.

Let f be a real valued function defined in an open neighborhood of a real number a. In classical geometry, the tangent line to the graph of the function f at a was the unique line through the point (a, f(a)) that did not meet the graph of f transversally, meaning that the line did not pass straight through the graph. The derivative of y with respect to x at a is, geometrically, the slope of the tangent line to the graph of f at (a, f(a)). The slope of the tangent line is very close to the slope of the line through (a, f(a)) and a nearby point on the graph, for example (a + h, f(a + h)). These lines are called secant lines. A value of h close to zero gives a good approximation to the slope of the tangent line, and smaller values (in absolute value) of h will, in general, give better approximations. The slope m of the secant line is the difference between the y values of these points divided by the difference between the x values, that is,

This expression is Newton's difference quotient. Passing from an approximation to an exact answer is done using a limit. Geometrically, the limit of the secant lines is the tangent line. Therefore, the limit of the difference quotient as h approaches zero, if it exists, should represent the slope of the tangent line to (a, f(a)). This limit is defined to be the derivative of the function f at a:

When the limit exists, f is said to be differentiable at a. Here f'(a) is one of several common notations for the derivative (see below). From this definition it is obvious that a differentiable function f is increasing if and only if its derivative is positive, and is decreasing if and only if its derivative is negative. This fact is used extensively when analyzing function behavior, e.g. when finding local extrema.

Equivalently, the derivative satisfies the property that

which has the intuitive interpretation (see Figure 1) that the tangent line to f at a gives the best linear approximation

to f near a (i.e., for small h). This interpretation is the easiest to generalize to other settings (see below).

Substituting 0 for h in the difference quotient causes division by zero, so the slope of the tangent line cannot be found directly using this method. Instead, define Q(h) to be the difference quotient as a function of h:

Q(h) is the slope of the secant line between (a, f(a)) and (a + h, f(a + h)). If f is a continuous function, meaning that its graph is an unbroken curve with no gaps, then Q is a continuous function away from h = 0. If the limit exists, meaning that there is a way of choosing a value for Q(0) that makes Q a continuous function, then the function f is differentiable at a, and its derivative at a equals Q(0).

In practice, the existence of a continuous extension of the difference quotient Q(h) to h = 0 is shown by modifying the numerator to cancel h in the denominator. Such manipulations can make the limit value of Q for small h clear even though Q is still not defined at h = 0. This process can be long and tedious for complicated functions, and many shortcuts are commonly used to simplify the process.

Example

The square function

The square function given by f(x) = x2 is differentiable at x = 3, and its derivative there is 6. This result is established by calculating the limit as h approaches zero of the difference quotient of f(3):

The last expression shows that the difference quotient equals 6 + h when h ≠ 0 and is undefined when h = 0, because of the definition of the difference quotient. However, the definition of the limit says the difference quotient does not need to be defined when h = 0. The limit is the result of letting h go to zero, meaning it is the value that 6 + h tends to as h becomes very small:

Hence the slope of the graph of the square function at the point (3, 9) is 6, and so its derivative at x = 3 is .

More generally, a similar computation shows that the derivative of the square function at x = a is :

Continuity and differentiability

This function does not have a derivative at the marked point, as the function is not continuous there (specifically, it has a jump discontinuity).

If f is differentiable at a, then f must also be continuous at a. As an example, choose a point a and let f be the step function that returns the value 1 for all x less than a, and returns a different value 10 for all x greater than or equal to a. f cannot have a derivative at a. If h is negative, then a + h is on the low part of the step, so the secant line from a to a + h is very steep, and as h tends to zero the slope tends to infinity. If h is positive, then a + h is on the high part of the step, so the secant line from a to a + h has slope zero. Consequently, the secant lines do not approach any single slope, so the limit of the difference quotient does not exist.

The absolute value function is continuous, but fails to be differentiable at since the tangent slopes do not approach the same value from the left as they do from the right.

However, even if a function is continuous at a point, it may not be differentiable there. For example, the absolute value function given by f(x) = |x| is continuous at x = 0, but it is not differentiable there. If h is positive, then the slope of the secant line from 0 to h is one, whereas if h is negative, then the slope of the secant line from 0 to h is negative one. This can be seen graphically as a "kink" or a "cusp" in the graph at x = 0. Even a function with a smooth graph is not differentiable at a point where its tangent is vertical: For instance, the function given by f(x) = x1/3 is not differentiable at x = 0.

In summary, a function that has a derivative is continuous, but there are continuous functions that do not have a derivative.

Most functions that occur in practice have derivatives at all points or at almost every point. Early in the history of calculus, many mathematicians assumed that a continuous function was differentiable at most points. Under mild conditions, for example if the function is a monotone function or a Lipschitz function, this is true. However, in 1872 Weierstrass found the first example of a function that is continuous everywhere but differentiable nowhere. This example is now known as the Weierstrass function. In 1931, Stefan Banach proved that the set of functions that have a derivative at some point is a meager set in the space of all continuous functions. Informally, this means that hardly any random continuous functions have a derivative at even one point.

Derivative as a function

The derivative at different points of a differentiable function. In this case, the derivative is equal to:

Let f be a function that has a derivative at every point in its domain. We can then define a function that maps every point x to the value of the derivative of f at x. This function is written and is called the derivative function or the derivative of f.

Sometimes f has a derivative at most, but not all, points of its domain. The function whose value at a equals whenever is defined and elsewhere is undefined is also called the derivative of f. It is still a function, but its domain is strictly smaller than the domain of f.

Using this idea, differentiation becomes a function of functions: The derivative is an operator whose domain is the set of all functions that have derivatives at every point of their domain and whose range is a set of functions. If we denote this operator by D, then D(f) is the function . Since D(f) is a function, it can be evaluated at a point a. By the definition of the derivative function, .

For comparison, consider the doubling function given by f(x) = 2x; f is a real-valued function of a real number, meaning that it takes numbers as inputs and has numbers as outputs:

The operator D, however, is not defined on individual numbers. It is only defined on functions:

Because the output of D is a function, the output of D can be evaluated at a point. For instance, when D is applied to the square function, xx2, D outputs the doubling function x ↦ 2x, which we named f(x). This output function can then be evaluated to get f(1) = 2, f(2) = 4, and so on.

Higher derivatives

Let f be a differentiable function, and let f be its derivative. The derivative of f (if it has one) is written f ′′ and is called the second derivative of f. Similarly, the derivative of the second derivative, if it exists, is written f ′′′ and is called the third derivative of f. Continuing this process, one can define, if it exists, the nth derivative as the derivative of the (n−1)th derivative. These repeated derivatives are called higher-order derivatives. The nth derivative is also called the derivative of order n.

If x(t) represents the position of an object at time t, then the higher-order derivatives of x have specific interpretations in physics. The first derivative of x is the object's velocity. The second derivative of x is the acceleration. The third derivative of x is the jerk. And finally, the fourth through sixth derivatives of x are snap, crackle, and pop; most applicable to astrophysics.

A function f need not have a derivative (for example, if it is not continuous). Similarly, even if f does have a derivative, it may not have a second derivative. For example, let

Calculation shows that f is a differentiable function whose derivative at is given by

f'(x) is twice the absolute value function at , and it does not have a derivative at zero. Similar examples show that a function can have a kth derivative for each non-negative integer k but not a (k + 1)th derivative. A function that has k successive derivatives is called k times differentiable. If in addition the kth derivative is continuous, then the function is said to be of differentiability class Ck. (This is a stronger condition than having k derivatives.) A function that has infinitely many derivatives is called infinitely differentiable or smooth.

On the real line, every polynomial function is infinitely differentiable. By standard differentiation rules, if a polynomial of degree n is differentiated n times, then it becomes a constant function. All of its subsequent derivatives are identically zero. In particular, they exist, so polynomials are smooth functions.

The derivatives of a function f at a point x provide polynomial approximations to that function near x. For example, if f is twice differentiable, then

in the sense that

If f is infinitely differentiable, then this is the beginning of the Taylor series for f evaluated at x + h around x.

Inflection point

A point where the second derivative of a function changes sign is called an inflection point. At an inflection point, the second derivative may be zero, as in the case of the inflection point x = 0 of the function given by , or it may fail to exist, as in the case of the inflection point x = 0 of the function given by . At an inflection point, a function switches from being a convex function to being a concave function or vice versa.

Notation (details)

Leibniz's notation

The symbols , , and were introduced by Gottfried Wilhelm Leibniz in 1675. It is still commonly used when the equation y = f(x) is viewed as a functional relationship between dependent and independent variables. Then the first derivative is denoted by

and was once thought of as an infinitesimal quotient. Higher derivatives are expressed using the notation


for the nth derivative of . These are abbreviations for multiple applications of the derivative operator. For example,

With Leibniz's notation, we can write the derivative of at the point in two different ways:

Leibniz's notation allows one to specify the variable for differentiation (in the denominator), which is relevant in partial differentiation. It also can be used to write the chain rule as

Lagrange's notation

Sometimes referred to as prime notation, one of the most common modern notation for differentiation is due to Joseph-Louis Lagrange and uses the prime mark, so that the derivative of a function is denoted . Similarly, the second and third derivatives are denoted

  and  

To denote the number of derivatives beyond this point, some authors use Roman numerals in superscript, whereas others place the number in parentheses:

  or  

The latter notation generalizes to yield the notation for the nth derivative of – this notation is most useful when we wish to talk about the derivative as being a function itself, as in this case the Leibniz notation can become cumbersome.

Newton's notation

Newton's notation for differentiation, also called the dot notation, places a dot over the function name to represent a time derivative. If , then

  and  

denote, respectively, the first and second derivatives of . This notation is used exclusively for derivatives with respect to time or arc length. It is typically used in differential equations in physics and differential geometry. The dot notation, however, becomes unmanageable for high-order derivatives (order 4 or more) and cannot deal with multiple independent variables.

Euler's notation

Euler's notation uses a differential operator , which is applied to a function to give the first derivative . The nth derivative is denoted .

If y = f(x) is a dependent variable, then often the subscript x is attached to the D to clarify the independent variable x. Euler's notation is then written

  or   ,

although this subscript is often omitted when the variable x is understood, for instance when this is the only independent variable present in the expression.

Euler's notation is useful for stating and solving linear differential equations.

Rules of computation

The derivative of a function can, in principle, be computed from the definition by considering the difference quotient, and computing its limit. In practice, once the derivatives of a few simple functions are known, the derivatives of other functions are more easily computed using rules for obtaining derivatives of more complicated functions from simpler ones.

Rules for basic functions

Here are the rules for the derivatives of the most common basic functions, where a is a real number.

  • Derivatives of powers:
  • Exponential and logarithmic functions:
  • Trigonometric functions:
  • Inverse trigonometric functions:

Rules for combined functions

Here are some of the most basic rules for deducing the derivative of a compound function from derivatives of basic functions.

  • Constant rule: if f(x) is constant, then
  • Sum rule:
    for all functions f and g and all real numbers and .
  • Product rule:
    for all functions f and g. As a special case, this rule includes the fact whenever is a constant, because by the constant rule.
  • Quotient rule:
    for all functions f and g at all inputs where g ≠ 0.
  • Chain rule for composite functions: If , then

Computation example

The derivative of the function given by

is

Here the second term was computed using the chain rule and third using the product rule. The known derivatives of the elementary functions x2, x4, sin(x), ln(x) and exp(x) = ex, as well as the constant 7, were also used.

Licensing

Content obtained and/or adapted from: