I have a function $g(x,y,\alpha)$ that for $g(x,y,\alpha)=0$ defines a closed surface of $x$ and $y$. Depending on the varable $\alpha$ the shape of the surface changes, see the figure below
$g$ on the parameter $\alpha$">.
As you can see in the figure, upon increasing the parameter $\alpha$, the shape of the closed surface changes and corners are created. I would like to find the critical value of $\alpha$ for which the closed surface $g(x,y,\alpha)=0$ is not convex anymore.
The function $g$ is a bit complex but I provide its expression just in case it is needed
$g=-0.049(\frac{1}{1+\alpha^3})^\frac{1}{3}+((x^2 +x y + y^2)^\frac{3}{2}+\frac{3\sqrt{3} x y (x+y)(-1+\alpha^3)}{2(1+\alpha^3)})^\frac{1}{3}$.
$\textbf{What I did so far:}$
I know that for the function $g(x,y,\alpha)$ to be convex its Hessian matrix should be positive semi-definite. So I calculated the Hessian as follows
$\mathbf{H}=\begin{pmatrix} \frac{\displaystyle \partial^2 g}{\displaystyle \partial x^2} & \frac{\displaystyle\partial^2 g}{\displaystyle \partial x \partial y} \\ \frac{\displaystyle \partial^2 g}{\displaystyle \partial y \partial x} & \frac{\displaystyle \partial^2 g}{\displaystyle \partial y^2} \end{pmatrix}$.
In order to ensure the positive semi-definiteness of the Hessian $\mathbf{H}$, its eigenvalues must be positive. Thus, it should satisfy the following conditions:
$\det(\mathbf{H})>0$.
$\frac{\displaystyle \partial^2 g}{\displaystyle \partial x^2}>0$.
However, after calculating I understood that $\det(\mathbf{H})$ is zero for every $\alpha$ and also $\frac{\displaystyle \partial^2 g}{\displaystyle \partial x^2}$ is too complex. Therefore I couldn't determine the positive semi-definiteness of $\mathbf{H}$ with this procedure.
I would like to know if I am on the right path for the determination of the critical value of $\alpha$ for which the surface $g$ is not convex. If yes, then how can I continue.