Ma · Mathematics

Expressions for sin(arctan x) and cos(arctan x) Without Trig Functions

Published By the 9to5Science editorial team

At a glance

  1. 1. Set the angle

    Let θ = arctan(x), using the principal range from −π/2 to π/2.

  2. 2. Use the tangent ratio

    Since tan(θ) = x, take a right-triangle ratio with opposite side x and adjacent side 1.

  3. 3. Find the hypotenuse

    The hypotenuse is √(1 + x²), by the Pythagorean theorem.

  4. 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 sin⁡(arctan⁡x)\sin(\arctan x) and cos⁡(arctan⁡x)\cos(\arctan x), the expressions are

sin⁡(arctan⁡x)=x1+x2,cos⁡(arctan⁡x)=11+x2.\sin(\arctan x)=\frac{x}{\sqrt{1+x^2}}, \qquad \cos(\arctan x)=\frac{1}{\sqrt{1+x^2}}.

These formulas hold for every real number xx. The key detail is that arctan⁡x\arctan x means the principal inverse tangent, whose values lie in (−π/2,π/2)(-\pi/2,\pi/2). That range makes the cosine positive and fixes the sign of the square root.

Derive the formulas with a triangle

Set θ=arctan⁡x\theta=\arctan x. By the definition of inverse tangent,

tan⁡θ=x.\tan\theta=x.

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 11 and the opposite side to have length xx. If xx 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 1+x2\sqrt{1+x^2}, because the Pythagorean theorem gives

12+x2=hypotenuse2.1^2+x^2=\text{hypotenuse}^2.

Therefore, the ratios are

sin⁡θ=x1+x2,cos⁡θ=11+x2.\sin\theta=\frac{x}{\sqrt{1+x^2}}, \qquad \cos\theta=\frac{1}{\sqrt{1+x^2}}.

Substituting θ=arctan⁡x\theta=\arctan x gives the stated expressions. Equivalently, these results follow from 1+tan⁡2θ=sec⁡2θ1+\tan^2\theta=\sec^2\theta, together with the fact that cos⁡θ>0\cos\theta>0 on the principal range of arctangent.

Worked example: x=−3x=-3

Since arctan⁡(−3)\arctan(-3) is between −π/2-\pi/2 and 00, its sine is negative and its cosine is positive. Substituting x=−3x=-3 gives

sin⁡(arctan⁡(−3))=−31+(−3)2=−310,\sin(\arctan(-3))=\frac{-3}{\sqrt{1+(-3)^2}}=-\frac{3}{\sqrt{10}},

and

cos⁡(arctan⁡(−3))=11+(−3)2=110.\cos(\arctan(-3))=\frac{1}{\sqrt{1+(-3)^2}}=\frac{1}{\sqrt{10}}.

As a quick check, their ratio is (−3/10)/(1/10)=−3(-3/\sqrt{10})/(1/\sqrt{10})=-3, which matches the tangent of the angle. Also, their squares add to 9/10+1/10=19/10+1/10=1, as sine and cosine should.

Why the square-root sign matters

From the identity sin⁡2θ+cos⁡2θ=1\sin^2\theta+\cos^2\theta=1 and tan⁡θ=x\tan\theta=x, you can first obtain

cos⁡2θ=11+x2.\cos^2\theta=\frac{1}{1+x^2}.

Taking square roots gives ∣cos⁡θ∣=1/1+x2|\cos\theta|=1/\sqrt{1+x^2}, not automatically cos⁡θ=1/1+x2\cos\theta=1/\sqrt{1+x^2}. The principal angle arctan⁡x\arctan x always lies in a range where cosine is positive, so the positive root is correct. Then sin⁡θ=tan⁡θcos⁡θ\sin\theta=\tan\theta\cos\theta 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 x2\sqrt{x^2} as xx. In general, x2=∣x∣\sqrt{x^2}=|x|. Here the denominator is 1+x2\sqrt{1+x^2}, which is positive; the sign of the sine comes from the numerator xx.
  • Giving cosine a negative sign for negative xx. A negative input makes arctan⁡x\arctan x negative, but that angle is still between −π/2-\pi/2 and 00, where cosine is positive.
  • Confusing arctan⁡x\arctan x with 1/tan⁡x1/\tan x. The notation means the inverse function of tangent, not the reciprocal. The reciprocal is cot⁡x\cot x when defined.
  • Ignoring the principal-value convention. The tangent function repeats, so many angles have tangent xx. The inverse function arctan⁡\arctan selects the angle in (−π/2,π/2)(-\pi/2,\pi/2); using a different angle with the same tangent can change the sine and cosine signs.

For an expression arctan⁡(u)\arctan(u)

The same reasoning works whenever uu is real. Replace xx by uu:

sin⁡(arctan⁡u)=u1+u2,cos⁡(arctan⁡u)=11+u2.\sin(\arctan u)=\frac{u}{\sqrt{1+u^2}}, \qquad \cos(\arctan u)=\frac{1}{\sqrt{1+u^2}}.

For example, if u=2t−1u=2t-1, then cos⁡(arctan⁡(2t−1))=1/1+(2t−1)2\cos(\arctan(2t-1))=1/\sqrt{1+(2t-1)^2}. No separate sign case is needed for this cosine; for the sine, the sign follows from whether uu is positive, zero, or negative.

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.