How To Find Function Maximums (Plus 3 Key Things To Know)


You will often need to find function maximums in calculus, especially in optimization problems. A function maximum can be local or global (the global one is a local maximum, and it is greater than any other local maximums).

So, how do you find a function maximum?  To find a function maximum for f(x), find where the 1st derivative f’(x) is zero (critical points). Then, take the 2nd derivative f’’(x) and find the critical points where f’’(x) < 0 (local maximums). Look at the endpoints of an interval to find additional possible local maximums.

Of course, there are a few different ways to find function maximums, but most of the time you will be taking derivatives to do so.

In this article, we’ll talk about ways to find function maximums. We’ll also look at some examples to make the concept clear.

Let’s get started.

How To Find Function Maximums

There are a few different ways to find function maximums for f(x):

  • 1st derivative & sigh chart – this involves taking the 1st derivative f’(x) and making a sign chart for f’(x) at various values (between critical points).
  • 1st & 2nd derivatives – this involves taking the 1st and 2nd derivatives and finding critical points where f’’(x) is negative.
  • Graphing f(x) – this involves graphing f(x) and finding the highest y-values on the graph. It works best for an interval, or if you already have an idea of where the maximum lies.
quartic x4 - 5x2 + 4
Graphing is one way that we can figure out approximately where the maximums of a function are to be found.

Remember that we need to look at y-values of the function at the endpoints to find possible additional local maximums.

Also, there are some functions whose y-values grow larger than any local maximum as x approaches infinity (for example, certain cubic functions).

Let’s take a closer look at each of the three methods to find function maximums, along with some examples to show how they work.

How To Find Function Maximums (First Derivative & Sign Chart)

To find a function maximum with this method, there are a few steps:

  • First, take the first derivative f’(x).
  • Next, solve the equation f’(x) = 0 to find critical points of f(x).
  • Then, make a sign chart for f’(x), finding the values of f’(x) (positive or negative) between the critical points.
  • If any critical point has f’(x) > 0 to the left and f’(x) < 0 to the right, then that critical point is a local maximum (because the function increases to the left of the critical point, and then decreases to the right of the critical point).
  • Finally, compare the local maximums to find the greatest one.
  • If necessary, compare the y-values of the endpoints as well (when looking at an interval).

Let’s try a couple of examples.

Example 1: How To Find Function Maximums With First Derivative & Sign Chart

Let’s say we want to find the maximums of the function:

  • f(x) = 2x3 – 15x2 + 36x – 20

First, we find the derivative function f’(x):

  • f’(x) = 6x2 – 30x + 36

Next, we solve the equation f’(x) = 0 to find the critical points:

  • f’(x) = 0
  • 6x2 – 30x + 36 = 0
  • 6(x2 – 5x + 6) = 0
  • x2 – 5x + 6 = 0
  • (x – 2)(x – 3) = 0
  • x = 2 or x = 3

So, our critical values are at x = 2 and x = 3.

Now, we make a sign chart for f’(x) with critical values at x = 2 and x = 3.  The signs are as follows:

  • Left of x = 2: f’(1) = 6(1)2 – 30(1) + 36 = 6 – 30 + 36 = 12 > 0 (positive)
  • Between x = 2 and x = 3: f’(2.5) = 6(2.5)2 – 30(2.5) + 36 = 37.5 – 75 + 36 = -1.5 < 0 (negative)
  • Right of x = 3: f’(4) = 6(4)2 – 30(4) + 36 = 96 – 120 + 36 = 12 > 0 (positive)

You can see the sign chart graphed on the number line below:

sign chart for f'(x)
Here is the sign chart for f'(x) = 6x2 – 30x + 36. A “+” indicates values where f'(x) is positive, and a “-” indicates values where f'(x) is negative.

We can see that at x = 2, the derivative f’(x) is positive to the left and negative to the right.  This means that f(x) has a local maximum at x = 2.

We can see that at x = 3, the derivative f’(x) is negative to the left and positive to the right.  This means that f(x) has a local minimum at x = 3.

So, the only local maximum is at x = 2, where the function value is 8.  However, there is no global maximum, since f(x) grows without bound as x approaches infinity.

You can see this on the graph of f(x) below.

graph of cubic
This is the graph of the cubic function f(x) = 2x3 – 15x2 + 36x – 20. We can see the local maximum at x = 2, where we have a y-value of f(2) = 8.

Example 2: How To Find Function Maximums With First Derivative & Sign Chart (On An Interval)

Let’s say we want to find the maximums of the function:

  • f(x) = 2x3 – 15x2 + 36x – 20

on the interval [1, 4].

The calculations for f’(x) and the sign chart would be the same as in the previous example.  However, now we need to look at function values at the endpoints.

At the left endpoint (x = 1), the function value is:

  • f(1)
  • =2(1)3 – 15(1)2 + 36(1) – 20
  • =2 – 15 + 36 – 20
  • =3

At the right endpoint (x = 4), the function value is:

  • f(4)
  • =2(4)3 – 15(4)2 + 36(4) – 20
  • =2(64) – 15(16) + 144 – 20
  • =128 – 240 + 144 – 20
  • =12

So, it looks like the function has a maximum at the right endpoint x = 4. In fact, the y-value of f(4) = 12 is greater than the y-value of f(2) = 8 at the local maximum, so f(4) = 12 is the absolute maximum on the interval [1, 4].

graph of cubic on interval [1, 4]
This is the graph of the cubic function f(x) = 2x3 – 15x2 + 36x – 20, limited to the interval [1, 4]. We can see the local maximum at x = 2, and the absolute maximum at the right endpoint x = 4: f(4) = 12.

How To Find Function Maximums (First Derivative & Second Derivative)

Another way to find a function maximum is with the first and second derivatives. Here are the few steps:

  • First, take the first derivative f’(x).
  • Next, solve the equation f’(x) = 0 to find critical points of f(x).
  • Then, take the second derivative f’’(x).
  • Now, find out the value of f’’(x) at each critical point of f(x).
  • If any critical point has f’’(x) < 0, then that critical point is a local maximum (since f’’(x) < 0 means a concave down function, which has a “peak” when f’(x) = 0).
  • Finally, compare the local maximums to find the greatest one.
  • If necessary, compare the y-values of the endpoints as well (when looking at an interval).

Let’s some examples.

Example 1: How To Find Function Maximums With First Derivative & Second Derivative

Let’s say we want to find the maximums of the function:

  • f(x) = x3 – 9x2 + 24x – 10

First, we find the derivative function f’(x):

  • f’(x) = 3x2 – 18x + 24

Next, we solve the equation f’(x) = 0 to find the critical points:

  • f’(x) = 0
  • 3x2 – 18x + 24 = 0
  • 3(x2 – 6x + 8) = 0
  • x2 – 6x + 8 = 0
  • (x – 2)(x – 4) = 0
  • x = 2 or x = 4

So, our critical values are at x = 2 and x = 4.

Now, we take the second derivative function f’’(x):

  • f’’(x) = 6x – 18

Next, we find the value of the second derivative function f’’(x) at the critical points.

For x = 2, we get:

  • f’’(2) = 6x – 18
  • f’’(2) = 6(2) – 18
  • f’’(2) = 12 – 18
  • f’’(2) = -6

So f’’(2) is negative, which means that f(x) has a local maximum at x = 2.

For x = 4, we get:

  • f’’(4) = 6x – 18
  • f’’(4) = 6(4) – 18
  • f’’(4) = 24 – 18
  • f’’(4) = 6

So f’’(4) is positive, which means that f(x) has a local minimum at x = 4.

So, the only local maximum is at x = 2, where the function value is 10.  However, there is no global maximum, since f(x) grows without bound as x approaches infinity.

You can see this on the graph of f(x) below.

graph of x cubed minus 9 x squared +24x - 10
This is the graph of the cubic function f(x) = x3 – 9x2 + 24x – 10. We can see the local maximum at x = 2, where we have a y-value of f(2) = 10.

Example 2: How To Find Function Maximums With First Derivative & Second Derivative On An Interval

Let’s say we want to find the maximums of the function:

  • f(x) = x3 – 9x2 + 24x – 10

on the interval [0, 10].

The calculations for f’(x) and f’’(x) would be the same as in the previous example.  However, now we need to look at function values at the endpoints.

At the left endpoint (x = 0), the function value is:

  • f(0)
  • = 03 – 9(0)2 + 24(0) – 10
  • =-10

At the right endpoint (x = 10), the function value is:

  • f(10)
  • = 103 – 9(10)2 + 24(10) – 10
  • 1000 – 900 + 240 – 10
  • 330

So, it looks like the function has a maximum at the right endpoint x = 10. In fact, the y-value of f(10) = 330 is greater than the y-value of f(2) = 10 at the local maximum, so f(10) = 330 is the absolute maximum on the interval [0, 10].

graph of x cubed minus 9 x squared +24x - 10 on the interval [0, 10]
This is the graph of the cubic function f(x) = x3 – 9x2 + 24x – 10, limited to the interval [0, 10]. We can see the local maximum at x = 2, where we have a y-value of f(2) = 10, and the absolute maximum at the right endpoint x = 10, where f(10) = 330.

How To Find Function Maximums (Graphing f(x))

There is a third way to find function maximums without using derivatives.  This method involves graphing the function to find the highest y-values.

Let’s look at a couple of examples to see how it works.

Example 1: How To Find Function Maximums With Graph Of f(x)

Let’s say we want to find the maximums of the function

  • f(x) = -2x2 + 8x – 6

First, we will graph the function, which you can see below:

graph of parabola -2 x squared + 8x - 6
This is the graph of the quadratic function f(x) = -2x2 + 8x – 6. We can see the local maximum at x = 2, where we have a y-value of f(2) = 2 at the vertex of the parabola.

Note that we get a parabola, which is what we see when we draw the graph of a quadratic.

For a quadratic of the form y = ax2 + bx + c with a < 0, the only local maximum on the real numbers is at the vertex (peak) of the parabola.  This occurs at the value x = -b/2a.

Here, we have a = -2, b = 8, and c = -6. Since a = -2 < 0, the local maximum is at x = -b/2a = -8/2(-2) = 2.

At x = 2, the function has a value of f(2) = -2(2)2 + 8(2) – 6 = 2.

Example 2: How To Find Function Maximums With Graph Of f(x) On An Interval

Let’s say we want to find the maximums of the function

  • f(x) = -2x2 + 8x – 6

on the interval [4, 6].

First, we will graph the function on the interval [4, 6], which you can see below:

graph of parabola -2 x squared 8x - 6 on the interval [4, 6]
This is the graph of the quadratic function f(x) = -2x2 + 8x – 6, limited to the interval [4, 6]. We can see the maximum value at the left endpoint x = 4, with a value of f(4) = -6.

As in the previous example, we get a parabola, but now we only have a small portion of it (from x = 4 to x = 6).

We can see from the graph that the highest y-value that occurs is at x = 4, when f(4) = -2(4)2 + 8(4) – 6 = -32 + 32 – 6 = -6.

So the maximum of f(x) on the interval [4, 6] is at the point (4, -6), the left endpoint of the interval.

Conclusion

Now you know a few ways to find function maximums (local and global).

You can learn how to find function minimums here.

I hope you found this article helpful.  If so, please share it with someone who can use the information.

Math Tutor Picture

Don’t forget to subscribe to our YouTube channel & get updates on new math videos!


Recent Posts