Differential Calculus: Derivative Rules, Extrema, and Optimization

The Derivative and Differentiability

  • Limit Definition of the Derivative at a Point:

    • f′(a)=lim⁡x→af(x)−f(a)x−a=lim⁡h→0f(a+h)−f(a)hf'(a) = \lim_{x \to a}\frac{f(x) - f(a)}{x - a} = \lim_{h \to 0}\frac{f(a+h) - f(a)}{h}

    • Represents the instantaneous rate of change of f(x)f(x) at x=ax = a and the slope of the tangent line to y=f(x)y = f(x) at (a,f(a))(a, f(a)).

  • The Derivative as a Function:

    • f′(x)=ddxf(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \frac{d}{dx}f(x) = \lim_{h \to 0}\frac{f(x+h) - f(x)}{h}

  • Function Behavior and Monotonicity:

    • If f′(x)>0f'(x) > 0 on an interval, then f(x)f(x) is increasing on that interval.

    • If f′(x)<0f'(x) < 0 on an interval, then f(x)f(x) is decreasing on that interval.

    • A function is monotonic on an interval if it is either strictly increasing or strictly decreasing across the entire interval.

  • Differentiability and Continuity:

    • Differentiability implies continuity: if f(x)f(x) is differentiable at x=ax = a, then f(x)f(x) is continuous at x=ax = a.

    • The converse is false: continuity does not guarantee differentiability.

  • Causes of Non-Differentiability at a Point x=ax = a:

    • Corner: Left-hand and right-hand derivative limits exist but are unequal.

    • Cusp: Slopes of secant lines approach ∞\infty from one side and −∞-\infty from the other.

    • Vertical Tangent: Tangent line slope approaches ∞\infty or −∞-\infty from both sides.

    • Discontinuity: f(x)f(x) has a jump, removable, or infinite discontinuity at x=ax = a.

Rules of Differentiation

  • Constant Rule:

    • ddx[c]=0\frac{d}{dx}[c] = 0

  • Power Rule:

    • ddx[xn]=nxn−1\frac{d}{dx}[x^n] = n x^{n-1} for any real number nn

  • Constant Multiple Rule:

    • ddx[c⋅f(x)]=cf′(x)\frac{d}{dx}[c \cdot f(x)] = c f'(x)

  • Sum and Difference Rule:

    • ddx[f(x)±g(x)]=f′(x)±g′(x)\frac{d}{dx}[f(x) \pm g(x)] = f'(x) \pm g'(x)

  • Exponential Rules:

    • ddx[ax]=axln⁡(a)\frac{d}{dx}[a^x] = a^x \ln(a) for a>0a > 0

    • ddx[ex]=ex\frac{d}{dx}[e^x] = e^x

  • Product Rule:

    • ddx[f(x)g(x)]=f′(x)g(x)+f(x)g′(x)\frac{d}{dx}[f(x)g(x)] = f'(x)g(x) + f(x)g'(x)

  • Quotient Rule:

    • ddx[f(x)g(x)]=f′(x)g(x)−f(x)g′(x)[g(x)]2\frac{d}{dx}\left[\frac{f(x)}{g(x)}\right] = \frac{f'(x)g(x) - f(x)g'(x)}{[g(x)]^2} where g(x)≠0g(x) \neq 0

  • Chain Rule:

    • ddx[f(g(x))]=f′(g(x))g′(x)\frac{d}{dx}[f(g(x))] = f'(g(x))g'(x)

    • Leibniz notation: dydx=dydududx\frac{dy}{dx} = \frac{dy}{du}\frac{du}{dx}

    • For three composite functions: ddx[f(g(h(x)))]=f′(g(h(x)))⋅g′(h(x))⋅h′(x)\frac{d}{dx}[f(g(h(x)))] = f'(g(h(x))) \cdot g'(h(x)) \cdot h'(x)

Extrema and Derivative Tests

  • Extrema Definitions:

    • Absolute (Global) Maximum/Minimum: f(c)≥f(x)f(c) \ge f(x) (or f(c)≤f(x)f(c) \le f(x)) for all xx in the domain of ff.

    • Local (Relative) Maximum/Minimum: f(c)≥f(x)f(c) \ge f(x) (or f(c)≤f(x)f(c) \le f(x)) for all xx in an open interval containing cc.

  • Critical Points:

    • Points cc in the domain of f(x)f(x) such that f′(c)=0f'(c) = 0 or f′(c)f'(c) does not exist.

    • Extrema can only occur at critical points or interval endpoints.

  • First Derivative Test for Local Extrema:

    • If f′(x)f'(x) changes sign from positive to negative at x=cx = c, f(c)f(c) is a local maximum.

    • If f′(x)f'(x) changes sign from negative to positive at x=cx = c, f(c)f(c) is a local minimum.

    • If f′(x)f'(x) does not change sign across cc, then f(c)f(c) is neither a local maximum nor a local minimum.


Sign chart illustrating sign changes of the first derivative to classify local extrema
  • Second Derivative Test for Local Extrema:

    • Assume f′(c)=0f'(c) = 0 and f′′(x)f''(x) is continuous near cc:

    • If f′′(c)>0f''(c) > 0, the curve is concave up, so f(c)f(c) is a local minimum.

    • If f′′(c)<0f''(c) < 0, the curve is concave down, so f(c)f(c) is a local maximum.

    • If f′′(c)=0f''(c) = 0, the test is inconclusive (ff may have a local minimum, local maximum, or neither).

Extreme Value Theorem and Closed Interval Method

  • Extreme Value Theorem (EVT):

    • If f(x)f(x) is continuous on a closed interval [a,b][a, b], then f(x)f(x) is guaranteed to attain both an absolute maximum and an absolute minimum on [a,b][a, b].

  • Closed Interval Method:

    • Applied to continuous functions on [a,b][a, b]:

    • Step 1: Find all critical points of ff in the open interval (a,b)(a, b) and evaluate ff at each.

    • Step 2: Evaluate ff at the boundary endpoints aa and bb.

    • Step 3: Compare values; the largest is the absolute maximum, and the smallest is the absolute minimum.

  • Optimization on Non-Closed Domains:

    • If the domain is an open or unbounded interval, determine extrema by analyzing critical points via derivative tests, global concavity, and end-behavior limits (x→±∞x \to \pm\infty or domain boundaries).

Applied Optimization Framework

  • Six-Step Optimization Strategy:

    • Step 1: Identify the objective quantity to be maximized or minimized.

    • Step 2: Draw a diagram and define all variables.

    • Step 3: Write a primary equation for the objective quantity.

    • Step 4: Use constraint equations to eliminate extra variables, expressing the objective formula as a function of a single variable.

    • Step 5: Identify the feasible domain based on physical and geometric limits.

    • Step 6: Find absolute extrema over the domain using the Closed Interval Method or derivative tests.


Rectangle inscribed under a semicircle of radius 2
  • Standard Geometric Optimization Models:

    • Cylindrical Can: Minimize total surface area S(r)=2πr2+256πrS(r) = 2\pi r^2 + \frac{256\pi}{r} given fixed volume V=πr2h=128π cm3V = \pi r^2 h = 128\pi\,\text{cm}^3 subject to height h≥2 cmh \ge 2\,\text{cm} and radius r≥1 cmr \ge 1\,\text{cm}.

    • Inscribed Rectangle: Maximize area A(x)=2x4−x2A(x) = 2x\sqrt{4 - x^2} for a rectangle with base along the xx-axis inscribed in the upper semicircle x2+y2=4x^2 + y^2 = 4 of radius 22.