Condition 1 :- If f (x) is continuous and f’(x) and f''(x) exists then all points where (f’(x) = 0 and f”(x) > 0) or (f’(x)=0 and f”( x)<0) are extreme points.
Condition 2 :- If f(x) is continuous and defined in [a,b] and condition 1 is not satisfied, then points a and b are extreme points.