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: .
Sign and Behavior of the Tangent Slope:
Negative Slope ():
Occurs when the tangent line descends from left to right.
Indicates that the function is strictly decreasing on that interval, meaning .
Zero Slope ():
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 .
Positive Slope ():
Occurs when the tangent line ascends from left to right.
Indicates that the function is strictly increasing on that interval, meaning .
Graphing Heuristic:
When sketching the derivative directly from the graph of a function , 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 ), where the slope is positive ( lies above the x-axis), and where the slope is negative ( lies below the x-axis).
Sketching Derivative Graphs from Function Graphs

Constant Functions:
Function :
Graph is a horizontal line situated at .
The line neither rises nor falls across its entire domain; its slope is uniformly zero ().
The derivative is , which graphs as a horizontal line lying entirely along the x-axis ().
Function :
Graph is a horizontal line located at .
Because the slope is constant at zero (), the derivative graph is the line .
Linear Functions:
Function :
Graph is a straight line passing through the origin with a constant slope of .
Because the slope is fixed and never varies, the derivative is constant: , graphed as a horizontal line at .
Function :
Graph is a straight line passing through the origin with a constant slope of .
The derivative is , graphed as a horizontal line at .
General Linear Segment:
A line passing through and has a slope of .
Its derivative graph is the constant horizontal line .
Quadratic Functions (Degree 2 Parabolas):
Downward Parabola :
The vertex occurs at , where the tangent line is horizontal (), yielding an x-intercept for the derivative at .
For , the curve is rising, so ().
For , the curve is falling, so ().
Differentiating yields , which is a straight line with a y-intercept of and an x-intercept of .
Upward Parabola :
The vertex occurs at , where the tangent slope is zero ().
For , the curve descends, meaning .
For , the curve ascends, meaning .
Differentiating yields , a line passing through with a slope of .
Piecewise Linear Functions with Corners or Jumps:
Piecewise Linear with Jump at :
For , the line segment connects points such as and , with slope . Thus, on .
For , the segment begins at an open point and passes through , with slope . Thus, on .
At the transition point , the derivative does not exist, creating a discontinuity in .
Continuous Peak / V-Shaped Curve:
A function rising from to a sharp vertex at has constant slope , giving for .
Descending from toward gives constant slope , giving for .
At the sharp corner (ركن) , the derivative is completely undefined.
Higher-Order Polynomial Curves:
Cubic Curves (Example 2.5):
Consider a cubic graph with a local maximum at and a local minimum at .
Horizontal tangents occur at and , producing x-intercepts on the derivative graph: and .
On , increases, so .
On , decreases, so .
On , increases, so .
The derivative is an upward-opening parabola crossing the horizontal axis at and .
W-Shaped Quartic Curve:
Contains three local extrema: two local minima and one intermediate local maximum.
The derivative must cross the x-axis at three points corresponding to these extrema.
The signs of 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 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 Dictates Monotonicity of :
Whenever , the antiderivative function is strictly increasing.
Whenever , the antiderivative function is strictly decreasing.
Zeros of Identify Critical Points:
If transitions from positive to negative across , is a local maximum.
If transitions from negative to positive across , is a local minimum.
If but does not change sign, is a horizontal inflection point.
Degree Relationships:
A constant non-zero derivative integrates to a straight line .
A linear derivative integrates to a quadratic parabola .
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 that crosses the x-axis at , rises to a local maximum around , dips to a positive local minimum near , and rises thereafter:
For , , so is strictly decreasing.
At , , marking a local minimum for .
For all , , which means is strictly increasing throughout .
Variations in the magnitude of for correspond to inflection points and changes in the steepness of the curve of .
Piecewise and Discontinuous Derivatives:
If has jump discontinuities (e.g., jumping between constant values), the continuous original function forms sharp corners (أركان) at those x-values, where the left-hand slope does not match the right-hand slope.
Graphical Conditions for Non-Differentiability

Overview:
A function fails to possess a derivative at (meaning 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 , it is automatically non-differentiable at that point.
Infinite Discontinuity (انفصال لانهائي):
Occurs when the function values unbounded grow toward as , creating a vertical asymptote.
Jump Discontinuity (انفصال قفزي):
Occurs when the left-hand and right-hand limits exist but are unequal: .
Removable Discontinuity / Hole (انفصال قابل للإزالة / فجوة):
Occurs when exists as a finite number, but either is undefined or .
Case 2: Sharp Point / Non-Smooth Turn (رأس مدبب):
The function is continuous at , 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: .
Examples include absolute value graphs like at .
Cusp (ناب):
Occurs when the slopes of the secant lines approach infinity as , but with opposing infinite directions from each side (e.g., approaching from one side and from the other).
Case 3: Vertical Tangent Line (مماس رأسي):
The function is continuous at , and the tangent line becomes completely vertical.
Analytically, the difference quotient limit approaches infinity:
Because the slope of a vertical line is undefined, the derivative does not exist.
Algebraic Foundations: Differentiability and Continuity Theorems
Theorem 2.1 (النظرية 2.1):
Statement: If a function is differentiable at , then is continuous at .
Contrapositive: If is not continuous at , then is not differentiable at .
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 (تعريف المشتقة من الطرف الأيمن):
Left-Hand Derivative (تعريف المشتقة من الطرف الأيسر):
Criterion for Differentiability:
A function is differentiable at if and only if both one-sided derivatives exist, are finite real numbers, and are strictly equal:
Algebraic Verification and Worked Examples
Example 2.7 (Problem 1):
Statement: Prove that is not differentiable at .
Step 1: Test for Continuity at :
Evaluate function value: .
Evaluate right-hand limit: .
Evaluate left-hand limit: .
Since , the function is continuous at .
Step 2: Evaluate the Right-Hand Derivative :
Step 3: Evaluate the Left-Hand Derivative :
Conclusion:
Because , the derivative does not exist, and is non-differentiable at due to a sharp corner (ركن).
Example 2.7 (Problem 2):
Statement: Prove that is not differentiable at .
Step 1: Test for Continuity at :
Evaluate left-hand limit: .
Evaluate right-hand limit: .
Because , the two-sided limit does not exist, and is not defined.
Conclusion:
The function exhibits an essential jump discontinuity at .
By Theorem 2.1, discontinuity immediately implies non-differentiability at .
Example 2.7 (Problem 3):
Statement: Prove that is not differentiable at .
Step 1: Test for Continuity at :
Function value: .
Left-hand limit: .
Right-hand limit: .
Because , the limit does not exist.
Conclusion:
Since has a jump discontinuity (انفصال قفزي) at , it fails the continuity requirement.
By Theorem 2.1, is not differentiable at .
Exercise 19:
Statement: Given , compute and , and determine whether exists.
Step 1: Verify Continuity at :
.
.
.
The function is continuous at because .
Step 2: Calculate the Right-Hand Derivative :
Step 3: Calculate the Left-Hand Derivative :
Step 4: Existence of :
Compare one-sided derivatives: while .
Since , the two-sided derivative does not exist ( غیر موجودة).