Trigonometry · real student question

Simplify arctan of x plus arctan of 1 over x.

Question

Simplify

arctanx+arctan1x\arctan x+\arctan\frac1x

Step-by-step solution

  1. Fix the domain first. The term 1x\frac1x requires x0x\neq 0, so the expression is defined on (,0)(0,)(-\infty,0)\cup(0,\infty) — two separate pieces, which is a hint that the answer may differ on each.

  2. Case x>0x>0: use complementary angles. Put θ=arctanx\theta=\arctan x, so θ(0,π2)\theta\in\left(0,\frac{\pi}{2}\right) and tanθ=x\tan\theta=x. Then

    tan(π2θ)=cotθ=1x\tan\left(\frac{\pi}{2}-\theta\right)=\cot\theta=\frac1x

    and π2θ\frac{\pi}{2}-\theta also lies in (0,π2)\left(0,\frac{\pi}{2}\right), which is inside the principal range of arctan\arctan. Therefore arctan1x=π2θ\arctan\frac1x=\frac{\pi}{2}-\theta and

    arctanx+arctan1x=π2\arctan x+\arctan\frac1x=\frac{\pi}{2}

  3. Case x<0x<0: use oddness rather than repeating the work. Both x<0x<0 and 1x<0\frac1x<0, so both arctangents are negative and their sum cannot be +π2+\frac{\pi}{2}. Apply the previous result to x>0-x>0 and use arctan(t)=arctant\arctan(-t)=-\arctan t:

    arctan(x)+arctan(1x)=π2  (arctanx+arctan1x)=π2\arctan(-x)+\arctan\left(-\tfrac1x\right)=\frac{\pi}{2}\ \Rightarrow\ -\left(\arctan x+\arctan\tfrac1x\right)=\frac{\pi}{2}

    so the sum equals π2-\frac{\pi}{2}.

  4. See why the tangent addition formula alone is not enough. With A=arctanxA=\arctan x and B=arctan1xB=\arctan\frac1x,

    tan(A+B)=x+1x1x1x=x+1x0\tan(A+B)=\frac{x+\frac1x}{1-x\cdot\frac1x}=\frac{x+\frac1x}{0}

    which is undefined. That only tells us A+BA+B is an odd multiple of π2\frac{\pi}{2}; deciding which one requires the range argument above.

  5. Combine into one formula.

    arctanx+arctan1x=π2sgn(x),x0\arctan x+\arctan\frac1x=\frac{\pi}{2}\operatorname{sgn}(x),\qquad x\neq 0

    The function is constant on each half-line and jumps by π\pi across x=0x=0 — it is emphatically not identically π2\frac{\pi}{2}.

  6. Check numerically. At x=2x=2: arctan2=1.1071487\arctan 2=1.1071487 and arctan0.5=0.4636476\arctan 0.5=0.4636476, summing to 1.5707963=π21.5707963=\frac{\pi}{2} ✓. At x=2x=-2 the two values negate and the sum is 1.5707963=π2-1.5707963=-\frac{\pi}{2} ✓.

Answer

arctanx+arctan1x={π2,x>0π2,x<0\arctan x+\arctan\frac1x=\begin{cases}\dfrac{\pi}{2},&x>0\\[4pt]-\dfrac{\pi}{2},&x<0\end{cases}

Need to solve a different problem like this? Open the solver →