when do we use completing the square?