How do I find local maxima and minima of a function?

belandong0ir

belandong0ir

Answered question

2022-12-29

How do I find local maxima and minima of a function?

Answer & Explanation

Marvin Snyder

Marvin Snyder

Beginner2022-12-30Added 6 answers

Be that as it may, let f(x) be a real function of a real variable defined in (a,b) and differentiable in the point x0(a,b)
A necessary condition for x0 to be a local minimum or maximum is that:
f(x0)=0
If f(x) is differentiable in the entire interval, or at least in an interval around x0, we also have a sufficient condition:
x0 is a local minimum if f(x0)=0 and there is a number δ such that:
x(x0δ,x0)f(x)0
x(x0,x0+δ)f(x)0
In this case in fact f(x) will be decreasing on the left of x0 and increasing on the right, so that x0 is a relative minimum.
Vice versa x0 is a local maximum if:
x(x0δ,x0)f(x)0
x(x0,x0+δ)f(x)0
In both cases the necessary condition is that the derivative of f(x) changes sign around x0.
If f(x) also has a second derivative in an interval around x0 this is equivalent to the conditions:
f(x0)=0  and  f(x0)>0x0 is a local minimum.
f(x0)=0  and  f(x0)<0x0 is a local maximum.
To determine local maxima and minima, follow these steps:
1) Find the equation's solutions:
f(x)=0
also called critical points.
2) Determine the inequality:
f(x)0
to see if the sign of f'(x) changes around the critical points, or, alternatively:
2') Calculate f''(x) and look at its value in the critical points.
Example:
Let f(x)=2x33x212x+1
Calculate the derivative:
f(x)=6x26x12
Solve the equation:
f(x)=0
6x26x12=0
x2x2=0
x=1±1+82
so the critical points are:
x1=1
x2=2
As f'(x) is a second degree polynomial with positive leading coefficients we know that:
f(x)<0 for x(1,2)
f(x)>0 for x(,1)(2,+)
and we can soon determine that x1 is a local maximum and x2 a local minimum.
Alternatively we can evaluate the second derivative:
f(x)=12x6
and check that:
f(x1)=126=18<0x1 is a maximum
f(x2)=246=18>0x2 is a minimum

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?