미적분학
Differentiation and Derivatives
Definition of the derivative, differentiability and continuity, derivatives and higher-order derivatives
In §Continuous Functions, we reformulated what it means for a function to be continuous in the previously introduced language of \(\epsilon-\delta\). Now the natural next step is to define the derivative of a function.
Definition of the Derivative
The slope of the line connecting two points \((a, f(a))\) and \((x, f(x))\) is the average rate of change \(\frac{f(x) - f(a)}{x - a}\), and taking the limit as \(x\) approaches \(a\) yields the derivative.
Definition 1 A function \(f\) is said to be differentiable at a point \(a\) if the limit
\[f'(a) := \lim_{x \rightarrow a} \frac{f(x) - f(a)}{x - a} = \lim_{h \rightarrow 0} \frac{f(a+h) - f(a)}{h}\]exists. This value \(f'(a)\) is called the derivative of \(f\) at \(a\). If \(f\) is differentiable at every point of its domain, the function defined by \(a \mapsto f'(a)\), denoted \(f'\), is called the derivative function of \(f\).
The two expressions are, of course, trivially the same upon setting \(x=a+h\), and by the discussion of the average rate of change above, the derivative \(f'(a)\) is the slope of the tangent line to the graph at the point \((a, f(a))\). On the other hand, any line is completely determined by its slope and one point on it; in particular, since it is already given that this tangent line passes through \((a,f(a))\), the tangent line to a function differentiable at \(a\) is given by
\[y = f(a) + f'(a)(x - a)\]Near \(a\), this linear function best approximates \(f\), so when \(h\) is small, we write \(f(a+h) \approx f(a) + f'(a)h\). The derivative is also written following Leibniz as
\[\frac{\dd{f}}{\dd{x}},\qquad \frac{d}{\dd{x}}f\]and so on, but in calculus the \(f'\) notation is often sufficient.
Example 2 (Differentiation with integer and rational exponents) The difference quotient of a constant function is always \(0\), so its derivative is \(0\). For \(f(x)=x^2\), the difference quotient simplifies to
\[\frac{(a+h)^2-a^2}{h}=2a+h\]and hence \(f'(a)=2a\). In general, for a positive integer \(n\), factoring the difference of powers gives
\[\frac{(a+h)^n-a^n}{h}=\sum_{j=0}^{n-1}(a+h)^{n-1-j}a^j.\]As \(h\rightarrow 0\), each of the \(n\) terms on the right tends to \(a^{n-1}\), so \((x^n)'=nx^{n-1}\).
For a negative integer exponent \(-m\) and \(a\neq 0\), putting the difference quotient over a common denominator gives
\[\frac{(a+h)^{-m}-a^{-m}}{h}=-\frac{(a+h)^m-a^m}{h}\cdot\frac{1}{(a+h)^ma^m}.\]By the preceding calculation, the limit is \(-ma^{m-1}/a^{2m}=-ma^{-m-1}\). In particular, \(m=1\) gives \((1/x)'=-1/x^2\).
Now take a rational exponent \(p/q\), where \(p\) is an integer and \(q\) is a positive integer, and suppose \(a>0\). Set \(u=\sqrt[q]{a+h}\) and \(v=\sqrt[q]{a}\). Then \(h=u^q-v^q\), so
\[\frac{(a+h)^{p/q}-a^{p/q}}{h}=\frac{(u^p-v^p)/(u-v)}{(u^q-v^q)/(u-v)}.\]By §Limits of Functions, ⁋Corollary 6 (Limits of powers and roots), \(u\rightarrow v\) as \(h\rightarrow 0\). By the derivatives of integer powers computed above, the numerator and denominator on the right tend to \(pv^{p-1}\) and \(qv^{q-1}\), respectively. The latter limit is positive since \(q>0\) and \(v>0\). Part 4 of §Limits of Functions, ⁋Proposition 5 (Limit laws) gives
\[\lim_{h\rightarrow 0}\frac{(a+h)^{p/q}-a^{p/q}}{h}=\frac{pv^{p-1}}{qv^{q-1}}=\frac{p}{q}a^{p/q-1}.\]Thus \((x^{p/q})'=(p/q)x^{p/q-1}\) for \(x>0\). In particular, for \(p=1\) and \(q=2\) the difference quotient is \(1/(\sqrt{a+h}+\sqrt{a})\), with limit \(1/(2\sqrt{a})\).
Differentiability and Continuity
Differentiability is a stronger condition than continuity.
Proposition 3 If \(f\) is differentiable at \(a\), then \(f\) is continuous at \(a\).
Proof
For \(x \neq a\),
\[f(x) - f(a) = \frac{f(x)-f(a)}{x-a}\cdot(x-a)\]As \(x \rightarrow a\), the first factor on the right converges to \(f'(a)\) and the second factor converges to \(0\), so by §Limits of Functions, ⁋Proposition 5 (Limit laws),
\[\lim_{x\rightarrow a}\bigl(f(x)-f(a)\bigr) = f'(a)\cdot 0 = 0\]Therefore \(f\) is continuous at \(a\).
However, the converse does not hold. A representative example is \(f(x) = \lvert x\rvert\), which is continuous at \(0\) but not differentiable there.
Indeed,
\[\frac{f(h)-f(0)}{h} = \frac{\lvert h\rvert}{h}=\begin{cases}1&\text{if $h>0$}\\-1&\text{if $h<0$}\end{cases}\]so the limit of the average rate of change of this function is \(1\) as \(h \rightarrow 0^+\) and \(-1\) as \(h \rightarrow 0^-\); since these differ, the limit does not exist.
As a similar example, \(f(x) = \sqrt[3]{x}\) has a vertical tangent at \(0\), where the average rate of change diverges as \(h^{-2/3} \rightarrow \infty\).
On the other hand, \(f(x) = x^{2/3}\) forms a cusp at \(0\), where the left and right average rates of change diverge to \(\mp\infty\).
These are examples that fail to be differentiable only at one or two points, but nondifferentiability can be far worse: there even exist functions like the Weierstrass function that are continuous on all of \(\mathbb{R}\) yet have no tangent line at any point.
Conversely, differentiability is a local property that may hold at only a single point, so an extreme example of the following form is also possible.
Example 4 (A function differentiable at only one point) Consider the function
\[f(x) = \begin{cases} x^2 & (x \in \mathbb{Q}) \\ 0 & (x \notin \mathbb{Q}) \end{cases}\]For \(a \neq 0\), along a sequence of rationals and a sequence of irrationals converging to \(a\), the function values split into \(a^2\) and \(0\) respectively, so \(f\) is discontinuous, and by the contrapositive of Proposition 3 it is not differentiable. On the other hand, at \(0\) we have \(\lvert f(x)\rvert \leq x^2\), so \(f\) is continuous, and since the average rate of change satisfies
\[\left\lvert \frac{f(x) - f(0)}{x - 0} \right\rvert = \frac{\lvert f(x)\rvert}{\lvert x\rvert} \leq \lvert x\rvert \rightarrow 0\]\(f'(0) = 0\) exists. That is, \(f\) is differentiable only at \(0\).
Properties of Differentiation
Meanwhile, since the derivative is ultimately the limit of a function, namely the average rate of change, we can prove from §Limits of Functions, ⁋Proposition 5 (Limit laws) that differentiation also possesses linearity.
Proposition 5 If \(f, g\) are differentiable at \(a\) and \(c\) is a constant, then \(f + g\) and \(cf\) are also differentiable at \(a\), and
\[(f+g)'(a) = f'(a) + g'(a), \qquad (cf)'(a) = c f'(a)\]Proof
The average rate of change splits as
\[\frac{(f+g)(a+h)-(f+g)(a)}{h} = \frac{f(a+h)-f(a)}{h} + \frac{g(a+h)-g(a)}{h}\]and since each term converges to \(f'(a), g'(a)\), the sum also converges by §Limits of Functions, ⁋Proposition 5 (Limit laws). Examining the average rate of change expression for \(cf\) yields the same result.
Combining the derivatives of integer powers from Example 2 (Differentiation with integer and rational exponents) with Proposition 5, we find that the polynomial \(P(x)=\sum_{k=0}^n c_k x^k\) has derivative
\[P'(x)=\sum_{k=1}^n k c_k x^{k-1}.\]The constant term vanishes, and each remaining term is differentiated separately. For example, if \(P(x)=x^3-2x+1\), then \(P'(x)=3x^2-2\).
On the other hand, since the derivative \(f'\) is itself a function, if it is differentiable we can differentiate it again.
Definition 6 If the derivative of \(f\), \(f'\), is differentiable, its derivative is called the second derivative \(f'' = (f')'\). Repeating this, the result of differentiating \(n\) times is called the \(n\)-th derivative \(f^{(n)}\), and we set \(f^{(0)} = f\). If \(f^{(n)}\) exists and is continuous on an interval, we say \(f\) is of class \(C^n\) on that interval, and if derivatives of all orders exist, we say \(f\) is of class \(C^\infty\) or smooth.
The second derivative \(f''\) is the rate of change of the rate of change; if \(f\) is position, then \(f''\) is acceleration. Also, the sign of \(f''\) indicates the direction in which the graph bends (convexity/concavity). Every polynomial is smooth because its derivative is again a polynomial.
In the absolute value example after Proposition 3, the derivative takes different values on the two sides of the origin, and the difference quotient based at the origin also has different left and right limits. For the cube root function, this difference quotient diverges from both sides. For a derivative to exist at an interior point, the difference quotient must approach the same finite value from both sides. Defining the two limits separately lets us discuss differentiability at corners and endpoints precisely.
Definition 7 The right-hand derivative and left-hand derivative of a function \(f\) at a point \(a\) are defined respectively by
\[f'_+(a) := \lim_{h \rightarrow 0^+} \frac{f(a+h) - f(a)}{h}, \qquad f'_-(a) := \lim_{h \rightarrow 0^-} \frac{f(a+h) - f(a)}{h}\]The right-hand derivative \(f'_+(a)\) takes the right-hand limit of the difference quotient with \(a\) fixed, and \(\lim_{x\rightarrow a^+} f'(x)\) takes the right-hand limit of the derivative values at nearby points. Both one-sided derivatives exist and are equal if and only if \(f\) is differentiable at \(a\), in which case their common value is \(f'(a)\). This is nothing more than applying to the average rate of change the fact that a limit exists only when both one-sided limits agree. (§Limits of Functions) Revisiting the absolute value function \(f(x) = \lvert x\rvert\), we have \(f'_+(0) = 1\) and \(f'_-(0) = -1\), which differ, so nondifferentiability at \(0\) is immediately confirmed.
For \(f(x)=\sqrt{x}\) on \([0,\infty)\), we take the limit of the difference quotient from the right at the endpoint \(0\). For \(h>0\),
\[\frac{f(h)-f(0)}{h}=\frac{\sqrt{h}}{h}=\frac{1}{\sqrt{h}}.\]This tends to \(+\infty\) as \(h\rightarrow 0^+\), so the right-hand derivative at \(0\) does not exist.
References
[Ste] J. Stewart, Calculus, 8th ed., Cengage Learning, 2016.
[Kim] 김홍종, 미적분학 1·2, 제3개정판, 서울대학교출판문화원, 2020.
Share on
Comments
- Public repository: a deleted comment stays in the Git history.
- The password and the email are encrypted and kept in Cloudflare KV alone.
No comments yet.