If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Relative minima & maxima review

Review how we use differential calculus to find relative extremum (minimum and maximum) points.

How do I find relative minimum & maximum points with differential calculus?

A relative maximum point is a point where the function changes direction from increasing to decreasing (making that point a "peak" in the graph).
Similarly, a relative minimum point is a point where the function changes direction from decreasing to increasing (making that point a "bottom" in the graph).
Supposing you already know how to find increasing & decreasing intervals of a function, finding relative extremum points involves one more step: finding the points where the function changes direction.
Want to learn more about relative extrema and differential calculus? Check out this video.

Example

Let's find the relative extremum points of f(x)=x3+3x29x+7. First, we differentiate f:
f(x)=3(x+3)(x1)
Our critical points are x=3 and x=1.
Let's evaluate f at each interval to see if it's positive or negative on that interval.
Intervalx-valuef(x)Verdict
x<3x=4f(4)=15>0f is increasing.
3<x<1x=0f(0)=9<0f is decreasing.
x>1x=2f(2)=15>0f is increasing.
Now let's look at the critical points:
xBeforeAfterVerdict
3Maximum
1Minimum
In conclusion, the function has a maximum point at x=3 and a minimum point at x=1.

Check your understanding

Problem 1
h(x)=x3+3x24
For what value of x does h have a relative maximum ?
Choose 1 answer:

Want to try more problems like this? Check out this exercise.

Want to join the conversation?

  • blobby green style avatar for user D. Ashley Nelson
    (x−3)^2(1)+(x−2)[2(x−3)]
    = (x-3)^2+((x-2)2)(x-3)
    = (x-3)^2+(2x-4)(x-3)
    .... then I am lost. how do I get from here to ...
    ​=(x−3)(x−3+2x−4) ??

    Thank you
    (14 votes)
    Default Khan Academy avatar avatar for user
    • starky ultimate style avatar for user JoshuaSLynch
      Think of this equation: x^2 + 2x. You can split the x^2 term into the individual x's and reverse the distributive property. You end up with x(x+2). The same can be done with your equation.
      (x-3)^2 = (x-3)(x-3)
      (x-3)(x-3) + (2x-4)(x-3)
      (x-3)((x-3) + (2x-4))
      (17 votes)
  • starky seedling style avatar for user JK Jones
    I don understand how to do it without a graph.
    (1 vote)
    Default Khan Academy avatar avatar for user
    • aqualine ultimate style avatar for user Ken
      If you don't want to hear me take a long winded explanation of why it works then just skip.
      If you think of maximum, it's like a hill. Say you can only climb the hill form the left to the right. If you're beginning to climb it, it's sloping up. But once you reach the top, it will start sloping down. And Since it must go from sloping up to sloping down in a continuous fashion the top point must have a slope of 0. (vice versa for minimum)

      First you take the derivative of an arbitrary function f(x). So now you have f'(x). Find all the x values for which f'(x) = 0 and list them down. So say the function f'(x) is 0 at the points x1,x2 and x3. Now test the points in between the points and if it goes from + to 0 to - then its a maximum and if it goes from - to 0 to + its a minimum
      (36 votes)
  • blobby green style avatar for user teconomides
    what if there are 2 variables F(x,y) = x^3 +y^2 -xy +x
    (3 votes)
    Default Khan Academy avatar avatar for user
  • leafers tree style avatar for user R Haq
    so if f'(x) goes from + to - at x=c then f(c) is an maximum but how do i know if it is a relative or absolute max
    (3 votes)
    Default Khan Academy avatar avatar for user
  • starky seed style avatar for user Jess Irish
    How do you solve for x^2/(x^2 -1)
    (3 votes)
    Default Khan Academy avatar avatar for user
  • leafers sapling style avatar for user Gemma
    Values less than one are increasing (becoming less negative) and not decreasing, therefore there should only be one point with that is a retaliative minimum, that point being when x=1.
    (3 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user Zaina Tarafder
    When we're doing the number line, what if it is negative before and after the point? Does that mean it is just continuously decreasing?
    (2 votes)
    Default Khan Academy avatar avatar for user
  • piceratops seed style avatar for user Harshita Chivukula
    How would we calculate the local minimum and maximum of a function defined as min{abs(x-1), x}?
    (2 votes)
    Default Khan Academy avatar avatar for user
    • cacteye blue style avatar for user Jerry Nilsson
      Let 𝑓(𝑥) = min(|𝑥 − 1|, 𝑥)

      What I did was to first write |𝑥 − 1| as a piecewise function:
      1 − 𝑥 for 𝑥 < 1
      𝑥 − 1 for 𝑥 ≥ 1

      Then I found out when this function is less than 𝑥.
      1 − 𝑥 < 𝑥 ⇒ 𝑥 > 1∕2
      𝑥 − 1 < 𝑥 ⇒ −1 < 0, which is true for all 𝑥

      That way, I could write 𝑓(𝑥) as a piecewise function:
      𝑥 for 𝑥 ≤ 1∕2
      1 − 𝑥 for 𝑥 ∈ (1∕2, 1)
      𝑥 − 1 for 𝑥 ≥ 1

      Both 𝑥 and |𝑥 − 1| are continuous and thereby 𝑓(𝑥) is also continuous.

      Finally, I realized that
      𝑥 has a positive slope,
      1 − 𝑥 has a negative slope
      and 𝑥 − 1 has a positive slope
      which means that 𝑓(𝑥) has a relative maximum at 𝑥 = 1∕2
      and a relative minimum at 𝑥 = 1
      (3 votes)
  • blobby green style avatar for user santra313
    ) f(x) = 12x5 – 45x4 + 40x3 + 5. Find the value of x for which the curve shows relative maxima & relative minima
    (2 votes)
    Default Khan Academy avatar avatar for user
    • mr pink red style avatar for user David Lee
      This is really simple if you watched videos. Find the first derivative of a function f(x) and find the critical numbers. Then, find the second derivative of a function f(x) and put the critical numbers. If the value is negative, the function has relative maxima at that point, if the value is positive, the function has relative maxima at that point. This is the Second Derivative Test. However, if you get 0, you have to use the First Derivative Test. Just find the first derivative of a function f(x) and critical numbers. Then, divide the domain (all real numbers) by the critical numbers. For example, if the critical numbers are -1, 4, 5, you should get 4 different domains which are (-∞, -1), (-1, 4), (4, 5), (5, ∞). Then, input any number inside each domain. If the value is negative and the value of next domain is positive, it has relative minima at that point and vice versa. For example, if you got a negative value in the interval (-1, 4) and positive value in the interval (4, 5), the function has relative minima at point 4.

      Hope this helps! If you have any questions or need help, please ask! :)
      (3 votes)
  • blobby green style avatar for user Elyssa Laurel - P6
    given the function f(x) = x^3+ax^2+bx+12, when x=3 there is a relative minimum value of -15. solve for a and b
    (2 votes)
    Default Khan Academy avatar avatar for user
    • leaf green style avatar for user kubleeka
      You know that plugging in x=3 will give a value of -15, so that gives you an equation in a and b.

      If you take the derivative of f and plug in x=3, you know it will give 0, since you have a relative minimum. This gives you a second equation in a and b. Solve the system for a and b.
      (3 votes)