Let $Q(x,y)$ be a polynomial in the two variables $x$ and $y$, with real coefficients. Let $a; for any fixed $x$ the polynomial $Q(x,.)$ has a minimum $m(x)$ when $y$ varies in $[a,b]$. We know that this minimum is attained ; call $\eta (x)$ the smallest value in $[a,b]$ where $Q(x,.)$ reaches this minimum. It is also well-known that $\eta (x)$ is either $a$, or $b$, or that $\frac{\partial Q}{\partial y}(x,\eta(x))=0$.
Now there are cases when the fonction $\eta$ is not continuous everywhere : I provide a complicated example below. My example has total degree 12 (degree $6$ in both $x$ and $y$) . I am looking for simpler examples, so here goes my question : what is the smallest total degree of $Q$ for such a phenomenon to appear ?
The example : let $a=0,b=4$ and
$ Q(x,y)=12348(x^6 + y^6 + 1)+64344(x^5(y+1)+y^4(x+1)+x+y)+111977((y^2 + 1)x^4 + (x^2 + 1)y^4 + x^2 + y^2)+113162((xy)^3+x^3+y^3)+136346xy(x^3+y^3+1)-150890xy((y + 1)x^2+(x+1)y^2+x+y)-938154(xy)^2 $
Then one can check with GP that : The polynomial $R(x)={\sf Res}_y(Q(x,y)-Q(x,0),\frac{\partial Q}{\partial x}(x,y))$ is a product of three factors : it is $(x+1)^2$ times a polynomial of degree $4$ times a polynomial $S(x)$ of degree $20$. Then $S(x)$ has eight real roots. The fifth root, $\alpha$, is approximately $\alpha=0.5267883330835579971974199435$.
The polynomial $T(y)=\frac{\partial Q}{\partial x}(\alpha,y)$ has five real roots. The largest, $\beta$, is approximately $\beta=0.5185888479238405761315858539$.
And one has $\eta(x)=0$ for $x \in [0,\alpha[$, $\eta(x)>\beta$ for $x\in ]\alpha,1]$. So $\eta$ has a jump at $\alpha$.