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.
I came up with a general idea for a working solution, I think. Will post the idea here, there are several cases to consider carefully.
Ok. If we continue from where I left off, we can say that the solution, whatever it might be, should satisfy:
$$4p-3k^2=n^2$$ $$4p+k^2=m^2$$
For some integers
nandm. Now, it is obvious that $m\gt n$ because $k^2$ is strictly positive (we can't have 0 as a denominator). Also we can safely say $m>n>0$ because otherwise we have at least one discriminant as 0 and that is the case we approached before and now we are under assumption that both of the discriminants are positive. Continuing from here we get:$$4p-3k^2=n^2$$ $$12p+3k^2=3m^2$$
therefore, $16p = n^2+3m^2$ and if we subtract $4m^2$ from both sides, we get $16p-4m^2=n^2-m^2$ or $4\times(4p-m^2) = (n-m)\times(n+m)$
As we noticed before, $m\gt n$ but let's also note that $4p\lt m^2$ (because $4p=m^2-k^2$). Hence we're actually dealing with both negative sides of the equation and we can flip the order:
$$4\times(m^2-4p)=(m-n)\times(m+n)$$
or, if we write is as factors of
4:$$4=\frac{(m-n)\times(m+n)}{m^2-4p}$$
And this is where we start considering different factorization of
4and its distribution among all these members on the right hand side. I'll give several examples.First : $m-n=1$ , then we have $m=n+1$ and $\frac{m+n}{m^2-4p}=4$ this leads us to $\frac{2n+1}{m^2-4p}=4$, thus $2n+1=4(m^2-4p)$ which is clearly an impossibility because one side of this is odd while another one is even
Second : $m+n=1$ - immediately an impossibility because we defined $m>n>0$
Third : $m-n=4$ and $\frac{m+n}{m^2-4p}=1$. Here we have $m=n+4$, so $2n+4=n^2+8n+16-4p$ and $4p=n^2+6n+16$ . Since left hand side is divisible by 4, we need $n=2b$ for some integer
b(in which case both sides are divisible by 4).So far we have $n=2b$ , thus $m=2b+4$ , now returning to our
kfrom the second original equation:$$k^2=m^2-4p = (2b+4)^2-(n^2+6n+12)=4b+4=4(b+1)$$
As we know, if we have a perfect square as a product of "something" and another perfect square, then that "something" must itself be a perfect square. The "something" we have is
b+1, therefore for some integercthe equality $b+1=c^2$ must hold. This means $b=c^2-1$ and substituting it further we get:$$n=2c^2-2$$ $$m=2c^2+2$$
which leads to the following solution:
$$k^2 = m^2-4p = 4c^4+8c^2+4-4c^4-4c^2-4 = 4c^2 = (2c)^2$$ $$4p-3k^2 = 4c^4+4c^2+4-12c^2 = (2c^2-2)^2$$ $$4p+k^2 = 4c^4+4c^2+4+4c^2=(2c^2+2)^2$$
for any arbitrary integer
c. In the end, getting back to thepandqnotation, we get:$$D_{1} = 4a-3 = \frac{4p-3q}{q} = \frac{4p-3k^2}{k^2}=\frac{(2c^2-2)^2}{(2c)^2}$$ $$D_{2} = 4a+3 = \frac{4p+q}{q} = \frac{4p+k^2}{k^2}=\frac{(2c^2+2)^2}{(2c)^2}$$
or in other words,
$$\frac{p}{q} = \frac{c^4+c^2+1}{4c^2}$$
An example that I found randomly before (the $\frac{p}{q}=\frac{21}{16}$) is an outcome of this closed form when $c=2$ . I think many others posted in the comment above come from this too. Didn't check all of them, but some definitely are (like for $c=3$)
Fourth : $m+n=4$ . Also an easy case, since we have $m>n>0$ the only possibility it leaves us with is $m=3, n=1$ but in that case we arrive at $3k^2=5$ so no solutions here either
Fifth : $m+n=2$ . An impossibility as much as in the second case since $m>n>0$
Sixth : $m-n=2$ Similarly to the third case, this means $\frac{m+n}{m^2-4p} = 2$ or $4p = n^2+3n+3 = n(n+3) + 3$ . We can now notice that if we have two numbers $n$ and $n+3$ when one of them is guaranteed to be even meaning that our right hand side is a sum of an even and an odd numbers. This is an impossibility because the sum of an even and an odd numbers is odd while our left hand side is even. Hence we have no solutions here either.
And that's it! These are all the cases of how we can factor
4! This means that our $a=\frac{p}{q}=\frac{c^4+c^2+1}{4c^2}$ is indeed the only family of solutions to this problem in case $a>\frac{3}{4}$ . A cool thing is that the border value of $a=\frac{3}{4}$ is also included into this family of solutions when $c=1$!Final Answer
The complete answer therefore is the combination of all the special values for
aand the two general cases, the first is when only one equation has a solution and the second one when both have:$$a = \begin{cases} \frac{p^2-q^2}{4q^2}, & \text{for $0<q^2\le p^2 \lt 4q^2$} \\ \frac{c^4+c^2+1}{4c^2}, & \text{for any $c\in \Bbb N$} \end{cases}$$
($a=0$ is included into the first one when $p=q$ and $a=\frac{3}{4}$ is included into second one when $c=1$)
EDIT
I'd still like to know if the approach with Pythagorean triples is a viable one and if so, how is it possible to get that to a working form. If you know how - please post an answer