公式丸暗記世代にはわからんのじゃて。

arctan(tan(x)) = A とする。
tan(x) = B と置くと、
arctan(B) = A
tan(A) = B
tan(A) = tan(x)
A = x

∴arctan(tan(x)) = x
これで満足?