Considering a function
In other words:
Logically, we expect the side limits to coincide with the value of the function from one side since the function is not defined outside the interval
Example
Let's study the continuity of the function
Continuity in
Let's look now at what happens at the extremes:
Consequently, the function is continuous in the interval
Theorem of Weierstrass
Let
Then there exist two points
This theorem can look like a property since it is very intuitive.The fact that if you have a continuous function defined in a closed interval there will always exist a maximum and an absolute minimum of the function seems obvious.
We observe that if our function
If our function has relative maximums or minimums, we will also have to compare the values with the value of our function at the extremes of the interval, since it might be that this value was also the absolute maximum or minimum.
Let's see some examples:
Example
Let the function
The function
For the same reason, it reaches the minimum in the minimal point of the interval (
Example
Let the function
This function has a relative maximum at point
On the other hand, there is no relative minimum, so the absolute minimum will be at one of the extremes of the interval.
In this case
Observation: The theorem is not true if we do not have a closed interval.
Let's see an example where the theorem is not satisfied.
Example
Let the function
The function
But since it turns out that our interval is opened at the top part, we do not have a maximum value and, consequently, the absolute maximum does not exist.