Critical points exist when the derivative of the function equals to 0 or undefined.

I'm not sure how to explain relative and absolute extrema, but I will try my best.

Relative extrema occurs when the derivative=0 and it changes sign around that x value.

Absolute extrema is basically the highest or lowest value on the graph.

The second derivative is used to test concavity.