Solved Exercises on Local Extrema in Calculus 1

Master local extrema: critical points, first derivative test, second derivative test, optimization through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Polynomial Function
Exercise 1
Find all local extrema of f(x) = x³ - 3x² - 9x + 5 using the first and second derivative tests.
Definition:

Local Maximum: A point where the function value is greater than nearby points.

Local Minimum: A point where the function value is less than nearby points.

Finding Local Extrema:
  1. Find the first derivative f'(x)
  2. Find critical points by solving f'(x) = 0
  3. Find the second derivative f''(x)
  4. Apply the second derivative test to each critical point
  5. Alternatively, use the first derivative test to determine nature of extrema
Function
f(x) = x³ - 3x² - 9x + 5
First Derivative
f'(x) = 3x² - 6x - 9
Second Derivative
f''(x) = 6x - 6
Step 1: Find the first derivative

f'(x) = d/dx(x³ - 3x² - 9x + 5) = 3x² - 6x - 9

Step 2: Find critical points

f'(x) = 3x² - 6x - 9 = 3(x² - 2x - 3) = 3(x - 3)(x + 1)

Setting f'(x) = 0: 3(x - 3)(x + 1) = 0 → x = 3 or x = -1

Step 3: Find the second derivative

f''(x) = d/dx(3x² - 6x - 9) = 6x - 6 = 6(x - 1)

Step 4: Apply the second derivative test

At x = -1: f''(-1) = 6(-1 - 1) = 6(-2) = -12 < 0 → local maximum

At x = 3: f''(3) = 6(3 - 1) = 6(2) = 12 > 0 → local minimum

Step 5: Find the function values at critical points

At x = -1: f(-1) = (-1)³ - 3(-1)² - 9(-1) + 5 = -1 - 3 + 9 + 5 = 10

At x = 3: f(3) = (3)³ - 3(3)² - 9(3) + 5 = 27 - 27 - 27 + 5 = -22

Step 6: Verify using the first derivative test

For x < -1: f'(x) = 3(x - 3)(x + 1) = 3(-)(-) = positive → increasing

For -1 < x < 3: f'(x) = 3(x - 3)(x + 1) = 3(+)(-) = negative → decreasing

For x > 3: f'(x) = 3(x - 3)(x + 1) = 3(+)(+) = positive → increasing

At x = -1: function changes from increasing to decreasing → local maximum

At x = 3: function changes from decreasing to increasing → local minimum

Local maximum at (-1, 10), Local minimum at (3, -22)
Final answer:

The function f(x) = x³ - 3x² - 9x + 5 has a local maximum at (-1, 10) and a local minimum at (3, -22).

Applied rules:

• Second derivative test: f''(c) < 0 → local maximum, f''(c) > 0 → local minimum

• First derivative test: Sign change in f'(x) indicates extrema

• Factoring: Factor quadratic expressions to find zeros easily

• Power rule: d/dx(xⁿ) = nxⁿ⁻¹

2 Rational Function
Exercise 2
Find all local extrema of f(x) = x/(x² + 1) using the first and second derivative tests.
Definition:

Rational Functions: Functions expressed as ratios of polynomials, requiring quotient rule for differentiation.

Function
f(x) = x/(x² + 1)
First Derivative
f'(x) = (1 - x²)/(x² + 1)²
Second Derivative
f''(x) = 2x(x² - 3)/(x² + 1)³
Step 1: Find the first derivative using quotient rule

f'(x) = [(x² + 1)(1) - x(2x)] / (x² + 1)² = [x² + 1 - 2x²] / (x² + 1)² = (1 - x²) / (x² + 1)²

Step 2: Find critical points

f'(x) = (1 - x²) / (x² + 1)² = 0

Since (x² + 1)² > 0 for all real x, we need the numerator to be zero:

1 - x² = 0 → x² = 1 → x = ±1

Step 3: Find the second derivative

Using the quotient rule on f'(x) = (1 - x²)/(x² + 1)²:

f''(x) = [(x² + 1)²(-2x) - (1 - x²)·2(x² + 1)(2x)] / (x² + 1)⁴

f''(x) = [(x² + 1)(-2x)(x² + 1) - 4x(1 - x²)(x² + 1)] / (x² + 1)⁴

f''(x) = [-2x(x² + 1) - 4x(1 - x²)] / (x² + 1)³ = [-2x³ - 2x - 4x + 4x³] / (x² + 1)³

f''(x) = [2x³ - 6x] / (x² + 1)³ = 2x(x² - 3) / (x² + 1)³

Step 4: Apply the second derivative test

At x = -1: f''(-1) = 2(-1)[(-1)² - 3] / [((-1)² + 1)³] = -2(1 - 3) / (2³) = -2(-2) / 8 = 4/8 = 1/2 > 0 → local minimum

At x = 1: f''(1) = 2(1)[(1)² - 3] / [((1)² + 1)³] = 2(1 - 3) / (2³) = 2(-2) / 8 = -4/8 = -1/2 < 0 → local maximum

Step 5: Find the function values at critical points

At x = -1: f(-1) = -1/((-1)² + 1) = -1/2

At x = 1: f(1) = 1/(1² + 1) = 1/2

Step 6: Verify using the first derivative test

Since (x² + 1)² > 0 always, sign of f'(x) depends on numerator (1 - x²)

For x < -1: 1 - x² < 0 → f'(x) < 0 → decreasing

For -1 < x < 1: 1 - x² > 0 → f'(x) > 0 → increasing

For x > 1: 1 - x² < 0 → f'(x) < 0 → decreasing

At x = -1: function changes from decreasing to increasing → local minimum

At x = 1: function changes from increasing to decreasing → local maximum

Local minimum at (-1, -1/2), Local maximum at (1, 1/2)
Final answer:

The function f(x) = x/(x² + 1) has a local minimum at (-1, -1/2) and a local maximum at (1, 1/2).

Applied rules:

• Quotient rule: d/dx[u/v] = (v·u' - u·v')/v²

• Second derivative test: f''(c) > 0 → local minimum, f''(c) < 0 → local maximum

• Rational function properties: Domain is all real numbers since denominator never zero

• Sign determination: Focus on numerator when denominator is always positive

3 When Second Derivative Test Fails
Exercise 3
Find all local extrema of f(x) = x⁴ - 4x³ + 6x² - 4x + 1 using the first and second derivative tests. What happens when the second derivative test is inconclusive?
Definition:

Second Derivative Test Inconclusive: When f'(c) = 0 and f''(c) = 0, the test provides no information about the nature of the critical point.

Function
f(x) = x⁴ - 4x³ + 6x² - 4x + 1
First Derivative
f'(x) = 4x³ - 12x² + 12x - 4
Second Derivative
f''(x) = 12x² - 24x + 12
Step 1: Find the first derivative

f'(x) = 4x³ - 12x² + 12x - 4 = 4(x³ - 3x² + 3x - 1)

Step 2: Find critical points

f'(x) = 4(x³ - 3x² + 3x - 1) = 4(x - 1)³

Note: x³ - 3x² + 3x - 1 = (x - 1)³ (perfect cube)

Setting f'(x) = 0: 4(x - 1)³ = 0 → x = 1

Step 3: Find the second derivative

f''(x) = 12x² - 24x + 12 = 12(x² - 2x + 1) = 12(x - 1)²

Step 4: Apply the second derivative test

At x = 1: f''(1) = 12(1 - 1)² = 12(0) = 0

Since f''(1) = 0, the second derivative test is inconclusive

Step 5: Use the first derivative test

f'(x) = 4(x - 1)³

For x < 1: (x - 1) < 0 → (x - 1)³ < 0 → f'(x) = 4(negative) < 0 → decreasing

For x > 1: (x - 1) > 0 → (x - 1)³ > 0 → f'(x) = 4(positive) > 0 → increasing

Since f changes from decreasing to increasing at x = 1, there is a local minimum

Step 6: Find the function value at the critical point

At x = 1: f(1) = 1⁴ - 4(1)³ + 6(1)² - 4(1) + 1 = 1 - 4 + 6 - 4 + 1 = 0

Step 7: Alternative approach using factoring

f(x) = x⁴ - 4x³ + 6x² - 4x + 1 = (x - 1)⁴

This is a perfect fourth power, which is always non-negative and equals zero only at x = 1

Therefore, x = 1 gives an absolute minimum

Local minimum at (1, 0), Second derivative test inconclusive
Final answer:

The function f(x) = x⁴ - 4x³ + 6x² - 4x + 1 has a local minimum at (1, 0). The second derivative test is inconclusive at x = 1, but the first derivative test confirms it's a minimum.

Applied rules:

• Second derivative test limitations: When f''(c) = 0, test is inconclusive

• First derivative test: Always reliable when second derivative test fails

• Perfect powers: Recognizing (x - 1)⁴ reveals the function's behavior

• Sign analysis: Cubic expressions maintain sign of their base

Local Extrema - Core Concepts
f'(c) = 0 and f''(c) < 0 ⇒ local maximum, f'(c) = 0 and f''(c) > 0 ⇒ local minimum
Second Derivative Test
Local Max
f'(c) = 0, f''(c) < 0
Peak point
Local Min
f'(c) = 0, f''(c) > 0
Valley point
Inconclusive
f'(c) = 0, f''(c) = 0
Use first test
Key definitions:

Local Maximum: A point (c, f(c)) where f(c) ≥ f(x) for all x in some open interval containing c.

Local Minimum: A point (c, f(c)) where f(c) ≤ f(x) for all x in some open interval containing c.

Local Extremum: Either a local maximum or local minimum.

Critical Point: A point where f'(x) = 0 or f'(x) does not exist.

First Derivative Test: Determines the nature of critical points by examining the sign of f'(x) around the point.

Second Derivative Test: Determines the nature of critical points using f''(x) when f'(c) = 0.

Complete methodology:
  1. Find f'(x): Compute the first derivative of the function
  2. Find critical points: Solve f'(x) = 0 and identify where f'(x) does not exist
  3. Find f''(x): Compute the second derivative of the function
  4. Apply second derivative test: For each critical point c where f'(c) = 0
  5. Handle inconclusive cases: Use first derivative test when f''(c) = 0
  6. Calculate function values: Find f(c) for each local extremum at x = c
  7. State results: Clearly identify local maxima and minima with coordinates
Tip 1: Always factor derivatives completely to easily identify zeros.
Tip 2: When the second derivative test is inconclusive, always fall back to the first derivative test.
Tip 3: Include points where the derivative is undefined as critical points.
Tip 4: Remember that critical points are only candidates for local extrema.
Geometric interpretation: Local extrema occur at points where the tangent line is horizontal.
Physical interpretation: Local extrema represent moments of zero velocity in motion problems.
Extrema Rules:

• Second derivative test: f'(c) = 0 and f''(c) < 0 → local maximum

• Second derivative test: f'(c) = 0 and f''(c) > 0 → local minimum

• Second derivative test: f'(c) = 0 and f''(c) = 0 → inconclusive

• First derivative test: Sign change from positive to negative → local maximum

• First derivative test: Sign change from negative to positive → local minimum

Solution: Exercises 4 to 5
4 Exponential Function
Exercise 4
Find all local extrema of f(x) = xe⁻ˣ using the first and second derivative tests.
Definition:

Product Rule: For functions of the form f(x) = u(x)v(x), f'(x) = u'(x)v(x) + u(x)v'(x).

Function
f(x) = xe⁻ˣ
First Derivative
f'(x) = e⁻ˣ(1 - x)
Second Derivative
f''(x) = e⁻ˣ(x - 2)
Step 1: Find the first derivative using product rule

f'(x) = d/dx(x) · e⁻ˣ + x · d/dx(e⁻ˣ) = 1 · e⁻ˣ + x · (-e⁻ˣ) = e⁻ˣ - xe⁻ˣ = e⁻ˣ(1 - x)

Step 2: Find critical points

f'(x) = e⁻ˣ(1 - x) = 0

Since e⁻ˣ > 0 for all real x, we need (1 - x) = 0 → x = 1

Step 3: Find the second derivative

f'(x) = e⁻ˣ(1 - x)

f''(x) = d/dx[e⁻ˣ(1 - x)] = e⁻ˣ(-1) + (1 - x)(-e⁻ˣ) = -e⁻ˣ - (1 - x)e⁻ˣ = -e⁻ˣ[1 + (1 - x)] = -e⁻ˣ(2 - x) = e⁻ˣ(x - 2)

Step 4: Apply the second derivative test

At x = 1: f''(1) = e⁻¹(1 - 2) = e⁻¹(-1) = -1/e < 0 → local maximum

Step 5: Find the function value at the critical point

At x = 1: f(1) = 1 · e⁻¹ = 1/e ≈ 0.368

Step 6: Verify using the first derivative test

Since e⁻ˣ > 0 for all x, sign of f'(x) depends on (1 - x)

For x < 1: (1 - x) > 0 → f'(x) = e⁻ˣ(positive) > 0 → increasing

For x > 1: (1 - x) < 0 → f'(x) = e⁻ˣ(negative) < 0 → decreasing

At x = 1: function changes from increasing to decreasing → local maximum

Local maximum at (1, 1/e)
Final answer:

The function f(x) = xe⁻ˣ has a local maximum at (1, 1/e).

Applied rules:

• Product rule: For differentiating products of functions

• Exponential properties: eˣ > 0 for all x, so sign depends on other factors

• Sign analysis: Factor out positive terms to analyze sign

• Local extrema: Occur where function changes from increasing to decreasing

5 Trigonometric Function
Exercise 5
Find all local extrema of f(x) = sin(x) + cos(x) on [0, 2π] using the first and second derivative tests.
Definition:

Trigonometric Derivatives: d/dx(sin x) = cos x, d/dx(cos x) = -sin x.

Function
f(x) = sin(x) + cos(x)
First Derivative
f'(x) = cos(x) - sin(x)
Second Derivative
f''(x) = -sin(x) - cos(x)
Step 1: Find the first derivative

f'(x) = d/dx[sin(x) + cos(x)] = cos(x) - sin(x)

Step 2: Find critical points

f'(x) = cos(x) - sin(x) = 0 → cos(x) = sin(x) → tan(x) = 1

On [0, 2π]: x = π/4 and x = 5π/4

Step 3: Find the second derivative

f''(x) = d/dx[cos(x) - sin(x)] = -sin(x) - cos(x)

Step 4: Apply the second derivative test

At x = π/4: f''(π/4) = -sin(π/4) - cos(π/4) = -√2/2 - √2/2 = -√2 < 0 → local maximum

At x = 5π/4: f''(5π/4) = -sin(5π/4) - cos(5π/4) = -(-√2/2) - (-√2/2) = √2/2 + √2/2 = √2 > 0 → local minimum

Step 5: Find the function values at critical points

At x = π/4: f(π/4) = sin(π/4) + cos(π/4) = √2/2 + √2/2 = √2 ≈ 1.414

At x = 5π/4: f(5π/4) = sin(5π/4) + cos(5π/4) = -√2/2 + (-√2/2) = -√2 ≈ -1.414

Step 6: Verify using the first derivative test

For x slightly less than π/4: cos(x) > sin(x) → f'(x) > 0 → increasing

For x slightly greater than π/4: cos(x) < sin(x) → f'(x) < 0 → decreasing

For x slightly less than 5π/4: cos(x) < sin(x) → f'(x) < 0 → decreasing

For x slightly greater than 5π/4: cos(x) > sin(x) → f'(x) > 0 → increasing

At x = π/4: function changes from increasing to decreasing → local maximum

At x = 5π/4: function changes from decreasing to increasing → local minimum

Local maximum at (π/4, √2), Local minimum at (5π/4, -√2)
Final answer:

The function f(x) = sin(x) + cos(x) has a local maximum at (π/4, √2) and a local minimum at (5π/4, -√2) on [0, 2π].

Applied rules:

• Trigonometric derivatives: Standard derivatives of sin and cos

• Trigonometric equations: Solving tan(x) = 1

• Special angles: Using known values of sine and cosine

• Periodic properties: Understanding behavior of trigonometric functions

Comprehensive Summary: Local Extrema
f'(c) = 0 and f''(c) < 0 ⇒ local max, f'(c) = 0 and f''(c) > 0 ⇒ local min
Second Derivative Test
Key definitions:

Local Maximum: A point (c, f(c)) where f(c) ≥ f(x) for all x in some open interval containing c. The function value is greater than nearby values.

Local Minimum: A point (c, f(c)) where f(c) ≤ f(x) for all x in some open interval containing c. The function value is less than nearby values.

Local Extremum: Either a local maximum or local minimum.

Critical Point: A point where f'(x) = 0 or f'(x) does not exist. These are the only points where local extrema can occur.

First Derivative Test: Determines the nature of critical points by examining the sign of f'(x) on either side of the critical point.

Second Derivative Test: Determines the nature of critical points using f''(x) when f'(c) = 0.

Global/Absolute Extremum: The highest or lowest value on the entire domain or specified interval.

Complete methodology:
  1. Find f'(x): Compute the first derivative of the function
  2. Find critical points: Solve f'(x) = 0 and identify points where f'(x) does not exist
  3. Find f''(x): Compute the second derivative of the function
  4. Apply second derivative test: For each critical point c where f'(c) = 0
  5. Handle inconclusive cases: When f''(c) = 0, use the first derivative test
  6. Apply first derivative test: Examine sign changes of f'(x) around critical points
  7. Calculate function values: Find f(c) for each local extremum at x = c
  8. State results clearly: Identify local maxima and minima with coordinates
Tip 1: Always factor derivatives completely to easily identify zeros and undefined points.
Tip 2: When the second derivative test is inconclusive (f''(c) = 0), always fall back to the first derivative test.
Tip 3: Include points where the derivative is undefined as critical points that may be extrema.
Tip 4: Remember that critical points are only candidates for local extrema; not all critical points are extrema.
Tip 5: For rational functions, note that positive denominators don't affect the sign of the derivative.
Geometric interpretation: Local extrema occur at points where the tangent line is horizontal (slope = 0).
Physical interpretation: In motion problems, local extrema represent moments when velocity is zero.
Application: Essential for optimization problems and curve sketching.
Extrema Rules:

• Second derivative test: If f'(c) = 0 and f''(c) < 0, then f has a local maximum at x = c

• Second derivative test: If f'(c) = 0 and f''(c) > 0, then f has a local minimum at x = c

• Second derivative test: If f'(c) = 0 and f''(c) = 0, the test is inconclusive

• First derivative test: If f'(x) changes from positive to negative at c, then f has a local maximum at x = c

• First derivative test: If f'(x) changes from negative to positive at c, then f has a local minimum at x = c

• Critical points: Local extrema can only occur at critical points

Simple Example: Quadratic Function

Problem: Find local extrema of f(x) = x².

Solution: f'(x) = 2x, f''(x) = 2

Critical point: f'(x) = 2x = 0 → x = 0

Second derivative test: f''(0) = 2 > 0 → local minimum

Function value: f(0) = 0

Therefore, f has a local minimum at (0, 0).

Advanced Example: Polynomial with Multiple Critical Points

Problem: Find local extrema of f(x) = x⁴ - 4x³.

Solution: f'(x) = 4x³ - 12x² = 4x²(x - 3), f''(x) = 12x² - 24x = 12x(x - 2)

Critical points: x = 0 (with multiplicity 2) and x = 3

At x = 0: f''(0) = 0 → inconclusive, use first derivative test

For x < 0: f'(x) = 4x²(x - 3) = positive × negative = negative → decreasing

For 0 < x < 3: f'(x) = 4x²(x - 3) = positive × negative = negative → decreasing

Since f'(x) doesn't change sign at x = 0, no extremum exists there.

At x = 3: f''(3) = 12(3)(3 - 2) = 36 > 0 → local minimum

Therefore, f has a local minimum at (3, -27).

Questions & Answers

Question: What happens if the second derivative test is inconclusive? Can I always use the first derivative test instead?

Answer: Yes, when the second derivative test is inconclusive (i.e., f'(c) = 0 and f''(c) = 0), you should always use the first derivative test, which is always reliable.

The second derivative test can fail in two ways:

  • f'(c) ≠ 0 (not a critical point)
  • f'(c) = 0 and f''(c) = 0 (inconclusive)

In the second case, the first derivative test examines the sign of f'(x) on either side of the critical point to determine if the function changes from increasing to decreasing (local maximum) or decreasing to increasing (local minimum).

The first derivative test is more general and works in all cases, while the second derivative test is a shortcut that only works when f''(c) ≠ 0.

Question: Can a function have a critical point that is not a local extremum? How do I identify such points?

Answer: Yes, a function can have a critical point that is not a local extremum. Such points are called "saddle points" or "points of inflection" (though the latter term is sometimes reserved for concavity changes).

To identify these points:

  • Apply the first derivative test
  • If f'(x) does not change sign around the critical point, then it's not an extremum

For example, f(x) = x³ has a critical point at x = 0 since f'(0) = 0, but f'(x) = 3x² ≥ 0 for all x, so f'(x) doesn't change sign. Therefore, x = 0 is not a local extremum—it's an inflection point where the function changes concavity.

Remember: critical points are only candidates for extrema, not guarantees.

Question: How do I know if a critical point corresponds to a local maximum or minimum? What's the difference between local and absolute extrema?

Answer: To determine if a critical point is a local maximum or minimum:

  • Second derivative test: If f'(c) = 0 and f''(c) < 0 → local maximum; if f''(c) > 0 → local minimum
  • First derivative test: Sign change from positive to negative → local maximum; from negative to positive → local minimum

Local vs. Absolute Extrema:

  • Local extrema: The function has a maximum or minimum value compared to nearby points only
  • Absolute extrema: The function has the maximum or minimum value over the entire domain or specified interval

Every absolute extremum is also a local extremum (except possibly at endpoints), but not every local extremum is an absolute extremum. To find absolute extrema on a closed interval, compare all local extrema with the function values at the endpoints.