Your limitation on $x=(x_1,x_2,x_3)$ is $x_1^2+x_2^2+x_3^2=1$. That gives us
$$f(x)=2x_1^2 +2x_2^2-x_3^2+2x_1x_2$$
$$=2(x_1^2+x_2^2+x_3^2)-3x_3^2+2x_1x_2$$
$$=2-3x_3^2+2x_1x_2$$
The limitations place $(x_1,x_2,x_3)$ on the surface of the unit sphere. Clearly we maximize $f(x)$ by making $x_3=0$ and maximizing $2x_1x_2$ for $x_1^2+x_2^2=1$.
Geometrically, that last is finding the point on the unit circle for which the hyperbola defined by $2x_1x_2=k$ has the largest value of $k$. A quick look at the graph shows that happens at $x_1=x_2=\frac{\sqrt{2}}2$.

So your desired vector is
$$x=\left(\frac{\sqrt 2}2,\frac{\sqrt 2}2,0 \right)$$