Proof global minimum of $f(x,y)=x^2+y^4-y^2$ is $\frac{1}{2}$ where $f:$ $\mathbb{R} \times \mathbb{R} \rightarrow \mathbb{R}$. Is my proof attempt correct?
Define $g(y):=f(0,y)$. Differentiating $g$ after $y$ we find $4y^{3}-2y$. By setting $4y^{3}-2y=0$ we find that $y=0,\frac{1}{\sqrt{2}},-\frac{1}{\sqrt{2}}$. Differentiating again we find $\frac{d}{dy}\frac{dg}{dy}=12y^{2}-2$. $\frac{d}{dy}\frac{dg}{dy}(0)<0$ and $\frac{d}{dy}\frac{dg}{dy}(\frac{1}{\sqrt{2}})>0$ we find that only $\frac{1}{\sqrt{2}}, -\frac{1}{\sqrt{2}}$ are a local minimum. Notice that $g$ is continuous and differentiable thus we find that the minimum of the local minimums is the global minimum. Since $f(\frac{1}{\sqrt{2}})=f(-\frac{1}{\sqrt{2}})=-\frac{1}{4}$ this is the global minimum of $g$. We also have $f(x,y) \geq g(y) \geq -\frac{1}{4}$ because $x^2$ is always positive. Which yields to the result that $-\frac{1}{4}$ is the global minimum of the function $f$