# Category: Studying Changes of Function

## Condition of Constancy of the Function

Fact. Suppose function `y=f(x)` is defined and continuous on interval `X` and has finite derivative `f'(x)`. Function `y=f(x)` is constant if and only if `f'(x)` for all `x` in `X`.

This fact means that if on some interval derivative of function equals 0 then function is constant their, its graph is just horizontal line.

## Condition of Monotony of the Function

Now let's formulate conditions when function will be monotonic, i.e. increasing, decreasing, non-decreasing, non-increasing.

Fact 1. Suppose function `y=f(x)` is defined and continuous on interval `X` and has finite derivative `f'(x)` on it. Then function is non-decreasing (non-increasing) on `X` if and only if `f'(x)>=0` (`f'(x)<=0`) for all `x` in `X`.

## Proving Inequalities Using Monotony of the Function

Monotony of the function can be used to prove some not obvious inequalities.

Example 1. Prove that `sin(x)>2/pi x` when `0<x<pi/2`.

Consider function `f(x)=(sin(x))/x` defined on interval `(0,pi/2]`.

## Maxima and Minima. Necessary Conditions

If function `y=f(x)` is defined and continuous on interval `[a,b]` is not monotonic, then exist such subintervals `[alpha,beta]` of interval `[a,b]` that largest and smallest value function takes at inner point, i.e. between `alpha` and `beta`.

## First Derivative Test

We know that if point is extremum then it is stationary point. So, we need to find all stationary points and test them. But how?

For this we use following test.

First Derivative Test. Suppose that `c` is a stationary point of a continuous function `y=f(x)`.

## Second Derivative Test

Instead of using First Derivative Test we can use another test.

Second Derivative Test.

- if `f'(c)=0` and `f''(c)<0` then there is maximum at point `c`.
- if `f'(c)=0` and `f''(c)>0` then there is minimum at point `c`.
- if `f'(c)=0` and `f''(c)=0` then we can't say anything about point `c`.

This test is used not so often as first derivative test because of two reasons:

## Higher-Order Derivative Test

As we know Second derivative test is inconlusive when for critocal point `c` `f''(c)=0`.

In this case we need to use another test.

Higher-Order Derivative Test. Suppose that `k` (`k>2`) is the smallest number for which `f^((k))(c)!=0`. If `k` is and odd number, then there is no maximum or minimum at `c`. If `k` is even number then `c` is maximum if `f^((k))(c)<0`, and `c` is minimum if `f^((k))(c)>0`.

## Closed Interval Method

In fact when we used derivative to find extrema, this extrema mainly were local.

Now we turn our attention to finding global extrema on closed interval `[a,b]`.

Extreme Value Theorem. If `f` is continuous on a closed interval `[a,b]`, then `f` attains a global maximum value `f(c)` and a global minimum value `f(d)` at some numbers `c` and `d` from interval `[a,b]`.