If x=2,y=1,z=-3, find the value of each of the following :
x2+2xy+y2+z2
=x2+2xy+y2+z2=(2)2+(2×2×1)+(1)2+(-3)2=4+4+1+9=18