MathLabs

Problem 1

Solve x+y+z=a,x2+y2+z2=b2,xy=z2x+y+z=a,\quad x^2+y^2+z^2=b^2,\quad xy=z^2 in real numbers. Find the necessary and sufficient condition on aa and bb for x,y,zx,y,z to be distinct positive numbers.
Step 3 of 3: Recover x,y and the positivity condition
In plain words

For each admissible z, x and y are the two roots of one quadratic; its discriminant controls reality and distinctness.

x,y=a−z±a2−2az−3z22,a2−2az−3z2≥0x,y=\frac{a-z\pm\sqrt{a^2-2az-3z^2}}{2},\qquad a^2-2az-3z^2\ge0
Detailed analysis

For each z from Step 2, x and y are the roots of t2−(a−z)t+z2=0t^2-(a-z)t+z^2=0, giving the displayed formula; the second inequality is exactly the condition for real x,y. This parametrizes all real solutions (including the zero solution when a=b=0a=b=0). If x,y,z must instead be distinct positive numbers, positivity gives a>0a>0 and ∣b∣<a|b|<a, while distinctness adds 3b2−a2>03b^2-a^2>0. Hence the necessary and sufficient condition is a>0a>0 and a/3<∣b∣<aa/\sqrt3<|b|<a.