is the inverse tangent applied to a reciprocal. Its values stay between and , and yet it jumps by at the origin, which makes for unusually instructive behavior.
The domain is . Since is never , neither is , so the branch with lies in and the branch with in .
| Approach | ||
|---|---|---|
Both one-sided limits exist but differ, so this is a jump discontinuity, of size exactly . No value assigned at could make the function continuous.
Because the values stay bounded, the -axis is not a vertical asymptote. The difference between a discontinuity where the function blows up and one where it merely jumps is plain to see here1.
From the function is odd, with rotational symmetry about the origin. As we have and so , making the -axis a horizontal asymptote, approached from above on the right and from below on the left.
The chain rule gives a derivative that simplifies neatly.
The simplified right-hand side accepts and takes the value there. The function itself jumps, yet the formula for its derivative appears to run smoothly across the origin. Both branches approach the origin with slope and are simply offset from each other by .
Because this derivative is the exact negative of , the derivative of , the sum is constant on each branch. Evaluating at one point on each gives the following.
This graph is therefore the continuous curve turned upside down and shifted up by on the right and down by on the left. The two shifts differ by , and that difference is precisely the jump at the origin.
The second derivative is , positive for and negative for , so the right branch is concave up and the left branch concave down. The sign changes at , which lies outside the domain, so there is no inflection point.
There are two competing definitions of .
| Convention | Formula | Range | Continuity |
|---|---|---|---|
| Principal value in | continuous on the whole line | ||
| Through the reciprocal | without | jumps at the origin |
The second is this graph. It differs from the first by for , so it is always worth checking which convention a textbook or a computer algebra system has adopted.
When a program recovers an angle from coordinates, using alone cannot distinguish the first quadrant from the third, or the second from the fourth. That is why most languages provide a separate two-argument function, atan2, which avoids this discontinuity and returns the full range 2. This graph makes the need for it visible at a glance.