How To Find The Maximum Of A Function

5 min read

Finding the maximum value of a function is a fundamental concept in calculus and mathematical analysis, serving as a cornerstone for optimization problems across engineering, economics, data science, and physics. Whether you are trying to maximize profit, minimize cost, or determine the peak trajectory of a projectile, the ability to locate the highest point on a curve is an essential analytical tool. This guide provides a comprehensive walkthrough of the methods used to identify function maxima, ranging from visual estimation to rigorous calculus-based techniques.

Understanding the Types of Maxima

Before diving into the calculations, it is crucial to distinguish between the two primary categories of maximum points. Confusing these can lead to incorrect conclusions, especially when dealing with functions defined on restricted domains Simple, but easy to overlook..

Local (Relative) Maximum

A function $f(x)$ has a local maximum at $x = c$ if $f(c) \ge f(x)$ for all $x$ in some open interval surrounding $c$. Visually, this is the "peak of a hill" within a specific neighborhood. A function can have multiple local maxima.

Global (Absolute) Maximum

A function $f(x)$ has a global maximum at $x = c$ if $f(c) \ge f(x)$ for all $x$ in the entire domain of the function. This is the single highest point the function ever reaches. Every global maximum is also a local maximum (provided it isn't at an endpoint), but not every local maximum is global.

Critical Note on Endpoints: If the domain is a closed interval $[a, b]$, the endpoints $a$ and $b$ are candidates for the global maximum even if the derivative is not zero there. This is a frequent source of errors in optimization exams and real-world modeling.

Method 1: The Analytical Approach (Calculus)

For differentiable functions, calculus provides the most precise and standard method for finding maxima. This process relies on Fermat’s Theorem on Stationary Points, which states that if a function has a local extremum at an interior point $c$ and is differentiable there, then $f'(c) = 0$ The details matter here. Less friction, more output..

Step 1: Find the First Derivative

Calculate $f'(x)$, the rate of change of the function. This derivative represents the slope of the tangent line at any point $x$.

Step 2: Identify Critical Points

Set the first derivative equal to zero and solve for $x$: $f'(x) = 0$ The solutions are critical points (or stationary points). Also, include any points in the domain where $f'(x)$ does not exist (cusps, corners, vertical tangents), as extrema can occur there as well.

Step 3: Classify Critical Points (First or Second Derivative Test)

Once you have a list of critical points, you must determine which are maxima Most people skip this — try not to..

The Second Derivative Test (Usually Faster): Calculate the second derivative $f''(x)$ and evaluate it at each critical point $x = c$.

  • If $f''(c) < 0$: The graph is concave down $\rightarrow$ Local Maximum.
  • If $f''(c) > 0$: The graph is concave up $\rightarrow$ Local Minimum.
  • If $f''(c) = 0$: The test is inconclusive. You must use the First Derivative Test.

The First Derivative Test (More solid): Analyze the sign of $f'(x)$ on intervals immediately to the left and right of the critical point $c$.

  • If $f'(x)$ changes from Positive to Negative ($+ \to -$): The function increases then decreases $\rightarrow$ Local Maximum.
  • If $f'(x)$ changes from Negative to Positive ($- \to +$): Local Minimum.
  • If the sign does not change: It is an inflection point (saddle point), not an extremum.

Step 4: Evaluate Candidates for Global Maximum

If you are searching for the absolute maximum on a closed interval $[a, b]$:

  1. Evaluate $f(x)$ at all critical points inside the interval.
  2. Evaluate $f(x)$ at the endpoints $a$ and $b$.
  3. Compare all these values. The largest $y$-value is the global maximum.

Worked Example: Polynomial Optimization

Let’s find the maximum of $f(x) = -x^3 + 3x^2 + 9x - 5$ on the interval $[-2, 4]$.

1. First Derivative: $f'(x) = -3x^2 + 6x + 9$

2. Critical Points: $-3x^2 + 6x + 9 = 0$ Divide by -3: $x^2 - 2x - 3 = 0$ Factor: $(x - 3)(x + 1) = 0$ Critical points: $x = -1$ and $x = 3$. Both lie within $[-2, 4]$ Which is the point..

3. Second Derivative Test: $f''(x) = -6x + 6$

  • At $x = -1$: $f''(-1) = 6 + 6 = 12 > 0$ $\rightarrow$ Local Minimum.
  • At $x = 3$: $f''(3) = -18 + 6 = -12 < 0$ $\rightarrow$ Local Maximum.

4. Evaluate Candidates for Global Max on $[-2, 4]$:

  • $f(-2) = -(-8) + 3(4) + 9(-2) - 5 = 8 + 12 - 18 - 5 = -3$
  • $f(-1) = -(-1) + 3(1) + 9(-1) - 5 = 1 + 3 - 9 - 5 = -10$ (Local Min)
  • $f(3) = -(27) + 3(9) + 9(3) - 5 = -27 + 27 + 27 - 5 = \mathbf{22}$ (Local Max)
  • $f(4) = -(64) + 3(16) + 9(4) - 5 = -64 + 48 + 36 - 5 = 15$

Conclusion: The global maximum on $[-2, 4]$ is 22, occurring at $x = 3$ Nothing fancy..


Method 2: Optimization Without Calculus (Algebraic & Geometric)

Not all functions are easily differentiable, and sometimes calculus is overkill. For specific function families, algebraic properties offer shortcuts.

Quadratic Functions (Parabolas)

For $f(x) = ax^2 + bx + c$:

  • If $a < 0$, the parabola opens downward $\rightarrow$ Vertex is the Global Maximum.
  • The x-coordinate of the vertex is $x = -\frac{b}{2a}$.
  • Maximum value = $f\left(-\frac{b}{2a}\right) = c - \frac{b^2}{4a}$.
  • No derivative calculation required.

AM-GM Inequality (Arithmetic Mean - Geometric Mean)

For positive variables, this inequality is powerful for constrained optimization.

  • Statement: For non-negative numbers $x_1, x_2, ..., x_n$: $\frac{x_1 + x_2 + ... + x_n}{n} \ge \sqrt[n]{x_1 x_2 ... x_n}$
  • Equality holds iff $x_1 = x_2 = ... = x_n$.
  • Application: To maximize a product given
New Additions

New and Noteworthy

Cut from the Same Cloth

On a Similar Note

Thank you for reading about How To Find The Maximum Of A Function. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home