Worked example: Rewriting expressions by completing the square