You can just replace with 2:
Alternatively, you can complete the square.
When , the quadratic term vanishes and we again get -2.
5.1m questions
6.7m answers