PDF download Download Article PDF download Download Article

Oftentimes in calculus, you will need to find the extrema (relative minimums and maximums) of a function. Sometimes you will be allowed to graph it and visually figure out where the graph peaks and dips, but other times you won't be able to. This article will teach you how to calculate the extrema using the first and second derivative tests.

Part 1
Part 1 of 2:

First Derivative Test

PDF download Download Article
  1. 1
    Derive your function once. [1] Use one or a combination of derivative rules to derive your function.
    • For example, you use the power rule to derive each term of the function . .
  2. 2
    Find the x-values for which the derivative function equals zero or undefined. This also means you are finding the x values for which the slope of the function is zero or undefined. [2] A function is undefined where there are asymptotes or when the denominator of a fraction equals 0, so you should include those as potential critical points as well. [3]
    • is a polynomial we are able to factor. . The fully factored function is .
    • ; the solutions are at x = -1 and x = 2. There are no x-values for which this quadratic function is undefined, meaning these are the critical points of this function.
    Advertisement
  3. 3
    Create intervals between the critical points. Create one more interval than critical point you have. For example, if you have 3 critical points, you create 4 intervals. Place your intervals into a table.
    • For this example, we have 2 critical points, so we create 3 intervals. The first one is between negative infinity and -1, the second one is between -1 and 2, and the last one is between 2 and positive infinity.
    • This can be written in interval notation: (-∞, -1] U [-1, 2] U [2, ∞).
  4. 4
    Find one number in each interval and substitute them into . This is to find out the values of in each interval. Put the values into your table.
    • (-∞, -1]: x = -2. After substituting, is 12.
    • [-1, 2]: x = 0. After substituting, is -6.
    • [2, ∞): x = 3. After substituting, is 12.
  5. 5
    Notice the sign changes of . A sign change for the derivative function indicates a relative maximum or minimum. You can determine this by looking at the left interval and right interval of a critical point.[4] If switches signs from the left interval to the right interval, there is a relative maximum or minimum.
    • Relative maximum: changes from positive (+) to negative (-).
    • Relative minimum: changes from negative (-) to positive (+).
    • The point is not a relative maximum nor minimum if does not change signs ( is positive or negative over both intervals a critical point is located in).
    • For this example, changed from positive (+12) to negative (-6) around x = -1. This means x = -1 is a relative maximum. also changed from negative (-6) to positive (+12) around x = 2. This means x = 2 is a relative minimum.
  6. 6
    Verify your extrema with a graph. You can hand-draw the function, put the equation into a handheld graphing calculator, or use an online tool like Desmos to verify you got the correct relative maximums and minimums.
  7. Advertisement
Part 2
Part 2 of 2:

Second Derivative Test

PDF download Download Article
  1. 1
    Find your critical points. You will need to find your critical points like you did for the First Derivative Test. Derive your function once and find the x-values for which it equals 0 or undefined.
  2. 2
    Derive your function twice. [5] Use one or a combination of derivative rules to derive your function. Do this one more time to get .
    • For example, you use the power rule to derive each term of the function . .
    • Use the power rule to derive again; it becomes .
  3. 3
    Substitute your critical points into the 2nd derivative. [6] Plug in the critical points you found into to check if there are any sign changes.
    • The critical points for are x = -1 and x = 2.
    • After plugging in -1, .
    • After plugging in 2, .
  4. 4
    Notice the signs of . According to the Second Derivative Test, when is a positive number at a critical point, the graph goes concave up and the point is a relative minimum. When is a negative number, the graph goes concave down and the point is a relative maximum. [7]
    • This can also be stated as, "If , then f has a relative minimum at x = c." and "If , then f has a relative maximum at x = c."
    • For this example, x = -1 is a relative maximum because is negative (-9) at that value. x = 2 is a relative minimum because is positive (+9) at that value.
  5. 5
    Verify your extrema with a graph. You can hand-draw the function, put the equation into a handheld graphing calculator, or use an online tool like Desmos to verify you got the correct relative maximums and minimums.
  6. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Tips

Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!

About This Article

wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, volunteer authors worked to edit and improve it over time.
How helpful is this?
Co-authors: 2
Updated: February 25, 2026
Views: 84
Categories: Calculus
Thanks to all authors for creating a page that has been read 84 times.

Did this article help you?

Advertisement