In this problem
we have a quadratic equation (vertical parabola) open downward
so
the function has a maximum of vertex at (1,1)
the function is increasing on the interval ------> (-infinite, 1)
the function is decreasing on the interval -----> (1, infinite)