Limits and differentiation

We've used derivatives to describe motion, find maxima and minima, and model how quantities change. Our reasoning began with the idea that, over an infinitesimal change in the input, a curve behaves like its tangent line. Now that we have limits, we can make this idea precise using ordinary real numbers.
If we keep one point on a curve fixed and move another toward it, we can follow what happens to the slope between them. When these slopes approach a finite value, that value gives us the derivative. This definition puts our limit techniques to work: by calculating limits algebraically, we can verify familiar derivatives and prove the rules we've been using throughout the course.
By the end of this lesson, you should be able to:
- Represent an instantaneous rate using either form of the difference-quotient limit.
- Calculate derivatives from their defining limits and relate derivatives to tangent-line differentials.
- Identify where a function is differentiable and where it is not.
When we first explored derivatives, we imagined zooming in infinitely close to a point on a curve, until the curve looked like a straight line. That picture helped us reason about an instantaneous rate through infinitesimal changes. Now that we have limits, we can return to that picture and make precise what it means for the curve to have a particular slope at a point.
We can describe this using ordinary real numbers. Two inputs can be as close together as we like while still being separated by a real number distance, and we can calculate a slope between their points on the graph. A limit tells us what those slopes approach as the inputs get closer together. Let's see how this works for a derivative we already know.
For \( f(x)=x^2 \), the Power Rule gives \( f'(x)= \). At \( x=-1 \), we therefore expect a tangent slope of .
We already know that the tangent slope should be \( -2 \). To connect that answer to our earlier zoomed-in picture, keep \( P=(-1,1) \) fixed and choose a different point \( Q \) on the parabola. The line through the two points is a secant line, and its slope is the vertical change divided by the horizontal change as we move from \( P \) to \( Q \).
As you move \( Q \) closer to \( P \), watch how the secant line changes. You can also show the tangent line and compare the two.
Second input:
The two points coincide. There is no secant slope for this input.
Secant slope: .
Move \( Q \) toward \( P \) from each side. As the points come together, the secant line appears to approach .
When the second input is exactly \( -1 \), the two points . To find the tangent slope through a limit, we use .
The graph suggests that the secant slopes approach the tangent slope we already know. To explain why, we need an expression for the secant slope at any nearby input.
Let's write the second point as \( Q=(x,x^2) \). Starting from \( P=(-1,1) \), the input change is \( \Delta x= \), and the output change is \( \Delta y= \).
Dividing the output change by the input change gives the secant slope. To find the value the secant slopes approach as \( Q \) moves toward \( P \), we calculate
\[\limit{x\to-1}\frac{x^2-1}{x+1}.\]
This is just the kind of limit we worked with in the previous section. Attempting to substitute \( -1 \) directly gives the form \( 0/0 \), so we should instead look for a useful way to rewrite the quotient. Which technique will help here?
The numerator is a difference of squares. Factoring it gives us a factor of \( x+1 \) to cancel with the denominator. Complete the simplified expression and the resulting limit:
\(\displaystyle \limit{x\to-1}\frac{x^2-1}{x+1}\)\(\displaystyle =\limit{x\to-1}\frac{(x+1)(x-1)}{x+1}\)\(\displaystyle =\limit{x\to-1}\left(\)\(\displaystyle \right)\)\(\displaystyle =\)\(\displaystyle .\)
Let's connect the algebra to the meaning of the limit. As \( x \) approaches \( -1 \), we use nearby inputs with \( x\ne-1 \). At each of those inputs, \( x+1 \) is , so dividing the numerator and denominator by this common factor within the safety of the limit preserves the quotient's value. The expressions therefore have the same limit.
After cancellation, we can evaluate the limit by substituting \( -1 \) because the simplified expression is . These two steps let us use the limit techniques we already know to find a tangent slope.
A line with that slope through \( (-1,1) \) has equation \( y-1= \).
As the second point approaches \( P \), the secant slopes approach \( -2 \). This limit gives us the slope of the tangent line through \( (-1,1) \), so its equation is
\[y-1=-2(x+1).\]
We've obtained the same derivative as the Power Rule: \( f'(-1)=-2 \). The limit gives a precise meaning to our earlier picture of zooming in infinitely close. We use ordinary real inputs and bring the second input closer and closer to \( -1 \); the slopes between the two points then approach \( -2 \). In this way, changes between distinct points tell us the rate of change at a single point.
Secants and tangents
An average rate of change tells us how the output changes between two different inputs. To describe the rate at a single input, we can hold one point on the graph fixed and bring a second point closer and closer to it. Each pair of points gives us a secant line whose slope is the average rate over that interval; as the interval shrinks, we ask what these slopes approach.
For a function \( y=f(x) \), fix the point \( (a,f(a)) \) and choose a second point \( (x,f(x)) \), with \( x\ne a \). Moving from the fixed point to the second point changes the input by \( x-a \) and the output by \( f(x)-f(a) \). Dividing the output change by the input change gives the secant slope,
\[\frac{f(x)-f(a)}{x-a}.\]
This expression is called a difference quotient: it compares a difference in outputs with the corresponding difference in inputs. As \( x \) approaches \( a \), we ask whether the quotient approaches one finite number from both sides.
Second input:
When the limit exists, we define the tangent line at \( (a,f(a)) \) to be the line through that point with slope \( f'(a) \):
\[y-f(a)=f'(a)(x-a).\]
Because all the secants pass through the same fixed point, their lines approach this tangent line as their slopes approach \( f'(a) \). For the parabola in Explore, the limiting slope was \( f'(-1)=-2 \), giving \( y-1=-2(x+1) \).
For a particular input \( a \), this calculation gives one number, \( f'(a) \). If we carry out the calculation at other inputs, we obtain the derivative function \( f' \), which assigns an instantaneous rate to each input where that rate exists. The units follow the same rule as for average rates: we divide output units by input units.
Two ways to describe the change
So far, we've described the second point by its input \( x \). We can also describe it by how far we move from the fixed input \( a \). If we call this signed change \( h \), then
\[h=x-a,\qquad\text{so that}\qquad x=a+h.\]
Starting at \( a \), a positive \( h \) moves us to the right and a negative \( h \) moves us to the left. In either case, the new input is \( a+h \), so its output is \( f(a+h) \). Bringing the second point toward the first means making this input change approach zero.
We can therefore replace \( x \) by \( a+h \) in the numerator and \( x-a \) by \( h \) in the denominator. This gives another way to write the same derivative limit:
The two forms describe the same movement of the second point. In the first, we let its input \( x \) approach \( a \); in the second, we let the change \( h \) approach zero. Either way, we calculate the slope that the secant lines approach.
To find a formula for the entire derivative function, we often use \( x \) for the input being held fixed and let \( h \) supply the change:
\[f'(x)=\limit{h\to0}\frac{f(x+h)-f(x)}h.\]
Here we hold \( x \) fixed while \( h \) approaches zero. Since we can perform the calculation with an arbitrary fixed input \( x \), the result is a formula for the derivative function.
Calculating derivatives
We already know how to differentiate powers, square roots, and reciprocals using the Power Rule. Now we can use the limit definition to prove that those familiar formulas give the instantaneous rates of change of these functions. The limit techniques from Section \( 5.2 \) give us a way to carry out that proof: in each example, we'll rewrite the difference quotient until we can evaluate its limit by substitution. As in Explore, cancellation takes place within the safety of a limit, using inputs for which the common factor is nonzero.
For the cubic, expanding the numerator gave us a common factor to cancel. When the numerator contains a difference of square roots, we can use the conjugate to produce that factor, just as we did in Section \( 5.2 \).
For a reciprocal function, the output change will be a difference of fractions. Combining those fractions over a common denominator will let us simplify the difference quotient before taking its limit.
Differentiability
In each calculation so far, we've found an instantaneous rate by showing that the secant slopes approach a finite number. It's worth asking where this process can fail. A function may have a value at an input even when the nearby secant slopes don't approach one finite number; at such an input, the derivative does not exist.
We say that \( f \) is differentiable at \( a \) when its derivative \( f'(a) \) exists as a finite real number. At an interior point of its domain, the difference quotient must approach that number from both sides.
Having a derivative at \( a \) also tells us that the function is continuous there. To see why, suppose \( f'(a) \) exists and consider a nonzero input change \( h \). We can express the output change as the input change times the average rate:
\[f(a+h)-f(a)=h\frac{f(a+h)-f(a)}h.\]
The quotient approaches the finite number \( f'(a) \), while \( h \) approaches zero. Taking the limit and using the product law for limits gives
\[\begin{aligned}\limit{h\to0}\bigl(f(a+h)-f(a)\bigr)&=\limit{h\to0}\left[h\frac{f(a+h)-f(a)}h\right]\\&=0\cdot f'(a)\\&=0.\end{aligned}\]
The output change approaches zero, so \( f(a+h) \) approaches \( f(a) \). This is exactly the condition for continuity at \( a \), so a finite limit for the rate of change guarantees that the function is continuous there.
Continuity alone tells us that nearby outputs approach the output at the point; it doesn't guarantee that the slopes approach one finite number. For example, \( f(x)=|x| \) is continuous at zero because its outputs approach \( 0=f(0) \) from both sides. Its secant slopes, however, approach \( -1 \) from the left and \( 1 \) from the right, so it is not differentiable there. This example illustrates that differentiability implies continuity, but the reverse implication does not hold.
Corners, vertical tangents, and discontinuities give us common places to look when we're deciding where a function is differentiable. Other behavior, such as secant slopes that keep oscillating as the interval shrinks, can prevent a derivative from existing as well. In every case, we return to the same question: do the secant slopes approach one finite number from both sides?
The Product Rule
Now that we know what it means for a function to be differentiable, we can give a precise statement of the Product Rule: if two functions are differentiable at a point, their product is differentiable there as well. To prove this, let's return to the rectangle picture from Chapter \( 1 \). We'll use limits to more carefully follow the contributions of both strips and the small corner as the input change approaches zero.
Suppose \( f \) and \( g \) are both differentiable at \( a \). Their difference quotients therefore have finite limits, and both functions are continuous at \( a \). For an ordinary, nonzero input change \( h \), write their finite output changes as
\[\Delta f=f(a+h)-f(a),\qquad \Delta g=g(a+h)-g(a).\]
The product changes from \( \mathhlred{f(a)g(a)} \) to \( (f(a)+\Delta f)(g(a)+\Delta g) \). Picture a rectangle with side lengths \( f(a) \) and \( g(a) \), enlarged by \( \Delta f \) and \( \Delta g \). Its added area consists of two strips and a corner:
\[\Delta(fg)=\mathhlblue{g(a)\Delta f}+\mathhlgreen{f(a)\Delta g}+\mathhlviolet{\Delta f\,\Delta g}.\]
Adding the areas of the three new pieces gives the total change in the product. Although the drawing uses positive lengths and increases, we can also obtain this equation by expanding \( (f(a)+\Delta f)(g(a)+\Delta g) \) and subtracting \( f(a)g(a) \). The same equation therefore holds for negative function values and signed changes as well.
To turn this output change into an average rate, we divide each term by the input change \( h \):
\[\frac{\Delta(fg)}h=\mathhlblue{g(a)\frac{\Delta f}h}+\mathhlgreen{f(a)\frac{\Delta g}h}+\mathhlviolet{\frac{\Delta f\,\Delta g}h}.\]
To see how the first quotient relates to the derivative, let's write out the change \( \Delta f \) in full:
\[\frac{\Delta f}h=\frac{f(a+h)-f(a)}h.\]
This is the difference quotient from the increment form of the derivative, with \( a \) as the fixed input. Taking its limit gives
\[\limit{h\to0}\frac{\Delta f}h=\limit{h\to0}\frac{f(a+h)-f(a)}h=f'(a).\]
The same reasoning gives \( \displaystyle \limit{h\to0}\frac{\Delta g}h=g'(a) \). To find what happens to the corner's contribution after dividing by \( h \), we can rewrite that term as
\[\mathhlviolet{\frac{\Delta f\,\Delta g}h}=\mathhlviolet{\left(\frac{\Delta f}h\right)\Delta g}.\]
We've already shown that the first factor approaches \( f'(a) \). For the second factor, we can use the continuity of \( g \): as \( h \) approaches zero, \( g(a+h) \) approaches \( g(a) \), so their difference \( \Delta g \) approaches zero. Applying the product law for limits gives
\[\begin{aligned}\mathhlviolet{\limit{h\to0}\frac{\Delta f\,\Delta g}h}&=\mathhlviolet{\limit{h\to0}\left[\left(\frac{\Delta f}h\right)\Delta g\right]}\\&=\mathhlviolet{f'(a)\cdot0}\\&=\mathhlviolet{0}.\end{aligned}\]
We now know the limit of each of the three contributions to the average rate. Since \( f(a) \) and \( g(a) \) are fixed numbers, we can use the sum and constant-multiple laws to combine these limits:
\[\begin{aligned}\limit{h\to0}\frac{\Delta(fg)}h&=\mathhlblue{g(a)\limit{h\to0}\frac{\Delta f}h}\\&\quad+\mathhlgreen{f(a)\limit{h\to0}\frac{\Delta g}h}\\&\quad+\mathhlviolet{\limit{h\to0}\frac{\Delta f\,\Delta g}h}.\end{aligned}\]
Substituting the two derivatives and the corner's limit gives
\[\begin{aligned}\limit{h\to0}\frac{\Delta(fg)}h&=\mathhlblue{g(a)f'(a)}+\mathhlgreen{f(a)g'(a)}+\mathhlviolet{0}\\&=\mathhlblue{f'(a)g(a)}+\mathhlgreen{f(a)g'(a)}.\end{aligned}\]
We have shown that the product's difference quotient approaches a finite real number. Thus \( fg \) is differentiable at \( a \), and this limit is its derivative.
We can also use the limit definition to prove the Quotient Rule and the Chain Rule. In this way, limits give us a firm foundation for the differentiation rules we've been using throughout the course, connecting our earlier intuitive reasoning to a precise definition of the derivative.
Differentials along the tangent line
With the derivative defined by a limit and the Product Rule justified, we can now return to our familiar differential notation and give it a precise interpretation through the tangent line.
Fix a point \( (a,f(a)) \) where the derivative exists, and imagine moving along its tangent line. Choose a signed horizontal displacement \( \dd{x} \) and call the corresponding vertical displacement \( \dd{y} \).
The graph shows these movements at \( P=(-1,1) \) on \( y=x^2 \). Move the slider to compare the change along the tangent with the change along the curve.
Horizontal displacement:
\( \dd{x}= \), \( \dd{y}= \), and \( \Delta y= \). The gap is \( \Delta y-\dd{y}= \).
The tangent at \( (a,f(a)) \) has slope \( f'(a) \), so its horizontal and vertical displacements satisfy
\[\dd{y}=f'(a)\dd{x}.\]
For \( \dd{x}\ne0 \), the ratio of these displacements is the tangent slope:
\[\frac{\dd{y}}{\dd{x}}=f'(a).\]
If we choose \( \dd{x}=0 \), we make no horizontal movement, so \( \dd{y}=0 \) as well and the multiplication equation still holds. For a nonzero horizontal movement, we can also use the ratio. Writing the input where the tangent is drawn as \( x \) instead of \( a \) gives our familiar notation:
\[\frac{\dd{y}}{\dd{x}}=f'(x),\qquad \dd{y}=f'(x)\dd{x}.\]
There's a subtle change in the order of our definitions here: earlier, we began with infinitesimal differentials and used their ratio to define the derivative. Now we start with the derivative, defined by a limit, and use its value as the slope of the tangent line. Movements along that line then give us the differentials \( \dd{x} \) and \( \dd{y} \).
Under this definition, \( \dd{x} \) and \( \dd{y} \) are ordinary real numbers, and they need not be infinitesimally small. Their relationship is exact because we're moving along a straight line. If we make the same horizontal movement along the curve, its vertical change generally differs from \( \dd{y} \).
For the parabola in the graph, the tangent at \( (-1,1) \) has slope \( -2 \), so the tangent-line movement satisfies
\[\dd{y}=-2\dd{x}.\]
If we make that same horizontal movement along the curve, we arrive at input \( -1+\dd{x} \). Subtracting the original height \( 1 \) from the new height gives the actual change along the curve:
\[\begin{aligned}\Delta y&=(-1+\dd{x})^2-1\\&=-2\dd{x}+(\dd{x})^2.\end{aligned}\]
For \( \dd{x}=0.1 \), the tangent gives \( \dd{y}=-0.2 \), while the curve gives \( \Delta y=-0.19 \), a difference of \( 0.01 \). As the horizontal movement shrinks, that squared term becomes small even in comparison with the horizontal movement itself.
We haven't abandoned differentials. The tangent line gives them a precise definition using ordinary real numbers, and we'll still use the intuitive picture of infinitesimal changes to reason about rates. Limits connect these two ways of thinking: they let us justify why the tangent approximates the curve over small changes and why the extra terms disappear when we calculate a derivative.
Let \( f(x)=${formula} \). Show that \( f'(x)=${k} \) using the limit definition. In the calculation below, \( x \) stays fixed while \( h \) approaches \( 0 \).
\(\displaystyle f'(x)\)\(\displaystyle =\limit{h\to0}\frac{f(x+h)-f(x)}{h}\)\(\displaystyle =\limit{h\to0}\frac{(${nearby})-(${formula})}{h}\)\(\displaystyle =\limit{h\to0}\frac{\)\(\displaystyle }{h}\)\(\displaystyle =\limit{h\to0}\)\(\displaystyle =\)\(\displaystyle .\)
Explain why we can cancel \( h \) during this calculation. How does the result agree with the slope of the original line?
Solution
Subtracting the original output cancels the terms that do not depend on \( \displaystyle h \), leaving the output change \( \displaystyle ${change} \). Since the limit uses nonzero increments approaching \( \displaystyle 0 \), we can cancel their common factor \( \displaystyle h \):
\[\begin{aligned}f'(x)&=\limit{h\to0}\frac{(${nearby})-(${formula})}{h}\\&=\limit{h\to0}\frac{${change}}{h}\\&=\limit{h\to0}${k}\\&=${k}.\end{aligned}\]
The quotient is already constant: every pair of distinct points on this line gives the same slope \( \displaystyle ${k} \). Taking its limit verifies the derivative we expected at every real input.
Let \( f(x)=${c} \). Show that \( f'(x)=0 \) using the limit definition, and explain why the calculation works for every real \( x \).
\(\displaystyle f'(x)\)\(\displaystyle =\limit{h\to0}\frac{f(x+h)-f(x)}{h}\)\(\displaystyle =\limit{h\to0}\frac{\left(\)\(\displaystyle \right)-(${c})}{h}\)\(\displaystyle =\limit{h\to0}\)\(\displaystyle =\)\(\displaystyle .\)
Solution
Both outputs are \( \displaystyle ${c} \), whatever inputs we use. Their difference is therefore \( \displaystyle 0 \), and dividing that difference by any nonzero \( \displaystyle h \) gives \( \displaystyle 0 \):
\[\begin{aligned}f'(x)&=\limit{h\to0}\frac{(${c})-(${c})}{h}\\&=\limit{h\to0}0\\&=0.\end{aligned}\]
Nothing in the calculation depends on the choice of \( \displaystyle x \). The derivative is \( \displaystyle 0 \) everywhere, in agreement with the horizontal graph of a constant function.
Let \( f(x)=${formula} \). Show that \( f'(${p})=${s} \) using the moving-input form of the limit definition.
The fixed output is \( f(${p})= \). After substituting the outputs into the definition, the calculation becomes
\(\displaystyle f'(${p})\)\(\displaystyle =\limit{x\to${p}}\frac{(${formula})-${parenthesize_negative(v)}}{x-${p}}\)\(\displaystyle =\limit{x\to${p}}\frac{${output_change}}{${input_change}}\)\(\displaystyle =\limit{x\to${p}}\frac{(${input_change})\left(\)\(\displaystyle \right)}{${input_change}}\)\(\displaystyle =\)\(\displaystyle .\)
The cancellation is valid because . Write the simplified limit after cancellation, and explain how the final substitution verifies the claimed derivative.
Solution
The fixed output is \( \displaystyle f(${p})=${v} \). Subtracting it from \( \displaystyle f(x) \) gives the numerator above, which factors with the input change \( \displaystyle ${input_change} \):
\[\begin{aligned}f'(${p})&=\limit{x\to${p}}\frac{(${formula})-${parenthesize_negative(v)}}{x-${p}}\\&=\limit{x\to${p}}\frac{${output_change}}{${input_change}}\\&=\limit{x\to${p}}\frac{(${input_change})(${quotient})}{${input_change}}\\&=\limit{x\to${p}}\left(${quotient}\right)\\&=${s}.\end{aligned}\]
Within the safety of a limit, \( \displaystyle x \) approaches \( \displaystyle ${p} \) through nearby inputs with \( \displaystyle x\ne${p} \). The canceled factor is nonzero there, so the simplified expression has exactly the same limit. It is a polynomial, and its continuity lets us finish by substitution. This verifies that the tangent at the chosen point has slope \( \displaystyle ${s} \).
The red tangent meets the blue parabola at \( (${p},${v}) \). Its slope is the limit calculated above. Let \( f(x)=\sqrt{${inside}} \). Show that \( \displaystyle f'(${p})=${answer} \) using the moving-input form of the limit definition.
Here \( f(${p})=${n} \), so the limit we need is \( \displaystyle \limit{x\to${p}}\frac{\sqrt{${inside}}-${n}}{x-${p}} \). A useful first step is to .
\(\displaystyle f'(${p})\)\(\displaystyle =\limit{x\to${p}}\frac{\sqrt{${inside}}-${n}}{x-${p}}\)\(\displaystyle =\limit{x\to${p}}\frac{\)\(\displaystyle }{(${input_change})\left(\sqrt{${inside}}+${n}\right)}\)\(\displaystyle =\limit{x\to${p}}\frac{\)\(\displaystyle }{\sqrt{${inside}}+${n}}\)\(\displaystyle =\)\(\displaystyle .\)
Explain why the conjugate and the canceled factor are nonzero at the nearby inputs used in this calculation.
Solution
At the fixed input, the expression under the square root is \( \displaystyle ${n^2} \), a positive number. It remains positive for inputs sufficiently close to \( \displaystyle ${p} \), and the conjugate \( \displaystyle \sqrt{${inside}}+${n} \) is positive there as well. Multiplying by the conjugate turns the numerator into a difference of squares:
\[\begin{aligned}f'(${p})&=\limit{x\to${p}}\frac{\sqrt{${inside}}-${n}}{x-${p}}\\&=\limit{x\to${p}}\frac{(${inside})-${n^2}}{(${input_change})\left(\sqrt{${inside}}+${n}\right)}\\&=\limit{x\to${p}}\frac{${"" if k == 1 else k}(${input_change})}{(${input_change})\left(\sqrt{${inside}}+${n}\right)}\\&=\limit{x\to${p}}\frac{${k}}{\sqrt{${inside}}+${n}}\\&=${answer}.\end{aligned}\]
The nearby inputs satisfy \( \displaystyle x\ne${p} \), so canceling \( \displaystyle ${input_change} \) preserves the limit. The remaining denominator approaches \( \displaystyle ${2*n} \); continuity now allows the substitution and verifies the derivative.
The tangent's slope at \( (${p},${n}) \) is \( \displaystyle ${answer} \), as the limit calculation verifies. Let \( \displaystyle f(x)=${formula} \). Show that \( \displaystyle f'(a)=${answer} \) for \( a\ne0 \) using the moving-input form of the limit definition. Keep \( a \) fixed while \( x \) approaches it.
Combine the output fractions over the supplied common denominator:
\(\displaystyle f'(a)\)\(\displaystyle =\limit{x\to a}\dfrac{f(x)-f(a)}{x-a}\)\(\displaystyle =\limit{x\to a}\dfrac{\ \dfrac{${k}}{x^2}-\dfrac{${k}}{a^2}\ }{\ x-a\ }\)\(\displaystyle =\limit{x\to a}\dfrac{\ \dfrac{\)\(\displaystyle }{a^2x^2}\ }{\ x-a\ }.\)
Factor the numerator, then multiply by the reciprocal of \( x-a \):
\(\displaystyle \limit{x\to a}\dfrac{\ \dfrac{${"" if k == 1 else k}(a-x)(a+x)}{a^2x^2}\ }{\ x-a\ }\)\(\displaystyle =\limit{x\to a}\dfrac{${"" if k == 1 else k}(a-x)(a+x)}{a^2x^2}\cdot\dfrac{1}{\)\(\displaystyle }\)\(\displaystyle =\limit{x\to a}\dfrac{${"" if k == 1 else k}(a-x)(a+x)}{a^2x^2(x-a)}.\)
Use \(a-x=-\left(\)\(\right)\), cancel the common factor, and evaluate:
\(\displaystyle f'(a)\)\(\displaystyle =\limit{x\to a}\dfrac{${"-" if k == 1 else -k}(x-a)(a+x)}{a^2x^2(x-a)}\)\(\displaystyle =\limit{x\to a}\)\(\displaystyle =\dfrac{${-2*k}a}{a^4}\)\(\displaystyle =\)\(\displaystyle .\)
Explain why the restrictions \( x\ne a \) and \( x\ne0 \) allow the cancellation and final substitution for every fixed \( a\ne0 \).
Solution
The common denominator is \( \displaystyle a^2x^2 \):
\[\begin{aligned}f'(a)&=\limit{x\to a}\dfrac{\ \dfrac{${k}}{x^2}-\dfrac{${k}}{a^2}\ }{\ x-a\ }\\&=\limit{x\to a}\dfrac{\ \dfrac{${scaled_a_squared}}{a^2x^2}-\dfrac{${scaled_x_squared}}{a^2x^2}\ }{\ x-a\ }\\&=\limit{x\to a}\dfrac{\ \dfrac{${"" if k == 1 else k}(a^2-x^2)}{a^2x^2}\ }{\ x-a\ }.\end{aligned}\]
Multiply by the reciprocal of \( \displaystyle x-a \), factor, and use \( \displaystyle a-x=-(x-a) \):
\[\begin{aligned}&\limit{x\to a}\dfrac{${"" if k == 1 else k}(a^2-x^2)}{a^2x^2}\cdot\dfrac{1}{x-a}\\&=\limit{x\to a}\dfrac{${"" if k == 1 else k}(a^2-x^2)}{a^2x^2(x-a)}\\&=\limit{x\to a}\dfrac{${"" if k == 1 else k}(a-x)(a+x)}{a^2x^2(x-a)}\\&=\limit{x\to a}\dfrac{${"-" if k == 1 else -k}(x-a)(a+x)}{a^2x^2(x-a)}.\end{aligned}\]
Cancel \( \displaystyle x-a \) for \( \displaystyle x\ne a \), then substitute:
\[\begin{aligned}f'(a)&=\limit{x\to a}\dfrac{${"-" if k == 1 else -k}(a+x)}{a^2x^2}\\&=\dfrac{${-2*k}a}{a^4}\\&=${answer}.\end{aligned}\]
For any fixed \( \displaystyle a\ne0 \), choosing \( \displaystyle 0<|x-a|<\dfrac{|a|}{2} \) keeps \( \displaystyle x \) away from both excluded inputs. After cancellation, the denominator approaches \( \displaystyle a^4\ne0 \), so continuity justifies the final substitution.
Explain why each function is not differentiable at the indicated input.
\( f(x)=|x-2| \) at \( x=2 \).
Solution
Since \( \displaystyle f(2)=0 \), the difference quotient there is \( \displaystyle \frac{|h|}{h} \). On the negative side it is \( \displaystyle -1 \), while on the positive side it is \( \displaystyle 1 \):
\[\limit{h\to0^-}\frac{|h|}{h}=-1,\qquad \limit{h\to0^+}\frac{|h|}{h}=1.\]
The slopes approach different values, so the two-sided limit defining the derivative does not exist. Thus \( \displaystyle f \) is not differentiable at \( \displaystyle 2 \).
The corner at \( (2,0) \) joins pieces with slopes \( -1 \) and \( 1 \). \( g(x)=\sqrt[3]{x+1} \) at \( x=-1 \).
Solution
At \( \displaystyle x=-1 \), the output is \( \displaystyle 0 \). For nonzero \( \displaystyle h \), the quotient simplifies by writing \( \displaystyle h=(\sqrt[3]{h})^3 \):
\[\begin{aligned}\limit{h\to0}\frac{g(-1+h)-g(-1)}{h}&=\limit{h\to0}\frac{\sqrt[3]{h}}{h}\\&=\limit{h\to0}\frac{1}{(\sqrt[3]{h})^2}\\&=\infty.\end{aligned}\]
As \( \displaystyle h \) approaches \( \displaystyle 0 \) from either side, the denominator stays positive and approaches \( \displaystyle 0 \). Thus the graph has a vertical tangent at \( \displaystyle x=-1 \), where there is no finite derivative.
The tangent is vertical at \( (-1,0) \); the slopes approach \( \infty \) as we approach that point from either side. \( \displaystyle q(x)=\begin{cases}x^2,&x<0,\\x+1,&x\ge0\end{cases} \) at \( x=0 \).
Solution
At the join \( \displaystyle x=0 \), the left-hand limit is \( \displaystyle 0 \), while the right-hand limit and the assigned output are \( \displaystyle 1 \):
\[\limit{x\to0^-}q(x)=0,\qquad \limit{x\to0^+}q(x)=1,\qquad q(0)=1.\]
The function is discontinuous at \( \displaystyle 0 \). Since differentiability implies continuity, it cannot be differentiable there.
The open point shows the left-hand approach, while the filled point marks \( q(0)=1 \). The jump prevents continuity and therefore differentiability.
Let \( r(x)=x|x| \). Find \( r'(0) \) using the limit definition.
Solution
At the fixed input, \( \displaystyle r(0)=0 \), while the nearby output is \( \displaystyle r(h)=h|h| \). The limit definition therefore gives
\[\begin{aligned}r'(0)&=\limit{h\to0}\frac{h|h|-0}{h}\\&=\limit{h\to0}|h|\\&=0.\end{aligned}\]
For nonzero \( \displaystyle h \), canceling \( \displaystyle h \) leaves \( \displaystyle |h| \), which approaches \( \displaystyle 0 \) from either side. Thus \( \displaystyle r'(0)=0 \), and the graph has a horizontal tangent there.
Both quadratic pieces meet the same horizontal tangent at \( (0,0) \). Suppose \( f \) and \( g \) are differentiable at \( a \). We already use the Sum Rule to differentiate \( F(x)=f(x)+g(x) \). Prove the rule from the limit definition using the argument below.
Group the two outputs of \( f \) together, and do the same for \( g \):
\(\displaystyle \limit{h\to0}\frac{F(a+h)-F(a)}{h}\)\(\displaystyle =\limit{h\to0}\frac{f(a+h)+g(a+h)-f(a)-g(a)}{h}\)\(\displaystyle =\limit{h\to0}\left(\frac{f(a+h)-f(a)}{h}+\frac{\)\(\displaystyle }{h}\right)\)\(\displaystyle =\)\(\displaystyle .\)
Write the intermediate step that separates the limit of the sum. This step is justified because . Explain why the resulting limit proves that \( F \) is differentiable at \( a \).
Solution
Regrouping the numerator gives the change in \( \displaystyle f \) plus the change in \( \displaystyle g \). Each change is divided by the same nonzero increment, so we obtain their two difference quotients. Differentiability tells us that their limits exist as finite real numbers, and the sum law for limits then gives
\[\begin{aligned}\limit{h\to0}\frac{F(a+h)-F(a)}{h}&=\limit{h\to0}\left(\frac{f(a+h)-f(a)}{h}+\frac{g(a+h)-g(a)}{h}\right)\\&=\limit{h\to0}\frac{f(a+h)-f(a)}{h}+\limit{h\to0}\frac{g(a+h)-g(a)}{h}\\&=f'(a)+g'(a).\end{aligned}\]
We have found a finite limit for the difference quotient of \( \displaystyle F \). By the definition of differentiability, \( \displaystyle F \) is therefore differentiable at \( \displaystyle a \), with \( \displaystyle F'(a)=f'(a)+g'(a) \).
Suppose \( f \) is differentiable at \( a \), and let \( c \) be any real constant. Verify the Constant Multiple Rule for \( F(x)=cf(x) \) using the proof below.
\(\displaystyle \limit{h\to0}\frac{F(a+h)-F(a)}{h}\)\(\displaystyle =\limit{h\to0}\frac{cf(a+h)-cf(a)}{h}\)\(\displaystyle =\limit{h\to0}\left(\)\(\displaystyle \cdot\frac{f(a+h)-f(a)}{h}\right)\)\(\displaystyle =c\limit{h\to0}\frac{f(a+h)-f(a)}{h}\)\(\displaystyle =\)\(\displaystyle .\)
Explain why \( c \) can move outside the limit and why the result establishes differentiability of \( F \). Does the same proof work when \( c=0 \)?
Solution
Factoring the numerator leaves \( \displaystyle c \) times the difference quotient of \( \displaystyle f \). The number \( \displaystyle c \) stays fixed as \( \displaystyle h \) approaches \( \displaystyle 0 \), and because \( \displaystyle f \) is differentiable at \( \displaystyle a \), its difference quotient approaches \( \displaystyle f'(a) \). The constant-multiple law for limits therefore gives
\[\begin{aligned}\limit{h\to0}\frac{F(a+h)-F(a)}{h}&=\limit{h\to0}\left(c\frac{f(a+h)-f(a)}{h}\right)\\&=c\limit{h\to0}\frac{f(a+h)-f(a)}{h}\\&=cf'(a).\end{aligned}\]
This finite limit proves that \( \displaystyle F \) is differentiable at \( \displaystyle a \) and that \( \displaystyle F'(a)=cf'(a) \). The argument also works for \( \displaystyle c=0 \): then \( \displaystyle F \) is the zero function and every difference quotient is \( \displaystyle 0 \).
We know that \( \displaystyle \frac{\dd{}}{\dd{x}}x^n=nx^{n-1} \). Prove this formula for every positive integer \( n \) using the limit definition and the difference-of-powers factorization.
Begin with \( f(x)=x^4 \). Using the factorization in the difference quotient gives
\(\displaystyle \limit{x\to a}\frac{x^4-a^4}{x-a}\)\(\displaystyle =\limit{x\to a}\frac{(x-a)(x^3+ax^2+a^2x+a^3)}{x-a}\)\(\displaystyle =\limit{x\to a}\left(x^3+ax^2+a^2x+a^3\right)\)\(\displaystyle =\)\(\displaystyle .\)
Explain why this cancellation works and how the number of terms determines the coefficient in the answer.
Solution
For the nearby inputs \( \displaystyle x\ne a \), the factor \( \displaystyle x-a \) is nonzero. Canceling it leaves a polynomial, so continuity allows substitution:
\[\begin{aligned}\limit{x\to a}\frac{x^4-a^4}{x-a}&=\limit{x\to a}\left(x^3+ax^2+a^2x+a^3\right)\\&=4a^3.\end{aligned}\]
There are \( \displaystyle 4 \) terms, and each becomes \( \displaystyle a^3 \) when we substitute \( \displaystyle x=a \). Their sum verifies \( \displaystyle f'(a)=4a^3 \), including at \( \displaystyle a=0 \).
For \( n=2 \), the factorization is \( x^2-a^2=(x-a)(x+a) \). For any integer \( n\ge2 \), the same pattern gives
\[x^n-a^n=(x-a)\left(\underbrace{x^{n-1}+\cdots+a^{n-1}}_{n\text{ terms}}\right).\]
The terms in parentheses follow the pattern \( a^j x^{n-1-j} \) for \( j=0,1,\ldots,n-1 \), with factors of exponent \( 0 \) omitted. Thus there are terms, and each approaches as \( x\to a \). Use this to complete the general argument:
\(\displaystyle \limit{x\to a}\frac{x^n-a^n}{x-a}\)\(\displaystyle =\limit{x\to a}\left(\underbrace{x^{n-1}+\cdots+a^{n-1}}_{n\text{ terms}}\right)\)\(\displaystyle =\)\(\displaystyle .\)
Explain why this proof also works when \( a=0 \).
Solution
After factoring the numerator, both numerator and denominator contain \( \displaystyle x-a \). We can cancel this factor at every nearby input used by the limit. The remaining sum is a polynomial, so we can substitute \( \displaystyle x=a \). Each of its \( \displaystyle n \) terms then becomes \( \displaystyle a^{n-1} \):
\[\begin{aligned}\limit{x\to a}\frac{x^n-a^n}{x-a}&=\limit{x\to a}\left(\underbrace{x^{n-1}+\cdots+a^{n-1}}_{n\text{ terms}}\right)\\&=na^{n-1}.\end{aligned}\]
This finite limit proves that \( \displaystyle f(x)=x^n \) is differentiable at \( \displaystyle a \), with \( \displaystyle f'(a)=na^{n-1} \). We canceled \( \displaystyle x-a \) rather than \( \displaystyle a \), so \( \displaystyle a=0 \) is included: the remaining polynomial reduces to \( \displaystyle x^{n-1} \), which approaches \( \displaystyle 0 \) because \( \displaystyle n\ge2 \).
Finish the remaining simple cases directly from the limit definition: for \( f(x)=x \), the derivative is ; for the constant function \( f(x)=1 \), it is . Write a limit calculation for each.
Solution
For the first power, every difference quotient equals \( \displaystyle 1 \):
\[\begin{aligned}f'(a)&=\limit{h\to0}\frac{(a+h)-a}{h}\\&=\limit{h\to0}1\\&=1.\end{aligned}\]
For the constant function, every output change is \( \displaystyle 0 \):
\[\begin{aligned}f'(a)&=\limit{h\to0}\frac{1-1}{h}\\&=\limit{h\to0}0\\&=0.\end{aligned}\]
These calculations hold at every real \( \displaystyle a \), completing the positive-integer Power Rule together with the constant case.
Suppose \( g \) is differentiable at \( a \) and \( f \) is differentiable at \( b=g(a) \). Assume the functions are defined on open intervals around these inputs, so \( F(x)=f(g(x)) \) is defined near \( a \). Prove the Chain Rule \( F'(a)=f'(g(a))g'(a) \) using the following argument.
The idea is to express the change in \( f \) as an average rate times the change in its input. As in our earlier work with removable holes, we can give that average-rate function a value at the missing input by using its limit.
Define
\[S(u)=\begin{cases}\displaystyle\frac{f(u)-f(b)}{u-b},&u\ne b,\\f'(b),&u=b.\end{cases}\]
By the definition of the derivative, \( \limit{u\to b}S(u)= \). Explain why this makes \( S \) continuous at \( b \).
Solution
At inputs near \( \displaystyle b \), the formula for \( \displaystyle S \) is precisely the moving-input difference quotient of \( \displaystyle f \). Differentiability at \( \displaystyle b \) tells us that
\[\begin{aligned}\limit{u\to b}S(u)&=\limit{u\to b}\frac{f(u)-f(b)}{u-b}\\&=f'(b).\end{aligned}\]
We assigned \( \displaystyle S(b)=f'(b) \), so the limit agrees with the value at the point. That is exactly the condition for continuity at \( \displaystyle b \).
Multiplying the quotient by its denominator gives an identity for \( u\ne b \):
\(\displaystyle f(u)-f(b)=S(u)\left(\)\(\displaystyle \right).\)
At \( u=b \), both sides equal . Explain why the same identity therefore works whether or not the inner function changes its output.
Solution
When \( \displaystyle u\ne b \), multiplication cancels the denominator in the definition of \( \displaystyle S(u) \). When \( \displaystyle u=b \), the left side is \( \displaystyle f(b)-f(b)=0 \), and the right side is \( \displaystyle f'(b)\cdot0=0 \). Thus
\[f(u)-f(b)=S(u)(u-b)\]
holds for every nearby \( \displaystyle u \), including \( \displaystyle u=b \). In particular, we can use it when the inner function gives \( \displaystyle g(a+h)=g(a) \).
Now substitute \( u=g(a+h) \) and \( b=g(a) \) into that identity, and divide by a nonzero \( h \):
\(\displaystyle \frac{F(a+h)-F(a)}{h}=S\left(\)\(\displaystyle \right)\frac{g(a+h)-g(a)}{h}.\)
Since \( g \) is differentiable at \( a \), it is also continuous there. Thus \( g(a+h)\to \) as \( h\to0 \). Use continuity of \( S \) at \( b \) to explain why the first factor approaches \( f'(b) \).
Solution
The identity from the previous part gives the displayed product exactly for every sufficiently small nonzero \( \displaystyle h \). As \( \displaystyle h \) approaches \( \displaystyle 0 \), continuity of \( \displaystyle g \) makes its output approach \( \displaystyle g(a)=b \). Continuity of \( \displaystyle S \) then gives
\[\limit{h\to0}S(g(a+h))=f'(b).\]
This also includes increments for which \( \displaystyle g(a+h)=b \), because the assigned value of \( \displaystyle S \) at that input is already \( \displaystyle f'(b) \).
Both factors now have finite limits. Use them in the final calculation, and explain why the result proves the Chain Rule:
\(\displaystyle \limit{h\to0}\frac{F(a+h)-F(a)}{h}\)\(\displaystyle =\limit{h\to0}\left(S(g(a+h))\frac{g(a+h)-g(a)}{h}\right)\)\(\displaystyle =\left(\limit{h\to0}S(g(a+h))\right)\left(\limit{h\to0}\frac{g(a+h)-g(a)}{h}\right)\)\(\displaystyle =f'(b)\cdot\)\(\displaystyle .\)
Solution
The first factor approaches \( \displaystyle f'(b) \) by the previous part, and the second approaches \( \displaystyle g'(a) \) by the definition of the derivative. Applying the product law for limits gives
\[\begin{aligned}\limit{h\to0}\frac{F(a+h)-F(a)}{h}&=\left(\limit{h\to0}S(g(a+h))\right)\left(\limit{h\to0}\frac{g(a+h)-g(a)}{h}\right)\\&=f'(g(a))g'(a).\end{aligned}\]
The difference quotient of \( \displaystyle F \) therefore has a finite limit. This proves that the composite is differentiable at \( \displaystyle a \) and verifies the Chain Rule:
\[F'(a)=f'(g(a))g'(a).\]