Find the number of solutions of the equation \begin{equation*} \sqrt{1-4x^2}=mx+m+\frac{1}{2}, \end{equation*} where $m$ is a real parameter.
The solutions to this exercise should be: one solution for $-1 \le m \le -\frac{1}{3}$, two solutions for $-\frac{1}{3} < m \le \frac{-2+\sqrt{13}}{3}$, no solutions otherwise.
Please note: this exercise can be solved by studying the number of interception points between the line $y=m$ and the function $y=\frac{\sqrt{1-4x^2}-\frac{1}{2}}{1+x}$. I am not allowed to use this method. The solution has to be found using one of the following two attempts.
My attempts: first of all, we require that $-\frac{1}{2}\le x \le \frac{1}{2}$, so that the square root exists.
Algebraic attempt: Since we have a square root on the LHS, we also require that $mx+m+\frac{1}{2} \ge 0$. Whenever this condition is valid, we can square both sides and get \begin{equation*} m^2x^2+m^2+\frac{1}{4}+2m^2x+m+mx+4x^2-1=0. \end{equation*} By studying the discriminant of this equation, we should get the number of solutions it has. One gets that $\Delta=0 \iff m = \frac{-2\pm\sqrt{13}}{3}$. Isn't this telling us there only are two values of $m$ for which the parametrical equation has one solution only? Moreover: by studying $\Delta \ge 0$ , we get $m \le \frac{-2-\sqrt{13}}{3} \lor m \ge \frac{-2+\sqrt{13}}{3}$, which doesn't agree with the expected answer.
Geometrical attempt: We can find points where the curves $y=\sqrt{1-4x^2}$ and $y=mx+m+\frac{1}{2}$ intercept. The first curve is a semiellipse in the plane. Its equation is $4x^2+y^2=1$, with the restriction $y\ge 0$. The second curve is a line. Finding the interception points between the line and the ellipse should provide the solutions to the exercise. By writing a system of equations, I end up (... of course) in the exact same computations I get in the algebraic method.
Possible problems: I think the (one of the) problem(s) lies in the fact I am not really using the condition $y \ge 0$, hence I am finding the interception points between the line and the whole ellipse.
The algebraic approach is mechanical: $$\sqrt{1-4x^2}=mx+m+\frac12\iff$$ $$mx+m+\frac12\ge0\quad\text{and}\quad1-4x^2=\left(mx+m+\frac12\right)^2.$$ (There is no need to "keep in mind that the solution must fall inside the range $-\frac12\le x\le\frac12$": this will automatically be the case since $1-4x^2$ will be a square.) $$1-4x^2=\left(mx+m+\frac12\right)^2\iff$$ $$(m^2+4)x^2+m(2m+1)x+m^2+m-\frac34=0.$$ $$\Delta:=-4(3m^2+4m-3)\ge0\iff m\in I:=\left[\frac{-2-\sqrt{13}}3,\frac{-2+\sqrt{13}}3\right].$$ For $m\in I,$ the two potential solutions are $$x_\pm:=\frac{-m(2m+1)\pm\sqrt\Delta}{2(m^2+4)}.$$
The additional condition $mx_\pm+m+\frac12\ge0$ is satisfied iff $$0\le-m^2(2m+1)\pm m\sqrt\Delta+(2m+1)(m^2+4),$$ i.e. $$\mp m\sqrt\Delta\le4(2m+1).$$ Now, $$4^2(2m+1)^2-m^2\Delta=12(m+1)\left(m+\frac13\right)(m^2+4).$$ Therefore: