Skip to content
Topos Uranos

The derivative as the limit of a function

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

  1. 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.
  2. Compute one-sided derivatives and use them to decide whether a function is differentiable at a point.
  3. Prove the equivalence between the difference quotient, the linear approximation and the Carathéodory characterization.
  4. 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 y=x3y = x^3 lies below the horizontal axis on the left and above it on the right: every line through the origin crosses it, and the lines y=mxy = mx with m<0m < 0 touch it only there, because x3=mxx^3 = mx requires x=0x = 0 or x2=mx^2 = m. 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 ff and a point (a,f(a))(a, f(a)) on its graph. For h≠0h \neq 0, the secant line through (a,f(a))(a, f(a)) and through (a+h,f(a+h))(a + h, f(a + h)) has slope

f(a+h)−f(a)h\frac{f(a + h) - f(a)}{h}

As hh approaches 00, the second point approaches the first, and if the slopes have a limit, the line through (a,f(a))(a, f(a)) with that slope is the candidate for the tangent.

ExampleThe secants of a parabola

Let f(x)=x2f(x) = x^2 and a=1a = 1. We compute the slopes of some secants through the point (1,1)(1, 1) and then their limit. The figure shows each secant and, at the end, the tangent.

Proof

  1. f(2)−f(1)1=4−11=3\frac{f(2) - f(1)}{1} = \frac{4 - 1}{1} = \resaltar{3}

    With h=1h = 1, the secant passes through (1,1)(1, 1) and (2,4)(2, 4).

  2. f(32)−f(1)12=94−112=52\frac{f\left(\frac{3}{2}\right) - f(1)}{\frac{1}{2}} = \frac{\frac{9}{4} - 1}{\frac{1}{2}} = \resaltar{\frac{5}{2}}

    With h=12h = \frac{1}{2}, the second point is (32,94)\left(\frac{3}{2}, \frac{9}{4}\right) and the slope decreases.

  3. (1+h)2−1h=2h+h2h=2+h\frac{(1 + h)^2 - 1}{h} = \frac{2h + h^2}{h} = \resaltar{2 + h}

    In general, for every h≠0h \neq 0, positive or negative, the slope simplifies; with h=14h = \frac{1}{4} it equals 94\frac{9}{4}.

  4. lim⁡h→0(2+h)=2,y=1+2(x−1)=2x−1\lim_{h \to 0} (2 + h) = 2, \qquad y = 1 + 2(x - 1) = \resaltar{2x - 1}

    As hh tends to 00, the slope tends to 22. The line through (1,1)(1, 1) with slope 22 is the tangent; it is the same one given by the lemma on the tangent in the lesson on parabolas, with x2=4⋅14 yx^2 = 4 \cdot \frac{1}{4} \, y.

The same limit appears when studying a motion. If s(t)s(t) is the position, at time tt, of a point moving along a line, the quotient s(t0+h)−s(t0)h\frac{s(t_0 + h) - s(t_0)}{h} is its average velocity between the times t0t_0 and t0+ht_0 + h: the displacement divided by the elapsed time. The velocity at time t0t_0, the one a speedometer would show, is the limit of the average velocities as hh tends to 00. For example, if s(t)=t2−4ts(t) = t^2 - 4t, the average velocity between 11 and 1+h1 + h is (1+h)2−4(1+h)+3h=h−2\frac{(1 + h)^2 - 4(1 + h) + 3}{h} = h - 2, which tends to −2-2: at time 11, 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 f(a)f(a), so aa must belong to the domain; and the limit as xx tends to aa requires aa to be an accumulation point of the domain.

DefinitionDerivative of a function at a point

Let ff be a real function defined on a set AA of real numbers, and aa an element of AA that is an accumulation point of AA. The difference quotient of ff at aa is the function f(x)−f(a)x−a\frac{f(x) - f(a)}{x - a}, defined for those xx in AA that are different from aa. We say that ff is differentiable at aa if the difference quotient has a real limit LL as xx tends to aa; that number is the derivative of ff at aa, and it is written f′(a)f'(a):

f′(a)=L↔(∀ε>0)(∃δ>0)(∀x∈A)(0<∣x−a∣<δ→∣f(x)−f(a)x−a−L∣<ε)f'(a) = L \leftrightarrow (\forall \varepsilon > 0)(\exists \delta > 0)(\forall x \in A)\left(0 < \abs{x - a} < \delta \rightarrow \abs{\frac{f(x) - f(a)}{x - a} - L} < \varepsilon\right)

The quotient is defined on A∖{a}A \setminus \{a\}, and aa is an accumulation point of that set, because the definition of accumulation point looks only at the elements different from aa. 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 ∞\infty or to −∞-\infty, the function is not differentiable at aa: the derivative is a real number. The definition is often written with the increment h=x−ah = x - a instead of the point xx, as in the example.

PropositionIncrement form of the derivative

Under the hypotheses of the definition, and considering f(a+h)f(a + h) only where it is defined:

f′(a)=L⇔lim⁡h→0f(a+h)−f(a)h=Lf'(a) = L \Leftrightarrow \lim_{h \to 0} \frac{f(a + h) - f(a)}{h} = L

This is the change of variable x=a+hx = a + h, 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

  1. Q(a+h)=f(a+h)−f(a)h,h≠0→a+h≠aQ(a + h) = \frac{f(a + h) - f(a)}{h}, \qquad h \neq 0 \rightarrow a + h \neq a

    Let Q(x)Q(x) be the difference quotient. The function g(h)=a+hg(h) = a + h, for those h≠0h \neq 0 with a+ha + h in AA, tends to aa, does not take the value aa, and its values lie in the domain of QQ. By the theorem on composition of the lesson on the algebra of limits, if QQ tends to LL at aa, then Q(a+h)Q(a + h) also tends to LL at 00.

  2. Q(x)=Q(a+(x−a)),x≠a→x−a≠0Q(x) = Q\left(a + (x - a)\right), \qquad x \neq a \rightarrow \resaltar{x - a \neq 0}

    Conversely, the function x−ax - a, for those xx in AA that are different from aa, tends to 00 and does not take the value 00; composed with h↦Q(a+h)h \mapsto Q(a + h), it gives the quotient Q(x)Q(x), which tends to the same limit.

The first derivatives are computed directly. If f(x)=mx+bf(x) = mx + b, the difference quotient equals m(a+h)+b−(ma+b)h=m\frac{m(a + h) + b - (ma + b)}{h} = m for every h≠0h \neq 0, and its limit is mm: 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 00 and that of the identity f(x)=xf(x) = x is 11. For f(x)=x2f(x) = x^2, the computation of the example, with aa instead of 11, gives (a+h)2−a2h=2a+h\frac{(a + h)^2 - a^2}{h} = 2a + h, and the derivative is 2a2a.

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.

DefinitionOne-sided derivatives

Let aa be an element of AA that is an accumulation point of A∩(a,∞)A \cap \ioo{a}{\infty}. We say that ff is differentiable from the right at aa if the difference quotient has a real right-hand limit at aa; that limit is the right-hand derivative, f+′(a)f'_+(a):

f+′(a)=L↔(∀ε>0)(∃δ>0)(∀x∈A)(a<x<a+δ→∣f(x)−f(a)x−a−L∣<ε)f'_+(a) = L \leftrightarrow (\forall \varepsilon > 0)(\exists \delta > 0)(\forall x \in A)\left(a < x < a + \delta \rightarrow \abs{\frac{f(x) - f(a)}{x - a} - L} < \varepsilon\right)

Likewise, if aa is an accumulation point of A∩(−∞,a)A \cap \ioo{-\infty}{a}, the left-hand derivative, f−′(a)f'_-(a), is the left-hand limit of the difference quotient, with the condition a−δ<x<aa - \delta < x < a.

PropositionDerivative and one-sided derivatives

Let aa be an element of AA.

  • If aa is an accumulation point of A∩(a,∞)A \cap \ioo{a}{\infty} and of A∩(−∞,a)A \cap \ioo{-\infty}{a}, then ff is differentiable at aa if and only if the two one-sided derivatives exist and are equal; in that case, f′(a)=f+′(a)=f−′(a)f'(a) = f'_+(a) = f'_-(a).
  • If aa is an accumulation point of the points of AA on one side only, then ff is differentiable at aa 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

  1. lim⁡x→af(x)−f(a)x−a=L⇔f+′(a)=L=f−′(a)\lim_{x \to a} \frac{f(x) - f(a)}{x - a} = L \Leftrightarrow f'_+(a) = L = \resaltar{f'_-(a)}

    In the first case, the theorem on the limit and one-sided limits, applied to the difference quotient, gives the equivalence.

  2. (∀x∈A)(0<∣x−a∣<r→x>a)→f′(a)=f+′(a)\left(\forall x \in A\right)\left(0 < \abs{x - a} < r \rightarrow x > a\right) \rightarrow f'(a) = \resaltar{f'_+(a)}

    In the second, the same lesson observed that, when aa 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 r>0r > 0 such that all xx in AA with 0<∣x−a∣<r0 < \abs{x - a} < r lie on that side.

For example, the absolute value has at 00 the difference quotient ∣x∣x\frac{\abs{x}}{x}, which equals 11 if x>0x > 0 and −1-1 if x<0x < 0: its one-sided derivatives are f+′(0)=1f'_+(0) = 1 and f−′(0)=−1f'_-(0) = -1, which are different, and ∣x∣\abs{x} is not differentiable at 00. On the other hand, if a function is defined on [0,1]\icc{0}{1}, its derivative at 00 is its right-hand derivative, and at 11, its left-hand derivative: the definition already treats the endpoints of the domain as single sides. For example, f(x)=xf(x) = x restricted to [0,1]\icc{0}{1} is differentiable at 00, with f′(0)=1f'(0) = 1.

Tangent and normal lines

With the derivative, the tangent ceases to be a figure recognized by eye and becomes a line that is computed.

DefinitionTangent line and normal line

Let ff be differentiable at aa. The tangent line to the graph of ff at the point (a,f(a))(a, f(a)) is the line through it with slope f′(a)f'(a):

y=f(a)+f′(a)(x−a)y = f(a) + f'(a)(x - a)

The normal line at the same point is the perpendicular to the tangent through it: if f′(a)≠0f'(a) \neq 0, it is the line y=f(a)−1f′(a)(x−a)y = f(a) - \frac{1}{f'(a)}(x - a), and if f′(a)=0f'(a) = 0, it is the vertical line x=ax = a.

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 −1-1. Returning to the curve y=x3y = x^3, its difference quotient at 00 is x2x^2, which tends to 00: the tangent at the origin is the horizontal axis, even though it crosses the curve. When ff is continuous at aa and the difference quotient tends to ∞\infty or to −∞-\infty, the secants approach the vertical; one then says that the graph has at (a,f(a))(a, f(a)) a vertical tangent, the line x=ax = a, even though ff is not differentiable at aa.

Likewise, if s(t)s(t) is the position of a point moving along a line, its velocity at time t0t_0 is s′(t0)s'(t_0), 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 ff is differentiable contributes a number, its derivative there. With all of them a new function is formed.

DefinitionDerivative function

Let ff be a function defined on AA. The derivative function of ff is the function f′f' that assigns to each point xx of AA at which ff is differentiable the number f′(x)f'(x); its domain is the set of those points. If ff is differentiable at every point of a set SS contained in AA, we say that it is differentiable on SS; and if it is so on its whole domain, simply that it is differentiable.

For example, the derivative of x2x^2 is the function 2x2x, defined on all of R\mathbb{R}; that of the absolute value equals 11 on (0,∞)\ioo{0}{\infty} and −1-1 on (−∞,0)\ioo{-\infty}{0}, and its domain does not contain 00. The notation f′f', with the prime, is due to Lagrange. The other usual notation is due to Leibniz: if y=f(x)y = f(x), the derivative is written dydx\frac{\mathrm{d}y}{\mathrm{d}x}, or dfdx\frac{\mathrm{d}f}{\mathrm{d}x}, and the operation of differentiating with respect to xx is written ddx\frac{\mathrm{d}}{\mathrm{d}x} in front of the expression being differentiated:

ddx(x2)=2x,ddx(mx+b)=m\frac{\mathrm{d}}{\mathrm{d}x}\left(x^2\right) = 2x, \qquad \frac{\mathrm{d}}{\mathrm{d}x}\left(mx + b\right) = m

The notation recalls where the derivative comes from. If Δx\Delta x is the increment of the variable and Δy=f(x+Δx)−f(x)\Delta y = f(x + \Delta x) - f(x) the corresponding increment of the function, the difference quotient is ΔyΔx\frac{\Delta y}{\Delta x}, and the derivative is its limit:

dydx=lim⁡Δx→0ΔyΔx\frac{\mathrm{d}y}{\mathrm{d}x} = \lim_{\Delta x \to 0} \frac{\Delta y}{\Delta x}

It should be stressed that, for now, dydx\frac{\mathrm{d}y}{\mathrm{d}x} is a single symbol and not a quotient: dy\mathrm{d}y and dx\mathrm{d}x 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 s′(t)s'(t) or dsdt\frac{\mathrm{d}s}{\mathrm{d}t}.

Three characterizations of the derivative

The definition says that the difference quotient tends to f′(a)f'(a). 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.

TheoremCharacterizations of the derivative

Let ff be a function defined on AA, aa an element of AA that is an accumulation point of AA, and LL a real number. The following three statements are equivalent:

  • Difference quotient. ff is differentiable at aa and f′(a)=Lf'(a) = L.
  • Linear approximation. f(a+h)=f(a)+Lh+o⁡(h)f(a + h) = f(a) + Lh + \operatorname{o}(h) as hh tends to 00; that is, the remainder R(h)=f(a+h)−f(a)−LhR(h) = f(a + h) - f(a) - Lh satisfies lim⁡h→0R(h)h=0\lim_{h \to 0} \frac{R(h)}{h} = 0.
  • Carathéodory. There exists a function φ ⁣:A→R\varphi \colon A \to \mathbb{R}, continuous at aa, with φ(a)=L\varphi(a) = L, such that f(x)−f(a)=φ(x)(x−a)f(x) - f(a) = \varphi(x)(x - a) for every xx in AA.

The little o⁡\operatorname{o} is the one from the lesson on equivalent infinitesimals and infinitely large functions, with f(a+h)f(a + h) considered only where it is defined. The function φ\varphi is the slope of the secant, completed at aa with the derivative. The figure shows, with f(x)=x2+12f(x) = \frac{x^2 + 1}{2} and a=1a = 1, the remainder between the curve and the tangent, a secant and, at the end, the graph of φ\varphi, which in this case is the line φ(x)=x+12\varphi(x) = \frac{x + 1}{2}.

Proof

  1. R(h)h=f(a+h)−f(a)h−L→0⇔f(a+h)−f(a)h→L\frac{R(h)}{h} = \frac{f(a + h) - f(a)}{h} - L \to 0 \Leftrightarrow \resaltar{\frac{f(a + h) - f(a)}{h} \to L}

    First and second: the quotient of the remainder by hh is the difference quotient minus LL. By the lemma on the limit as a distance that tends to zero, from the lesson on the algebra of limits, it tends to 00 if and only if the difference quotient tends to LL, and by the increment form, this is equivalent to f′(a)=Lf'(a) = L.

  2. φ(x)={f(x)−f(a)x−ax≠aLx=a,lim⁡x→aφ(x)=L=φ(a)\varphi(x) = \begin{cases} \frac{f(x) - f(a)}{x - a} & x \neq a \\ L & x = a \end{cases}, \qquad \lim_{x \to a} \varphi(x) = L = \resaltar{\varphi(a)}

    From the first to the third: define φ\varphi as the difference quotient away from aa and as LL at aa. The equality holds at every x≠ax \neq a by the definition, and at x=ax = a because both of its sides equal 00. Since aa is an accumulation point of AA and the limit of φ\varphi at aa is L=φ(a)L = \varphi(a), the proposition on continuity and limit of the lesson on limit and continuity gives the continuity of φ\varphi at aa.

  3. x≠a→f(x)−f(a)x−a=φ(x)→φ(a)=Lx \neq a \rightarrow \frac{f(x) - f(a)}{x - a} = \varphi(x) \to \varphi(a) = \resaltar{L}

    From the third to the first: if x≠ax \neq a, divide by x−ax - a, and the difference quotient is the restriction of φ\varphi to A∖{a}A \setminus \{a\}. Since φ\varphi is continuous at aa, by the same proposition it tends to φ(a)=L\varphi(a) = L, and by the lemma on restriction, from the lesson on the algebra of limits, so does the quotient.

The function φ\varphi of the third characterization, when it exists, is unique: away from aa it is the difference quotient, and at aa 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 f(a+h)f(a + h) is replaced by f(a)+mhf(a) + mh, with a slope mm different from f′(a)f'(a), the error is (f′(a)−m)h+o⁡(h)(f'(a) - m)h + \operatorname{o}(h), whose quotient by hh tends to f′(a)−m≠0f'(a) - m \neq 0: it is of the same order as hh. Only with the slope f′(a)f'(a) is the error negligible compared with hh. 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.

TheoremDifferentiable implies continuous

If ff is differentiable at aa, then ff is continuous at aa. The Carathéodory factorization writes ff by means of operations between functions continuous at aa.

Proof

  1. f(x)=f(a)+φ(x)(x−a)f(x) = f(a) + \varphi(x)(x - a)

    By the theorem on characterizations, there exists φ\varphi, continuous at aa, such that f(x)=f(a)+φ(x)(x−a)f(x) = f(a) + \varphi(x)(x - a) for every xx in AA.

  2. lim⁡x→af(x)=f(a)+φ(a)⋅0=f(a)\lim_{x \to a} f(x) = f(a) + \varphi(a) \cdot 0 = \resaltar{f(a)}

    The constant f(a)f(a) and the polynomial x−ax - a are continuous at aa, and so is φ\varphi. 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 aa.

The converse is false. Continuity requires f(x)−f(a)f(x) - f(a) to tend to 00; differentiability requires more: that its quotient by x−ax - a have a limit, that is, that it tend to 00 at least as fast as x−ax - a and without oscillating between different slopes.

PropositionContinuity without a derivative

The absolute value and the cube root are continuous at 00 and not differentiable at 00: the first has different one-sided derivatives, and the difference quotient of the second tends to ∞\infty, 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

  1. f+′(0)=lim⁡x→0+∣x∣x=1≠−1=lim⁡x→0−∣x∣x=f−′(0)f'_+(0) = \lim_{x \to 0^+} \frac{\abs{x}}{x} = 1 \neq -1 = \lim_{x \to 0^-} \frac{\abs{x}}{x} = \resaltar{f'_-(0)}

    The difference quotient of the absolute value at 00 equals 11 on the right and −1-1 on the left. The one-sided derivatives are different and, by the proposition on the derivative and one-sided derivatives, ∣x∣\abs{x} is not differentiable at 00.

  2. x3−0x−0=1(x3)2→∞\frac{\sqrt[3]{x} - 0}{x - 0} = \frac{1}{\left(\sqrt[3]{x}\right)^2} \to \resaltar{\infty}

    The difference quotient of the cube root at 00 is the reciprocal of (x3)2\left(\sqrt[3]{x}\right)^2, which is positive if x≠0x \neq 0 and tends to 00 by the continuity of the root. By the reciprocal lemma, from the lesson on infinite limits, the quotient tends to ∞\infty, 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.

Solved problem 1The square root at the edge of its domain

Study the differentiability of f(x)=xf(x) = \sqrt{x}, defined on [0,∞)\ico{0}{\infty}, and find the tangent line at the point with abscissa 44.

Solution

  1. a+h−ah=(a+h)−a(a+h+a)h=1a+h+a\frac{\sqrt{a + h} - \sqrt{a}}{h} = \frac{(a + h) - a}{\left(\sqrt{a + h} + \sqrt{a}\right) h} = \frac{1}{\sqrt{a + h} + \sqrt{a}}

    If a>0a > 0, the difference quotient is of the form 00\frac{0}{0}; multiply and divide by the conjugate expression.

  2. f′(a)=12a,y=2+14(x−4)=x4+1f'(a) = \resaltar{\frac{1}{2\sqrt{a}}}, \qquad y = 2 + \frac{1}{4}(x - 4) = \frac{x}{4} + 1

    By the continuity of the root, the denominator tends to 2a≠02\sqrt{a} \neq 0, and by the theorem on the limit of the reciprocal, from the lesson on the algebra of limits, the quotient tends to 12a\frac{1}{2\sqrt{a}}. At a=4a = 4, the derivative is 14\frac{1}{4} and the tangent passes through (4,2)(4, 2).

  3. lim⁡h→0+h−0h=lim⁡h→0+1h=∞\lim_{h \to 0^+} \frac{\sqrt{h} - 0}{h} = \lim_{h \to 0^+} \frac{1}{\sqrt{h}} = \resaltar{\infty}

    At a=0a = 0 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 1h\frac{1}{\sqrt{h}}, and since h\sqrt{h} is positive and tends to 00, the reciprocal lemma gives ∞\infty.

  4. f ⁣:[0,∞)→R,f′ ⁣:(0,∞)→Rf \colon \ico{0}{\infty} \to \mathbb{R}, \qquad f' \colon \resaltar{\ioo{0}{\infty}} \to \mathbb{R}

    Therefore, x\sqrt{x} is differentiable on (0,∞)\ioo{0}{\infty} and not at 00, where it is continuous and its graph has the vertical tangent x=0x = 0. The derivative function has a smaller domain than the function.

Solved problem 2The tangent to the hyperbola

Prove that the tangent line to y=1xy = \frac{1}{x} at a point (a,1a)\left(a, \frac{1}{a}\right), with a>0a > 0, forms with the axes a triangle of area 22, whatever aa may be, and that the point of tangency is the midpoint of the line segment that the axes cut off on it.

Solution

  1. 1a+h−1ah=−ha(a+h) h=−1a(a+h)→−1a2\frac{\frac{1}{a + h} - \frac{1}{a}}{h} = \frac{-h}{a(a + h) \, h} = -\frac{1}{a(a + h)} \to \resaltar{-\frac{1}{a^2}}

    The difference quotient simplifies on subtracting the fractions; by the theorem on the limit of the reciprocal, its limit is −1a2-\frac{1}{a^2}.

  2. y=1a−1a2(x−a)=2a−xa2y = \frac{1}{a} - \frac{1}{a^2}(x - a) = \resaltar{\frac{2}{a} - \frac{x}{a^2}}

    The tangent passes through (a,1a)\left(a, \frac{1}{a}\right) with that slope.

  3. (2a,0),(0,2a),(2a+02,0+2a2)=(a,1a)\dato{c}{(2a, 0), \quad \left(0, \frac{2}{a}\right)}, \qquad \left(\frac{2a + 0}{2}, \frac{0 + \frac{2}{a}}{2}\right) = \resaltar{\left(a, \frac{1}{a}\right)}

    With y=0y = 0 we obtain the intersection with the horizontal axis, and with x=0x = 0, the intersection with the vertical one. The midpoint between them is the point of tangency.

  4. 12⋅2a⋅2a=2\frac{1}{2} \cdot 2a \cdot \frac{2}{a} = \resaltar{2}

    The triangle has legs 2a2a and 2a\frac{2}{a} along the axes. Its area does not depend on aa: the figure shows two such triangles, of different shapes and the same area.

Solved problem 3Continuous and without one-sided derivatives

Let f(x)=xsin⁡1xf(x) = x \sin \frac{1}{x} and g(x)=x2sin⁡1xg(x) = x^2 \sin \frac{1}{x} for x≠0x \neq 0, and f(0)=g(0)=0f(0) = g(0) = 0. Prove that ff is continuous at 00 and has at 00 neither a derivative nor one-sided derivatives, and that gg is differentiable at 00, with g′(0)=0g'(0) = 0.

Solution

  1. f(x)−f(0)x−0=xsin⁡1xx=sin⁡1x\frac{f(x) - f(0)}{x - 0} = \frac{x \sin \frac{1}{x}}{x} = \resaltar{\sin \frac{1}{x}}

    By solved problem 3 of the lesson on limit and continuity, ff is continuous at 00. Its difference quotient at 00 is sin⁡1x\sin \frac{1}{x}.

  2. sin⁡1xn=1,sin⁡1yn=−1,xn=1π2+2nπ,yn=13π2+2nπ\sin \frac{1}{x_n} = 1, \quad \sin \frac{1}{y_n} = -1, \qquad x_n = \frac{1}{\frac{\pi}{2} + 2n\pi}, \quad y_n = \frac{1}{\frac{3\pi}{2} + 2n\pi}

    Proposed problem 3 of the lesson on the limit proved that sin⁡1x\sin \frac{1}{x} has no limit at 00 using two families of positive points, at which it equals 11 and −1-1. The same argument rules out the right-hand limit; with the opposite points, at which it equals −1-1 and 11, the left-hand one is ruled out.

  3. g(x)−g(0)x−0=xsin⁡1x→0,g′(0)=0\frac{g(x) - g(0)}{x - 0} = x \sin \frac{1}{x} \to 0, \qquad g'(0) = \resaltar{0}

    On the other hand, the difference quotient of gg is xsin⁡1xx \sin \frac{1}{x}, the product of a bounded function and another that tends to 00; by the theorem of the lesson on the squeeze theorem, it tends to 00.

  4. ∣g(x)∣≤x2=o⁡(x)\abs{g(x)} \leq x^2 = \resaltar{\operatorname{o}(x)}

    Both functions oscillate infinitely often near 00. The oscillation of ff is bounded by ∣x∣\abs{x}, which is of the same order as the denominator x−0x - 0, and the quotient keeps oscillating; that of gg is bounded by x2x^2, which is negligible compared with xx, and the quotient dies out.

Solved problem 4Differentiable at a single point

Let ff be the function that equals x2x^2 if xx is rational and 00 if xx is irrational. Prove that ff is differentiable at 00, with f′(0)=0f'(0) = 0, and that it is not differentiable at any other point.

Solution

  1. x∈Q→x g(x)=x2,x∉Q→x g(x)=0x \in \mathbb{Q} \rightarrow x \, g(x) = x^2, \qquad x \notin \mathbb{Q} \rightarrow x \, g(x) = 0

    Let gg be the function of solved problem 5 of the lesson on limit and continuity, which equals xx on the rationals and 00 on the irrationals. Then f(x)=x g(x)f(x) = x \, g(x) for every xx, in both cases.

  2. f(x)−f(0)x−0=x g(x)x=g(x)→g(0)=0,f′(0)=0\frac{f(x) - f(0)}{x - 0} = \frac{x \, g(x)}{x} = g(x) \to g(0) = 0, \qquad f'(0) = \resaltar{0}

    At 00, the difference quotient is g(x)g(x), which tends to g(0)=0g(0) = 0 because that problem proved that gg is continuous at 00.

  3. lim⁡x→af(x)=f(a)→lim⁡x→af(x)x=f(a)a=g(a)\lim_{x \to a} f(x) = f(a) \rightarrow \lim_{x \to a} \frac{f(x)}{x} = \frac{f(a)}{a} = \resaltar{g(a)}

    Let a≠0a \neq 0. If ff were continuous at aa, so would be g(x)=f(x)xg(x) = \frac{f(x)}{x}, by the quotient rule for operations with continuous functions, with a nonzero denominator at aa; but the same problem proved that gg is discontinuous at aa. Therefore, ff is discontinuous at aa, and by the theorem that differentiable implies continuous, it is not differentiable at aa.

Solved problem 5The absolute value of a differentiable function

Let ff be a function defined on an open interval containing aa, differentiable at aa and with f(a)=0f(a) = 0. Prove that F=∣f∣F = \abs{f} has at aa the one-sided derivatives ∣f′(a)∣\abs{f'(a)} and −∣f′(a)∣-\abs{f'(a)}, so that it is differentiable at aa if and only if f′(a)=0f'(a) = 0. Apply this to ∣sin⁡x∣\abs{\sin x} and to ∣x3∣\abs{x^3} at 00.

Solution

  1. F(x)−F(a)x−a=∣f(x)∣−∣f(a)∣x−a=∣φ(x)∣∣x−a∣x−a={∣φ(x)∣x>a−∣φ(x)∣x<a\frac{F(x) - F(a)}{x - a} = \frac{\abs{f(x)} - \abs{f(a)}}{x - a} = \frac{\abs{\varphi(x)}\abs{x - a}}{x - a} = \begin{cases} \abs{\varphi(x)} & x > a \\ -\abs{\varphi(x)} & x < a \end{cases}

    By the Carathéodory characterization, f(x)=φ(x)(x−a)f(x) = \varphi(x)(x - a), with φ\varphi continuous at aa and φ(a)=f′(a)\varphi(a) = f'(a). On taking absolute values, the factor ∣x−a∣\abs{x - a} is x−ax - a on the right and a−xa - x on the left.

  2. F+′(a)=∣f′(a)∣,F−′(a)=−∣f′(a)∣,∣f′(a)∣=−∣f′(a)∣⇔f′(a)=0F'_+(a) = \abs{f'(a)}, \qquad F'_-(a) = -\abs{f'(a)}, \qquad \abs{f'(a)} = -\abs{f'(a)} \Leftrightarrow \resaltar{f'(a) = 0}

    The function ∣φ∣\abs{\varphi} is continuous at aa, by the composition of continuous functions, and tends to ∣f′(a)∣\abs{f'(a)}. By the proposition on the derivative and one-sided derivatives, FF is differentiable at aa if and only if the two one-sided derivatives coincide, that is, if ∣f′(a)∣=−∣f′(a)∣\abs{f'(a)} = -\abs{f'(a)}.

  3. sin⁡xx→1≠0,x3x=x2→0\frac{\sin x}{x} \to 1 \neq 0, \qquad \frac{x^3}{x} = x^2 \to \resaltar{0}

    The sine satisfies sin⁡0=0\sin 0 = 0, and its difference quotient at 00 is sin⁡xx\frac{\sin x}{x}, which tends to 11 by the fundamental trigonometric limit: ∣sin⁡x∣\abs{\sin x} has at 00 one-sided derivatives 11 and −1-1, and is not differentiable. The cube has at 00 the quotient x2x^2, which tends to 00: ∣x3∣\abs{x^3} is differentiable at 00, with derivative 00.

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.

Proposed problem 1The area of the circle and the volume of the sphere

Let A(r)=πr2A(r) = \pi r^2 be the area of the circle of radius rr and V(r)=43πr3V(r) = \frac{4}{3}\pi r^3 the volume of the sphere of radius rr. Compute, using the definition, dAdr\frac{\mathrm{d}A}{\mathrm{d}r} and dVdr\frac{\mathrm{d}V}{\mathrm{d}r}, and recognize each result.

Hint

Expand (r+h)2(r + h)^2 and (r+h)3(r + h)^3 and simplify the difference quotient before taking the limit. The increment of the area is the area of a ring of width hh.

Answer
dAdr=2πr,dVdr=4πr2\frac{\mathrm{d}A}{\mathrm{d}r} = 2\pi r, \qquad \frac{\mathrm{d}V}{\mathrm{d}r} = 4\pi r^2

They are the circumference of the circle and the surface area of the sphere.

Proposed problem 2Normals through a point

Find all the points of the parabola y=x2y = x^2 whose normal line passes through the point (0,1)(0, 1), and write those normals.

Hint

The normal at (a,a2)(a, a^2) has slope −12a-\frac{1}{2a} if a≠0a \neq 0; require it to pass through (0,1)(0, 1). Do not forget the case a=0a = 0, in which the derivative vanishes and the normal is vertical.

Answer

Three points: (0,0)(0, 0), with normal x=0x = 0, and (±22,12)\left(\pm\frac{\sqrt{2}}{2}, \frac{1}{2}\right), with normals y=1∓x2y = 1 \mp \frac{x}{\sqrt{2}}.

Proposed problem 3The one-sided derivatives of the integer part

Prove that the integer part, E(x)=⌊x⌋E(x) = \lfloor x \rfloor, is differentiable at every non-integer real number, with derivative 00, and that at each integer nn it has a right-hand derivative, 00, but no left-hand derivative. Does this contradict the theorem that differentiable implies continuous?

Hint

At an integer nn, on the right the function equals nn, and on the left, n−1n - 1: the difference quotient is 00 on the right and −1x−n\frac{-1}{x - n} on the left. For the last question, compare the hypothesis of the theorem with what happens at nn.

Answer
E′(x)=0(x∉Z),E+′(n)=0,lim⁡x→n−E(x)−E(n)x−n=∞E'(x) = 0 \quad (x \notin \mathbb{Z}), \qquad E'_+(n) = 0, \qquad \lim_{x \to n^-} \frac{E(x) - E(n)}{x - n} = \infty

There is no contradiction: the function is not differentiable at nn; the right-hand derivative only gives continuity from the right (the theorem, applied to the restriction of EE to [n,∞)\ico{n}{\infty}), which holds.

Proposed problem 4The tangent to the circle

Let f(x)=1−x2f(x) = \sqrt{1 - x^2}, the upper semicircle with center (0,0)(0, 0) and radius 11. Compute f′(a)f'(a) for −1<a<1-1 < a < 1, prove that the tangent is perpendicular to the radius joining the origin to (a,f(a))(a, f(a)), as in the lesson on the circle, and study what happens at a=±1a = \pm 1.

Hint

Multiply and divide the difference quotient by 1−(a+h)2+1−a2\sqrt{1 - (a + h)^2} + \sqrt{1 - a^2}. If a≠0a \neq 0, the radius has slope f(a)a\frac{f(a)}{a}; if a=0a = 0, it is vertical. At a=1a = 1 there are points of the domain only on the left.

Answer
f′(a)=−a1−a2,−a1−a2⋅1−a2a=−1(a≠0)f'(a) = -\frac{a}{\sqrt{1 - a^2}}, \qquad -\frac{a}{\sqrt{1 - a^2}} \cdot \frac{\sqrt{1 - a^2}}{a} = -1 \quad (a \neq 0)

At a=0a = 0, the tangent is horizontal and the radius vertical. At a=1a = 1 the quotient tends to −∞-\infty, and at a=−1a = -1, to ∞\infty: ff is not differentiable at ±1\pm 1, and its graph has vertical tangents there.

Proposed problem 5The symmetric difference quotient

Let ff be defined on an open interval containing aa. Prove that, if ff is differentiable at aa, then lim⁡h→0f(a+h)−f(a−h)2h=f′(a)\lim_{h \to 0} \frac{f(a + h) - f(a - h)}{2h} = f'(a). Prove with f(x)=∣x∣f(x) = \abs{x} at a=0a = 0 that this limit can exist without ff being differentiable.

Hint

Write the linear approximation for hh and for −h-h and subtract them: the remainders give o⁡(h)\operatorname{o}(h). For the absolute value, the numerator is ∣h∣−∣−h∣\abs{h} - \abs{-h}.

Answer
f(a+h)−f(a−h)2h=f′(a)+R(h)−R(−h)2h→f′(a),∣h∣−∣−h∣2h=0\frac{f(a + h) - f(a - h)}{2h} = f'(a) + \frac{R(h) - R(-h)}{2h} \to f'(a), \qquad \frac{\abs{h} - \abs{-h}}{2h} = 0

The absolute value has symmetric difference quotient 00 at 00, and it is not differentiable there.

Worked solution

Solution

  1. f(a+h)=f(a)+f′(a)h+R(h),f(a−h)=f(a)−f′(a)h+R(−h)f(a + h) = f(a) + f'(a)h + R(h), \qquad f(a - h) = f(a) - f'(a)h + R(-h)

    By the linear approximation, with L=f′(a)L = f'(a), the remainder RR satisfies R(h)h→0\frac{R(h)}{h} \to 0. On replacing hh by −h-h, by the theorem on composition, also R(−h)−h→0\frac{R(-h)}{-h} \to 0.

  2. f(a+h)−f(a−h)2h=f′(a)+12⋅R(h)h+12⋅R(−h)−h→f′(a)\frac{f(a + h) - f(a - h)}{2h} = f'(a) + \frac{1}{2} \cdot \frac{R(h)}{h} + \frac{1}{2} \cdot \frac{R(-h)}{-h} \to \resaltar{f'(a)}

    Subtract the two equalities and divide by 2h2h; by the theorem on the limit of a linear combination, the two quotients of the remainders give 00.

  3. ∣h∣−∣−h∣2h=0,f+′(0)=1≠−1=f−′(0)\frac{\abs{h} - \abs{-h}}{2h} = \resaltar{0}, \qquad f'_+(0) = 1 \neq -1 = f'_-(0)

    For the absolute value at 00, the numerator is zero for every hh, and the symmetric difference quotient tends to 00; however, the one-sided derivatives are 11 and −1-1. The symmetric difference quotient averages the two one-sided slopes and hides the corner.