4
$\begingroup$

Why can't Mathematica solve

$\quad\quad\frac{1-i}{\sqrt{2}}=e^{i \alpha } \tan \left(\frac{\beta }{2}\right)$

with the restrictions $\alpha \in [0, 2 \, \pi)$ and $\beta \in [0,\pi]$:

Solve[(1 - I)/Sqrt[2] == E^(I alpha) *Tan[beta/2] &&  0 <= beta <= π && 0 <= alpha < 2 π]

Solve::nsmet: This system cannot be solved with the methods available to Solve.

The solution is $\beta=\frac{\pi}{2}$ and $\alpha=\frac{7 \cdot \pi}{4}$.

If I give Mathematica the value for $\beta$,

Solve[((1 - I)/Sqrt[2] == E^(I alpha) *Tan[beta/2] /. 
  beta -> π/2) && 0 <= beta <= π && 0 <= alpha < 2 π]

I get the solution

(*{{alpha ->  ConditionalExpression[(7 \[Pi])/4, 0 < beta < \[Pi]]}}*)

What is the problem here?

I also tried the other functions like FindRoot, Reduce, etc.

$\endgroup$
  • $\begingroup$ Closely related Symbolically solve and Plot equation involving Tan $\endgroup$ – Artes Aug 18 '14 at 17:14
  • $\begingroup$ Wow, Thanks! Do you know why Mathematica can solve it with $\cos[\alpha]+I*\sin[\alpha]$ but not with $\exp[I \alpha]$? $\endgroup$ – kiara Aug 18 '14 at 17:37
4
$\begingroup$

You may use the following:

Reduce[(1 - I)/Sqrt[2] == ExpToTrig[Exp[I alpha]]*Tan[beta] &&  0 < beta < Pi && 0 < alpha < 2 Pi];

{ToRules[%]} // FullSimplify
{{alpha -> (7 π)/4, beta -> π/4}, {alpha -> (3 π)/4, beta -> (3 π)/4}}

Although I'm not sure why it doesn't work without the ExpToTrig[] thing

$\endgroup$
  • $\begingroup$ I hope you don't mind my edit. I think it makes the validity of your solution more clear. $\endgroup$ – Mr.Wizard Aug 18 '14 at 23:32
  • $\begingroup$ @Mr.Wizard Of course. Thanks. $\endgroup$ – Dr. belisarius Aug 22 '14 at 16:11
0
$\begingroup$
Solve[{(1-I)/Sqrt[2]==Exp[I alpha] Tan[beta],0<beta<Pi,0<alpha<2Pi}//ComplexExpand,
{alpha,beta},Method->Reduce]
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.