Solution
Completing the square:
Back