Maximum and Minimum Values

Maximum and Minimum Values

Maximum and Minimum Values on a Closed Interval

Extreme Value Theorem

Extreme Value Theorem

If the function f(x)f(x) is continuous on the closed interval [a,b][a, b], then f(x)f(x) must attain both a maximum value and a minimum value on [a,b][a, b].

Method for Finding the Maximum and Minimum Values

Steps:

  1. Find all stationary points of the function inside the interval (the points where f′(x)=0f'(x) = 0)
  2. Find all points inside the interval where the function is not differentiable
  3. Find the values of the function at the endpoints of the interval
  4. Compare the function values at all of these points: the largest one is the maximum value and the smallest one is the minimum value

Applied Examples

Example 1: Find the maximum and minimum values of f(x)=x3−3x2+2f(x) = x^3 - 3x^2 + 2 on [−1,3][-1, 3].

Solution:

  • f′(x)=3x2−6x=3x(x−2)f'(x) = 3x^2 - 6x = 3x(x-2)
  • Stationary points: x=0,2x = 0, 2
  • f(−1)=−1−3+2=−2f(-1) = -1 - 3 + 2 = -2
  • f(0)=2f(0) = 2
  • f(2)=8−12+2=−2f(2) = 8 - 12 + 2 = -2
  • f(3)=27−27+2=2f(3) = 27 - 27 + 2 = 2
  • The maximum value is 22 and the minimum value is −2-2

Example 2: Find the maximum and minimum values of f(x)=∣x2−4∣f(x) = |x^2 - 4| on [−3,3][-3, 3].

Solution:

  • When x2−4≥0x^2 - 4 \geq 0, f(x)=x2−4f(x) = x^2 - 4
  • When x2−4<0x^2 - 4 < 0, f(x)=−(x2−4)=4−x2f(x) = -(x^2 - 4) = 4 - x^2
  • Splitting points: x=±2x = \pm 2
  • On [−3,−2][-3, -2]: f(x)=x2−4f(x) = x^2 - 4, f′(x)=2xf'(x) = 2x
  • On [−2,2][-2, 2]: f(x)=4−x2f(x) = 4 - x^2, f′(x)=−2xf'(x) = -2x
  • On [2,3][2, 3]: f(x)=x2−4f(x) = x^2 - 4, f′(x)=2xf'(x) = 2x
  • Stationary point: x=0x = 0 (which lies in [−2,2][-2, 2])
  • f(−3)=5f(-3) = 5, f(−2)=0f(-2) = 0, f(0)=4f(0) = 4, f(2)=0f(2) = 0, f(3)=5f(3) = 5
  • The maximum value is 55 and the minimum value is 00

Example 3: Find the maximum and minimum values of f(x)=x2+1xf(x) = \frac{x^2 + 1}{x} on [1,3][1, 3].

Solution:

  • f′(x)=x2−1x2f'(x) = \frac{x^2 - 1}{x^2}
  • Setting f′(x)=0f'(x) = 0 gives x=±1x = \pm 1, but only x=1x = 1 lies in [1,3][1, 3]
  • f(1)=2f(1) = 2
  • f(3)=103≈3.33f(3) = \frac{10}{3} \approx 3.33
  • The maximum value is 103\frac{10}{3} and the minimum value is 22

Extrema on an Open Interval

Method

  1. Find all stationary points of the function inside the interval
  2. Find all points inside the interval where the function is not differentiable
  3. Find the limiting values of the function at the endpoints of the interval
  4. Compare the function values and limiting values at all of these points

Example: Find the maximum and minimum values of f(x)=1xf(x) = \frac{1}{x} on (0,1](0, 1].

Solution:

  • f′(x)=−1x2<0f'(x) = -\frac{1}{x^2} < 0, so the function is monotonically decreasing
  • f(1)=1f(1) = 1
  • lim⁡x→0+f(x)=+∞\lim_{x \to 0^+} f(x) = +\infty
  • The maximum value is +∞+\infty (it is unbounded above) and the minimum value is 11

Constrained Extrema

Lagrange Multiplier Method

Lagrange Multiplier Method

Suppose the function f(x,y)f(x, y) and the constraint g(x,y)=0g(x, y) = 0 are continuously differentiable in a neighborhood of the point (x0,y0)(x_0, y_0), and ∇g(x0,y0)≠0\nabla g(x_0, y_0) \neq 0. If (x0,y0)(x_0, y_0) is an extremum point of f(x,y)f(x, y) subject to the constraint g(x,y)=0g(x, y) = 0, then there exists a constant λ\lambda such that

∇f(x0,y0)=λ∇g(x0,y0)\nabla f(x_0, y_0) = \lambda \nabla g(x_0, y_0)

Example: Find the minimum value of f(x,y)=x2+y2f(x, y) = x^2 + y^2 subject to the constraint x+y=1x + y = 1.

Solution:

  • Let the Lagrangian be L(x,y,λ)=x2+y2−λ(x+y−1)L(x, y, \lambda) = x^2 + y^2 - \lambda(x + y - 1)
  • ∂L∂x=2x−λ=0\frac{\partial L}{\partial x} = 2x - \lambda = 0
  • ∂L∂y=2y−λ=0\frac{\partial L}{\partial y} = 2y - \lambda = 0
  • ∂L∂λ=−(x+y−1)=0\frac{\partial L}{\partial \lambda} = -(x + y - 1) = 0
  • Solving gives x=y=12x = y = \frac{1}{2} and λ=1\lambda = 1
  • The minimum value is f(12,12)=12f(\frac{1}{2}, \frac{1}{2}) = \frac{1}{2}

Practical Application Problems

1. Optimization Problems

Example: Find the maximum value of f(x)=x3−3x2+2f(x) = x^3 - 3x^2 + 2 on [0,3][0, 3].

Solution:

  • f′(x)=3x2−6x=3x(x−2)f'(x) = 3x^2 - 6x = 3x(x-2)
  • Stationary points: x=0,2x = 0, 2
  • f(0)=2f(0) = 2, f(2)=−2f(2) = -2, f(3)=2f(3) = 2
  • The maximum value is 22

2. Economic Applications

Example: The cost function of a product is C(x)=x3−3x2+2x+10C(x) = x^3 - 3x^2 + 2x + 10. Find the output that minimizes the average cost.

Solution:

  • The average cost is AC(x)=C(x)x=x2−3x+2+10xAC(x) = \frac{C(x)}{x} = x^2 - 3x + 2 + \frac{10}{x}
  • AC′(x)=2x−3−10x2AC'(x) = 2x - 3 - \frac{10}{x^2}
  • Setting AC′(x)=0AC'(x) = 0 gives 2x3−3x2−10=02x^3 - 3x^2 - 10 = 0
  • Solving numerically gives x≈2.5x \approx 2.5

Common Mistakes and Caveats

1. Errors in Finding the Extrema

Mistake: considering only the stationary points and ignoring the endpoints and the points where the function is not differentiable Correct: every possible extremum point must be taken into account

2. Errors with Extrema on an Open Interval

Mistake: ignoring the limiting values at the endpoints Correct: the limiting values at the endpoints must be computed

3. Errors with Constrained Extrema

Mistake: differentiating directly without taking the constraint into account Correct: use the Lagrange multiplier method

4. Errors in the Domain of the Function

Mistake: ignoring the domain restrictions of the function Correct: make sure every computation stays inside the domain of the function

Exercises

Exercise 1

Find the maximum and minimum values of f(x)=x3−3x2+2f(x) = x^3 - 3x^2 + 2 on [0,3][0, 3].

derivative applicationsextrematangent lines

Approach: Find all possible extremum points and compare the function values.

Steps:

  1. f′(x)=3x2−6x=3x(x−2)f'(x) = 3x^2 - 6x = 3x(x-2)
  2. Stationary points: x=0,2x = 0, 2
  3. f(0)=2f(0) = 2, f(2)=−2f(2) = -2, f(3)=2f(3) = 2
  4. The maximum value is 22 and the minimum value is −2-2

Answer: The maximum value is 22 and the minimum value is −2-2.

Exercise 2

Find the maximum and minimum values of f(x)=x2+1xf(x) = \frac{x^2 + 1}{x} on [1,3][1, 3].

derivative applicationsextrematangent lines

Approach: Differentiate, locate the stationary points, and compare the function values.

Steps:

  1. f′(x)=x2−1x2f'(x) = \frac{x^2 - 1}{x^2}
  2. Setting f′(x)=0f'(x) = 0 gives x=±1x = \pm 1, but only x=1x = 1 lies in [1,3][1, 3]
  3. f(1)=2f(1) = 2, f(3)=103≈3.33f(3) = \frac{10}{3} \approx 3.33
  4. The maximum value is 103\frac{10}{3} and the minimum value is 22

Answer: The maximum value is 103\frac{10}{3} and the minimum value is 22.

Exercise 3

Find the maximum and minimum values of f(x)=∣x2−4∣f(x) = |x^2 - 4| on [−3,3][-3, 3].

derivative applicationsextrematangent lines

Approach: Split the interval into pieces and find the extremum point of each piece.

Steps:

  1. When x2−4≥0x^2 - 4 \geq 0, f(x)=x2−4f(x) = x^2 - 4
  2. When x2−4<0x^2 - 4 < 0, f(x)=4−x2f(x) = 4 - x^2
  3. Splitting points: x=±2x = \pm 2
  4. On [−3,−2][-3, -2]: f(x)=x2−4f(x) = x^2 - 4, f′(x)=2xf'(x) = 2x
  5. On [−2,2][-2, 2]: f(x)=4−x2f(x) = 4 - x^2, f′(x)=−2xf'(x) = -2x
  6. On [2,3][2, 3]: f(x)=x2−4f(x) = x^2 - 4, f′(x)=2xf'(x) = 2x
  7. Stationary point: x=0x = 0 (which lies in [−2,2][-2, 2])
  8. f(−3)=5f(-3) = 5, f(−2)=0f(-2) = 0, f(0)=4f(0) = 4, f(2)=0f(2) = 0, f(3)=5f(3) = 5
  9. The maximum value is 55 and the minimum value is 00

Answer: The maximum value is 55 and the minimum value is 00.


Summary

Symbols Used in This Article

SymbolTypePronunciation/ExplanationMeaning in This Article
λ\lambdaGreek letterLambdaThe Lagrange multiplier
∇\nablaMathematical symbolNablaThe gradient operator

Found an issue with this content?

Tell us what could be improved.