Basic Exercises on the Derivative Function and Difference Quotients
mathcalculusexercisederivative
data/lecture/math/calculus/derivative-definition-and-difference-quotients.lecture.n.md
1Problem 1
Use the definition to derive the derivative function of f(x)=x^3.
1.1Sample Solution
Let f:\mathbb{R}\to\mathbb{R} be defined by f(x)=x^3. For h\ne0,
\frac{(x+h)^3-x^3}{h}=3x^2+3xh+h^2.
Taking the limit as h\to0 gives f'(x)=3x^2.
1.2Explanation
Because the expression divides by h, it must first be simplified under the condition h\ne0. Only then is the limit taken.
1.3Common Error
Substituting h=0 before cancellation makes the difference quotient undefined.
2Problem 2
For f(x)=1/x, derive f'(a) from the definition, assuming a\ne0.
2.1Sample Solution
Let f:\mathbb{R}\setminus\{0\}\to\mathbb{R}. For a\ne0, h\ne0, and a+h\ne0,
\frac{\frac{1}{a+h}-\frac{1}{a}}{h}
=
\frac{-1}{a(a+h)}.
Therefore,
f'(a)=\lim_{h\to0}\frac{-1}{a(a+h)}=-\frac{1}{a^2}.
2.2Explanation
The denominators require all three conditions: a\ne0, h\ne0, and a+h\ne0.
2.3Common Error
A frequent error is to lose the negative sign when combining 1/(a+h)-1/a over a common denominator.
3Problem 3
Prove that f(x)=|x| is not differentiable at 0.
3.1Sample Solution
The difference quotient is
\frac{|0+h|-|0|}{h}=\frac{|h|}{h}.
It equals 1 for h>0 and -1 for h<0. Hence,
\lim_{h\to0+}\frac{|h|}{h}=1,
\qquad
\lim_{h\to0-}\frac{|h|}{h}=-1.
Because the one-sided limits disagree, f'(0) does not exist, and f is not differentiable at 0.
3.2Explanation
Continuity does not imply differentiability. A finite two-sided difference-quotient limit is required at an interior point.
4Related Material
data/lecture/math/calculus/derivative-definition-and-difference-quotients.lecture.n.md
data/lecture/math/calculus/limits-and-continuity.lecture.n.md
data/lecture/math/calculus/local-linear-approximation-and-differentiability.lecture.n.md