Math ClubMath Club
v1 · padrão canônico

Lesson 51 — The derivative: definition via limits

The derivative as the limit of the average rate of change. Tangent line. Differentiability implies continuity, but not conversely. Computing derivatives from the definition for elementary functions.

Used in: Year 2 of high school (ages 16–17) · Equiv. Japanese Math II (微分) · Equiv. German Klasse 11 (Analysis)

f(a)=limh0f(a+h)f(a)hf'(a) = \lim_{h \to 0} \frac{f(a+h) - f(a)}{h}

The derivative of f at the point a: the limit of the average rate of change as the increment hh shrinks to zero. Geometrically, it is the slope of the tangent line to the graph of f at the point (a,f(a))(a,\, f(a)). Physically, it is the instantaneous rate of change of f at a.

Choose your door

Rigorous notation, full derivation, hypotheses

Rigorous definition and theorems

Definition of the derivative

"We say that a function ff is differentiable at x=ax = a whenever f(a)f'(a) exists. […] The derivative measures the instantaneous rate of change of the function, as well as the slope of the tangent line to the function at the given point." — Boelkins, Active Calculus §1.3

"The derivative of a function f(x)f(x) at a point aa in its domain, if it exists, is f(a)=limh0f(a+h)f(a)hf'(a) = \lim_{h \to 0}\frac{f(a+h)-f(a)}{h}." — OpenStax Calculus Vol. 1, §3.1

Equivalent notations

f(x)  =  dfdx  =  dydx  =  Df(x)  =  f˙(x)f'(x) \;=\; \frac{df}{dx} \;=\; \frac{dy}{dx} \;=\; Df(x) \;=\; \dot{f}(x)
what this means · All notations below represent the same object — the derivative of f. Leibniz (dy/dx), Lagrange (f'), Newton (f with a dot), and the operator D are the most common.

The expression dfdxx=a\frac{df}{dx}\Big|_{x=a} denotes the derivative evaluated at the point aa.

From secant to tangent — geometry of the limit

xyy = f(x)(a, f(a))(a+h, f(a+h))secanttangent (h→0)hf(a+h)−f(a)

The secant line (orange) passes through the points (a, f(a)) and (a+h, f(a+h)). As h → 0, the secant rotates until it coincides with the tangent line (gold). The derivative is the slope of that limiting line.

Tangent line and normal line

If ff is differentiable at aa:

  • Tangent line at (a,f(a))(a, f(a)): yf(a)=f(a)(xa)\quad y - f(a) = f'(a)(x - a)
  • Normal line at (a,f(a))(a, f(a)) (perpendicular to the tangent, when f(a)0f'(a) \neq 0): yf(a)=1f(a)(xa)\quad y - f(a) = -\dfrac{1}{f'(a)}(x - a)

Fundamental theorem of differentiability

"If ff is differentiable at aa, then ff is continuous at aa. […] The converse is not true, and a function can be continuous but fail to be differentiable at a point." — OpenStax Calculus Vol. 1, §3.2

Points of non-differentiability

Basic derivatives via the definition

Function f(x)f(x)f(x)f'(x)
cc (constant)00
xx11
x2x^22x2x
x3x^33x23x^2
xnx^n (nZn \in \mathbb{Z})nxn1n x^{n-1}
1x\dfrac{1}{x}1x2-\dfrac{1}{x^2}
x\sqrt{x}12x\dfrac{1}{2\sqrt{x}}

Worked examples

Exercise list

40 exercises · 10 with worked solution (25%)

Application 20Understanding 10Modeling 7Challenge 2Proof 1
  1. Ex. 51.1Application

    Compute f(3)f'(3) for f(x)=x2f(x) = x^2 using the definition of the derivative.

    Select the correct option
    Select an option first
    Show solution
    By the definition: f(3)=limh0(3+h)29h=limh06h+h2h=limh0(6+h)=6f'(3) = \lim_{h \to 0}\frac{(3+h)^2 - 9}{h} = \lim_{h \to 0}\frac{6h + h^2}{h} = \lim_{h \to 0}(6 + h) = 6. Answer: f(3)=6f'(3) = 6.
    Show step-by-step (with the why)
    1. Form the difference quotient with a=3a = 3. Compute f(3+h)=(3+h)2=9+6h+h2f(3+h) = (3+h)^2 = 9 + 6h + h^2 and f(3)=9f(3) = 9. The quotient is 9+6h+h29h=6h+h2h\frac{9 + 6h + h^2 - 9}{h} = \frac{6h + h^2}{h}.
    2. Factor and cancel hh. The numerator has common factor hh: h(6+h)h=6+h\frac{h(6+h)}{h} = 6 + h. The cancellation is valid because in the limit process h0h \neq 0.
    3. Take the limit. limh0(6+h)=6\lim_{h \to 0}(6 + h) = 6. Therefore f(3)=6f'(3) = 6.

    Shortcut: for f(x)=x2f(x) = x^2, the derivative is f(x)=2xf'(x) = 2x — evaluate directly at x=3x = 3 to check your result. Distractor (C) represents the mistake of giving the difference quotient without taking the limit — a classic definitional error.

  2. Ex. 51.2Application

    Compute f(a)f'(a) for f(x)=x3f(x) = x^3 using the definition.

    Select the correct option
    Select an option first
    Show solution
    Expand (a+h)3=a3+3a2h+3ah2+h3(a+h)^3 = a^3 + 3a^2h + 3ah^2 + h^3. The difference quotient simplifies to 3a2+3ah+h23a^2 + 3ah + h^2. Taking the limit h0h \to 0: f(a)=3a2f'(a) = 3a^2. Distractor (B) is the classic mistake of stopping at the simplified difference quotient without taking the limit — the difference quotient (average rate) is not the derivative (instantaneous rate).
    Show step-by-step (with the why)
    1. Compute f(a+h)f(a+h). (a+h)3=a3+3a2h+3ah2+h3(a+h)^3 = a^3 + 3a^2h + 3ah^2 + h^3 (cube of a sum).
    2. Form the quotient. (a+h)3a3h=3a2h+3ah2+h3h=3a2+3ah+h2\frac{(a+h)^3 - a^3}{h} = \frac{3a^2h + 3ah^2 + h^3}{h} = 3a^2 + 3ah + h^2. The terms without hh (a3a^3) cancel exactly.
    3. Take the limit h0h \to 0. limh0(3a2+3ah+h2)=3a2\lim_{h \to 0}(3a^2 + 3ah + h^2) = 3a^2. Terms containing hh vanish.

    Pattern: for xnx^n, the derivative is nxn1nx^{n-1}. This exercise confirms the case n=3n=3.

  3. Ex. 51.3Application

    Compute f(a)f'(a) for f(x)=cf(x) = c (a real constant) from the definition.

    Select the correct option
    Select an option first
    Show solution
    For f(x)=cf(x) = c (constant), f(a+h)=cf(a+h) = c and f(a)=cf(a) = c. Therefore the quotient cch=0\frac{c - c}{h} = 0 for all h0h \neq 0. The limit is f(a)=0f'(a) = 0. A constant function has no variation — rate of change is zero at every point.
  4. Ex. 51.4ApplicationAnswer key

    Compute f(a)f'(a) for f(x)=mx+bf(x) = mx + b (linear function) from the definition. (Ans: mm.)

    Select the correct option
    Select an option first
    Show solution
    For f(x)=mx+bf(x) = mx + b: f(a+h)=m(a+h)+b=ma+mh+bf(a+h) = m(a+h)+b = ma + mh + b. Quotient: ma+mh+bmabh=mhh=m\frac{ma + mh + b - ma - b}{h} = \frac{mh}{h} = m. Limit: f(a)=mf'(a) = m. The derivative of a linear function is its own slope — constant. Distractor (D) is the difference quotient before the limit (m+hm + h still contains hh).
    Show step-by-step (with the why)
    1. Compute f(a+h)f(a+h). Substitute x=a+hx = a+h: m(a+h)+b=ma+mh+bm(a+h) + b = ma + mh + b.
    2. Form the quotient. (ma+mh+b)(ma+b)h=mhh=m\frac{(ma + mh + b) - (ma + b)}{h} = \frac{mh}{h} = m. The hh cancels exactly.
    3. Limit. limh0m=m\lim_{h \to 0} m = m. The derivative is the slope mm, constant at every point.

    Curiosity: this result confirms that the tangent line to a line is the line itself — the "linear approximation" of a function that is already linear is exact.

  5. Ex. 51.5Application

    Compute f(2)f'(2) for f(x)=2x2+3xf(x) = 2x^2 + 3x from the definition.

    Select the correct option
    Select an option first
    Show solution
    For f(x)=2x2+3xf(x) = 2x^2 + 3x: f(2+h)=2(4+4h+h2)+6+3h=14+11h+2h2f(2+h) = 2(4 + 4h + h^2) + 6 + 3h = 14 + 11h + 2h^2. f(2)=14f(2) = 14. Quotient: 11h+2h2h=11+2h\frac{11h + 2h^2}{h} = 11 + 2h. Limit: f(2)=11f'(2) = 11. Distractor (A) is the mistake of confusing the average rate (the simplified difference quotient, which still depends on hh) with the instantaneous rate (the limit as h0h \to 0).
  6. Ex. 51.6Application

    Compute f(1)f'(1) for f(x)=2x25x+1f(x) = 2x^2 - 5x + 1 from the definition. (Ans: 1-1.)

    Select the correct option
    Select an option first
    Show solution
    For f(x)=2x25x+1f(x) = 2x^2 - 5x + 1: f(1+h)=2(1+h)25(1+h)+1=2h+2h2f(1+h) = 2(1+h)^2 - 5(1+h) + 1 = -2 - h + 2h^2. f(1)=2f(1) = -2. Quotient: h+2h2h=1+2h\frac{-h + 2h^2}{h} = -1 + 2h. Limit: f(1)=1f'(1) = -1. Negative sign: ff is decreasing at x=1x = 1.
    Show step-by-step (with the why)
    1. Compute f(1+h)f(1+h). Substitute x=1+hx = 1+h: 2(1+h)25(1+h)+12(1+h)^2 - 5(1+h) + 1. Expand (1+h)2=1+2h+h2(1+h)^2 = 1 + 2h + h^2. Therefore f(1+h)=2+4h+2h255h+1=2h+2h2f(1+h) = 2 + 4h + 2h^2 - 5 - 5h + 1 = -2 - h + 2h^2.
    2. Form the quotient. f(1)=2(1)5(1)+1=2f(1) = 2(1) - 5(1) + 1 = -2. Quotient: (2h+2h2)(2)h=h+2h2h=1+2h\frac{(-2 - h + 2h^2) - (-2)}{h} = \frac{-h + 2h^2}{h} = -1 + 2h.
    3. Limit. limh0(1+2h)=1\lim_{h \to 0}(-1 + 2h) = -1. Negative derivative: the function is decreasing at x=1x = 1.

    Shortcut: before applying the definition to polynomials, fully expand f(a+h)f(a+h) and organize by powers of hh — terms without hh always cancel with f(a)f(a).

  7. Ex. 51.7Application

    Compute the derivative function f(x)f'(x) for f(x)=2x2x+3f(x) = 2x^2 - x + 3 from the definition.

    Select the correct option
    Select an option first
    Show solution
    For f(x)=2x2x+3f(x) = 2x^2 - x + 3: difference quotient 2(x+h)2(x+h)+3(2x2x+3)h=4xh+2h2hh=4x+2h1\frac{2(x+h)^2 - (x+h) + 3 - (2x^2 - x + 3)}{h} = \frac{4xh + 2h^2 - h}{h} = 4x + 2h - 1. Limit: f(x)=4x1f'(x) = 4x - 1. Distractor (A) gives the simplified difference quotient (which still contains hh) as the final answer, without completing the limit h0h \to 0.
  8. Ex. 51.8Application

    Use the definition to compute f(a)f'(a) for f(x)=x4f(x) = x^4.

    Select the correct option
    Select an option first
    Show solution
    Expand (a+h)4=a4+4a3h+6a2h2+4ah3+h4(a+h)^4 = a^4 + 4a^3h + 6a^2h^2 + 4ah^3 + h^4. The difference quotient is 4a3+6a2h+4ah2+h34a^3 + 6a^2h + 4ah^2 + h^3. In the limit: f(a)=4a3f'(a) = 4a^3. This confirms the pattern (xn)=nxn1(x^n)' = nx^{n-1} for n=4n=4. Distractor (D) gives the simplified difference quotient as the derivative — forgetting that the derivative requires h0h \to 0.
  9. Ex. 51.9ApplicationAnswer key

    Compute f(0)f'(0) for f(x)=x2xf(x) = x^2 - x from the definition.

    Select the correct option
    Select an option first
    Show solution
    For f(x)=x2xf(x) = x^2 - x: f(h)=h2hf(h) = h^2 - h, f(0)=0f(0) = 0. Quotient: h2hh=h1\frac{h^2 - h}{h} = h - 1. Limit: f(0)=1f'(0) = -1. The negative sign means the function is decreasing at x=0x = 0. Distractor (A) is a sign error in f(a+h)f(a)f(a+h)-f(a) — computing (0+h)-(0+h) incorrectly as +h+h.
    Show step-by-step (with the why)
    1. Compute f(0+h)=f(h)f(0+h) = f(h). h2hh^2 - h. And f(0)=0f(0) = 0.
    2. Form the quotient. h2h0h=h(h1)h=h1\frac{h^2 - h - 0}{h} = \frac{h(h-1)}{h} = h - 1. Cancel the hh.
    3. Take the limit. limh0(h1)=1\lim_{h \to 0}(h - 1) = -1. Negative derivative: ff is decreasing at x=0x = 0.

    Watch the sign: the numerator is f(0+h)f(0)=h2hf(0+h) - f(0) = h^2 - h, not h2+hh^2 + h. The sign error produces +1+1 instead of 1-1.

  10. Ex. 51.10ApplicationAnswer key

    Compute f(a)f'(a) for f(x)=2x32xf(x) = 2x^3 - 2x from the definition.

    Select the correct option
    Select an option first
    Show solution
    Expand f(a+h)=2(a+h)32(a+h)=2(a3+3a2h+3ah2+h3)2a2hf(a+h) = 2(a+h)^3 - 2(a+h) = 2(a^3 + 3a^2h + 3ah^2 + h^3) - 2a - 2h. Subtracting f(a)=2a32af(a) = 2a^3 - 2a and dividing by hh: 6a2+6ah+2h226a^2 + 6ah + 2h^2 - 2. Limit: f(a)=6a22f'(a) = 6a^2 - 2. Distractor (D) is the simplified difference quotient without the limit — confuses average rate with derivative.
  11. Ex. 51.11Application

    Compute f(2)f'(2) for f(x)=1/xf(x) = 1/x from the definition. (Ans: 1/4-1/4.)

    Select the correct option
    Select an option first
    Show solution
    For f(x)=1/xf(x) = 1/x: f(a)=1/a2f'(a) = -1/a^2 (computed in Example 2). At a=2a = 2: f(2)=1/4f'(2) = -1/4. Negative sign: the hyperbola is decreasing for x>0x > 0. Distractor (A) is the classic sign error for rational functions: when combining 1/(2+h)1/21/(2+h) - 1/2, taking 2(2+h)2-(2+h) as +(2+h)2=h+(2+h)-2 = h instead of h-h.
    Show step-by-step (with the why)
    1. Difference quotient. 1/(2+h)1/2h\frac{1/(2+h) - 1/2}{h}. Combine the fractions: numerator = 2(2+h)2(2+h)=h2(2+h)\frac{2 - (2+h)}{2(2+h)} = \frac{-h}{2(2+h)}.
    2. Divide by hh. hh2(2+h)=12(2+h)\frac{-h}{h \cdot 2(2+h)} = \frac{-1}{2(2+h)}.
    3. Limit. limh012(2+h)=122=14\lim_{h \to 0} \frac{-1}{2(2+h)} = \frac{-1}{2 \cdot 2} = -\frac{1}{4}.

    Shortcut: for f(x)=1/xf(x) = 1/x, always use common denominator a(a+h)a(a+h) to combine the numerator fractions — the manipulation is always the same.

  12. Ex. 51.12ApplicationAnswer key

    Compute f(4)f'(4) for f(x)=xf(x) = \sqrt{x} from the definition. (Ans: 1/41/4.)

    Select the correct option
    Select an option first
    Show solution
    For f(x)=xf(x) = \sqrt{x}: multiply numerator and denominator by (a+h+a)(\sqrt{a+h}+\sqrt{a}). The quotient becomes 1/(a+h+a)1/(\sqrt{a+h}+\sqrt{a}). Limit: f(a)=1/(2a)f'(a) = 1/(2\sqrt{a}). At a=4a=4: f(4)=1/(22)=1/4f'(4) = 1/(2 \cdot 2) = 1/4.
  13. Ex. 51.13ApplicationAnswer key

    Compute f(1)f'(1) for f(x)=1/xf(x) = 1/x from the definition and write the equation of the tangent line at x=1x = 1.

    Select the correct option
    Select an option first
    Show solution
    For f(x)=1/xf(x) = 1/x, f(a)=1/a2f'(a) = -1/a^2. At a=1a = 1: f(1)=1f'(1) = -1. The tangent line passes through (1,1)(1, 1) with slope 1-1: y1=1(x1)y=x+2y - 1 = -1(x-1) \Rightarrow y = -x + 2. Distractor (A) gets the sign of the derivative wrong — takes f(a)=+1/a2f'(a) = +1/a^2 (sign error in f(a+h)f(a)f(a+h)-f(a)). Distractor (D) gets the derivative right but writes the wrong tangent equation (wrong intercept sign).
  14. Ex. 51.14Application

    Find the equation of the tangent line to y=x2y = x^2 at the point x=2x = 2.

    Select the correct option
    Select an option first
    Show solution
    The derivative of f(x)=x2f(x) = x^2 is f(x)=2xf'(x) = 2x. At x=2x = 2: f(2)=4f'(2) = 4 and f(2)=4f(2) = 4. Tangent line: y4=4(x2)y=4x4y - 4 = 4(x - 2) \Rightarrow y = 4x - 4.
    Show step-by-step (with the why)
    1. Compute f(2)f(2). f(2)=4f(2) = 4. Point of tangency: (2,4)(2, 4).
    2. Compute f(2)f'(2). From the definition or Example 1 result: f(x)=2xf'(x) = 2x, so f(2)=4f'(2) = 4. This is the slope of the tangent.
    3. Point-slope form. y4=4(x2)y - 4 = 4(x - 2). Simplify: y=4x8+4=4x4y = 4x - 8 + 4 = 4x - 4.
    4. Check. At x=2x = 2: y=4(2)4=4=f(2)y = 4(2) - 4 = 4 = f(2). Correct.

    Shortcut: the tangent line always has the form y=f(a)(xa)+f(a)y = f'(a)(x - a) + f(a) — memorize this template and you will not need to rederive it.

  15. Ex. 51.15ApplicationAnswer key

    Find the equation of the tangent line to y=1/xy = 1/x at the point x=1x = 1.

    Select the correct option
    Select an option first
    Show solution
    f(x)=1/xf(x) = 1/x, f(1)=1f(1) = 1, f(1)=1f'(1) = -1. Tangent line: y1=1(x1)y=x+2y - 1 = -1(x - 1) \Rightarrow y = -x + 2.
  16. Ex. 51.16Application

    For f(x)=x24xf(x) = x^2 - 4x, at what value of xx is the tangent line horizontal? Find the point on the graph.

    Select the correct option
    Select an option first
    Show solution
    The derivative of f(x)=x24xf(x) = x^2 - 4x is f(x)=2x4f'(x) = 2x - 4 (from the definition). The tangent is horizontal when f(x)=0f'(x) = 0: 2x4=0x=22x - 4 = 0 \Rightarrow x = 2. The point is (2,f(2))=(2,4)(2, f(2)) = (2, -4). Distractor (A) confuses the root of f(x)f(x) (x=4x=4 where f(4)=0f(4)=0) with the zero of f(x)f'(x) — mixing up function value and tangent slope.
  17. Ex. 51.17Application

    Compute f(9)f'(9) for f(x)=xf(x) = \sqrt{x} from the definition.

    Select the correct option
    Select an option first
    Show solution
    For f(x)=xf(x) = \sqrt{x}, f(a)=1/(2a)f'(a) = 1/(2\sqrt{a}). At a=9a = 9: f(9)=1/(29)=1/(23)=1/6f'(9) = 1/(2\sqrt{9}) = 1/(2 \cdot 3) = 1/6. Distractor (A) misses the factor 2: drops the 22 from the denominator, giving 1/9=1/31/\sqrt{9} = 1/3. Distractor (D) uses 292 \cdot 9 instead of 292\sqrt{9}.
    Show step-by-step (with the why)
    1. Conjugate. 9+h9h9+h+99+h+9=(9+h)9h(9+h+9)=hh(9+h+3)\frac{\sqrt{9+h} - \sqrt{9}}{h} \cdot \frac{\sqrt{9+h}+\sqrt{9}}{\sqrt{9+h}+\sqrt{9}} = \frac{(9+h)-9}{h(\sqrt{9+h}+\sqrt{9})} = \frac{h}{h(\sqrt{9+h}+3)}.
    2. Cancel hh. 19+h+3\frac{1}{\sqrt{9+h}+3}.
    3. Limit. limh019+h+3=13+3=16\lim_{h \to 0}\frac{1}{\sqrt{9+h}+3} = \frac{1}{3+3} = \frac{1}{6}.

    Conjugate technique: always use AB=ABA+B\sqrt{A} - \sqrt{B} = \frac{A-B}{\sqrt{A}+\sqrt{B}} to eliminate square roots in the numerator and cancel hh.

  18. Ex. 51.18Application

    Compute f(a)f'(a) for f(x)=1/x2f(x) = 1/x^2 from the definition.

    Select the correct option
    Select an option first
    Show solution
    For f(x)=1/x2f(x) = 1/x^2: difference quotient 1/(a+h)21/a2h=a2(a+h)2ha2(a+h)2=2ahh2ha2(a+h)2=2aha2(a+h)2\frac{1/(a+h)^2 - 1/a^2}{h} = \frac{a^2 - (a+h)^2}{h \cdot a^2(a+h)^2} = \frac{-2ah - h^2}{h \cdot a^2(a+h)^2} = \frac{-2a - h}{a^2(a+h)^2}. Limit: f(a)=2a/a4=2/a3f'(a) = -2a/a^4 = -2/a^3. Distractor (A) is the classic sign error: computing a2(a+h)2a^2 - (a+h)^2 as +(2ah+h2)+(2ah+h^2) instead of (2ah+h2)-(2ah+h^2).
  19. Ex. 51.19Application

    Equation of the tangent line to y=x3y = x^3 at x=2x = 2.

    Select the correct option
    Select an option first
    Show solution
    From Example 3: f(x)=3x2f'(x) = 3x^2. At x=2x = 2: f(2)=12f'(2) = 12 and f(2)=8f(2) = 8. Tangent: y8=12(x2)y=12x16y - 8 = 12(x - 2) \Rightarrow y = 12x - 16.
  20. Ex. 51.20ApplicationAnswer key

    Find the equation of the normal line to y=x2y = x^2 at the point x=1x = 1.

    Select the correct option
    Select an option first
    Show solution
    For f(x)=x2f(x) = x^2: f(x)=2xf'(x) = 2x, so f(1)=2f'(1) = 2. The tangent at x=1x=1 has slope 22. The normal line is perpendicular, slope 1/f(1)=1/2-1/f'(1) = -1/2. Point: (1,1)(1, 1). Equation: y1=12(x1)y=12x+32y - 1 = -\frac{1}{2}(x - 1) \Rightarrow y = -\frac{1}{2}x + \frac{3}{2}. Distractor (A) gives the tangent (y=2x1y = 2x - 1) instead of the normal — confuses tangent with its perpendicular.
  21. Ex. 51.21Understanding

    Is f(x)=xf(x) = |x| differentiable at x=0x = 0? Justify your answer by computing the one-sided derivatives.

    Select the correct option
    Select an option first
    Show solution
    Right-hand derivative: limh0+h/h=1\lim_{h \to 0^+} |h|/h = 1. Left-hand derivative: limh0h/h=1\lim_{h \to 0^-} |h|/h = -1. Since f+(0)f(0)f'_+(0) \neq f'_-(0), the derivative does not exist at 00. Note that ff is continuous at 00 — this is the canonical example of continuity without differentiability.
    Show step-by-step (with the why)
    1. Check continuity. limx0x=0=0\lim_{x \to 0}|x| = 0 = |0|. Continuous — but continuity does not guarantee differentiability.
    2. Right-hand derivative (h>0h > 0). limh0+0+h0h=limh0+hh=1\lim_{h \to 0^+}\frac{|0+h|-|0|}{h} = \lim_{h \to 0^+}\frac{h}{h} = 1.
    3. Left-hand derivative (h<0h < 0). For h<0h < 0, h=h|h| = -h. Therefore limh0hh=1\lim_{h \to 0^-}\frac{-h}{h} = -1.
    4. Conclusion. 111 \neq -1: one-sided derivatives diverge. Not differentiable at 00. The graph has a corner at (0,0)(0,0).

    Shortcut: whenever a function is piecewise-defined or involves absolute value, compute the one-sided derivatives separately — do not assume that the existence of the limit implies the two sides agree.

  22. Ex. 51.22Understanding

    Is f(x)=xxf(x) = x|x| differentiable at x=0x = 0? (Ans: yes, f(0)=0f'(0) = 0.)

    Select the correct option
    Select an option first
    Show solution
    For f(x)=xxf(x) = x|x|: right-hand limit limh0+hh/h=limh0+h=0\lim_{h \to 0^+}h|h|/h = \lim_{h \to 0^+}|h| = 0. Left-hand limit: limh0hh/h=limh0h=0\lim_{h \to 0^-}h|h|/h = \lim_{h \to 0^-}|h| = 0. Both equal 00: differentiable with f(0)=0f'(0) = 0. Contrast with x|x|: the extra factor xx smooths out the corner.
  23. Ex. 51.23Understanding

    Analyze f(x)=x3f(x) = \sqrt[3]{x} at x=0x = 0. Does the limit of the difference quotient exist? (Ans: ++\infty — vertical tangent.)

    Select the correct option
    Select an option first
    Show solution
    Quotient: h30h=h1/3/h=h2/3=1/h2/3\frac{\sqrt[3]{h} - 0}{h} = h^{1/3}/h = h^{-2/3} = 1/h^{2/3}. As h0h \to 0, 1/h2/3+1/h^{2/3} \to +\infty. The "derivative" is ++\infty: vertical tangent at x=0x=0. Not differentiable in the classical sense (the derivative must be finite).
  24. Ex. 51.24UnderstandingAnswer key

    Let f(x)=f(x) =, x^2 & x \leq 1, 3x - 2 & x > 1. Is ff differentiable at x=1x = 1? Compute the one-sided derivatives.

    Select the correct option
    Select an option first
    Show solution
    Left-hand derivative (h<0h < 0, branch x1x \leq 1): limh0(1+h)21h=limh0(2+h)=2\lim_{h \to 0^-}\frac{(1+h)^2 - 1}{h} = \lim_{h \to 0^-}(2 + h) = 2. Right-hand derivative (h>0h > 0, branch x>1x > 1): limh0+3(1+h)3h=3\lim_{h \to 0^+}\frac{3(1+h) - 3}{h} = 3. Since 232 \neq 3: corner at x=1x = 1, not differentiable. Note that ff is continuous at 11 (f(1)=1=f(1)f(1^-) = 1 = f(1), f(1+)=1f(1^+) = 1) — distractor (D) mistakenly conflates discontinuity with non-differentiability.
  25. Ex. 51.25Understanding

    Let f(x)=x2sin(1/x)f(x) = x^2\sin(1/x) for x0x \neq 0 and f(0)=0f(0) = 0. Show that f(0)=0f'(0) = 0. (Hint: use the squeeze theorem — hsin(1/h)h0|h\sin(1/h)| \leq |h| \to 0.)

    Show solution
    For f(x)=x2sin(1/x)f(x) = x^2 \sin(1/x), f(0)=0f(0) = 0: the difference quotient at h0h \neq 0 is h2sin(1/h)/h=hsin(1/h)h^2\sin(1/h)/h = h\sin(1/h). Since hsin(1/h)h0|h\sin(1/h)| \leq |h| \to 0 by the squeeze theorem, the limit is 00. Therefore f(0)=0f'(0) = 0.
  26. Ex. 51.26Understanding

    Let f(x)=xsin(1/x)f(x) = x\sin(1/x) for x0x \neq 0 and f(0)=0f(0) = 0. Is ff differentiable at x=0x = 0?

    Select the correct option
    Select an option first
    Show solution
    The difference quotient is hsin(1/h)/h=sin(1/h)h\sin(1/h)/h = \sin(1/h). As h0h \to 0, sin(1/h)\sin(1/h) oscillates between 1-1 and 11 indefinitely — the limit does not exist. Therefore ff is not differentiable at 00. Contrast with x2sin(1/x)x^2\sin(1/x): the factor x2x^2 "damps" the oscillation.
  27. Ex. 51.27Understanding

    Let f(x)=f(x) =, x^2 & x \geq 0, -x^2 & x < 0. Compute f(0)f'(0) using one-sided derivatives.

    Select the correct option
    Select an option first
    Show solution
    Right-hand limit (h>0h > 0): quotient (h20)/h=h0(h^2 - 0)/h = h \to 0. Left-hand limit (h<0h < 0): quotient (h20)/h=h0(-h^2 - 0)/h = -h \to 0. Both equal 00: f(0)=0f'(0) = 0. Geometrically, the two branches meet with a horizontal tangent at the origin. Distractor (A) incorrectly concludes non-differentiability merely because the formula for ff differs on each side — what matters is the equality of the one-sided derivative limits, not the form of the formula.
  28. Ex. 51.28Understanding

    Interpret geometrically: what does f(a)>0f'(a) > 0, f(a)<0f'(a) < 0, and f(a)=0f'(a) = 0 each mean?

    Select the correct option
    Select an option first
    Show solution
    Geometrically: f(a)>0f'(a) > 0 means a tangent with positive slope — the function is increasing at aa. f(a)<0f'(a) < 0: negative slope — decreasing. f(a)=0f'(a) = 0: horizontal tangent — potentially a maximum, minimum, or inflection point (stationary point). The value f(a)f(a) has no direct relationship to the sign of f(a)f'(a).
  29. Ex. 51.29Understanding

    What is the correct relationship between differentiability and continuity?

    Select the correct option
    Select an option first
    Show solution
    The theorem proves the implication \Rightarrow: differentiable \Rightarrow continuous. The canonical counterexample for the false converse is f(x)=xf(x) = |x|: continuous at 00 but not differentiable. Differentiability is a stronger condition than continuity.
  30. Ex. 51.30Understanding

    Explain with a numerical example why the central difference f(a+h)f(ah)2h\frac{f(a+h)-f(a-h)}{2h} is numerically more accurate than the forward difference f(a+h)f(a)h\frac{f(a+h)-f(a)}{h}.

    Show solution
    The forward difference (f(a+h)f(a))/h(f(a+h)-f(a))/h has truncation error O(h)O(h). The central difference (f(a+h)f(ah))/(2h)(f(a+h)-f(a-h))/(2h) cancels the first-order term by symmetry, giving error O(h2)O(h^2). For h=0.01h = 0.01: forward error 0.01\sim 0.01, central error 0.0001\sim 0.0001 — 100 times better. Check with f(x)=x2f(x) = x^2 at a=1a = 1: the central difference gives (1+h)2(1h)2=4h(1+h)^2-(1-h)^2 = 4h, which divided by 2h2h yields exactly 22 — zero error.
  31. Ex. 51.31ModelingAnswer key

    An object moves with position s(t)=2t2s(t) = 2t^2 meters. What is its instantaneous velocity at t=2t = 2 s?

    Select the correct option
    Select an option first
    Show solution
    Position s(t)=2t2s(t) = 2t^2. From the definition: s(t)=4ts'(t) = 4t. At t=2t = 2: s(2)=8s'(2) = 8 m/s. Numerical check: s(2.01)s(2)=2(2.01)28=8.08028=0.0802s(2.01) - s(2) = 2(2.01)^2 - 8 = 8.0802 - 8 = 0.0802. Average speed over the interval: 0.0802/0.01=8.020.0802/0.01 = 8.02 m/s — converges to 8.
  32. Ex. 51.32Modeling

    Position s(t)=t2+5ts(t) = t^2 + 5t meters. Compute the instantaneous velocity at t=3t = 3 s using the definition of the derivative.

    Select the correct option
    Select an option first
    Show solution
    Position s(t)=t2+5ts(t) = t^2 + 5t. Derivative from the definition: s(t)=limh0(t+h)2+5(t+h)t25th=limh02th+h2+5hh=2t+5s'(t) = \lim_{h\to 0}\frac{(t+h)^2+5(t+h)-t^2-5t}{h} = \lim_{h\to 0}\frac{2th+h^2+5h}{h} = 2t + 5. At t=3t = 3: s(3)=11s'(3) = 11 m/s. Distractor (A) is the classic mistake of computing the average velocity on [3,4][3, 4] instead of the instantaneous velocity — the secant instead of the tangent.
  33. Ex. 51.33Modeling

    Cost C(q)=q2+30q+500C(q) = q^2 + 30q + 500 dollars. What is the marginal cost at q=50q = 50 units?

    Select the correct option
    Select an option first
    Show solution
    From Example 5: C(q)=2q+30C'(q) = 2q + 30. At q=50q = 50: C(50)=100+30=130C'(50) = 100 + 30 = 130 dollars. Each additional unit beyond 50 costs approximately $130.
    Show step-by-step (with the why)
    1. Identify C(q)=q2+30q+500C(q) = q^2 + 30q + 500. Total cost in dollars for qq units. Marginal cost = derivative = instantaneous rate of change of cost.
    2. Compute C(q)C'(q) from the definition. Quotient: (q+h)2+30(q+h)+500q230q500h=2q+h+30\frac{(q+h)^2+30(q+h)+500 - q^2-30q-500}{h} = 2q + h + 30. Limit: C(q)=2q+30C'(q) = 2q + 30.
    3. Evaluate at q=50q = 50. C(50)=100+30=130C'(50) = 100 + 30 = 130 dollars per unit.
    4. Check. C(51)C(50)=(2601+1530+500)(2500+1500+500)=131C(51) - C(50) = (2601+1530+500)-(2500+1500+500) = 131 dollars. The marginal cost (130) underestimates by $1 — the expected second-order difference.

    Curiosity: the gap between marginal cost ($130) and the actual increment ($131) is exactly h2=12=1h^2 = 1^2 = 1 — confirming the linear approximation theory.

  34. Ex. 51.34Modeling

    Population P(t)=100+5t2P(t) = 100 + 5t^2 individuals. Compute the growth rate at t=4t = 4 years using the definition of the derivative.

    Select the correct option
    Select an option first
    Show solution
    For P(t)=100+5t2P(t) = 100 + 5t^2: P(t)=10tP'(t) = 10t (from the definition). At t=4t = 4: P(4)=40P'(4) = 40 individuals/year. Distractor (A) confuses the instantaneous growth rate (derivative) with the average rate on [4,5][4,5] — secant slope versus tangent slope. Distractor (D) confuses the value P(4)=180P(4) = 180 with the derivative.
  35. Ex. 51.35Modeling

    In machine learning, the loss function is L(θ)=(θ3)2L(\theta) = (\theta - 3)^2. Compute L(θ)L'(\theta) from the definition and find the θ\theta that minimizes LL.

    Select the correct option
    Select an option first
    Show solution
    For L(θ)=(θ3)2L(\theta) = (\theta-3)^2: difference quotient (θ+h3)2(θ3)2h=2(θ3)+h\frac{(\theta+h-3)^2 - (\theta-3)^2}{h} = 2(\theta-3) + h. Limit: L(θ)=2(θ3)=2θ6L'(\theta) = 2(\theta-3) = 2\theta - 6. Minimum when L(θ)=0θ=3L'(\theta) = 0 \Rightarrow \theta = 3. Distractor (A) stops at the difference quotient (without taking the limit) and obtains a "derivative" that still depends on hh — confuses average rate with instantaneous rate.
  36. Ex. 51.36Modeling

    Electric charge q(t)=t2+2tq(t) = t^2 + 2t coulombs. Current i(t)=q(t)i(t) = q'(t). Compute i(2)i(2).

    Select the correct option
    Select an option first
    Show solution
    Charge q(t)=t2+2tq(t) = t^2 + 2t coulombs. Current i(t)=q(t)=2t+2i(t) = q'(t) = 2t + 2. At t=2t = 2: i(2)=4+2=6i(2) = 4 + 2 = 6 A. Derivation: quotient (t+h)2+2(t+h)t22th=2t+h+2\frac{(t+h)^2+2(t+h)-t^2-2t}{h} = 2t + h + 2, limit 2t+22t+2.
  37. Ex. 51.37Modeling

    Volume of a sphere V(r)=43πr3V(r) = \frac{4}{3}\pi r^3. Compute the rate of change of volume with respect to radius at r=2r = 2 cm.

    Select the correct option
    Select an option first
    Show solution
    Volume of a sphere: V(r)=43πr3V(r) = \frac{4}{3}\pi r^3. Difference quotient: 43π(r+h)343πr3h=4πr2+4πrh+43πh2\frac{\frac{4}{3}\pi(r+h)^3 - \frac{4}{3}\pi r^3}{h} = 4\pi r^2 + 4\pi rh + \frac{4}{3}\pi h^2. Limit: V(r)=4πr2V'(r) = 4\pi r^2. At r=2r = 2: V(2)=16πV'(2) = 16\pi cm³/cm. Note that V(r)=4πr2=S(r)V'(r) = 4\pi r^2 = S(r) (surface area). Distractor (A) confuses the value V(2)V(2) (volume, not derivative) with the rate of change.
  38. Ex. 51.38Challenge

    Find kk such that f(x)=x2+kxf(x) = x^2 + kx has a horizontal tangent line at x=3/2x = -3/2.

    Select the correct option
    Select an option first
    Show solution
    The derivative of f(x)=x2+kxf(x) = x^2 + kx is f(x)=2x+kf'(x) = 2x + k (from the definition). For a horizontal tangent at x=3/2x = -3/2: f(3/2)=02(3/2)+k=03+k=0k=3f'(-3/2) = 0 \Rightarrow 2(-3/2) + k = 0 \Rightarrow -3 + k = 0 \Rightarrow k = 3. Distractor (A) makes a sign error: solving 3+k=0-3 + k = 0 gives k=3k = -3 — sign swapped in the transposition.
  39. Ex. 51.39ChallengeAnswer key

    Prove that if ff is an even function and differentiable at x=0x = 0, then f(0)=0f'(0) = 0. (Hint: use the definition of one-sided derivatives and the property f(x)=f(x)f(-x) = f(x).)

    Show solution
    If ff is even, f(x)=f(x)f(-x) = f(x). Left-hand derivative: f(0)=limh0f(h)f(0)hf'_-(0) = \lim_{h \to 0^-}\frac{f(h)-f(0)}{h}. Substitute h=th = -t with t0+t \to 0^+: =limt0+f(t)f(0)t=limt0+f(t)f(0)t=f+(0)= \lim_{t\to 0^+}\frac{f(-t)-f(0)}{-t} = \lim_{t\to 0^+}\frac{f(t)-f(0)}{-t} = -f'_+(0). For ff differentiable at 00: f(0)=f+(0)f'_-(0) = f'_+(0), so f+(0)=f+(0)2f+(0)=0f(0)=0f'_+(0) = -f'_+(0) \Rightarrow 2f'_+(0) = 0 \Rightarrow f'(0) = 0.
  40. Ex. 51.40Proof

    Let h(x)=f(x)+g(x)h(x) = f(x) + g(x), with ff and gg differentiable at aa. Use the definition of the derivative to prove that h(a)=f(a)+g(a)h'(a) = f'(a) + g'(a).

    Show solution
    For h(x)=f(x)+g(x)h(x) = f(x) + g(x): h(a+t)h(a)t=f(a+t)f(a)t+g(a+t)g(a)t\frac{h(a+t)-h(a)}{t} = \frac{f(a+t)-f(a)}{t} + \frac{g(a+t)-g(a)}{t}. Since both limits exist (by hypothesis, ff and gg are differentiable at aa), the limit of the sum is the sum of the limits: h(a)=f(a)+g(a)h'(a) = f'(a) + g'(a). This is the proof of the sum rule from the definition.

Updated on 2026-05-05 · Author(s): Clube da Matemática

Found an error? Open an issue on GitHub or submit a PR — open source forever.