If there is a surface in space $\mathbb{R}^2$ given by equation: $$2x^2+2y^2-5z^2+2xy-2x-4y-4z+2=0$$ what is its quadratic form and corresponding matrix?
If the quadratic form is $2x^2+2xy+2y^2-5z^2$ and the corresponding matrix is: $$A=\begin{pmatrix} 2 & 1 & 0\\ 1 & 2 & 0\\ 0 & 0 & -5 \end{pmatrix}$$
But this doesn't make much sense considering that the surface is in $\mathbb{R}^2$.
What would be the correct approach here? Is it possible that $z$ is just some variable from $\mathbb{R}$ not related to the quadratic form itself?
The $\mathbb R^2$ must be a typo and should surely read $\mathbb R^3$. Assuming that, I'll write $\mathbf x =(x,y,z)^T$ so that the equation is $f(\mathbf x)=0$ where $f(\mathbf x) = 2x^2+2xy+2z^2-5z^2-2x-4y-4z+2$. Normally if you want to understand the surface defined by an equation of this sort, there are essentially two steps:
$$ \begin{split} f(x_1+a,y_1+b,z_1+c) &= 2(x_1+a)^2 +2(y_1+b)^2-5(z_1+c)^2 +2(x_1+a)(y_1+b) \\ &\quad -2(x_1+a)-4(y_1+b)-4(z_1+c)+2 \end{split} $$ $\quad$ becomes $f(x_1,y_1,z_1) = 2x_1^2+2x_1y_1+2y_1^2-5z_1^2+\alpha$ for some constant $\alpha\in \mathbb R$.