I want to find all values of a
such that the equation
$$\sqrt{a - x} = a - x^2$$
has at least one real root and none of its roots are irrational. I made some decent progress (I think) but stuck at the latest stages.
Here's what I deduced myself so far:
First, we must have $a \ge 0$ because on the left hand side we have a square root which should be non-negative and if $a < 0$ then the right hand side will be strictly negative since $x^2$ is non-negative. Now, for the special case when $a=0$ we have $\sqrt{-x} = -x^2$ which has one real solution $x=0$ and it satisfies the condition. So, $a=0$ works.
Let's now have $a>0$. I solve the equation directly this way:
- Square both sides. We get $a-x = (a-x^2)^2$, so $a-x = a^2-2ax^2+x^4$ and this is quadratic in
a
: - $a^2-(2x^2+1)a+(x^4+x)=0$ for which we have $D=(2x^2+1)^2-4(x^4+x)=4x^2-4x+1=(2x-1)^2$ so it's a perfect square and we get the solutions in
a
: - $a_{1,2} =\frac{2x^2+1\pm\sqrt{D}}{2} = \frac{2x^2+1\pm(2x-1)}{2}$ (we don't have to use absolute value here because we got $\pm$ anyways). Now, considering both values separately we arrive at two different equations:
- $x^2-x+(1-a)=0$ and $x^2-x-a=0$ and we're off to the final stage here
The final stage is to ensure that these equations have solutions and if they do, all of those are not irrational. First, the easier case is - when only one of this equations has a solution. We have:
$$D_{1} = 1 - 4(1-a) = 4a - 3$$
$$D_{2} = 1 - 4(-a) = 4a + 1$$
($D_{1,2}$ stand for the respective discriminants of these equations). We have a strict inequality $4a-3 \lt4a+1$ therefore if it is the case of only one equation having a real root, it must be the second one. This means we need to solve the following system of inequalities:
$$4a-3\lt0$$
$$4a+1\ge0$$
which yields $a\in(0,\frac{3}{4})$ - (as established above, a
must be non-negative and we exclude $a=0$ since we handled that case earlier) for these values of a
, so long as 4a+1
is a square of a rational number, things will work. We can set $4a+1=\frac{p^2}{q^2}$ where p
and q
have no common divisors and get $a=\frac{p^2-q^2}{4q^2}$ ; Now, substituting our restriction for a
we get: $0\lt a\lt\frac{3}{4}$, so $0\lt 4a\lt3$, so $0\lt\frac{p^2-q^2}{q^2}\lt3$ and finally $q^2\lt p^2 \lt 4q^2$
Finally, the most interesting is the case when both of the equations will have a solution. Starting with the value of $a=\frac{3}{4}$ (the second discriminant is equal to 0). We can check that in this case the first discriminant is equal to $4\times\frac{3}{4}+1 = \frac{12}{4}+1 = \frac{16}{4} = 4$ which is a perfect square, hence the solutions will be rational numbers. Thus $a=\frac{3}{4}$ works. Now, let's consider $a\gt\frac{3}{4}$ In this case our goal is to make sure that both discriminants are perfect squares.
It is sort of "obvious" that there can be no solutions to this when a
is a natural number. This is because $4a-3$ and $4a+1$ are separated by 4, but no perfect squares of natural numbers have such gap: the smallest one is $4-1=3$ followed by $9-4=5$ and then it will only be increasing, thus the difference of 4 between perfect squares of two natural numbers is an impossibility. (We can also prove that more rigorously if we set $D_{1}=n^2$ and $D_{2}=m^2$, then subtracting one from another and factoring it) ; This leaves us with the only possibility - that a
is a rational number. Then a
is expressible as $a=\frac{p}{q}$ in lowest terms (so p
and q
are co-primes). Then we have $4a-3=4\times\frac{p}{q}-3=\frac{4p-3q}{q}$ but since p
and q
are co-primes, then so are 4p-3q
and q
and since we want a perfect square of a rational number, the denominator must be itself a perfect square. Thus for $q=k^2$ for some integer k
. Rewriting these both using k
we get
$$4a-3=\frac{4p-3k^2}{k^2}$$
$$4a+1=\frac{4p+k^2}{k^2}$$
Since our denominators are perfect squares, then the numerators must be too. And we can also notice that the first numerator differs from the second one by $4k^2$ which itself is $(2k)^2$ , hence - a perfect square. In the end we have a Pythagorean triple of numbers $4p-3k^2, (2k)^2, 4p+k^2$ as a solution here and... that's it. I don't really know how to arrive at some closed form for a
in terms of p
and q
. I tried with Euclid Formula, but I didn't go far with it. I know for sure that such solutions exist. For instance $\frac{p}{q}=\frac{21}{16}$ works, but I want to find all of the values of a
in some closed form which make this work in the case when both equations have real roots.
Any ideas on how to finish it off? You can, of course, offer a completely different way of solving it, but I would also like to know how to complete my take on the problem.