We set $\phi''(\sqrt{a}\,)=0$ using these steps: \begin{align*} \phi(x)&=x^{b+2}-a x^b\\\ \phi'(x)&=(b+2)\,x^{b+1}-ab\,x^{b-1}\\\ \phi''(x)&=(b+1)(b+2)\,x^b-ab(b-1)\,x^{b-2}\\\ \phi''(\sqrt{a}\,)&=(b+1)(b+2)\,a^{b/2}-ab(b-1)\,a^{b/2-1}\overset{\text{set}}{=}0. \end{align*} The $a^{b/2}$ factor is never zero, so we eliminate it to obtain $$0=(b+1)(b+2)-ab(b-1)a^{-1}=b^2+3b+2-b^2+b=4b+2,$$ with solution $$b=-\frac12.$$