Include the real condition in Solve
. Here is your equation:
eqn = -(a - I b)Exp[4 π I/3](Sqrt[2] I+x^3/Sqrt[3])x -
(a+I b)Exp[2 π I/3](Sqrt[2] I x^3+1/Sqrt[3])==0;
eqn //TeXForm
$e^{-\frac{2 i \pi }{3}} x \left(\frac{x^3}{\sqrt{3}}+i \sqrt{2}\right) (-a+i b)-e^{\frac{2 i \pi }{3}}
\left(\frac{1}{\sqrt{3}}+i \sqrt{2} x^3\right) (a+i b)=0$
and conditions:
conditions = a^2+b^2 <= 1 && -1 <= a <= 1/2 && -Sqrt[3]/2 <= b <= Sqrt[3]/2;
Use Solve
, including reality conditions:
soln = Solve[eqn && (x | a | b) ∈ Reals];
Normal[soln] //ComplexExpand //Simplify //Column //TeXForm
$\begin{array}{l}
\{a\to 0,b\to 0\} \\
\left\{a\to -\sqrt{3} b,x\to 1\right\} \\
\left\{a\to -\sqrt{3} b,x\to -1\right\} \\
\left\{a\to \frac{\sqrt{3} \left(31+22 \sqrt{2}\right) b}{9+6 \sqrt{2}},x\to -1-\sqrt{2}\right\} \\
\left\{a\to \frac{\sqrt{3} \left(22 \sqrt{2}-31\right) b}{6 \sqrt{2}-9},x\to 1-\sqrt{2}\right\} \\
\left\{a\to \frac{\left(5+4 \sqrt{2}\right) b}{\sqrt{3}},x\to \sqrt{2}-1\right\} \\
\left\{a\to \frac{\left(5-4 \sqrt{2}\right) b}{\sqrt{3}},x\to 1+\sqrt{2}\right\} \\
\end{array}$
Imposing your other conditions will just convert these infinite line regions into finite line regions. For example, the second solution corresponds to:
ComplexExpand @ Normal[soln[[2]]]
{a -> -Sqrt[3] b, x -> 1}
and:
RegionEqual[
Line[{{-Sqrt[3]/2, 1/2}, {1/2, -1/(2Sqrt[3])}}],
ImplicitRegion[a == -Sqrt[3] b && conditions, {a,b}]
]
True
Addendum
If there is no reality condition on x
, then just do:
soln = Solve[eqn, x];
and plug in any values of a
and b
that satisfy your conditions. For example:
soln /. {a->.3, b->.1}
{{x -> -2.6158 - 0.635753 I}, {x -> -0.665718 + 0.958755 I}, {x ->
0.36097 + 0.0877316 I}, {x -> 0.488639 - 0.70373 I}}