I've got some exercises for completing the square but the way I've been shown to work it out doesn't work because halfing the three causes problems. Can anybody help me with these exercises?

$\displaystyle x^2 - 3x + 7$

$\displaystyle x^2 - 3x + 4$

Thanks