Inverse Tangent Function
Principal Values Make Inverse Tangent a Function
Tangent repeats every pi, so it has no global inverse on all real angles. Restrict tangent to the interval (-pi/2, pi/2), where it is one-to-one and covers every real output. The inverse on that restriction is arctan: its domain is all real numbers and its range is (-pi/2, pi/2).
Composition order matters. Because arctan accepts every real input, tan(arctan x) returns x for any real x. When tan(theta) is defined, arctan(tan theta) returns the unique principal angle with the same tangent; it need not return theta outside the chosen range. At theta=pi/2+kpi, the composition is undefined.
For calculus, differentiate tan y = x implicitly: sec2(y) dy/dx = 1. Since sec2(y) = 1 + tan2(y) = 1+x2, the derivative is 1/(1+x2). The positive derivative agrees with the increasing principal branch.
What is arctan(tan(3pi/4))?
For f(x) = arctan(x), what is f'(x)?