do you understand why y=(x+2)^2 is shifted left by 2 ?

same thing meaning that for value that normal y=x^2 would have for x=1 is y=1 , but when shifted in x=1 function y= 1^2 +2 = 3

now if you look at the y=(x-2)^2 function you realize that is the function y=x^2 shifted to the right by 2