Summary
This lesson defines the derivative of a function at a point as a limit: the limit of the slopes of the secant lines, which is the slope of the tangent line, and the limit of the average velocities, which is the instantaneous velocity. It specifies at which points the definition makes sense, introduces one-sided derivatives, the tangent and normal lines, the derivative function and Leibniz notation, and proves that the derivative admits three equivalent formulations: the limit of the difference quotient, the approximation by a line with a negligible error, and the Carathéodory factorization. From the last one it follows that every differentiable function is continuous; the absolute value and the cube root show that the converse is false.
Learning objectives
- Define the derivative of a function at a point as the limit of the difference quotient, and interpret it as the slope of the tangent line and as an instantaneous velocity.
- Compute one-sided derivatives and use them to decide whether a function is differentiable at a point.
- Prove the equivalence between the difference quotient, the linear approximation and the Carathéodory characterization.
- Prove that every function differentiable at a point is continuous there, and recognize continuous functions that are not differentiable.
The tangent and the velocity
In the lesson on parabolas, a line is tangent to the curve at a point when it touches the curve only there without crossing it. That idea suffices for the conics, but not for an arbitrary curve. At the origin, the curve lies below the horizontal axis on the left and above it on the right: every line through the origin crosses it, and the lines with touch it only there, because requires or . No line satisfies the condition, and yet the horizontal axis is, to the eye, the line that best fits the curve near the origin. Another definition is therefore needed, one that depends not on the global shape of the curve but only on what happens near the point.
The idea is old: the tangent is the limiting position of the secant lines. Consider a function and a point on its graph. For , the secant line through and through has slope
As approaches , the second point approaches the first, and if the slopes have a limit, the line through with that slope is the candidate for the tangent.
Let and . We compute the slopes of some secants through the point and then their limit. The figure shows each secant and, at the end, the tangent.
Proof
With , the secant passes through and .
With , the second point is and the slope decreases.
In general, for every , positive or negative, the slope simplifies; with it equals .
As tends to , the slope tends to . The line through with slope is the tangent; it is the same one given by the lemma on the tangent in the lesson on parabolas, with .
The same limit appears when studying a motion. If is the position, at time , of a point moving along a line, the quotient is its average velocity between the times and : the displacement divided by the elapsed time. The velocity at time , the one a speedometer would show, is the limit of the average velocities as tends to . For example, if , the average velocity between and is , which tends to : at time , the point moves to the left at a rate of two units of length per unit of time. The two questions, that of the tangent and that of the velocity, lead to the same limit, and it is this limit that is defined below.
The derivative at a point
As in the lesson on the limit of a function, one must first specify where the limit makes sense. The quotient needs the value , so must belong to the domain; and the limit as tends to requires to be an accumulation point of the domain.
Let be a real function defined on a set of real numbers, and an element of that is an accumulation point of . The difference quotient of at is the function , defined for those in that are different from . We say that is differentiable at if the difference quotient has a real limit as tends to ; that number is the derivative of at , and it is written :
The quotient is defined on , and is an accumulation point of that set, because the definition of accumulation point looks only at the elements different from . By the uniqueness of the limit, the derivative, if it exists, is unique. At an isolated point of the domain the derivative is not defined, even though every function is continuous there. And if the quotient tends to or to , the function is not differentiable at : the derivative is a real number. The definition is often written with the increment instead of the point , as in the example.
Under the hypotheses of the definition, and considering only where it is defined:
This is the change of variable , which the translation and reflection proposition of the lesson on one-sided limits carried out for one side, now for both sides at once.
Proof
Let be the difference quotient. The function , for those with in , tends to , does not take the value , and its values lie in the domain of . By the theorem on composition of the lesson on the algebra of limits, if tends to at , then also tends to at .
Conversely, the function , for those in that are different from , tends to and does not take the value ; composed with , it gives the quotient , which tends to the same limit.
The first derivatives are computed directly. If , the difference quotient equals for every , and its limit is : the derivative of an affine function is its slope at every point, and its tangent line is the line itself. In particular, the derivative of a constant is and that of the identity is . For , the computation of the example, with instead of , gives , and the derivative is .
One-sided derivatives
At the endpoints of an interval, or at a point where the function changes formula, it is convenient to look at the difference quotient on each side separately.
Let be an element of that is an accumulation point of . We say that is differentiable from the right at if the difference quotient has a real right-hand limit at ; that limit is the right-hand derivative, :
Likewise, if is an accumulation point of , the left-hand derivative, , is the left-hand limit of the difference quotient, with the condition .
Let be an element of .
- If is an accumulation point of and of , then is differentiable at if and only if the two one-sided derivatives exist and are equal; in that case, .
- If is an accumulation point of the points of on one side only, then is differentiable at if and only if it is differentiable from that side, and the derivative is the one-sided derivative.
No new argument is needed: the one-sided derivatives are the one-sided limits of the difference quotient, and the lesson on one-sided limits already related them to the limit.
Proof
In the first case, the theorem on the limit and one-sided limits, applied to the difference quotient, gives the equivalence.
In the second, the same lesson observed that, when is an accumulation point of the points of the domain on one side only, the limit and the one-sided limit from that side coincide: there is an such that all in with lie on that side.
For example, the absolute value has at the difference quotient , which equals if and if : its one-sided derivatives are and , which are different, and is not differentiable at . On the other hand, if a function is defined on , its derivative at is its right-hand derivative, and at , its left-hand derivative: the definition already treats the endpoints of the domain as single sides. For example, restricted to is differentiable at , with .
Tangent and normal lines
With the derivative, the tangent ceases to be a figure recognized by eye and becomes a line that is computed.
Let be differentiable at . The tangent line to the graph of at the point is the line through it with slope :
The normal line at the same point is the perpendicular to the tangent through it: if , it is the line , and if , it is the vertical line .
The slope of the normal comes from the theorem on perpendicular lines of the lesson on the equation of a line: two non-vertical lines are perpendicular if and only if the product of their slopes is . Returning to the curve , its difference quotient at is , which tends to : the tangent at the origin is the horizontal axis, even though it crosses the curve. When is continuous at and the difference quotient tends to or to , the secants approach the vertical; one then says that the graph has at a vertical tangent, the line , even though is not differentiable at .
Likewise, if is the position of a point moving along a line, its velocity at time is , if it exists. Its sign indicates the direction of motion, and its absolute value, the speed. The lesson on rates of change will develop this reading.
The derivative function and Leibniz notation
Each point at which is differentiable contributes a number, its derivative there. With all of them a new function is formed.
Let be a function defined on . The derivative function of is the function that assigns to each point of at which is differentiable the number ; its domain is the set of those points. If is differentiable at every point of a set contained in , we say that it is differentiable on ; and if it is so on its whole domain, simply that it is differentiable.
For example, the derivative of is the function , defined on all of ; that of the absolute value equals on and on , and its domain does not contain . The notation , with the prime, is due to Lagrange. The other usual notation is due to Leibniz: if , the derivative is written , or , and the operation of differentiating with respect to is written in front of the expression being differentiated:
The notation recalls where the derivative comes from. If is the increment of the variable and the corresponding increment of the function, the difference quotient is , and the derivative is its limit:
It should be stressed that, for now, is a single symbol and not a quotient: and do not yet have a meaning on their own; they will in the lesson on higher-order derivatives and the differential. The notation makes explicit the variable with respect to which one differentiates: if position depends on time, velocity is written or .
Three characterizations of the derivative
The definition says that the difference quotient tends to . There are two other ways of saying the same thing, each useful for a different purpose: the second compares the function with its tangent line; the third avoids dividing.
Let be a function defined on , an element of that is an accumulation point of , and a real number. The following three statements are equivalent:
- Difference quotient. is differentiable at and .
- Linear approximation. as tends to ; that is, the remainder satisfies .
- Carathéodory. There exists a function , continuous at , with , such that for every in .
The little is the one from the lesson on equivalent infinitesimals and infinitely large functions, with considered only where it is defined. The function is the slope of the secant, completed at with the derivative. The figure shows, with and , the remainder between the curve and the tangent, a secant and, at the end, the graph of , which in this case is the line .
Proof
First and second: the quotient of the remainder by is the difference quotient minus . By the lemma on the limit as a distance that tends to zero, from the lesson on the algebra of limits, it tends to if and only if the difference quotient tends to , and by the increment form, this is equivalent to .
From the first to the third: define as the difference quotient away from and as at . The equality holds at every by the definition, and at because both of its sides equal . Since is an accumulation point of and the limit of at is , the proposition on continuity and limit of the lesson on limit and continuity gives the continuity of at .
From the third to the first: if , divide by , and the difference quotient is the restriction of to . Since is continuous at , by the same proposition it tends to , and by the lemma on restriction, from the lesson on the algebra of limits, so does the quotient.
The function of the third characterization, when it exists, is unique: away from it is the difference quotient, and at its value is the limit of that quotient. The second characterization explains in what sense the tangent is the line that best fits the curve. If is replaced by , with a slope different from , the error is , whose quotient by tends to : it is of the same order as . Only with the slope is the error negligible compared with . The third characterization has a technical advantage: it is an equality between products, without divisions. The lessons on differentiation rules and on the chain rule will use it to avoid dividing by quantities that may vanish. The first consequence is immediate.
If is differentiable at , then is continuous at . The Carathéodory factorization writes by means of operations between functions continuous at .
Proof
By the theorem on characterizations, there exists , continuous at , such that for every in .
The constant and the polynomial are continuous at , and so is . By the theorem on operations with continuous functions, from the lesson on limit and continuity, the sum of the constant and the product is continuous at .
The converse is false. Continuity requires to tend to ; differentiability requires more: that its quotient by have a limit, that is, that it tend to at least as fast as and without oscillating between different slopes.
The absolute value and the cube root are continuous at and not differentiable at : the first has different one-sided derivatives, and the difference quotient of the second tends to , so that its graph has a vertical tangent at the origin. Both are continuous by the corollary on known continuous functions, from the lesson on limit and continuity. The figure shows, for the absolute value, the two one-sided slopes and, for the cube root, ever steeper secants.
Proof
The difference quotient of the absolute value at equals on the right and on the left. The one-sided derivatives are different and, by the proposition on the derivative and one-sided derivatives, is not differentiable at .
The difference quotient of the cube root at is the reciprocal of , which is positive if and tends to by the continuity of the root. By the reciprocal lemma, from the lesson on infinite limits, the quotient tends to , and it has no real limit.
Both functions fail at a single point, but there are functions continuous on the whole line that are differentiable at no point; Weierstrass presented in 1872 the most famous example, whose construction is beyond this course.
Solved problems
The problems increase in difficulty: the first computes a derivative that ceases to exist at the edge of the domain; the second uses the tangent to discover a property of the hyperbola; the third shows that one-sided derivatives may fail to exist; the fourth, that a function can be differentiable at a single point; and the last combines the Carathéodory factorization with one-sided derivatives.
Study the differentiability of , defined on , and find the tangent line at the point with abscissa .
Solution
If , the difference quotient is of the form ; multiply and divide by the conjugate expression.
By the continuity of the root, the denominator tends to , and by the theorem on the limit of the reciprocal, from the lesson on the algebra of limits, the quotient tends to . At , the derivative is and the tangent passes through .
At there are points of the domain only on the right, and by the proposition on the derivative and one-sided derivatives, the derivative is the right-hand derivative. The quotient is , and since is positive and tends to , the reciprocal lemma gives .
Therefore, is differentiable on and not at , where it is continuous and its graph has the vertical tangent . The derivative function has a smaller domain than the function.
Prove that the tangent line to at a point , with , forms with the axes a triangle of area , whatever may be, and that the point of tangency is the midpoint of the line segment that the axes cut off on it.
Solution
The difference quotient simplifies on subtracting the fractions; by the theorem on the limit of the reciprocal, its limit is .
The tangent passes through with that slope.
With we obtain the intersection with the horizontal axis, and with , the intersection with the vertical one. The midpoint between them is the point of tangency.
The triangle has legs and along the axes. Its area does not depend on : the figure shows two such triangles, of different shapes and the same area.
Let and for , and . Prove that is continuous at and has at neither a derivative nor one-sided derivatives, and that is differentiable at , with .
Solution
By solved problem 3 of the lesson on limit and continuity, is continuous at . Its difference quotient at is .
Proposed problem 3 of the lesson on the limit proved that has no limit at using two families of positive points, at which it equals and . The same argument rules out the right-hand limit; with the opposite points, at which it equals and , the left-hand one is ruled out.
On the other hand, the difference quotient of is , the product of a bounded function and another that tends to ; by the theorem of the lesson on the squeeze theorem, it tends to .
Both functions oscillate infinitely often near . The oscillation of is bounded by , which is of the same order as the denominator , and the quotient keeps oscillating; that of is bounded by , which is negligible compared with , and the quotient dies out.
Let be the function that equals if is rational and if is irrational. Prove that is differentiable at , with , and that it is not differentiable at any other point.
Solution
Let be the function of solved problem 5 of the lesson on limit and continuity, which equals on the rationals and on the irrationals. Then for every , in both cases.
At , the difference quotient is , which tends to because that problem proved that is continuous at .
Let . If were continuous at , so would be , by the quotient rule for operations with continuous functions, with a nonzero denominator at ; but the same problem proved that is discontinuous at . Therefore, is discontinuous at , and by the theorem that differentiable implies continuous, it is not differentiable at .
Let be a function defined on an open interval containing , differentiable at and with . Prove that has at the one-sided derivatives and , so that it is differentiable at if and only if . Apply this to and to at .
Solution
By the Carathéodory characterization, , with continuous at and . On taking absolute values, the factor is on the right and on the left.
The function is continuous at , by the composition of continuous functions, and tends to . By the proposition on the derivative and one-sided derivatives, is differentiable at if and only if the two one-sided derivatives coincide, that is, if .
The sine satisfies , and its difference quotient at is , which tends to by the fundamental trigonometric limit: has at one-sided derivatives and , and is not differentiable. The cube has at the quotient , which tends to : is differentiable at , with derivative .
Proposed problems
The problems increase in difficulty: the first reads a derivative in the geometry of the circle and the sphere; the second looks for normal lines through a given point; the third shows that a one-sided derivative can exist where the function jumps; the fourth compares the tangent given by the derivative with that of the circle; and the last studies a quotient that resembles the derivative without being one. Each one has a hint, which is best opened only after attempting the problem.
Let be the area of the circle of radius and the volume of the sphere of radius . Compute, using the definition, and , and recognize each result.
Hint
Expand and and simplify the difference quotient before taking the limit. The increment of the area is the area of a ring of width .
Answer
They are the circumference of the circle and the surface area of the sphere.
Find all the points of the parabola whose normal line passes through the point , and write those normals.
Hint
The normal at has slope if ; require it to pass through . Do not forget the case , in which the derivative vanishes and the normal is vertical.
Answer
Three points: , with normal , and , with normals .
Prove that the integer part, , is differentiable at every non-integer real number, with derivative , and that at each integer it has a right-hand derivative, , but no left-hand derivative. Does this contradict the theorem that differentiable implies continuous?
Hint
At an integer , on the right the function equals , and on the left, : the difference quotient is on the right and on the left. For the last question, compare the hypothesis of the theorem with what happens at .
Answer
There is no contradiction: the function is not differentiable at ; the right-hand derivative only gives continuity from the right (the theorem, applied to the restriction of to ), which holds.
Let , the upper semicircle with center and radius . Compute for , prove that the tangent is perpendicular to the radius joining the origin to , as in the lesson on the circle, and study what happens at .
Hint
Multiply and divide the difference quotient by . If , the radius has slope ; if , it is vertical. At there are points of the domain only on the left.
Answer
At , the tangent is horizontal and the radius vertical. At the quotient tends to , and at , to : is not differentiable at , and its graph has vertical tangents there.
Let be defined on an open interval containing . Prove that, if is differentiable at , then . Prove with at that this limit can exist without being differentiable.
Hint
Write the linear approximation for and for and subtract them: the remainders give . For the absolute value, the numerator is .
Answer
The absolute value has symmetric difference quotient at , and it is not differentiable there.
Worked solution
Solution
By the linear approximation, with , the remainder satisfies . On replacing by , by the theorem on composition, also .
Subtract the two equalities and divide by ; by the theorem on the limit of a linear combination, the two quotients of the remainders give .
For the absolute value at , the numerator is zero for every , and the symmetric difference quotient tends to ; however, the one-sided derivatives are and . The symmetric difference quotient averages the two one-sided slopes and hides the corner.
Completed
Sign in to save your progress