Extrema of a Function

Necessary Condition for an Extremum

Necessary Condition for an Extremum

If the function f(x)f(x) attains an extremum at the point x0x_0 and is differentiable there, then f′(x0)=0f'(x_0) = 0

Note: f′(x0)=0f'(x_0) = 0 is a necessary condition for an extremum, but not a sufficient one.

Sufficient Conditions for an Extremum

First Sufficient Condition

First Sufficient Condition

Suppose the function f(x)f(x) is continuous in a neighborhood of the point x0x_0 and differentiable on the punctured neighborhood, and either f′(x0)=0f'(x_0) = 0 or f′(x0)f'(x_0) does not exist. Then:

  1. If f′(x)>0f'(x) > 0 for x<x0x < x_0 and f′(x)<0f'(x) < 0 for x>x0x > x_0, then f(x0)f(x_0) is a local maximum
  2. If f′(x)<0f'(x) < 0 for x<x0x < x_0 and f′(x)>0f'(x) > 0 for x>x0x > x_0, then f(x0)f(x_0) is a local minimum

Second Sufficient Condition

Second Sufficient Condition

Suppose the function f(x)f(x) is twice differentiable at the point x0x_0 and f′(x0)=0f'(x_0) = 0. Then:

  1. If f′′(x0)>0f''(x_0) > 0, then f(x0)f(x_0) is a local minimum
  2. If f′′(x0)<0f''(x_0) < 0, then f(x0)f(x_0) is a local maximum

Applied Examples

Applying the Method for Finding Extrema

Example 1: Find the extremum points and the extreme values of f(x)=x3−3x2+2f(x) = x^3 - 3x^2 + 2.

Solution:

  • f′(x)=3x2−6x=3x(x−2)f'(x) = 3x^2 - 6x = 3x(x-2)
  • Setting f′(x)=0f'(x) = 0 gives x=0,2x = 0, 2
  • f′′(x)=6x−6f''(x) = 6x - 6
  • f′′(0)=−6<0f''(0) = -6 < 0, so x=0x = 0 is a local maximum point with f(0)=2f(0) = 2
  • f′′(2)=6>0f''(2) = 6 > 0, so x=2x = 2 is a local minimum point with f(2)=−2f(2) = -2

Example 2: Find the extrema of f(x)=x2x−1f(x) = \frac{x^2}{x-1}.

Solution:

  • f′(x)=2x(x−1)−x2(x−1)2=x2−2x(x−1)2=x(x−2)(x−1)2f'(x) = \frac{2x(x-1) - x^2}{(x-1)^2} = \frac{x^2 - 2x}{(x-1)^2} = \frac{x(x-2)}{(x-1)^2}
  • Setting f′(x)=0f'(x) = 0 gives x=0,2x = 0, 2
  • x=0x = 0 is a local maximum point and x=2x = 2 is a local minimum point

Exercises

Exercise 1

Find the extremum points and the extreme values of f(x)=x3−3x2+2f(x) = x^3 - 3x^2 + 2.

derivative applicationsextrematangent lines

Approach: Differentiate, locate the stationary points, and classify them.

Steps:

  1. f′(x)=3x2−6x=3x(x−2)f'(x) = 3x^2 - 6x = 3x(x-2)
  2. Setting f′(x)=0f'(x) = 0 gives x=0,2x = 0, 2
  3. f′′(x)=6x−6f''(x) = 6x - 6
  4. f′′(0)=−6<0f''(0) = -6 < 0, so x=0x = 0 is a local maximum point with f(0)=2f(0) = 2
  5. f′′(2)=6>0f''(2) = 6 > 0, so x=2x = 2 is a local minimum point with f(2)=−2f(2) = -2

Answer: Local maximum point (0,2)(0, 2), local minimum point (2,−2)(2, -2).

Exercise 2

Find the extrema of f(x)=x2+1xf(x) = \frac{x^2 + 1}{x}.

derivative applicationsextrematangent lines

Approach: Differentiate, locate the stationary points, and classify them.

Steps:

  1. f′(x)=2x⋅x−(x2+1)x2=x2−1x2f'(x) = \frac{2x \cdot x - (x^2 + 1)}{x^2} = \frac{x^2 - 1}{x^2}
  2. Setting f′(x)=0f'(x) = 0 gives x=±1x = \pm 1
  3. f′′(x)=2x3−2x(x2−1)x4=2x3f''(x) = \frac{2x^3 - 2x(x^2 - 1)}{x^4} = \frac{2}{x^3}
  4. f′′(1)=2>0f''(1) = 2 > 0, so x=1x = 1 is a local minimum point with f(1)=2f(1) = 2
  5. f′′(−1)=−2<0f''(-1) = -2 < 0, so x=−1x = -1 is a local maximum point with f(−1)=−2f(-1) = -2

Answer: Local maximum point (−1,−2)(-1, -2), local minimum point (1,2)(1, 2).

Exercise 3

Find the extrema of f(x)=x4−8x2+16f(x) = x^4 - 8x^2 + 16.

derivative applicationsextrematangent lines

Approach: Differentiate, locate the stationary points, and classify them.

Steps:

  1. f′(x)=4x3−16x=4x(x2−4)=4x(x−2)(x+2)f'(x) = 4x^3 - 16x = 4x(x^2 - 4) = 4x(x-2)(x+2)
  2. Setting f′(x)=0f'(x) = 0 gives x=0,±2x = 0, \pm 2
  3. f′′(x)=12x2−16f''(x) = 12x^2 - 16
  4. f′′(0)=−16<0f''(0) = -16 < 0, so x=0x = 0 is a local maximum point with f(0)=16f(0) = 16
  5. f′′(2)=32>0f''(2) = 32 > 0, so x=2x = 2 is a local minimum point with f(2)=0f(2) = 0
  6. f′′(−2)=32>0f''(-2) = 32 > 0, so x=−2x = -2 is a local minimum point with f(−2)=0f(-2) = 0

Answer: Local maximum point (0,16)(0, 16), local minimum points (2,0)(2, 0) and (−2,0)(-2, 0).

Exercise 4

Given f(x)=∫0xet2sin⁡t dtf(x) = \int_0^x e^{t^2} \sin t\,dt, decide whether x=0x = 0 is an extremum point of f(x)f(x), and if so, whether it is a local maximum point or a local minimum point.

derivative applicationsextrematangent lines

Approach: Differentiate the function with a variable upper limit and examine the derivative at x=0x = 0.

Steps:

  1. f′(x)=ex2sin⁡xf'(x) = e^{x^2} \sin x
  2. f′(0)=e0sin⁡0=0f'(0) = e^0 \sin 0 = 0, so x=0x = 0 is a stationary point
  3. f′′(x)=2xex2sin⁡x+ex2cos⁡xf''(x) = 2x e^{x^2} \sin x + e^{x^2} \cos x
  4. f′′(0)=0+e0cos⁡0=1>0f''(0) = 0 + e^0 \cos 0 = 1 > 0
  5. By the second sufficient condition, f′′(0)>0f''(0) > 0, so x=0x = 0 is a local minimum point

Answer: x=0x = 0 is a local minimum point of f(x)f(x).

Exercise 5

Let f(x)=x2+y2f(x) = x^2 + y^2, where x,yx, y satisfy the constraint x+y=1x + y = 1. Find the extrema of f(x,y)f(x, y) subject to the constraint.

derivative applicationsextrematangent lines

Approach: Use the Lagrange multiplier method to find the constrained extrema.

Steps:

  1. Build the Lagrangian: L(x,y,λ)=x2+y2+λ(x+y−1)L(x, y, \lambda) = x^2 + y^2 + \lambda(x + y - 1)
  2. Compute the partial derivatives and set them equal to zero:
    • ∂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
  3. The first two equations give 2x+λ=02x + \lambda = 0 and 2y+λ=02y + \lambda = 0
  4. Hence 2x=2y2x = 2y, that is, x=yx = y
  5. Substituting into the constraint: x+x=1x + x = 1, so x=y=12x = y = \frac{1}{2}
  6. Evaluate the function: f(12,12)=(12)2+(12)2=14+14=12f(\frac{1}{2}, \frac{1}{2}) = (\frac{1}{2})^2 + (\frac{1}{2})^2 = \frac{1}{4} + \frac{1}{4} = \frac{1}{2}

Answer: Under the constraint x+y=1x + y = 1, f(x,y)f(x, y) attains the local minimum 12\frac{1}{2} at the point (12,12)(\frac{1}{2}, \frac{1}{2}).

Exercise 6

Find the maximum and minimum values of f(x,y)=x3+y3−(x+y)3+3f(x,y) = x^3 + y^3 - (x+y)^3 + 3 on the region D={(x,y)∣x≥0,y≥0,x+y≤3}D = \{(x,y) | x \geq 0, y \geq 0, x+y \leq 3\}.

derivative applicationsextrematangent lines

Approach: Use the method for finding the extrema of a function of several variables, considering separately the stationary points inside the region and the extrema on the boundary.

Steps:

  1. Find the stationary points inside the region:

    • ∂f∂x=3x2−2(x+y)=0\frac{\partial f}{\partial x} = 3x^2 - 2(x+y) = 0
    • ∂f∂y=3y2−2(x+y)=0\frac{\partial f}{\partial y} = 3y^2 - 2(x+y) = 0
    • Solving gives the stationary points: (0,0),(43,43)(0,0), (\frac{4}{3}, \frac{4}{3})
    • f(0,0)=3,f(43,43)=1727f(0,0) = 3, f(\frac{4}{3}, \frac{4}{3}) = \frac{17}{27}
  2. Find the extrema on the boundary:

    • Boundary y=0,0≤x≤3y = 0, 0 \leq x \leq 3: f(x,0)=x3−x2+3f(x,0) = x^3 - x^2 + 3
    • f′(x,0)=3x2−2x=0f'(x,0) = 3x^2 - 2x = 0 gives x=0,23x = 0, \frac{2}{3}
    • f(0,0)=3,f(23,0)=7727f(0,0) = 3, f(\frac{2}{3}, 0) = \frac{77}{27}
    • Boundary x=0,0≤y≤3x = 0, 0 \leq y \leq 3: by the same reasoning, f(0,23)=7727f(0, \frac{2}{3}) = \frac{77}{27}
    • Boundary x+y=3x + y = 3: f(x,3−x)=x3+(3−x)3−6x+3f(x, 3-x) = x^3 + (3-x)^3 - 6x + 3
    • Differentiating gives the stationary point x=32x = \frac{3}{2}, f(32,32)=−34f(\frac{3}{2}, \frac{3}{2}) = -\frac{3}{4}
  3. Compare all the extremal values:

    • Maximum value: f(3,0)=f(0,3)=21f(3,0) = f(0,3) = 21
    • Minimum value: f(43,43)=1727f(\frac{4}{3}, \frac{4}{3}) = \frac{17}{27}

Answer: The maximum value is 2121 and the minimum value is 1727\frac{17}{27}.

Exercise 7

Let f(x)f(x) have a second derivative, and suppose f′(0)=f′(1)f'(0) = f'(1) and ∣f′′(x)∣≤1|f''(x)| \leq 1. Prove that for x∈(0,1)x \in (0,1), ∣f(x)−f(0)(1−x)−f(1)x∣≤x(1−x)2|f(x) - f(0)(1-x) - f(1)x| \leq \frac{x(1-x)}{2}.

derivative applicationsextrematangent lines

Approach: Expand with Taylor’s formula and combine it with the boundedness of the second derivative to prove the inequality.

Steps:

  1. Expand f(x)f(x) at x=0x = 0 with Taylor’s formula: f(x)=f(0)+f′(0)x+f′′(ξ1)2!x2f(x) = f(0) + f'(0)x + \frac{f''(\xi_1)}{2!}x^2, where ξ1∈(0,x)\xi_1 \in (0,x)

  2. Expand f(x)f(x) at x=1x = 1 with Taylor’s formula: f(x)=f(1)+f′(1)(x−1)+f′′(ξ2)2!(x−1)2f(x) = f(1) + f'(1)(x-1) + \frac{f''(\xi_2)}{2!}(x-1)^2, where ξ2∈(x,1)\xi_2 \in (x,1)

  3. Since f′(0)=f′(1)f'(0) = f'(1), adding the two equations gives: f(x)−f(0)(1−x)−f(1)x=f′′(ξ1)2!x(1−x)+f′′(ξ2)2!x(x−1)f(x) - f(0)(1-x) - f(1)x = \frac{f''(\xi_1)}{2!}x(1-x) + \frac{f''(\xi_2)}{2!}x(x-1)

  4. Since ∣f′′(x)∣≤1|f''(x)| \leq 1: ∣f(x)−f(0)(1−x)−f(1)x∣≤12x(1−x)+12x(1−x)=x(1−x)2|f(x) - f(0)(1-x) - f(1)x| \leq \frac{1}{2}x(1-x) + \frac{1}{2}x(1-x) = \frac{x(1-x)}{2}

Answer: The inequality is proved.

Exercise 8

Let f(x)=∫1xt(2−ln⁡t)dtf(x) = \int_1^x t(2-\ln t)dt. Find the maximum value of f(x)f(x) on (0,+∞)(0,+\infty).

derivative applicationsextrematangent lines

Approach: Use the derivative of the function with a variable upper limit, find the stationary points, and classify them.

Steps:

  1. Differentiate: f′(x)=x(2−ln⁡x)f'(x) = x(2-\ln x)

  2. Find the stationary points: Setting f′(x)=0f'(x) = 0 gives x(2−ln⁡x)=0x(2-\ln x) = 0 Solving gives x=0x = 0 or x=e2x = e^2

  3. Classify the extremum:

    • When 0<x<e20 < x < e^2, f′(x)>0f'(x) > 0, so the function is monotonically increasing
    • When x>e2x > e^2, f′(x)<0f'(x) < 0, so the function is monotonically decreasing
    • So f(x)f(x) attains a local maximum at x=e2x = e^2, which is also the maximum value
  4. Compute the maximum value: f(e2)=∫1e2t(2−ln⁡t)dt=14e4−54f(e^2) = \int_1^{e^2} t(2-\ln t)dt = \frac{1}{4}e^4 - \frac{5}{4}

Answer: The maximum value is 14e4−54\frac{1}{4}e^4 - \frac{5}{4}.

Exercise 9

Find the extrema of f(x,y)=(y−x2)(y−x3)f(x,y) = (y-x^2)(y-x^3).

derivative applicationsextrematangent lines

Approach: Use the method for finding the extrema of a function of several variables: compute the partial derivatives and apply the sufficient conditions.

Steps:

  1. Compute the partial derivatives:

    • ∂f∂x=−2x(y−x2)−3x2(y−x3)=0\frac{\partial f}{\partial x} = -2x(y-x^2) - 3x^2(y-x^3) = 0
    • ∂f∂y=2y−x2−3x3=0\frac{\partial f}{\partial y} = 2y - x^2 - 3x^3 = 0
  2. Find the stationary points: Solving gives the stationary points (0,0),(1,1),(23,1027)(0,0), (1,1), (\frac{2}{3}, \frac{10}{27})

  3. Compute the second partial derivatives:

    • fxx=−2y−3y+15x2f_{xx} = -2y - 3y + 15x^2
    • fxy=−2x−3x2f_{xy} = -2x - 3x^2
    • fyy=2f_{yy} = 2
  4. Classify the extrema:

    • Point (0,0)(0,0): A=fxx=0,B=fxy=0,C=fyy=2A = f_{xx} = 0, B = f_{xy} = 0, C = f_{yy} = 2 AC−B2=0AC - B^2 = 0, so the sufficient condition fails A limit analysis shows that (0,0)(0,0) is not an extremum point

    • Point (1,1)(1,1): A=fxx=12,B=fxy=−5,C=fyy=2A = f_{xx} = 12, B = f_{xy} = -5, C = f_{yy} = 2 AC−B2=24−25=−1<0AC - B^2 = 24 - 25 = -1 < 0, so it is not an extremum point

    • Point (23,1027)(\frac{2}{3}, \frac{10}{27}): A=fxx=10027,B=fxy=83,C=fyy=2A = f_{xx} = \frac{100}{27}, B = f_{xy} = \frac{8}{3}, C = f_{yy} = 2 AC−B2>0AC - B^2 > 0 and A>0A > 0, so it is a local minimum point

Answer: The function attains a local minimum at the point (23,1027)(\frac{2}{3}, \frac{10}{27}).

Exercise 10

Let f(x)f(x) have a continuous second derivative on [−a,a][-a,a], and suppose f(x)f(x) attains an extremum in (−a,a)(-a,a) and f(x)f(x) is differentiable at x=x0x = x_0. Prove that there exists η∈(−a,a)\eta \in (-a,a) such that ∣f′′(η)∣≥12a2∣f(a)−f(−a)∣|f''(\eta)| \geq \frac{1}{2a^2}|f(a) - f(-a)|.

derivative applicationsextrematangent lines

Approach: Expand with Taylor’s formula and combine it with the property of the extremum to prove the inequality.

Steps:

  1. Use the property of the extremum: Since f(x)f(x) attains an extremum at x0∈(−a,a)x_0 \in (-a,a) and is differentiable there, f′(x0)=0f'(x_0) = 0

  2. Taylor expansion:

    • f(−a)=f(x0)+f′(x0)(−a−x0)+f′′(γ1)2!(−a−x0)2f(-a) = f(x_0) + f'(x_0)(-a-x_0) + \frac{f''(\gamma_1)}{2!}(-a-x_0)^2 where −a<γ1<x0-a < \gamma_1 < x_0

    • f(a)=f(x0)+f′(x0)(a−x0)+f′′(γ2)2!(a−x0)2f(a) = f(x_0) + f'(x_0)(a-x_0) + \frac{f''(\gamma_2)}{2!}(a-x_0)^2 where x0<γ2<ax_0 < \gamma_2 < a

  3. Subtracting gives: f(a)−f(−a)=12[(a−x0)2f′′(γ2)−(a+x0)2f′′(γ1)]f(a) - f(-a) = \frac{1}{2}[(a-x_0)^2f''(\gamma_2) - (a+x_0)^2f''(\gamma_1)]

  4. Use continuity: Let M=max⁡{∣f′′(γ1)∣,∣f′′(γ2)∣}M = \max\{|f''(\gamma_1)|, |f''(\gamma_2)|\}, then ∣f(a)−f(−a)∣≤12M[(a−x0)2+(a+x0)2]=M(a2+x02)|f(a) - f(-a)| \leq \frac{1}{2}M[(a-x_0)^2 + (a+x_0)^2] = M(a^2 + x_0^2)

  5. Draw the conclusion: When x0∈(−a,a)x_0 \in (-a,a), ∣f(a)−f(−a)∣≤2Ma2|f(a) - f(-a)| \leq 2Ma^2 so M≥12a2∣f(a)−f(−a)∣M \geq \frac{1}{2a^2}|f(a) - f(-a)| that is, there exists η∈(−a,a)\eta \in (-a,a) such that ∣f′′(η)∣≥12a2∣f(a)−f(−a)∣|f''(\eta)| \geq \frac{1}{2a^2}|f(a) - f(-a)|

Answer: The inequality is proved.

Exercise 11

Find the maximum value of f(x,y)=(x2+y2)e−(x+y)f(x,y) = (x^2 + y^2)e^{-(x+y)} on x≥0,y≥0x \geq 0, y \geq 0.

derivative applicationsextrematangent lines

Approach: Use the method for finding the extrema of a function of several variables, considering separately the stationary points inside the region and the extrema on the boundary.

Steps:

  1. Find the stationary points inside the region:

    • ∂f∂x=e−(x+y)(2x−x2−y2)=0\frac{\partial f}{\partial x} = e^{-(x+y)}(2x - x^2 - y^2) = 0
    • ∂f∂y=e−(x+y)(2y−x2−y2)=0\frac{\partial f}{\partial y} = e^{-(x+y)}(2y - x^2 - y^2) = 0
    • Solving gives the stationary points: (0,0),(1,1)(0,0), (1,1)
  2. Classify the stationary points:

    • For the stationary point (0,0)(0,0): A=2,B=0,C=2,AC−B2>0,A>0A = 2, B = 0, C = 2, AC - B^2 > 0, A > 0, so (0,0)(0,0) is a local minimum point with f(0,0)=0f(0,0) = 0
    • For the stationary point (1,1)(1,1): A=0,B=−2e−2,C=0,AC−B2<0A = 0, B = -2e^{-2}, C = 0, AC - B^2 < 0, so (1,1)(1,1) is not an extremum point
  3. Find the extrema on the boundary:

    • Boundary y=0,x≥0y = 0, x \geq 0: f(x,0)=x2e−xf(x,0) = x^2e^{-x}
    • f′(x,0)=(2x−x2)e−x=0f'(x,0) = (2x - x^2)e^{-x} = 0 gives x=0,2x = 0, 2
    • f(0,0)=0,f(2,0)=4e−2f(0,0) = 0, f(2,0) = 4e^{-2}
    • Boundary x=0,y≥0x = 0, y \geq 0: by the same reasoning, f(0,2)=4e−2f(0,2) = 4e^{-2}

Answer: The maximum value is 4e−24e^{-2}.

Exercise 12

Let f(x)f(x) have a continuous second derivative on [a,b][a,b] and suppose f′′(x)≥0f''(x) \geq 0. Prove that for any x∈(a,b)x \in (a,b), f(x)≥f(a)+f(b)−f(a)b−a(x−a)f(x) \geq f(a) + \frac{f(b) - f(a)}{b - a}(x - a)

derivative applicationsextrematangent lines

Approach: Use the convexity of the function together with Taylor’s formula to carry out the proof.

Steps:

  1. Use Taylor’s formula: For any x∈(a,b)x \in (a,b), expand at the point aa up to second order: f(x)=f(a)+f′(a)(x−a)+f′′(ξ)2(x−a)2f(x) = f(a) + f'(a)(x - a) + \frac{f''(\xi)}{2}(x - a)^2 where ξ∈(a,x)\xi \in (a,x)

  2. Use the convexity condition: Since f′′(x)≥0f''(x) \geq 0, we have f′′(ξ)≥0f''(\xi) \geq 0, and therefore: f(x)≥f(a)+f′(a)(x−a)f(x) \geq f(a) + f'(a)(x - a)

  3. Use the Lagrange mean value theorem: Apply the Lagrange mean value theorem on [a,b][a,b]: f′(a)=f(b)−f(a)b−a−f′′(η)2(b−a)f'(a) = \frac{f(b) - f(a)}{b - a} - \frac{f''(\eta)}{2}(b - a) where η∈(a,b)\eta \in (a,b)

  4. Finish the proof: Since f′′(η)≥0f''(\eta) \geq 0: f′(a)≤f(b)−f(a)b−af'(a) \leq \frac{f(b) - f(a)}{b - a} Substituting this into the inequality gives: f(x)≥f(a)+f(b)−f(a)b−a(x−a)f(x) \geq f(a) + \frac{f(b) - f(a)}{b - a}(x - a)

Answer: The proof is complete.


Summary

Symbols Used in This Article

SymbolTypePronunciation/ExplanationMeaning in This Article
η\etaGreek letterEtaA point appearing in the mean value theorems
ξ\xiGreek letterXiA point appearing in the mean value theorems

Found an issue with this content?

Tell us what could be improved.