I did
Solve[k2 Cos[x] - k1 Sin[x] == 0,x]
Since tangent is sin over cos, the solution must be
arctan(k2/k1)
But Mathematica gives
{{x -> ConditionalExpression[ ArcTan[-(k1/Sqrt[k1^2 + k2^2]), -(k2/Sqrt[k1^2 + k2^2])] + 2*Pi*C[1], Element[C[1], Integers]]}, {x -> ConditionalExpression[ ArcTan[k1/Sqrt[k1^2 + k2^2], k2/Sqrt[k1^2 + k2^2]] + 2*Pi*C[1], Element[C[1], Integers]]}}
Why is this the case?






k1andk2areReals. – swish May 30 '16 at 20:59FullSimplify[Solve[{k2 Cos[x] - k1 Sin[x] == 0}, x], {k1, k2, x} \[Element] Reals]instead. – MarcoB May 30 '16 at 21:00ArcTan[x,y]is ArcTan[y/x] with proper choice of sign. Check this for details. – Sumit May 30 '16 at 21:02Assuming[{{k1, k2} \[Element] Reals}, Simplify[Solve[k2 Cos[x] - k1 Sin[x] == 0, x]]]. you will still have a condition because it is not specified that we are looking for Principal values (That is thesolution + 2Pi C[1]part). – Sumit May 30 '16 at 21:14