Simplify
Fix the domain first. The term requires , so the expression is defined on — two separate pieces, which is a hint that the answer may differ on each.
Case : use complementary angles. Put , so and . Then
and also lies in , which is inside the principal range of . Therefore and
Case : use oddness rather than repeating the work. Both and , so both arctangents are negative and their sum cannot be . Apply the previous result to and use :
so the sum equals .
See why the tangent addition formula alone is not enough. With and ,
which is undefined. That only tells us is an odd multiple of ; deciding which one requires the range argument above.
Combine into one formula.
The function is constant on each half-line and jumps by across — it is emphatically not identically .
Check numerically. At : and , summing to ✓. At the two values negate and the sum is ✓.
Need to solve a different problem like this? Open the solver →