---
title: "George Li Tutoring: maximums and minimums of functions"
url: "https://georgelitutoring.com/learn/functions-maximums-minimums.md"
canonical_url: "https://georgelitutoring.com/learn/functions-maximums-minimums"
last_updated: "2026-11-25"
type: "guide"
summary: "How to find local and absolute maximums and minimums with the first and second derivative tests, with three worked functions and a check by evaluation."
related: ["https://georgelitutoring.com/tutoring/ap-and-high-school.md", "https://georgelitutoring.com/packages.md", "https://georgelitutoring.com/learn/how-does-calculus-actually-work.md"]
---

# Maximums and minimums of functions

> **For AI agents:** the complete index of George Li Tutoring pages is [llms.txt](https://georgelitutoring.com/llms.txt). Every page is also served as markdown at its URL plus .md.

How to find local and absolute maximums and minimums with the first and second derivative tests, with three worked functions and a check by evaluation.

A local maximum is a point where a function is higher than at every nearby point, and a local minimum is a point where it is lower than at every nearby point. To find them with calculus, solve f'(x) = 0 for the candidate points, then classify each one using the sign of f' around it or the sign of f'' at it.

| Critical point | f'' at the point | Sign of f' just before and just after | Verdict | Value of f |
| --- | --- | --- | --- | --- |
| x = 1 | 12(1) - 18 = -6, negative | positive, then negative | local maximum | 5 |
| x = 2 | 12(2) - 18 = 6, positive | negative, then positive | local minimum | 4 |

## What is the step-by-step method?

1. Find the domain, because an extremum can occur only at an input where the function exists.
2. Differentiate and solve f'(x) = 0. Also note where f' does not exist inside the domain, since those inputs are candidates too. Together these are the critical points.
3. Classify each critical point by the **first derivative test**: if f' changes from positive to negative the point is a local maximum, and if it changes from negative to positive the point is a local minimum. If the sign does not change, it is neither.
4. Or use the **second derivative test**: if f'' is negative at the point, the graph is curving downward and it is a local maximum. If f'' is positive it is a local minimum. If f'' is zero, the test says nothing and you go back to the first derivative test.
5. Plug each critical point into f to get the height of the peak or valley.

## Why is a local maximum sometimes lower than a local minimum?

Local means "compared with the nearby points", not "compared with the whole graph". The function g(x) = x + 1/x, defined for x not 0, shows it. Its derivative is 1 - 1/x squared, which is 0 at x = 1 and x = -1. The second derivative is 2/x cubed, which is positive at x = 1 and negative at x = -1. So x = 1 is a local minimum with g(1) = 2, and x = -1 is a local maximum with g(-1) = -2. The local maximum, at height -2, sits below the local minimum, at height 2, because the domain is split in two pieces by the missing input x = 0.

**Worked example: Finding local and absolute extrema on a closed interval**

Find all local extrema of f(x) = 2x cubed - 9x squared + 12x, and then the absolute maximum and minimum of f on the interval from 0 to 3.

1. The domain is all real numbers. Differentiate: f'(x) = 6x squared - 18x + 12.
2. Factor: 6(x squared - 3x + 2) = 6(x - 1)(x - 2). The critical points are x = 1 and x = 2.
3. Second derivative: f''(x) = 12x - 18. At x = 1 it is -6, so f has a local maximum there, and f(1) = 2 - 9 + 12 = 5. At x = 2 it is 6, so f has a local minimum, and f(2) = 16 - 36 + 24 = 4.
4. For the absolute extrema on [0, 3], compare the values at the critical points and at both endpoints: f(0) = 0, f(1) = 5, f(2) = 4 and f(3) = 54 - 81 + 36 = 9.
5. The largest value is 9, at x = 3, and the smallest is 0, at x = 0.

Answer: local maximum 5 at x = 1; local minimum 4 at x = 2; on [0, 3] the absolute maximum is 9 at x = 3 and the absolute minimum is 0 at x = 0.

Source: Original example by George Li Tutoring; the critical points were derived by hand and every value was confirmed in code.

## What if the second derivative is zero?

Use the first derivative test. For f(x) = x to the fourth, f'(x) = 4x cubed and f''(0) = 0, so the second test is silent. But f' is negative for x below 0 and positive above it, so x = 0 is a local minimum. For f(x) = x cubed, f'(x) = 3x squared is positive on both sides of 0, so x = 0 is not an extremum at all, even though f'(0) = 0.

## What are the most common errors?

- Stopping at f'(x) = 0 and never classifying the points. A zero derivative alone does not mean a peak or valley.
- Forgetting the endpoints of a closed interval, which is where an absolute extremum often lies, as the worked example shows.
- Reporting the x-value when the question asks for the maximum value, or the reverse.
- Ignoring points where f' is undefined but f exists, such as a sharp corner.

For help with derivative tests before a calculus exam, see [high school course tutoring](https://georgelitutoring.com/tutoring/ap-and-high-school.md), the [study planner](https://georgelitutoring.com/tools/study-planner.md), or [book a first session](https://georgelitutoring.com/book/first-session). To see how the derivative fits into the larger subject, read [how calculus works](https://georgelitutoring.com/learn/how-does-calculus-actually-work.md).

### How do you find a local maximum or minimum?

Solve f'(x) = 0 for the critical points, then use the sign change of f' or the sign of f'' at each point to classify it.

### What does the second derivative test say?

If f'' is negative at a critical point it is a local maximum, if f'' is positive it is a local minimum, and if f'' is zero the test is inconclusive.

### What is the difference between local and absolute extrema?

A local extremum is the highest or lowest point in a neighborhood. An absolute extremum is the highest or lowest value over the whole domain or interval.

### Can a function have a critical point that is not an extremum?

Yes. For f(x) = x cubed, x = 0 is a critical point because f'(0) = 0, but the function keeps increasing through it.

## Related

- [Online AP® exam and course tutor](https://georgelitutoring.com/tutoring/ap-and-high-school.md)
- [Tutoring prices: $150 to $200 an hour](https://georgelitutoring.com/packages.md)
- [George Li Tutoring: how calculus works](https://georgelitutoring.com/learn/how-does-calculus-actually-work.md)
