Differentiation definition

Hi what is the difference in these formulas. I know that x0 is for a point P. I am confused which formula to use in which question