Calculus: Graphical and Algebraic Foundations of Differentiation and Differentiability

Geometric Interpretation of the Derivative and Tangent Slopes

  • Fundamental Definition:

    • The value of the derivative function at any given point is geometrically equal to the slope of the tangent line to the curve at that point: f′(x)=mtangentf'(x) = m_{\text{tangent}}.

  • Sign and Behavior of the Tangent Slope:

    • Negative Slope (m<0m < 0):

    • Occurs when the tangent line descends from left to right.

    • Indicates that the function f(x)f(x) is strictly decreasing on that interval, meaning f′(x)<0f'(x) < 0.

    • Zero Slope (m=0m = 0):

    • Occurs when the tangent line is completely horizontal.

    • Represents stationary points, such as local extrema (local maxima or local minima) or horizontal points of inflection, where f′(x)=0f'(x) = 0.

    • Positive Slope (m>0m > 0):

    • Occurs when the tangent line ascends from left to right.

    • Indicates that the function f(x)f(x) is strictly increasing on that interval, meaning f′(x)>0f'(x) > 0.

  • Graphing Heuristic:

    • When sketching the derivative f′(x)f'(x) directly from the graph of a function f(x)f(x), determining precise point-by-point numerical coordinates is unnecessary.

    • The objective is to identify key qualitative features: where the slope is zero (x-intercepts of f′f'), where the slope is positive (f′f' lies above the x-axis), and where the slope is negative (f′f' lies below the x-axis).

Sketching Derivative Graphs from Function Graphs


Graphs of functions and derivatives for polynomial and cubic functions
  • Constant Functions:

    • Function f(x)=3f(x) = 3:

    • Graph is a horizontal line situated at y=3y = 3.

    • The line neither rises nor falls across its entire domain; its slope is uniformly zero (m=0m = 0).

    • The derivative is f′(x)=0f'(x) = 0, which graphs as a horizontal line lying entirely along the x-axis (y=0y = 0).

    • Function f(x)=−3f(x) = -3:

    • Graph is a horizontal line located at y=−3y = -3.

    • Because the slope is constant at zero (m=0m = 0), the derivative graph is the line f′(x)=0f'(x) = 0.

  • Linear Functions:

    • Function f(x)=2xf(x) = 2x:

    • Graph is a straight line passing through the origin (0,0)(0, 0) with a constant slope of m=2m = 2.

    • Because the slope is fixed and never varies, the derivative is constant: f′(x)=2f'(x) = 2, graphed as a horizontal line at y=2y = 2.

    • Function f(x)=−2xf(x) = -2x:

    • Graph is a straight line passing through the origin (0,0)(0, 0) with a constant slope of m=−2m = -2.

    • The derivative is f′(x)=−2f'(x) = -2, graphed as a horizontal line at y=−2y = -2.

    • General Linear Segment:

    • A line passing through (0,−1)(0, -1) and (1,1)(1, 1) has a slope of m=1−(−1)1−0=2m = \frac{1 - (-1)}{1 - 0} = 2.

    • Its derivative graph is the constant horizontal line f′(x)=2f'(x) = 2.

  • Quadratic Functions (Degree 2 Parabolas):

    • Downward Parabola f(x)=−2x2+4x−1f(x) = -2x^2 + 4x - 1:

    • The vertex occurs at x=−b2a=−42(−2)=1x = -\frac{b}{2a} = -\frac{4}{2(-2)} = 1, where the tangent line is horizontal (m=0m = 0), yielding an x-intercept for the derivative at x=1x = 1.

    • For x<1x < 1, the curve is rising, so m>0m > 0 (f′(x)>0f'(x) > 0).

    • For x>1x > 1, the curve is falling, so m<0m < 0 (f′(x)<0f'(x) < 0).

    • Differentiating yields f′(x)=−4x+4f'(x) = -4x + 4, which is a straight line with a y-intercept of (0,4)(0, 4) and an x-intercept of (1,0)(1, 0).

    • Upward Parabola f(x)=2x2−4x+1f(x) = 2x^2 - 4x + 1:

    • The vertex occurs at x=−−42(2)=1x = -\frac{-4}{2(2)} = 1, where the tangent slope is zero (m=0m = 0).

    • For x<1x < 1, the curve descends, meaning f′(x)<0f'(x) < 0.

    • For x>1x > 1, the curve ascends, meaning f′(x)>0f'(x) > 0.

    • Differentiating yields f′(x)=4x−4f'(x) = 4x - 4, a line passing through (1,0)(1, 0) with a slope of 44.

  • Piecewise Linear Functions with Corners or Jumps:

    • Piecewise Linear with Jump at x=1x = 1:

    • For x<1x < 1, the line segment connects points such as (0,1)(0, 1) and (1,3)(1, 3), with slope m=3−11−0=2m = \frac{3 - 1}{1 - 0} = 2. Thus, f′(x)=2f'(x) = 2 on (−∞,1)(-\infty, 1).

    • For x>1x > 1, the segment begins at an open point (1,1)(1, 1) and passes through (2,0)(2, 0), with slope m=0−12−1=−1m = \frac{0 - 1}{2 - 1} = -1. Thus, f′(x)=−1f'(x) = -1 on (1,∞)(1, \infty).

    • At the transition point x=1x = 1, the derivative f′(1)f'(1) does not exist, creating a discontinuity in f′f'.

    • Continuous Peak / V-Shaped Curve:

    • A function rising from (−2,−3)(-2, -3) to a sharp vertex at (2,1)(2, 1) has constant slope m=1−(−3)2−(−2)=1m = \frac{1 - (-3)}{2 - (-2)} = 1, giving f′(x)=1f'(x) = 1 for x<2x < 2.

    • Descending from (2,1)(2, 1) toward (4,−1)(4, -1) gives constant slope m=−1−14−2=−1m = \frac{-1 - 1}{4 - 2} = -1, giving f′(x)=−1f'(x) = -1 for x>2x > 2.

    • At the sharp corner (ركن) x=2x = 2, the derivative is completely undefined.

  • Higher-Order Polynomial Curves:

    • Cubic Curves (Example 2.5):

    • Consider a cubic graph f(x)f(x) with a local maximum at x=−2x = -2 and a local minimum at x=2x = 2.

    • Horizontal tangents occur at x=−2x = -2 and x=2x = 2, producing x-intercepts on the derivative graph: f′(−2)=0f'(-2) = 0 and f′(2)=0f'(2) = 0.

    • On (−∞,−2)(-\infty, -2), f(x)f(x) increases, so f′(x)>0f'(x) > 0.

    • On (−2,2)(-2, 2), f(x)f(x) decreases, so f′(x)<0f'(x) < 0.

    • On (2,∞)(2, \infty), f(x)f(x) increases, so f′(x)>0f'(x) > 0.

    • The derivative f′(x)f'(x) is an upward-opening parabola crossing the horizontal axis at x=−2x = -2 and x=2x = 2.

    • W-Shaped Quartic Curve:

    • Contains three local extrema: two local minima and one intermediate local maximum.

    • The derivative f′(x)f'(x) must cross the x-axis at three points corresponding to these extrema.

    • The signs of f′(x)f'(x) alternate: negative, positive, negative, positive, forming an upward-opening cubic curve.

    • M-Shaped Quartic Curve:

    • Contains two local maxima and one intermediate local minimum.

    • The derivative f′(x)f'(x) has three roots, with sign progression: positive, negative, positive, negative, forming a downward-opening cubic curve.

Reconstructing a Function Graph from its Derivative

  • General Reconstruction Principles:

    • Sign of f′(x)f'(x) Dictates Monotonicity of f(x)f(x):

    • Whenever f′(x)>0f'(x) > 0, the antiderivative function f(x)f(x) is strictly increasing.

    • Whenever f′(x)<0f'(x) < 0, the antiderivative function f(x)f(x) is strictly decreasing.

    • Zeros of f′(x)f'(x) Identify Critical Points:

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

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

    • If f′(x)=0f'(x) = 0 but does not change sign, f(c)f(c) is a horizontal inflection point.

    • Degree Relationships:

    • A constant non-zero derivative f′(x)=kf'(x) = k integrates to a straight line f(x)=kx+Cf(x) = kx + C.

    • A linear derivative f′(x)=mx+bf'(x) = mx + b integrates to a quadratic parabola f(x)=12mx2+bx+Cf(x) = \frac{1}{2}mx^2 + bx + C.

    • A quadratic derivative with two real zeros integrates to a cubic curve with two local extrema.

  • Analysis of Example 2.6:

    • Given a derivative curve y=f′(x)y = f'(x) that crosses the x-axis at x=−3x = -3, rises to a local maximum around x=0x = 0, dips to a positive local minimum near x=2x = 2, and rises thereafter:

    • For x<−3x < -3, f′(x)<0f'(x) < 0, so f(x)f(x) is strictly decreasing.

    • At x=−3x = -3, f′(x)=0f'(x) = 0, marking a local minimum for f(x)f(x).

    • For all x>−3x > -3, f′(x)>0f'(x) > 0, which means f(x)f(x) is strictly increasing throughout (−3,∞)( -3, \infty ).

    • Variations in the magnitude of f′(x)f'(x) for x>−3x > -3 correspond to inflection points and changes in the steepness of the curve of f(x)f(x).

  • Piecewise and Discontinuous Derivatives:

    • If f′(x)f'(x) has jump discontinuities (e.g., jumping between constant values), the continuous original function f(x)f(x) forms sharp corners (أركان) at those x-values, where the left-hand slope does not match the right-hand slope.

Graphical Conditions for Non-Differentiability


Graphical representations of non-differentiability cases including discontinuities, cusps, corners, and vertical tangents
  • Overview:

    • A function f(x)f(x) fails to possess a derivative at x=ax = a (meaning f′(a)f'(a) does not exist) under three primary graphical circumstances.

  • Case 1: Discontinuity of Any Type (الانفصال بجميع أنواعه):

    • Differentiability fundamentally requires continuity. If a function is not continuous at x=ax = a, it is automatically non-differentiable at that point.

    • Infinite Discontinuity (انفصال لانهائي):

    • Occurs when the function values unbounded grow toward ±∞\pm \infty as x→ax \rightarrow a, creating a vertical asymptote.

    • Jump Discontinuity (انفصال قفزي):

    • Occurs when the left-hand and right-hand limits exist but are unequal: lim⁡x→a−f(x)≠lim⁡x→a+f(x)\lim_{x \rightarrow a^-} f(x) \neq \lim_{x \rightarrow a^+} f(x).

  • Removable Discontinuity / Hole (انفصال قابل للإزالة / فجوة):

    • Occurs when lim⁡x→af(x)\lim_{x \rightarrow a} f(x) exists as a finite number, but either f(a)f(a) is undefined or lim⁡x→af(x)≠f(a)\lim_{x \rightarrow a} f(x) \neq f(a).

  • Case 2: Sharp Point / Non-Smooth Turn (رأس مدبب):

    • The function is continuous at x=ax = a, but the graph forms an abrupt, sharp point.

    • Corner (ركن / زاوية):

    • Occurs when the left-hand derivative and right-hand derivative both exist as finite numbers, but they have distinct values: D+f(a)≠D−f(a)D_+ f(a) \neq D_- f(a).

    • Examples include absolute value graphs like f(x)=∣x∣f(x) = |x| at x=0x = 0.

    • Cusp (ناب):

    • Occurs when the slopes of the secant lines approach infinity as x→ax \rightarrow a, but with opposing infinite directions from each side (e.g., approaching +∞+\infty from one side and −∞-\infty from the other).

  • Case 3: Vertical Tangent Line (مماس رأسي):

    • The function is continuous at x=ax = a, and the tangent line becomes completely vertical.

    • Analytically, the difference quotient limit approaches infinity:     lim⁡h→0f(a+h)−f(a)h=±∞\lim_{h \rightarrow 0} \frac{f(a+h) - f(a)}{h} = \pm \infty

    • Because the slope of a vertical line is undefined, the derivative f′(a)f'(a) does not exist.

Algebraic Foundations: Differentiability and Continuity Theorems

  • Theorem 2.1 (النظرية 2.1):

    • Statement: If a function ff is differentiable at x=ax = a, then ff is continuous at x=ax = a.

    • Contrapositive: If ff is not continuous at x=ax = a, then ff is not differentiable at x=ax = a.

    • Logical Caveat: The converse of Theorem 2.1 is false. Continuity at a point does not guarantee differentiability (e.g., corners and cusps are continuous but non-differentiable).

  • One-Sided Derivatives Definition:

    • Right-Hand Derivative (تعريف المشتقة من الطرف الأيمن):     D+f(a)=lim⁡h→0+f(a+h)−f(a)hD_+ f(a) = \lim_{h \rightarrow 0^+} \frac{f(a+h) - f(a)}{h}

    • Left-Hand Derivative (تعريف المشتقة من الطرف الأيسر):     D−f(a)=lim⁡h→0−f(a+h)−f(a)hD_- f(a) = \lim_{h \rightarrow 0^-} \frac{f(a+h) - f(a)}{h}

    • Criterion for Differentiability:

    • A function ff is differentiable at x=ax = a if and only if both one-sided derivatives exist, are finite real numbers, and are strictly equal:       D+f(a)=D−f(a)D_+ f(a) = D_- f(a)

Algebraic Verification and Worked Examples

  • Example 2.7 (Problem 1):

    • Statement: Prove that f(x)={4,x<22x,x≥2f(x) = \begin{cases} 4, & x < 2 \\ 2x, & x \ge 2 \end{cases} is not differentiable at x=2x = 2.

    • Step 1: Test for Continuity at x=2x = 2:

    • Evaluate function value: f(2)=2(2)=4f(2) = 2(2) = 4.

    • Evaluate right-hand limit: lim⁡x→2+f(x)=lim⁡x→2+(2x)=4\lim_{x \rightarrow 2^+} f(x) = \lim_{x \rightarrow 2^+} (2x) = 4.

    • Evaluate left-hand limit: lim⁡x→2−f(x)=lim⁡x→2−(4)=4\lim_{x \rightarrow 2^-} f(x) = \lim_{x \rightarrow 2^-} (4) = 4.

    • Since lim⁡x→2f(x)=f(2)=4\lim_{x \rightarrow 2} f(x) = f(2) = 4, the function ff is continuous at x=2x = 2.

    • Step 2: Evaluate the Right-Hand Derivative D+f(2)D_+ f(2):     D+f(2)=lim⁡h→0+f(2+h)−f(2)h=lim⁡h→0+2(2+h)−4h=lim⁡h→0+4+2h−4h=lim⁡h→0+2hh=2D_+ f(2) = \lim_{h \rightarrow 0^+} \frac{f(2+h) - f(2)}{h} = \lim_{h \rightarrow 0^+} \frac{2(2+h) - 4}{h} = \lim_{h \rightarrow 0^+} \frac{4 + 2h - 4}{h} = \lim_{h \rightarrow 0^+} \frac{2h}{h} = 2

    • Step 3: Evaluate the Left-Hand Derivative D−f(2)D_- f(2):     D−f(2)=lim⁡h→0−f(2+h)−f(2)h=lim⁡h→0−4−4h=lim⁡h→0−0h=0D_- f(2) = \lim_{h \rightarrow 0^-} \frac{f(2+h) - f(2)}{h} = \lim_{h \rightarrow 0^-} \frac{4 - 4}{h} = \lim_{h \rightarrow 0^-} \frac{0}{h} = 0

    • Conclusion:

    • Because D+f(2)=2≠0=D−f(2)D_+ f(2) = 2 \neq 0 = D_- f(2), the derivative does not exist, and ff is non-differentiable at x=2x = 2 due to a sharp corner (ركن).

  • Example 2.7 (Problem 2):

    • Statement: Prove that f(x)={x2,x<24x,x>2f(x) = \begin{cases} x^2, & x < 2 \\ 4x, & x > 2 \end{cases} is not differentiable at x=2x = 2.

    • Step 1: Test for Continuity at x=2x = 2:

    • Evaluate left-hand limit: lim⁡x→2−f(x)=lim⁡x→2−(x2)=(2)2=4\lim_{x \rightarrow 2^-} f(x) = \lim_{x \rightarrow 2^-} (x^2) = (2)^2 = 4.

    • Evaluate right-hand limit: lim⁡x→2+f(x)=lim⁡x→2+(4x)=4(2)=8\lim_{x \rightarrow 2^+} f(x) = \lim_{x \rightarrow 2^+} (4x) = 4(2) = 8.

    • Because lim⁡x→2−f(x)≠lim⁡x→2+f(x)\lim_{x \rightarrow 2^-} f(x) \neq \lim_{x \rightarrow 2^+} f(x), the two-sided limit does not exist, and f(2)f(2) is not defined.

    • Conclusion:

    • The function exhibits an essential jump discontinuity at x=2x = 2.

    • By Theorem 2.1, discontinuity immediately implies non-differentiability at x=2x = 2.

  • Example 2.7 (Problem 3):

    • Statement: Prove that f(x)={x2,x≤24x,x>2f(x) = \begin{cases} x^2, & x \le 2 \\ 4x, & x > 2 \end{cases} is not differentiable at x=2x = 2.

    • Step 1: Test for Continuity at x=2x = 2:

    • Function value: f(2)=(2)2=4f(2) = (2)^2 = 4.

    • Left-hand limit: lim⁡x→2−f(x)=(2)2=4\lim_{x \rightarrow 2^-} f(x) = (2)^2 = 4.

    • Right-hand limit: lim⁡x→2+f(x)=4(2)=8\lim_{x \rightarrow 2^+} f(x) = 4(2) = 8.

    • Because lim⁡x→2−f(x)≠lim⁡x→2+f(x)\lim_{x \rightarrow 2^-} f(x) \neq \lim_{x \rightarrow 2^+} f(x), the limit lim⁡x→2f(x)\lim_{x \rightarrow 2} f(x) does not exist.

    • Conclusion:

    • Since ff has a jump discontinuity (انفصال قفزي) at x=2x = 2, it fails the continuity requirement.

    • By Theorem 2.1, ff is not differentiable at x=2x = 2.

  • Exercise 19:

    • Statement: Given f(x)={2x+1,x<03x+1,x≥0f(x) = \begin{cases} 2x + 1, & x < 0 \\ 3x + 1, & x \ge 0 \end{cases}, compute D+f(0)D_+ f(0) and D−f(0)D_- f(0), and determine whether f′(0)f'(0) exists.

    • Step 1: Verify Continuity at x=0x = 0:

    • f(0)=3(0)+1=1f(0) = 3(0) + 1 = 1.

    • lim⁡x→0+f(x)=3(0)+1=1\lim_{x \rightarrow 0^+} f(x) = 3(0) + 1 = 1.

    • lim⁡x→0−f(x)=2(0)+1=1\lim_{x \rightarrow 0^-} f(x) = 2(0) + 1 = 1.

    • The function is continuous at x=0x = 0 because lim⁡x→0f(x)=f(0)=1\lim_{x \rightarrow 0} f(x) = f(0) = 1.

    • Step 2: Calculate the Right-Hand Derivative D+f(0)D_+ f(0):     D+f(0)=lim⁡h→0+f(0+h)−f(0)h=lim⁡h→0+(3h+1)−1h=lim⁡h→0+3hh=3D_+ f(0) = \lim_{h \rightarrow 0^+} \frac{f(0+h) - f(0)}{h} = \lim_{h \rightarrow 0^+} \frac{(3h + 1) - 1}{h} = \lim_{h \rightarrow 0^+} \frac{3h}{h} = 3

    • Step 3: Calculate the Left-Hand Derivative D−f(0)D_- f(0):     D−f(0)=lim⁡h→0−f(0+h)−f(0)h=lim⁡h→0−(2h+1)−1h=lim⁡h→0−2hh=2D_- f(0) = \lim_{h \rightarrow 0^-} \frac{f(0+h) - f(0)}{h} = \lim_{h \rightarrow 0^-} \frac{(2h + 1) - 1}{h} = \lim_{h \rightarrow 0^-} \frac{2h}{h} = 2

    • Step 4: Existence of f′(0)f'(0):

    • Compare one-sided derivatives: D+f(0)=3D_+ f(0) = 3 while D−f(0)=2D_- f(0) = 2.

    • Since D+f(0)≠D−f(0)D_+ f(0) \neq D_- f(0), the two-sided derivative does not exist (f′(0)f'(0) غیر موجودة).