Why does the + 18 in step 2 become -18 in the working out below. Please explain in detail and this formula is calculating the first derivative of a function.

Why does the 18 in step 2 become 18 in the working out below Please explain in detail and this formula is calculating the first derivative of a function class=