Worked example: completing the square (leading coefficient ≠ 1)