State the conditions for minimum value of a function at $x = a$.
State the conditions for maximum value of a function at x=ax = ax=a.