Find the maximum or minimum value of the quadratic function f: x -> ax^2 + bx + c by completing the square or by differentiation.