Suppose that $a_1,a_2 \in \mathbb{R}$
When does $$2\sqrt{a_1a_2}= a_1+a_2$$
I can't see any solution other than $a_2 = a_1$.
Suppose that $a_1,a_2 \in \mathbb{R}$
When does $$2\sqrt{a_1a_2}= a_1+a_2$$
I can't see any solution other than $a_2 = a_1$.
Solving an equation involving square roots is often tricky. Function ‘$\sqrt{\quad}$’ is defined for non-negative reals and it evaluates to non-negative reals, so you have $\sqrt{\quad}: [0,+\infty) \to [0,+\infty)$. When you need to solve an equation like $$2\sqrt{a_1a_2}=a_1+a_2$$ I'd suggest immediatly adding ‘where $a_1a_2 \geq 0$’. From a logical point of view it's absolutely meaningless (let alone you'll often find a wrong solution) trying to solve such an equation where the product $a_1a_2$ is potentially negative. Having in mind all these my derivation would be as follows.
For $a_1, a_2$ such that $a_1a_2 \geq 0$ we have: $$2\sqrt{a_1a_2}=a_1+a_2 \iff$$ $$\{ 4a_1a_2 = (a_1+a_2)^2 \quad \& \quad a_1+a_2 \geq 0 \} \iff$$ $$\{ 4a_1a_2 = a_1^2 + a_2^2 + 2a_1a_2 \quad \& \quad a_1+a_2 \geq 0 \} \iff$$ $$\{ a_1^2 + a_2^2 - 2a_1a_2 = 0 \quad \& \quad a_1+a_2 \geq 0 \} \iff$$ $$\{ (a_1 - a_2)^2 = 0 \quad \& \quad a_1+a_2 \geq 0 \} \iff$$ $$\{ a_1 = a_2 \quad \& \quad a_1+a_2 \geq 0 \} \iff$$ $$a_1 = a_2 \geq 0.$$ (Last step: check that if $a_1 = a_2 \geq 0$, then $a_1a_2 \geq 0$, so we do not reject any solutions.)
Note that the condition ‘$a_1+a_2 \geq 0$’ was necessary for the first equivalence to hold. This is a technique I recommend in order to avoid faulty reasoning when solving such equations while being logically precise and correct!
If $2\sqrt{a_1a_2}=a_1+a_2$ for some $a_1,a_2\in\mathbb{R}$, then $4a_1a_2=(a_1+a_2)^2$ that is $a_1^2-2a_1a_2+a_2^2=0=(a_1-a_2)^2$, so necessarily $a_1=a_2$. The converse is true if $a_1,a_2\in\mathbb{R}^+$.
So the equality holds iff $a_1=a_2$ and $a_1,a_2\in\mathbb{R}^+$. There is no other solutions.
Indeed you have (squaring both members):
$4a_1a_2=a_1^2+a_2^2+2a_1a_2$
and hence:
$(a_1-a_2)^2=0$
Which gives $a_1=a_2$
If $2\sqrt{a_1a_2}=a_1+a_2$ so $a_1+a_2\geq0$, which says that we can use squaring.
Hence, for $a_1+a_2\geq0$ we obtain $$2\sqrt{a_1a_2}=a_1+a_2\Leftrightarrow4a_1a_2=(a_1+a_2)^2,$$ which gives $a_1=a_2$ and since $a_1+a_2\geq0$, we get the answer:
$\{(t,t)\}$, where $t\geq0$.