The underlying idea you used is correct. We may rewrite your proof as follows:
As x is an even integer, then x=2n for some integer n. Hence, x^2=(2n)^2=4n^2=2(2n^2). Since the multiplication of integers is an integer, then 2n^2= 2*n*n is an integer. As a result, x^2 is a multiple of 2 and hence it is also even.