Expressions for sin(arctan x) and cos(arctan x) Without Trig Functions
At a glance
- 1. Set the angle
Let θ = arctan(x), using the principal range from −π/2 to π/2.
- 2. Use the tangent ratio
Since tan(θ) = x, take a right-triangle ratio with opposite side x and adjacent side 1.
- 3. Find the hypotenuse
The hypotenuse is √(1 + x²), by the Pythagorean theorem.
- 4. Read off both ratios
Cosine is 1/√(1 + x²), and sine is x/√(1 + x²).
If you want to remove the trigonometric functions from and , the expressions are
These formulas hold for every real number . The key detail is that means the principal inverse tangent, whose values lie in . That range makes the cosine positive and fixes the sign of the square root.
Derive the formulas with a triangle
Set . By the definition of inverse tangent,
Think of tangent as the ratio of the opposite side to the adjacent side of a right triangle. Choose the adjacent side to have length and the opposite side to have length . If is negative, this is a signed ratio rather than a literal negative side length; the same relationship can be understood using the signs of the trigonometric functions in the angle’s quadrant.
The hypotenuse has length , because the Pythagorean theorem gives
Therefore, the ratios are
Substituting gives the stated expressions. Equivalently, these results follow from , together with the fact that on the principal range of arctangent.
Worked example:
Since is between and , its sine is negative and its cosine is positive. Substituting gives
and
As a quick check, their ratio is , which matches the tangent of the angle. Also, their squares add to , as sine and cosine should.
Why the square-root sign matters
From the identity and , you can first obtain
Taking square roots gives , not automatically . The principal angle always lies in a range where cosine is positive, so the positive root is correct. Then gives the sine formula, including its sign.
This sign issue is easy to miss if you start with the Pythagorean identity alone. The range of the inverse function supplies information that the squared identity does not.
Common mistakes
- Using as . In general, . Here the denominator is , which is positive; the sign of the sine comes from the numerator .
- Giving cosine a negative sign for negative . A negative input makes negative, but that angle is still between and , where cosine is positive.
- Confusing with . The notation means the inverse function of tangent, not the reciprocal. The reciprocal is when defined.
- Ignoring the principal-value convention. The tangent function repeats, so many angles have tangent . The inverse function selects the angle in ; using a different angle with the same tangent can change the sine and cosine signs.
For an expression
The same reasoning works whenever is real. Replace by :
For example, if , then . No separate sign case is needed for this cosine; for the sine, the sign follows from whether is positive, zero, or negative.
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.