Comprehensive Guide to First and Second Derivatives, Curve Sketching, and Optimization
First Derivative and Curve Shape
Formal Definitions of Increasing and Decreasing Functions:
A function is increasing on an open interval if for all in , implies .
A function is decreasing on an open interval if for all in , implies .
Graphically, a function is increasing if the height of the curve rises when moving from left to right, and decreasing if the height of the curve falls when moving from left to right.
In physical contexts, if represents the height of a rocket in feet at time seconds, the rocket is rising (its height is increasing) if increases over a given time interval as increases.
Interval Identification Example:

The function is increasing on the intervals , , and .
The function is decreasing on the intervals and .
On the interval , the function is neither increasing nor decreasing; it remains constant.
First Derivative Information About Shape:
For a function that is differentiable on an open interval , the behavior of dictates the sign of its first derivative:
If is increasing on , then for all in .
If is decreasing on , then for all in .
If is constant on , then for all in .
Helicopter Height and Upward Velocity Case Study:

The upward velocity of a helicopter is the rate of change of height with respect to time, given by .
At and , achieves local maxima; consequently, the tangent lines are horizontal, yielding and .
At , achieves a local minimum, yielding a horizontal tangent line and .
When is increasing over the intervals and , the upward velocity is strictly positive ().
When is decreasing over the intervals and , the upward velocity is strictly negative ().

First Derivative Information About Shape (Converse Perspective):
For a function differentiable on an interval :
If for all in , then is increasing on .
If for all in , then is decreasing on .
If for all in , then is constant on .
Detailed Polynomial Curve Analysis: :
Differentiate : .
Because is a polynomial, it is defined everywhere on .
Set to find critical numbers: and .
These critical numbers partition the real line into three test intervals: , , and .
Interval : For , , so is increasing.
Interval : For , , so is decreasing.
Interval : For , , so is increasing.

The graph turns at and , establishing a local maximum at and a local minimum at .
Specific plotted points:
, giving local maximum point .
, giving local minimum point .

Second Derivative and Concavity
Geometric Concavity:
Graphically, a function is concave up if its curve opens upward (like a cup or bowl).
A function is concave down if its curve opens downward.

Concavity is distinct from whether a function is rising or falling: a function can be concave up while increasing or while decreasing, and concave down while increasing or while decreasing.

Epidemic Modeling Application:
Let represent the number of individuals infected with a disease at time .
Consider two potential trajectories at the present moment (), where current infected counts and rates of new infections are identical:
Situation (a): The graph is concave down at . The slopes of the tangent lines are decreasing ( is increasing at a decreasing rate). The epidemic is leveling off, showing that current intervention strategies are bringing it under control.
Situation (b): The graph is concave up at . The slopes of the tangent lines are increasing ( is increasing at an increasing rate). The rate of infection is accelerating, signaling an out-of-control epidemic requiring stronger measures and resources.

Definition and Notations of the Second Derivative:
Let . The second derivative of is the derivative of the first derivative .
Prime notation: written as or (read aloud as " double prime").
Leibniz notation: written as or (read aloud as "the second derivative of ").
Relationship Between Concavity and the Second Derivative:
If on an interval, then the graph of is concave up on that interval. The function increases (or decreases) at an increasing rate.
If on an interval, then the graph of is concave down on that interval. The function increases (or decreases) at a decreasing rate.
For a function that is twice differentiable on , the converse holds:
is concave up on for all .
is concave down on for all .
Higher-Order Derivative Computation:
For :
First derivative: .
Second derivative: .
Kinematic Interpretation of Derivatives:
If represents position at time :
Velocity is the first derivative: .
Acceleration is the second derivative: .
Physical particle motion example with height (in feet, seconds):
Position function: .
Velocity function: .
Acceleration function: .
At :
Height: .
Velocity: .
Acceleration: .
Kinematic interpretation: Velocity is positive (particle moves upward), but acceleration is negative (velocity is decreasing; particle is slowing down).
At :
Height: .
Velocity: .
Acceleration: .
Kinematic interpretation: Velocity is positive (rising), but acceleration is negative (slowing down).
At :
Height: .
Velocity: .
Acceleration: .
Kinematic interpretation: Velocity is positive (rising) and acceleration is positive (speeding up).
Inflection Points
Definitions and Conditions:
Formal Definition: An inflection point is a point on the graph of a function where the concavity changes, either from concave up to concave down or from concave down to concave up.
Working Definition: An inflection point is a point on the graph where the second derivative changes sign.
A necessary condition for an inflection point is that or is undefined.
This condition is not sufficient on its own: must actively change sign across the point.
Inflection Point Identification on Generic Curves:

Points and are inflection points because the concavity changes across them.
Points and are not inflection points; the curve remains concave up on both sides.
Points and are not inflection points; the curve remains concave down on both sides.
Point is a sharp cusp where the curve is concave down on both sides; concavity does not change, so it is not an inflection point.
Comparative Case Studies of Potential Inflection Points:

Case 1: :
Derivatives: , .
Candidate location: .
Sign testing: For , (concave down). For , (concave up).
Conclusion: Concavity changes at , so is an inflection point.
Case 2: :
Derivatives: , .
Candidate location: .
Sign testing: For , (concave up). For , (concave up).
Conclusion: Although , the concavity does not change. Thus, is not an inflection point.
Case 3: :
Derivatives: , .
Candidate location: is undefined at .
Sign testing: For , (concave up). For , (concave down).
Conclusion: Concavity changes across , so is an inflection point.
Inflection Point in Polynomial Sketching:
For :
Second derivative: .
Set .
Interval : is concave down.
Interval : is concave up.
Inflection point occurs at , with coordinates .
Graph Construction with Prescribed Local Properties:
For a function satisfying , , and possessing an inflection point at , the tangent line at has a slope of .
The curve can transition from concave up to concave down, or from concave down to concave up across , slicing through its tangent line.

Curve Sketching Methodology and Derivative Analysis
Summary of Derivative Information About Function Shape:
| Original Function | First Derivative | Second Derivative | | :--- | :--- | :--- | | Increasing | Positive (, ) | | | Decreasing | Negative (, ) | | | Concave up | Increasing | Positive (, ) | | Concave down | Decreasing | Negative (, ) |
When , the graph of may have a local maximum or local minimum.
When , the graph of may have an inflection point.
Curve Sketching Analysis for Cusp Functions: :
First derivative: , undefined at .
Second derivative: , undefined at .
Critical number is , yielding test intervals and .
Interval : Test value :
(decreasing).
(concave down).
Interval : Test value :
(increasing).
(concave down).
Base coordinate: .
Geometric conclusion: The curve decreases and is concave down to the left of the origin, then increases and is concave down to the right of the origin, forming a sharp vertical cusp at .

Reconstructing Derivatives from Data Graphs: Company Bank Balance:
Let represent a company's bank balance in millions of dollars, weeks after releasing a new product.

Horizontal tangent lines occur at approximately and , identifying where the marginal balance .
Monotonicity and sign correspondence of :
| Interval | Function Behavior | Derivative Value | | :--- | :--- | :--- | | | Decreasing | Negative () | | | Increasing | Positive () | | | Decreasing | Negative () |
Inflection points occur at approximately and . At these points, switches between increasing and decreasing, forming local extrema of the derivative function.
Concavity and slope correspondence of :
| Interval | Function Concavity | Derivative Behavior | | :--- | :--- | :--- | | | Concave up | Increasing | | | Concave down | Decreasing | | | Concave up | Increasing |
Specific slope estimations for sketch precision:
At : .
At : .
For : .
Connecting these features yields a precise reconstruction of the derivative curve:

Optimization and Local Extrema
Foundations of Optimization:
Optimization is the mathematical process of locating the maximum or minimum values of a function.
Real-world applications include maximizing computer processor speed, minimizing appliance heat generation, maximizing corporate profit and market share, minimizing manufacturing waste, or maximizing academic performance while minimizing required study hours.
Definitions of Local Extrema:
A function has a local maximum at if for all in an open neighborhood near .
A function has a local minimum at if for all in an open neighborhood near .
A function has a local extreme (or relative extreme) at if is either a local maximum or a local minimum.
Local extrema are determined strictly by the local geometric shape of the curve.
Critical Numbers and Critical Points:
Critical Number: A value in the domain of where either or is undefined.
Critical Point: An ordered pair where is a critical number of .
Useful Fact: A local maximum or minimum of can only occur at a critical point.
At smooth local extrema, the tangent line is horizontal (); at sharp local extrema or cusps, the tangent line is vertical or discontinuous ( undefined).
Critical Numbers Do Not Guarantee Extrema:
Finding a critical point is a necessary prerequisite, but it does not guarantee that an extreme value exists.
Illustrated by six distinct behaviors at critical points with and :
(a) Smooth crest: horizontal tangent, local maximum.
(b) Smooth trough: horizontal tangent, local minimum.
(c) Inflection corner: slope changes but continues rising, neither.
(d) Sharp peak: undefined derivative, local maximum.
(e) Sharp cusp trough: undefined derivative, local minimum.
(f) Corner transition: undefined derivative, continues falling, neither.

Example:
Differentiating gives .
Setting yields critical number , with critical point .
If , then , meaning is not a local maximum.
If , then , meaning is not a local minimum.
Thus, has a critical point at , but has no local extremes whatsoever.

The First Derivative Test for Extremes:
Procedure:
Find all critical numbers of .
For each critical number , evaluate the sign of immediately to the left and right of .
Classification Rules:
If changes from positive to negative at , then has a local maximum at .
If changes from negative to positive at , then has a local minimum at .
If does not change sign at , then is neither a local maximum nor a local minimum.

First Derivative Test Worked Example: :
Compute first derivative: .
Setting yields critical numbers and , corresponding to points and .
Evaluating :
For slightly less than : and .
For slightly greater than (e.g., ): and .
Because switches from positive to negative, is a local maximum.
Evaluating :
For slightly less than (e.g., ): .
For slightly greater than (e.g., ): and .
Because switches from negative to positive, is a local minimum.
The Second Derivative Test for Extremes:
Procedure:
Find all critical numbers of where .
Evaluate the second derivative .
Classification Rules:
(a) If , then is concave down at , and has a local maximum at .
(b) If , then is concave up at , and has a local minimum at .
(c) If , the test is inconclusive; may have a local maximum, a local minimum, or neither at (the First Derivative Test must be used instead).
Mnemonic Aid:
A positive face ( eyes with a smile ) represents positive second derivative (), concave up shape, and a local minimum.
A negative face ( eyes with a frown ) represents negative second derivative (), concave down shape, and a local maximum.

Second Derivative Test Worked Example: :
First derivative: .
Critical numbers occur at and .
Second derivative: .
Evaluate at : . By the Second Derivative Test, is a local maximum.
Evaluate at : . By the Second Derivative Test, is a local minimum.
Comparison of First vs. Second Derivative Tests:
The Second Derivative Test requires evaluating only one value per critical number rather than testing intervals on both sides, which is often faster for polynomials.
If calculating the first derivative required extensive product, quotient, or chain rules, computing the second derivative can be prohibitively tedious.
The Second Derivative Test can fail ( or undefined), whereas the First Derivative Test always provides a definitive classification.
Global Extrema and Boundary Analysis
Definitions of Global Extrema:
A function has a global maximum (or absolute maximum) at if for all in the entire domain of .
A function has a global minimum (or absolute minimum) at if for all in the entire domain of .
A function has a global extreme at if is a global maximum or a global minimum.
Global extrema depend on both the intrinsic geometric shape of the graph and the specific domain window through which the graph is viewed.

Relationship Between Local and Global Extrema:
Every global extreme on an open interval or interior domain is also a local extreme.
Many local extrema are not global extrema.
Geographic Elevation Analogy:
Let represent the height of the Earth above sea level at location .
Global maximum of Earth: .
Local maximum for the United States: .
Local minimum for the United States: .
Annual Calculus Enrollment Data Example:
| Year | Enrollment | | :---: | :---: | | 2000 | 1257 | | 2001 | 1324 | | 2002 | 1378 | | 2003 | 1336 | | 2004 | 1389 | | 2005 | 1450 | | 2006 | 1523 | | 2007 | 1582 | | 2008 | 1567 | | 2009 | 1545 | | 2010 | 1571 |
Local maxima occurred in 2002 (enrollment ) and 2007 (enrollment ).
Global maximum occurred in 2007 with .
Local minima occurred in 2003 (enrollment ) and 2009 (enrollment ).
Global minimum occurred in 2003 with .
Convention note: Boundary endpoints (2000 and 2010) are typically excluded from being classified as local extrema, although some textbooks permit endpoint local extrema.
General Guidelines for Finding Global (Absolute) Extrema:
Global extrema can occur only at critical points or at endpoints.
Single Critical Point Rule: If a continuous function has exactly one critical point on an interval, and that point is a local extremum, it is automatically the global extremum on that interval.
Geometry: If a function has a single local maximum, the curve moves downward on both sides; to reach a higher value, the curve would have to turn upward, creating a second critical point.
Closed Interval Method:
For a continuous function defined on a closed interval :
Find all critical numbers of residing within .
Evaluate at each critical number.
Evaluate at each endpoint ( and ).
The greatest of these function values is the global (absolute) maximum; the least of these values is the global (absolute) minimum.
A continuous function on a closed interval is guaranteed to have both an absolute maximum and an absolute minimum.
Closed Interval Optimization Example: on :
Differentiate: .
Set and . Both critical numbers lie within .
Endpoints are and .
Value comparison:
| | Calculation | Value | | :---: | :--- | :---: | | | | | | | | | | | | | | | | |
The global minimum on is , occurring at .
The global maximum on is , occurring at .
Global Extrema on Unbounded Domains:
For on :
Critical points are (local maximum) and (local minimum).
Because the interval is open and unbounded, endpoints do not exist.
As , , exceeding the local maximum value of (e.g., , and for , ).
As , , dropping below the local minimum value of .
Consequently, has neither a global maximum nor a global minimum on the entire real line.
Practice Exercises and Applied Problems
Curvature, Monotonicity, and Rates of Change Statements:
Interpreting quantities changing over time with signs of and :
"Unemployment rose again, but the rate of increase is smaller than last month": (rising), (rate of increase is smaller).
"Our profits declined again, but at a slower rate than last month": (declining), (slower decline rate; slopes becoming less negative).
"The population is still rising and at a faster rate than last year": (rising), (accelerating rate).
"The child's temperature is still rising, but slower than it was a few hours ago": , .
"The number of whales is decreasing, but at a slower rate than last year": , .
"The number of people with the flu is rising and at a faster rate than last month": , .
Properties of Polynomial Inflection Points:
A quadratic polynomial () has , meaning it can have no inflection points ( inflection points).
A cubic polynomial () has . Setting yields , where the linear second derivative always changes sign; thus, every cubic polynomial has exactly inflection point.
A polynomial of degree () has a second derivative of degree , meaning it can have at most inflection points.
Matching Functions and Derivatives:

Function A is a cubic curve with a local max then a local min; its derivative is positive, negative, then positive (parabolic), matching derivative graph Q.
Function B is a parabola opening upward with a single minimum where slope is zero; its derivative is a linear function with positive slope passing through zero, matching derivative graph P.
Function C is an exponential-like curve that is always increasing at an increasing rate (); its derivative is always positive and increasing, matching derivative graph R.
Matching Heights and Velocities of Rockets:

Rocket Height A rises smoothly to a peak, then descends linearly (constant downward slope); its velocity starts positive, passes through zero to become negative, and then becomes a flat negative constant, matching Velocity graph P.
Rocket Height B starts rising slowly, accelerates upward, peaks, and plummets rapidly; its velocity starts small positive, reaches a high positive peak, drops sharply through zero to large negative values, matching Velocity graph R.
Rocket Height C rises steeply initially and levels off asymptotically toward a horizontal line; its velocity starts high positive and decreases steadily toward zero, matching Velocity graph Q.
Function Optimization Problems on Bounded Intervals:
Finding critical points and global extrema for on :
Derivative: .
Evaluate at critical point: .
Evaluate at endpoints: , and .
Global maximum is at ; global minimum is at .
Finding critical points and global extrema for on :
Derivative: .
Evaluate at critical point: .
Evaluate at endpoints: , and .
Global maximum is at ; global minimum is at .
Finding critical points and global extrema for on :
Derivative: , which lies outside the interval .
Evaluate at endpoints: , and .
Global maximum is at ; global minimum is at .
Area and Slope Functions:
Let represent the area bounded between the -axis, the curve , and a vertical boundary line at :

By the Fundamental Theorem of Calculus, .
reaches a minimum at where accumulation begins.
Because across the entire region, accumulates area continuously and reaches its maximum at the rightmost boundary .
Let represent the slope of the secant line passing through the origin and the curve point :

Differentiating gives . Setting .
Extrema of occur precisely where the secant line from the origin is tangent to the curve .
The maximum of occurs at the point of tangency on the highest crest, and the minimum occurs at the point of tangency on the lowest dip.