I want to solve an equation in x
, containing Sin[x]
, Cos[x]
and a positive real constant b
:
Solve[Cos[x] - b Sin[x] == 0 && x > 0 && x < π && b > 0,x]
Mathematica returns
{{x -> ConditionalExpression[-2 ArcTan[b - Sqrt[1 + b^2]], b > 0]}}
If I manually bring Cos[x]
to the other side of the equation:
Solve[1 == b Sin[x]/Cos[x] && x > 0 && x < π && b > 0,x]
Mathematica returns
{{x -> ConditionalExpression[ArcTan[1/b], b > 0]}}
which is the solution that I prefer to see (I am aware of the fact that the solutions are equivalent for b > 0
).
My question: can I impose conditions on Solve
such that it internally rephrases my equation from
Cos[x] - b Sin[x] == 0
to
1 == b Sin[x]/Cos[x]
or can this be performed with other Mathematica commands in advance of using Solve
?
Solve[b == First[b /. FullSimplify@Solve[Cos[x] - b Sin[x] == 0 && Pi/2 > x > 0, b]], x]
$\endgroup$