## What is a Local Maximum?

The **local maximum** (also called the *relative maximum*) is the largest value of a function, given a certain range.

## Finding the Local maximum

Almost all functions have ups and downs. These are places where they can have a minimal or a maximal value. Of course, they have a lot of ups and downs, and we can’t find all of them at once. But, if we select a part of a function, then we can find the biggest and smallest value of that interval. This can be done by differentiating the function. For now, we’ll focus on the local maximum.

Let’s take this function as an example:

**f(x) = x ^{3} – 3x^{2} + 1**

This function has only one local maximum at x = 0. Here is how we can find it.

Step 1: Take the first derivative of the function f(x) = x^{3} – 3x^{2} + 1. You will get a new function f’(x) which will look like this:

**f′(x) = 3x ^{2} – 6x**

If you aren’t sure how I got that derivative, see: Derivatives: The Power Rule.

Step 2: Find the inputs where f’(x) is equal to zero. This means that you take the equation that you got in Step 1, and set it to equal zero.

**3x ^{2} – 6x = 0**

From here on, you can use basic algebra to see that the values will be x = 0 and x = 2. You should be able to see on the graph that the highest point of the function in x = 0. The other value x = 2 will be the local minimum of the function.

## Second Derivative Test

For the example above, it’s fairly easy to see what the local maximum will be. But, there is another way to find it. If the function f’(x) can be derived again (i.e. by taking the second derivative), you can get to it by doing just that.

**f′′(x) = 6x – 6**

Now, we can replace the values that we got earlier (x = 0 and x = 2) in this function.

**x = 0:**

A negative result (-6) means that x = 0 is the local maximum of the function. If the second derivative f′′(x) were positive, then it would be the local minimum.

**x = 2:**

The solution, 6, is positive, which means that x = 2 is a local minimum.

For a more detailed explanation and more examples, see: Second Derivative Test.

## References

Stewart, J. (2009) Calculus: Concepts and Contexts. Cengage Learning.

**CITE THIS AS:**

**Stephanie Glen**. "Local Maximum (Relative Maximum)" From

**CalculusHowTo.com**: Calculus for the rest of us! https://www.calculushowto.com/local-maximum/

**Need help with a homework or test question? **With Chegg Study, you can get step-by-step solutions to your questions from an expert in the field. Your first 30 minutes with a Chegg tutor is free!