[Math] When do you add $180$ to the directional angle

vectors

When finding the direction angle with the formula $\theta = \tan^{-1} \left(\frac{y}{x}\right )$, when do you add $180$ degrees to the answer? Is it whenever the $x$ is negative, when the angle is in the third or fourth quadrant (if this is the case, how would I know the angle is there?), or just in the third quadrant (if this is the case, how would I know the angle is there)? Or something else entirely?

Best Answer

If you look at this table in the Wikipedia article, you will see that in the arctangent row, the "range of usual principal value" is given as $-90^\circ<y<90^\circ$.

This means that if you give a number to the arctangent function, most calculators respond with an answer between $-90^\circ$ and $90^\circ$. This is the half-plane on the right, quadrants I and IV, so $x$ is assumed positive.

If $x$ is negative, the answer you want is $180^\circ$ away.

Related Question